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.

loc_8048444:<br />

loc_8048448:<br />

loc_8048451:<br />

loc_8048471:<br />

and eax, 2000h<br />

test eax, eax<br />

jnz short loc_804840C<br />

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

mov eax, [eax]<br />

mov [ebp+var_9], al<br />

cmp [ebp+var_9], ’+’<br />

jz short loc_8048444<br />

cmp [ebp+var_9], ’-’<br />

jnz short loc_8048448<br />

add [ebp+input], 4<br />

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

jmp short loc_8048471<br />

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

mov eax, edx<br />

shl eax, 2<br />

add eax, edx<br />

add eax, eax<br />

mov edx, eax<br />

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

mov eax, [eax]<br />

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

sub eax, 30h<br />

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

add [ebp+input], 4<br />

call ___ctype_b_loc<br />

mov edx, [eax]<br />

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

mov eax, [eax]<br />

add eax, eax<br />

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

movzx eax, word ptr [eax]<br />

movzx eax, ax<br />

and eax, 800h<br />

test eax, eax<br />

jnz short loc_8048451<br />

cmp [ebp+var_9], 2Dh<br />

jnz short loc_804849A<br />

neg [ebp+var_10]<br />

loc_804849A:<br />

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

leave<br />

retn<br />

_f endp<br />

127

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

Saved successfully!

Ooh no, something went wrong!