asm2
Problem
Solution
asm2: <+0>: push ebp <+1>: mov ebp,esp <+3>: sub esp,0x10 <+6>: mov eax,DWORD PTR [ebp+0xc] <+9>: mov DWORD PTR [ebp-0x4],eax <+12>: mov eax,DWORD PTR [ebp+0x8] <+15>: mov DWORD PTR [ebp-0x8],eax <+18>: jmp 0x50c <asm2+31> <+20>: add DWORD PTR [ebp-0x4],0x1 <+24>: add DWORD PTR [ebp-0x8],0xa9 <+31>: cmp DWORD PTR [ebp-0x8],0x47a6 <+38>: jle 0x501 <asm2+20> <+40>: mov eax,DWORD PTR [ebp-0x4] <+43>: leave <+44>: ret+---------+ | old ebp | <-- ebp +---------+ | ret | <-- ebp + 0x4 +---------+ | 0x9 | <-- ebp + 0x8 +---------+ | 0x1e | <-- ebp + 0xc +---------++---------+ | | <-- ebp - 0x10 (local3) +---------+ | | <-- ebp - 0xc (local2) +---------+ | | <-- ebp - 0x8 (local1) +---------+ | | <-- ebp - 0x4 (local0) +---------+ | old ebp | <-- ebp +---------+ | ret | <-- ebp + 0x4 +---------+ | 0x9 | <-- ebp + 0x8 +---------+ | 0x1e | <-- ebp + 0xc +---------+<+6>: mov eax,DWORD PTR [ebp+0xc] <+9>: mov DWORD PTR [ebp-0x4],eax <+12>: mov eax,DWORD PTR [ebp+0x8] <+15>: mov DWORD PTR [ebp-0x8],eax <+18>: jmp 0x50c <asm2+31>+---------+ | | <-- ebp - 0x10 (local3) +---------+ | | <-- ebp - 0xc (local2) +---------+ | 0x9 | <-- ebp - 0x8 (local1) +---------+ | 0x1e | <-- ebp - 0x4 (local0) +---------+ | old ebp | <-- ebp +---------+ | ret | <-- ebp + 0x4 +---------+ | 0x9 | <-- ebp + 0x8 +---------+ | 0x1e | <-- ebp + 0xc +---------+<+31>: cmp DWORD PTR [ebp-0x8],0x47a6 <+38>: jle 0x501 <asm2+20><+20>: add DWORD PTR [ebp-0x4],0x1 <+24>: add DWORD PTR [ebp-0x8],0xa9 <+31>: cmp DWORD PTR [ebp-0x8],0x47a6 <+38>: jle 0x501 <asm2+20> <+40>: mov eax,DWORD PTR [ebp-0x4] <+43>: leave <+44>: ret
Flag
Last updated