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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

.text:00541150<br />

.text:00541150 var_40 = byte ptr -40h<br />

.text:00541150 arg_0 = dword ptr 4<br />

.text:00541150<br />

.text:00541150 sub esp, 40h<br />

.text:00541153 push ebx<br />

.text:00541154 push ebp<br />

.text:00541155 mov ebp, [esp+48h+arg_0]<br />

.text:00541159 push esi<br />

.text:0054115A push edi<br />

.text:0054115B xor edi, edi<br />

.text:0054115D lea ebx, [esp+50h+var_40]<br />

.text:00541161<br />

.text:00541161 loc_541161: ; CODE XREF: rotate3+2E<br />

.text:00541161 xor esi, esi<br />

.text:00541163<br />

.text:00541163 loc_541163: ; CODE XREF: rotate3+25<br />

.text:00541163 push esi<br />

.text:00541164 push ebp<br />

.text:00541165 push edi<br />

.text:00541166 call get_bit<br />

.text:0054116B add esp, 0Ch<br />

.text:0054116E mov [ebx+esi], al<br />

.text:00541171 inc esi<br />

.text:00541172 cmp esi, 8<br />

.text:00541175 jl short loc_541163<br />

.text:00541177 inc edi<br />

.text:00541178 add ebx, 8<br />

.text:0054117B cmp edi, 8<br />

.text:0054117E jl short loc_541161<br />

.text:00541180 xor ebx, ebx<br />

.text:00541182 lea edi, [esp+50h+var_40]<br />

.text:00541186<br />

.text:00541186 loc_541186: ; CODE XREF: rotate3+54<br />

.text:00541186 mov esi, 7<br />

.text:0054118B<br />

.text:0054118B loc_54118B: ; CODE XREF: rotate3+4E<br />

.text:0054118B mov al, [edi]<br />

.text:0054118D push eax<br />

.text:0054118E push ebx<br />

.text:0054118F push ebp<br />

.text:00541190 push esi<br />

.text:00541191 call set_bit<br />

.text:00541196 add esp, 10h<br />

.text:00541199 inc edi<br />

.text:0054119A dec esi<br />

.text:0054119B cmp esi, 0FFFFFFFFh<br />

.text:0054119E jg short loc_54118B<br />

.text:005411A0 inc ebx<br />

.text:005411A1 cmp ebx, 8<br />

.text:005411A4 jl short loc_541186<br />

.text:005411A6 pop edi<br />

.text:005411A7 pop esi<br />

.text:005411A8 pop ebp<br />

152

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

Saved successfully!

Ooh no, something went wrong!