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.

pop ebx<br />

pop esi<br />

pop edi<br />

pop ebp<br />

retn<br />

; --------------------------------------------------------------------------align<br />

8<br />

loc_80484E8: ; CODE XREF: f(int,int *,int *,int *)+1F<br />

test bl, 0Fh<br />

jnz short loc_80484C1<br />

lea edx, [esi+10h]<br />

cmp ebx, edx<br />

jbe loc_8048578<br />

loc_80484F8: ; CODE XREF: f(int,int *,int *,int *)+E0<br />

lea edx, [edi+10h]<br />

cmp ebx, edx<br />

ja short loc_8048503<br />

cmp edi, eax<br />

jbe short loc_80484C1<br />

loc_8048503: ; CODE XREF: f(int,int *,int *,int *)+5D<br />

mov eax, ecx<br />

shr eax, 2<br />

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

shl eax, 2<br />

test eax, eax<br />

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

jz short loc_8048547<br />

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

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

xor eax, eax<br />

xor edx, edx<br />

nop<br />

loc_8048520: ; CODE XREF: f(int,int *,int *,int *)+9B<br />

movdqu xmm1, xmmword ptr [edi+eax]<br />

movdqu xmm0, xmmword ptr [esi+eax]<br />

add edx, 1<br />

paddd xmm0, xmm1<br />

movdqa xmmword ptr [ebx+eax], xmm0<br />

add eax, 10h<br />

cmp edx, ecx<br />

jb short loc_8048520<br />

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

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

cmp ecx, eax<br />

jz short loc_80484D8<br />

loc_8048547: ; CODE XREF: f(int,int *,int *,int *)+73<br />

lea edx, ds:0[eax*4]<br />

add esi, edx<br />

add edi, edx<br />

98

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

Saved successfully!

Ooh no, something went wrong!