Solution by pinnn:

Hi! Check my solution, please. I use pintool for memory trace. Then i have analyzed traces and get pseudocode. Very good crackme!)