EAX = 0x00000000MAIN:                ECX = 0x00000001  push ecx                     ESP = 0xbffff77C  call SUB           E...
EAX = 0x00000000MAIN:                ECX = 0x00000001  push ecx                     ESP = 0xbffff778  call SUB           E...
EAX = 0x00000000MAIN:                ECX = 0x00000001  push ecx                     ESP = 0xbffff774  call SUB           E...
EAX = 0x00000000MAIN:                ECX = 0x00000001  push ecx                     ESP = 0xbffff770  call SUB           E...
EAX = 0x00000000MAIN:                ECX = 0x00000001  push ecx                     ESP = 0xbffff770  call SUB           E...
EAX = 0x00000001MAIN:                ECX = 0x00000001  push ecx                     ESP = 0xbffff770  call SUB           E...
EAX = 0x00000001MAIN:                ECX = 0x00000001  push ecx                     ESP = 0xbffff770  call SUB           E...
EAX = 0x00000001MAIN:                ECX = 0x00000001  push ecx                     ESP = 0xbffff774  call SUB           E...
EAX = 0x00000001MAIN:                ECX = 0x00000001  push ecx                     ESP = 0xbffff778  call SUB           E...
EAX = 0x00000001MAIN:                ECX = 0x00000001  push ecx                     ESP = 0xbffff778  call SUB           E...
Upcoming SlideShare
Loading in …5
×

Main

7,135 views

Published on

Published in: Education, Technology, Business
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
7,135
On SlideShare
0
From Embeds
0
Number of Embeds
5,913
Actions
Shares
0
Downloads
12
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Main

  1. 1. EAX = 0x00000000MAIN: ECX = 0x00000001 push ecx ESP = 0xbffff77C call SUB EBP = 0xbffff788 mov edx, eax EIP = MAINSUB: push ebp mov ebp, esp Stack mov eax, [ebp+8] ADDRESS VALUE 0xbffff770 mov esp, ebp 0xbffff774 pop ebp 0xbffff778 ret 0xbffff77C 0x12345678
  2. 2. EAX = 0x00000000MAIN: ECX = 0x00000001 push ecx ESP = 0xbffff778 call SUB EBP = 0xbffff788 mov edx, eax EIP = addr of push ecxSUB: push ebp mov ebp, esp Stack mov eax, [ebp+8] ADDRESS VALUE 0xbffff770 mov esp, ebp 0xbffff774 pop ebp 0xbffff778 0x00000001 ret 0xbffff77C 0x12345678
  3. 3. EAX = 0x00000000MAIN: ECX = 0x00000001 push ecx ESP = 0xbffff774 call SUB EBP = 0xbffff788 mov edx, eax EIP = addr of call SUBSUB: push ebp mov ebp, esp Stack mov eax, [ebp+8] ADDRESS VALUE 0xbffff770 mov esp, ebp 0xbffff774 addr of pop ebp mov edx, eax ret 0xbffff778 0x00000001 0xbffff77C 0x12345678
  4. 4. EAX = 0x00000000MAIN: ECX = 0x00000001 push ecx ESP = 0xbffff770 call SUB EBP = 0xbffff788 mov edx, eax EIP = addr of push ebpSUB: push ebp mov ebp, esp Stack mov eax, [ebp+8] ADDRESS VALUE 0xbffff770 0xbffff788 mov esp, ebp 0xbffff774 addr of pop ebp mov edx, eax ret 0xbffff778 0x00000001 0xbffff77C 0x12345678
  5. 5. EAX = 0x00000000MAIN: ECX = 0x00000001 push ecx ESP = 0xbffff770 call SUB EBP = 0xbffff770 mov edx, eax EIP = addr of mov ebp, espSUB: push ebp mov ebp, esp Stack mov eax, [ebp+8] ADDRESS VALUE 0xbffff770 0xbffff788 mov esp, ebp 0xbffff774 addr of pop ebp mov edx, eax ret 0xbffff778 0x00000001 0xbffff77C 0x12345678
  6. 6. EAX = 0x00000001MAIN: ECX = 0x00000001 push ecx ESP = 0xbffff770 call SUB EBP = 0xbffff770 mov edx, eax EIP = addr of mov eax, [ebp+8]SUB: push ebp mov ebp, esp Stack mov eax, [ebp+8] ADDRESS VALUE 0xbffff770 0xbffff788 mov esp, ebp 0xbffff774 addr of pop ebp mov edx, eax ret 0xbffff778 0x00000001 0xbffff77C 0x12345678
  7. 7. EAX = 0x00000001MAIN: ECX = 0x00000001 push ecx ESP = 0xbffff770 call SUB EBP = 0xbffff770 mov edx, eax EIP = addr of mov esp, ebpSUB: push ebp mov ebp, esp Stack mov eax, [ebp+8] ADDRESS VALUE 0xbffff770 0xbffff788 mov esp, ebp 0xbffff774 addr of pop ebp mov edx, eax ret 0xbffff778 0x00000001 0xbffff77C 0x12345678
  8. 8. EAX = 0x00000001MAIN: ECX = 0x00000001 push ecx ESP = 0xbffff774 call SUB EBP = 0xbffff788 mov edx, eax EIP = addr of pop ebpSUB: push ebp mov ebp, esp Stack mov eax, [ebp+8] ADDRESS VALUE 0xbffff770 0xbffff788 mov esp, ebp 0xbffff774 addr of pop ebp mov edx, eax ret 0xbffff778 0x00000001 0xbffff77C 0x12345678
  9. 9. EAX = 0x00000001MAIN: ECX = 0x00000001 push ecx ESP = 0xbffff778 call SUB EBP = 0xbffff788 mov edx, eax EIP = addr of retSUB: push ebp mov ebp, esp Stack mov eax, [ebp+8] ADDRESS VALUE 0xbffff770 0xbffff788 mov esp, ebp 0xbffff774 addr of pop ebp mov edx, eax ret 0xbffff778 0x00000001 0xbffff77C 0x12345678
  10. 10. EAX = 0x00000001MAIN: ECX = 0x00000001 push ecx ESP = 0xbffff778 call SUB EBP = 0xbffff788 mov edx, eax EIP = addr of mov edx, eaxSUB: push ebp mov ebp, esp Stack mov eax, [ebp+8] ADDRESS VALUE 0xbffff770 0xbffff788 mov esp, ebp 0xbffff774 addr of pop ebp mov edx, eax ret 0xbffff778 0x00000001 0xbffff77C 0x12345678

×