Guest User

objdump -d

a guest
Jun 4th, 2011
555
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.74 KB | None | 0 0
  1. nknight@serenity ~ $ objdump -d a.out
  2.  
  3. a.out: file format elf32-i386
  4.  
  5. Disassembly of section .init:
  6.  
  7. 08048250 <_init>:
  8. 8048250: 55 push %ebp
  9. 8048251: 89 e5 mov %esp,%ebp
  10. 8048253: 83 ec 08 sub $0x8,%esp
  11. 8048256: e8 69 00 00 00 call 80482c4 <call_gmon_start>
  12. 804825b: e8 f0 00 00 00 call 8048350 <frame_dummy>
  13. 8048260: e8 cb 01 00 00 call 8048430 <__do_global_ctors_aux>
  14. 8048265: c9 leave
  15. 8048266: c3 ret
  16. Disassembly of section .plt:
  17.  
  18. 08048268 <__gmon_start__@plt-0x10>:
  19. 8048268: ff 35 d8 95 04 08 pushl 0x80495d8
  20. 804826e: ff 25 dc 95 04 08 jmp *0x80495dc
  21. 8048274: 00 00 add %al,(%eax)
  22. ...
  23.  
  24. 08048278 <__gmon_start__@plt>:
  25. 8048278: ff 25 e0 95 04 08 jmp *0x80495e0
  26. 804827e: 68 00 00 00 00 push $0x0
  27. 8048283: e9 e0 ff ff ff jmp 8048268 <_init+0x18>
  28.  
  29. 08048288 <__libc_start_main@plt>:
  30. 8048288: ff 25 e4 95 04 08 jmp *0x80495e4
  31. 804828e: 68 08 00 00 00 push $0x8
  32. 8048293: e9 d0 ff ff ff jmp 8048268 <_init+0x18>
  33. Disassembly of section .text:
  34.  
  35. 080482a0 <_start>:
  36. 80482a0: 31 ed xor %ebp,%ebp
  37. 80482a2: 5e pop %esi
  38. 80482a3: 89 e1 mov %esp,%ecx
  39. 80482a5: 83 e4 f0 and $0xfffffff0,%esp
  40. 80482a8: 50 push %eax
  41. 80482a9: 54 push %esp
  42. 80482aa: 52 push %edx
  43. 80482ab: 68 b0 83 04 08 push $0x80483b0
  44. 80482b0: 68 c0 83 04 08 push $0x80483c0
  45. 80482b5: 51 push %ecx
  46. 80482b6: 56 push %esi
  47. 80482b7: 68 7f 83 04 08 push $0x804837f
  48. 80482bc: e8 c7 ff ff ff call 8048288 <__libc_start_main@plt>
  49. 80482c1: f4 hlt
  50. 80482c2: 90 nop
  51. 80482c3: 90 nop
  52.  
  53. 080482c4 <call_gmon_start>:
  54. 80482c4: 55 push %ebp
  55. 80482c5: 89 e5 mov %esp,%ebp
  56. 80482c7: 53 push %ebx
  57. 80482c8: 83 ec 04 sub $0x4,%esp
  58. 80482cb: e8 00 00 00 00 call 80482d0 <call_gmon_start+0xc>
  59. 80482d0: 5b pop %ebx
  60. 80482d1: 81 c3 04 13 00 00 add $0x1304,%ebx
  61. 80482d7: 8b 93 fc ff ff ff mov 0xfffffffc(%ebx),%edx
  62. 80482dd: 85 d2 test %edx,%edx
  63. 80482df: 74 05 je 80482e6 <call_gmon_start+0x22>
  64. 80482e1: e8 92 ff ff ff call 8048278 <__gmon_start__@plt>
  65. 80482e6: 58 pop %eax
  66. 80482e7: 5b pop %ebx
  67. 80482e8: c9 leave
  68. 80482e9: c3 ret
  69. 80482ea: 90 nop
  70. 80482eb: 90 nop
  71. 80482ec: 90 nop
  72. 80482ed: 90 nop
  73. 80482ee: 90 nop
  74. 80482ef: 90 nop
  75.  
  76. 080482f0 <__do_global_dtors_aux>:
  77. 80482f0: 55 push %ebp
  78. 80482f1: 89 e5 mov %esp,%ebp
  79. 80482f3: 53 push %ebx
  80. 80482f4: 83 ec 04 sub $0x4,%esp
  81. 80482f7: 80 3d f0 95 04 08 00 cmpb $0x0,0x80495f0
  82. 80482fe: 75 3f jne 804833f <__do_global_dtors_aux+0x4f>
  83. 8048300: b8 00 95 04 08 mov $0x8049500,%eax
  84. 8048305: 2d fc 94 04 08 sub $0x80494fc,%eax
  85. 804830a: c1 f8 02 sar $0x2,%eax
  86. 804830d: 8d 58 ff lea 0xffffffff(%eax),%ebx
  87. 8048310: a1 ec 95 04 08 mov 0x80495ec,%eax
  88. 8048315: 39 c3 cmp %eax,%ebx
  89. 8048317: 76 1f jbe 8048338 <__do_global_dtors_aux+0x48>
  90. 8048319: 8d b4 26 00 00 00 00 lea 0x0(%esi),%esi
  91. 8048320: 83 c0 01 add $0x1,%eax
  92. 8048323: a3 ec 95 04 08 mov %eax,0x80495ec
  93. 8048328: ff 14 85 fc 94 04 08 call *0x80494fc(,%eax,4)
  94. 804832f: a1 ec 95 04 08 mov 0x80495ec,%eax
  95. 8048334: 39 c3 cmp %eax,%ebx
  96. 8048336: 77 e8 ja 8048320 <__do_global_dtors_aux+0x30>
  97. 8048338: c6 05 f0 95 04 08 01 movb $0x1,0x80495f0
  98. 804833f: 83 c4 04 add $0x4,%esp
  99. 8048342: 5b pop %ebx
  100. 8048343: 5d pop %ebp
  101. 8048344: c3 ret
  102. 8048345: 8d 74 26 00 lea 0x0(%esi),%esi
  103. 8048349: 8d bc 27 00 00 00 00 lea 0x0(%edi),%edi
  104.  
  105. 08048350 <frame_dummy>:
  106. 8048350: 55 push %ebp
  107. 8048351: 89 e5 mov %esp,%ebp
  108. 8048353: 83 ec 08 sub $0x8,%esp
  109. 8048356: a1 04 95 04 08 mov 0x8049504,%eax
  110. 804835b: 85 c0 test %eax,%eax
  111. 804835d: 74 12 je 8048371 <frame_dummy+0x21>
  112. 804835f: b8 00 00 00 00 mov $0x0,%eax
  113. 8048364: 85 c0 test %eax,%eax
  114. 8048366: 74 09 je 8048371 <frame_dummy+0x21>
  115. 8048368: c7 04 24 04 95 04 08 movl $0x8049504,(%esp)
  116. 804836f: ff d0 call *%eax
  117. 8048371: c9 leave
  118. 8048372: c3 ret
  119. 8048373: 90 nop
  120.  
  121. 08048374 <foo>:
  122. 8048374: 55 push %ebp
  123. 8048375: 89 e5 mov %esp,%ebp
  124. 8048377: 8b 45 08 mov 0x8(%ebp),%eax
  125. 804837a: 83 c0 01 add $0x1,%eax
  126. 804837d: 5d pop %ebp
  127. 804837e: c3 ret
  128.  
  129. 0804837f <main>:
  130. 804837f: 8d 4c 24 04 lea 0x4(%esp),%ecx
  131. 8048383: 83 e4 f0 and $0xfffffff0,%esp
  132. 8048386: ff 71 fc pushl 0xfffffffc(%ecx)
  133. 8048389: 55 push %ebp
  134. 804838a: 89 e5 mov %esp,%ebp
  135. 804838c: 51 push %ecx
  136. 804838d: 83 ec 04 sub $0x4,%esp
  137. 8048390: c7 04 24 7b 00 00 00 movl $0x7b,(%esp)
  138. 8048397: e8 d8 ff ff ff call 8048374 <foo>
  139. 804839c: 83 c4 04 add $0x4,%esp
  140. 804839f: 59 pop %ecx
  141. 80483a0: 5d pop %ebp
  142. 80483a1: 8d 61 fc lea 0xfffffffc(%ecx),%esp
  143. 80483a4: c3 ret
  144. 80483a5: 90 nop
  145. 80483a6: 90 nop
  146. 80483a7: 90 nop
  147. 80483a8: 90 nop
  148. 80483a9: 90 nop
  149. 80483aa: 90 nop
  150. 80483ab: 90 nop
  151. 80483ac: 90 nop
  152. 80483ad: 90 nop
  153. 80483ae: 90 nop
  154. 80483af: 90 nop
  155.  
  156. 080483b0 <__libc_csu_fini>:
  157. 80483b0: 55 push %ebp
  158. 80483b1: 89 e5 mov %esp,%ebp
  159. 80483b3: 5d pop %ebp
  160. 80483b4: c3 ret
  161. 80483b5: 8d 74 26 00 lea 0x0(%esi),%esi
  162. 80483b9: 8d bc 27 00 00 00 00 lea 0x0(%edi),%edi
  163.  
  164. 080483c0 <__libc_csu_init>:
  165. 80483c0: 55 push %ebp
  166. 80483c1: 89 e5 mov %esp,%ebp
  167. 80483c3: 57 push %edi
  168. 80483c4: 56 push %esi
  169. 80483c5: 53 push %ebx
  170. 80483c6: e8 5e 00 00 00 call 8048429 <__i686.get_pc_thunk.bx>
  171. 80483cb: 81 c3 09 12 00 00 add $0x1209,%ebx
  172. 80483d1: 83 ec 1c sub $0x1c,%esp
  173. 80483d4: e8 77 fe ff ff call 8048250 <_init>
  174. 80483d9: 8d 83 20 ff ff ff lea 0xffffff20(%ebx),%eax
  175. 80483df: 89 45 f0 mov %eax,0xfffffff0(%ebp)
  176. 80483e2: 8d 83 20 ff ff ff lea 0xffffff20(%ebx),%eax
  177. 80483e8: 29 45 f0 sub %eax,0xfffffff0(%ebp)
  178. 80483eb: c1 7d f0 02 sarl $0x2,0xfffffff0(%ebp)
  179. 80483ef: 8b 55 f0 mov 0xfffffff0(%ebp),%edx
  180. 80483f2: 85 d2 test %edx,%edx
  181. 80483f4: 74 2b je 8048421 <__libc_csu_init+0x61>
  182. 80483f6: 31 ff xor %edi,%edi
  183. 80483f8: 89 c6 mov %eax,%esi
  184. 80483fa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
  185. 8048400: 8b 45 10 mov 0x10(%ebp),%eax
  186. 8048403: 83 c7 01 add $0x1,%edi
  187. 8048406: 89 44 24 08 mov %eax,0x8(%esp)
  188. 804840a: 8b 45 0c mov 0xc(%ebp),%eax
  189. 804840d: 89 44 24 04 mov %eax,0x4(%esp)
  190. 8048411: 8b 45 08 mov 0x8(%ebp),%eax
  191. 8048414: 89 04 24 mov %eax,(%esp)
  192. 8048417: ff 16 call *(%esi)
  193. 8048419: 83 c6 04 add $0x4,%esi
  194. 804841c: 39 7d f0 cmp %edi,0xfffffff0(%ebp)
  195. 804841f: 75 df jne 8048400 <__libc_csu_init+0x40>
  196. 8048421: 83 c4 1c add $0x1c,%esp
  197. 8048424: 5b pop %ebx
  198. 8048425: 5e pop %esi
  199. 8048426: 5f pop %edi
  200. 8048427: 5d pop %ebp
  201. 8048428: c3 ret
  202.  
  203. 08048429 <__i686.get_pc_thunk.bx>:
  204. 8048429: 8b 1c 24 mov (%esp),%ebx
  205. 804842c: c3 ret
  206. 804842d: 90 nop
  207. 804842e: 90 nop
  208. 804842f: 90 nop
  209.  
  210. 08048430 <__do_global_ctors_aux>:
  211. 8048430: 55 push %ebp
  212. 8048431: 89 e5 mov %esp,%ebp
  213. 8048433: 53 push %ebx
  214. 8048434: bb f4 94 04 08 mov $0x80494f4,%ebx
  215. 8048439: 83 ec 04 sub $0x4,%esp
  216. 804843c: a1 f4 94 04 08 mov 0x80494f4,%eax
  217. 8048441: 83 f8 ff cmp $0xffffffff,%eax
  218. 8048444: 74 0c je 8048452 <__do_global_ctors_aux+0x22>
  219. 8048446: 83 eb 04 sub $0x4,%ebx
  220. 8048449: ff d0 call *%eax
  221. 804844b: 8b 03 mov (%ebx),%eax
  222. 804844d: 83 f8 ff cmp $0xffffffff,%eax
  223. 8048450: 75 f4 jne 8048446 <__do_global_ctors_aux+0x16>
  224. 8048452: 83 c4 04 add $0x4,%esp
  225. 8048455: 5b pop %ebx
  226. 8048456: 5d pop %ebp
  227. 8048457: c3 ret
  228. Disassembly of section .fini:
  229.  
  230. 08048458 <_fini>:
  231. 8048458: 55 push %ebp
  232. 8048459: 89 e5 mov %esp,%ebp
  233. 804845b: 53 push %ebx
  234. 804845c: 83 ec 04 sub $0x4,%esp
  235. 804845f: e8 00 00 00 00 call 8048464 <_fini+0xc>
  236. 8048464: 5b pop %ebx
  237. 8048465: 81 c3 70 11 00 00 add $0x1170,%ebx
  238. 804846b: e8 80 fe ff ff call 80482f0 <__do_global_dtors_aux>
  239. 8048470: 59 pop %ecx
  240. 8048471: 5b pop %ebx
  241. 8048472: c9 leave
  242. 8048473: c3 ret
  243. nknight@serenity ~ $
Add Comment
Please, Sign In to add comment