23.03.2013 Views

Quick introduction to reverse engineering for beginners

Quick introduction to reverse engineering for beginners

Quick introduction to reverse engineering for beginners

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

add eax, [ebp+arg_0]<br />

mov [ebp+var_11C], edx<br />

mov [ebp+var_134], ecx<br />

mov [ebp+var_124], eax<br />

lea eax, [ebp+var_118]<br />

mov [ebp+var_14C], eax<br />

mov [ebp+var_120], ebx<br />

loc_8048433: ; CODE XREF: f+28C<br />

mov eax, [ebp+var_124]<br />

xor edx, edx<br />

push edi<br />

push [ebp+arg_10]<br />

sub eax, esi<br />

div [ebp+var_120]<br />

push esi<br />

shr eax, 1<br />

imul eax, [ebp+var_120]<br />

lea edx, [esi+eax]<br />

push edx<br />

mov [ebp+var_138], edx<br />

call [ebp+arg_C]<br />

add esp, 10h<br />

mov edx, [ebp+var_138]<br />

test eax, eax<br />

jns short loc_8048482<br />

xor eax, eax<br />

loc_804846D: ; CODE XREF: f+CC<br />

mov cl, [edx+eax]<br />

mov bl, [esi+eax]<br />

mov [edx+eax], bl<br />

mov [esi+eax], cl<br />

inc eax<br />

cmp [ebp+var_120], eax<br />

jnz short loc_804846D<br />

loc_8048482: ; CODE XREF: f+B5<br />

push ebx<br />

push [ebp+arg_10]<br />

mov [ebp+var_138], edx<br />

push edx<br />

push [ebp+var_124]<br />

call [ebp+arg_C]<br />

mov edx, [ebp+var_138]<br />

add esp, 10h<br />

test eax, eax<br />

jns short loc_80484F6<br />

mov ecx, [ebp+var_124]<br />

xor eax, eax<br />

loc_80484AB: ; CODE XREF: f+10D<br />

movzx edi, byte ptr [edx+eax]<br />

mov bl, [ecx+eax]<br />

138

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!