i am reversing a malware sample .but getting stucked in a loop below.the line written in the bold letter generated random letter like /2,/lm32 etc to EDX.The thing is that ECX does not contains any contents memory ,so only register address will be added004011F7              >  8BD4              MOV EDX,ESP004011F9              .  03E1              ADD ESP,ECX004011FB              .  4C                DEC ESP004011FC              .  66:8B3C24         MOV DI,WORD PTR [ESP]00401200              .  8BE2              MOV ESP,EDX00401202              .  8BD6              MOV EDX,ESI**00401204              .  03D1              ADD EDX,ECX**00401206              .  50                PUSH EAX00401207              .  03C2              ADD EAX,EDX00401209              .  2D 01000000       SUB EAX,10040120E              .  81E7 FFFF0000     AND EDI,0FFFF00401214              .  52                PUSH EDX00401215              .  8BD7              MOV EDX,EDI00401217              .  8810              MOV BYTE PTR [EAX],DL00401219              .  5A                POP EDX0040121A              .  58                POP EAX0040121B              .  49                DEC ECX0040121C              .  83F9 00           CMP ECX,00040121F              .  0F84 02000000     JE test.0040122700401225              .^ EB D0             JMP SHORT test.004011F7i am adding the below screenshots before stepin and after stepout.please let me know what is happening there.Any help will be great.Thanks
Unknown algorithm in forloop
ollydbg;binary analysis;malware