Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.00 KB | None | 0 0
  1. Prog4
  2. ------------------------------------------------
  3.  
  4. Dump of assembler code for function main:
  5. 0x08048439 <+0>: push ebp
  6. 0x0804843a <+1>: mov ebp,esp
  7. 0x0804843c <+3>: and esp,0xfffffff0
  8. 0x0804843f <+6>: sub esp,0x10
  9. 0x08048442 <+9>: mov DWORD PTR [esp],0x8048520
  10. 0x08048449 <+16>: call 0x8048414 <printbuf>
  11. 0x0804844e <+21>: mov eax,0x0
  12. 0x08048453 <+26>: leave
  13. 0x08048454 <+27>: ret
  14. End of assembler dump.
  15.  
  16. Dump of assembler code for function printbuf:
  17. 0x08048414 <+0>: push ebp
  18. 0x08048415 <+1>: mov ebp,esp
  19. 0x08048417 <+3>: sub esp,0x28
  20. 0x0804841a <+6>: mov eax,DWORD PTR [ebp+0x8]
  21. 0x0804841d <+9>: mov DWORD PTR [esp+0x4],eax
  22. 0x08048421 <+13>: lea eax,[ebp-0x12]
  23. 0x08048424 <+16>: mov DWORD PTR [esp],eax
  24. 0x08048427 <+19>: call 0x8048340 <strcpy@plt>
  25. 0x0804842c <+24>: lea eax,[ebp-0x12]
  26. 0x0804842f <+27>: mov DWORD PTR [esp],eax
  27. 0x08048432 <+30>: call 0x8048350 <puts@plt>
  28. 0x08048437 <+35>: leave
  29. 0x08048438 <+36>: ret
  30. End of assembler dump.
  31.  
  32. =============================================================================================================
  33. =============================================================================================================
  34. =============================================================================================================
  35. =============================================================================================================
  36. =============================================================================================================
  37. =============================================================================================================
  38.  
  39. Prog5
  40. ------------------------------------------------
  41.  
  42. Dump of assembler code for function main:
  43. 0x08048439 <+0>: push ebp
  44. 0x0804843a <+1>: mov ebp,esp
  45. 0x0804843c <+3>: and esp,0xfffffff0
  46. 0x0804843f <+6>: sub esp,0x10
  47. 0x08048442 <+9>: mov eax,DWORD PTR [ebp+0xc]
  48. 0x08048445 <+12>: add eax,0x4
  49. 0x08048448 <+15>: mov eax,DWORD PTR [eax]
  50. 0x0804844a <+17>: mov DWORD PTR [esp],eax
  51. 0x0804844d <+20>: call 0x8048414 <printbuf>
  52. 0x08048452 <+25>: mov eax,0x0
  53. 0x08048457 <+30>: leave
  54. 0x08048458 <+31>: ret
  55. End of assembler dump.
  56.  
  57. Dump of assembler code for function printbuf:
  58. 0x08048414 <+0>: push ebp
  59. 0x08048415 <+1>: mov ebp,esp
  60. 0x08048417 <+3>: sub esp,0x28
  61. 0x0804841a <+6>: mov eax,DWORD PTR [ebp+0x8]
  62. 0x0804841d <+9>: mov DWORD PTR [esp+0x4],eax
  63. 0x08048421 <+13>: lea eax,[ebp-0x12]
  64. 0x08048424 <+16>: mov DWORD PTR [esp],eax
  65. 0x08048427 <+19>: call 0x8048340 <strcpy@plt>
  66. 0x0804842c <+24>: lea eax,[ebp-0x12]
  67. 0x0804842f <+27>: mov DWORD PTR [esp],eax
  68. 0x08048432 <+30>: call 0x8048350 <puts@plt>
  69. 0x08048437 <+35>: leave
  70. 0x08048438 <+36>: ret
  71. End of assembler dump.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement