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.

.text:005410F3<br />

.text:005410F3 loc_5410F3: ; CODE XREF: rotate2+25<br />

.text:005410F3 push esi ; loop2<br />

.text:005410F4 push edi ; loop1<br />

.text:005410F5 push ebp ; arg_0<br />

.text:005410F6 call get_bit<br />

.text:005410FB add esp, 0Ch<br />

.text:005410FE mov [ebx+esi], al ; s<strong>to</strong>re <strong>to</strong> internal array<br />

.text:00541101 inc esi ; increment loop1 counter<br />

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

.text:00541105 jl short loc_5410F3<br />

.text:00541107 inc edi ; increment loop2 counter<br />

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

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

.text:0054110E jl short loc_5410F1<br />

.text:00541110 lea ebx, [esp+50h+internal_array_64]<br />

.text:00541114 mov edi, 7 ; loop1 counter is initial state 7<br />

.text:00541119<br />

.text:00541119 loc_541119: ; CODE XREF: rotate2+57<br />

.text:00541119 xor esi, esi ; loop2 counter<br />

.text:0054111B<br />

.text:0054111B loc_54111B: ; CODE XREF: rotate2+4E<br />

.text:0054111B mov al, [ebx+esi] ; get byte from internal array<br />

.text:0054111E push eax<br />

.text:0054111F push edi ; loop1 counter<br />

.text:00541120 push esi ; loop2 counter<br />

.text:00541121 push ebp ; arg_0<br />

.text:00541122 call set_bit<br />

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

.text:0054112A inc esi ; increment loop2 counter<br />

.text:0054112B cmp esi, 8<br />

.text:0054112E jl short loc_54111B<br />

.text:00541130 dec edi ; decrement loop2 counter<br />

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

.text:00541134 cmp edi, 0FFFFFFFFh<br />

.text:00541137 jg short loc_541119<br />

.text:00541139 pop edi<br />

.text:0054113A pop esi<br />

.text:0054113B pop ebp<br />

.text:0054113C pop ebx<br />

.text:0054113D add esp, 40h<br />

.text:00541140 retn<br />

.text:00541140 rotate2 endp<br />

.text:00541140<br />

.text:00541140 ;<br />

---------------------------------------------------------------------------<br />

.text:00541141 align 10h<br />

.text:00541150<br />

.text:00541150 ; =============== S U B R O U T I N E<br />

=======================================<br />

.text:00541150<br />

.text:00541150<br />

.text:00541150 rotate3 proc near ; CODE XREF:<br />

rotate_all_with_password+66<br />

151

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

Saved successfully!

Ooh no, something went wrong!