Advertisement
Guest User

Untitled

a guest
Nov 7th, 2013
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.16 KB | None | 0 0
  1. foo: file format elf64-x86-64
  2.  
  3.  
  4. Disassembly of section .init:
  5.  
  6. 0000000000400390 <_init>:
  7. 400390: 48 83 ec 08 sub $0x8,%rsp
  8. 400394: e8 63 00 00 00 callq 4003fc <call_gmon_start>
  9. 400399: e8 f2 00 00 00 callq 400490 <frame_dummy>
  10. 40039e: e8 dd 01 00 00 callq 400580 <__do_global_ctors_aux>
  11. 4003a3: 48 83 c4 08 add $0x8,%rsp
  12. 4003a7: c3 retq
  13.  
  14. Disassembly of section .plt:
  15.  
  16. 00000000004003b0 <__libc_start_main@plt-0x10>:
  17. 4003b0: ff 35 3a 0c 20 00 pushq 0x200c3a(%rip) # 600ff0 <_GLOBAL_OFFSET_TABLE_+0x8>
  18. 4003b6: ff 25 3c 0c 20 00 jmpq *0x200c3c(%rip) # 600ff8 <_GLOBAL_OFFSET_TABLE_+0x10>
  19. 4003bc: 0f 1f 40 00 nopl 0x0(%rax)
  20.  
  21. 00000000004003c0 <__libc_start_main@plt>:
  22. 4003c0: ff 25 3a 0c 20 00 jmpq *0x200c3a(%rip) # 601000 <_GLOBAL_OFFSET_TABLE_+0x18>
  23. 4003c6: 68 00 00 00 00 pushq $0x0
  24. 4003cb: e9 e0 ff ff ff jmpq 4003b0 <_init+0x20>
  25.  
  26. Disassembly of section .text:
  27.  
  28. 00000000004003d0 <_start>:
  29. 4003d0: 31 ed xor %ebp,%ebp
  30. 4003d2: 49 89 d1 mov %rdx,%r9
  31. 4003d5: 5e pop %rsi
  32. 4003d6: 48 89 e2 mov %rsp,%rdx
  33. 4003d9: 48 83 e4 f0 and $0xfffffffffffffff0,%rsp
  34. 4003dd: 50 push %rax
  35. 4003de: 54 push %rsp
  36. 4003df: 49 c7 c0 70 05 40 00 mov $0x400570,%r8
  37. 4003e6: 48 c7 c1 e0 04 40 00 mov $0x4004e0,%rcx
  38. 4003ed: 48 c7 c7 d0 04 40 00 mov $0x4004d0,%rdi
  39. 4003f4: e8 c7 ff ff ff callq 4003c0 <__libc_start_main@plt>
  40. 4003f9: f4 hlt
  41. 4003fa: 90 nop
  42. 4003fb: 90 nop
  43.  
  44. 00000000004003fc <call_gmon_start>:
  45. 4003fc: 48 83 ec 08 sub $0x8,%rsp
  46. 400400: 48 8b 05 d9 0b 20 00 mov 0x200bd9(%rip),%rax # 600fe0 <_DYNAMIC+0x190>
  47. 400407: 48 85 c0 test %rax,%rax
  48. 40040a: 74 02 je 40040e <call_gmon_start+0x12>
  49. 40040c: ff d0 callq *%rax
  50. 40040e: 48 83 c4 08 add $0x8,%rsp
  51. 400412: c3 retq
  52. 400413: 90 nop
  53. 400414: 90 nop
  54. 400415: 90 nop
  55. 400416: 90 nop
  56. 400417: 90 nop
  57. 400418: 90 nop
  58. 400419: 90 nop
  59. 40041a: 90 nop
  60. 40041b: 90 nop
  61. 40041c: 90 nop
  62. 40041d: 90 nop
  63. 40041e: 90 nop
  64. 40041f: 90 nop
  65.  
  66. 0000000000400420 <__do_global_dtors_aux>:
  67. 400420: 55 push %rbp
  68. 400421: 48 89 e5 mov %rsp,%rbp
  69. 400424: 53 push %rbx
  70. 400425: 48 83 ec 08 sub $0x8,%rsp
  71. 400429: 80 3d e8 0b 20 00 00 cmpb $0x0,0x200be8(%rip) # 601018 <__bss_start>
  72. 400430: 75 4b jne 40047d <__do_global_dtors_aux+0x5d>
  73. 400432: bb 40 0e 60 00 mov $0x600e40,%ebx
  74. 400437: 48 8b 05 e2 0b 20 00 mov 0x200be2(%rip),%rax # 601020 <dtor_idx.6533>
  75. 40043e: 48 81 eb 38 0e 60 00 sub $0x600e38,%rbx
  76. 400445: 48 c1 fb 03 sar $0x3,%rbx
  77. 400449: 48 83 eb 01 sub $0x1,%rbx
  78. 40044d: 48 39 d8 cmp %rbx,%rax
  79. 400450: 73 24 jae 400476 <__do_global_dtors_aux+0x56>
  80. 400452: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1)
  81. 400458: 48 83 c0 01 add $0x1,%rax
  82. 40045c: 48 89 05 bd 0b 20 00 mov %rax,0x200bbd(%rip) # 601020 <dtor_idx.6533>
  83. 400463: ff 14 c5 38 0e 60 00 callq *0x600e38(,%rax,8)
  84. 40046a: 48 8b 05 af 0b 20 00 mov 0x200baf(%rip),%rax # 601020 <dtor_idx.6533>
  85. 400471: 48 39 d8 cmp %rbx,%rax
  86. 400474: 72 e2 jb 400458 <__do_global_dtors_aux+0x38>
  87. 400476: c6 05 9b 0b 20 00 01 movb $0x1,0x200b9b(%rip) # 601018 <__bss_start>
  88. 40047d: 48 83 c4 08 add $0x8,%rsp
  89. 400481: 5b pop %rbx
  90. 400482: 5d pop %rbp
  91. 400483: c3 retq
  92. 400484: 66 66 66 2e 0f 1f 84 data32 data32 nopw %cs:0x0(%rax,%rax,1)
  93. 40048b: 00 00 00 00 00
  94.  
  95. 0000000000400490 <frame_dummy>:
  96. 400490: 48 83 3d b0 09 20 00 cmpq $0x0,0x2009b0(%rip) # 600e48 <__JCR_END__>
  97. 400497: 00
  98. 400498: 55 push %rbp
  99. 400499: 48 89 e5 mov %rsp,%rbp
  100. 40049c: 74 12 je 4004b0 <frame_dummy+0x20>
  101. 40049e: b8 00 00 00 00 mov $0x0,%eax
  102. 4004a3: 48 85 c0 test %rax,%rax
  103. 4004a6: 74 08 je 4004b0 <frame_dummy+0x20>
  104. 4004a8: 5d pop %rbp
  105. 4004a9: bf 48 0e 60 00 mov $0x600e48,%edi
  106. 4004ae: ff e0 jmpq *%rax
  107. 4004b0: 5d pop %rbp
  108. 4004b1: c3 retq
  109. 4004b2: 90 nop
  110. 4004b3: 90 nop
  111. 4004b4: 90 nop
  112. 4004b5: 90 nop
  113. 4004b6: 90 nop
  114. 4004b7: 90 nop
  115. 4004b8: 90 nop
  116. 4004b9: 90 nop
  117. 4004ba: 90 nop
  118. 4004bb: 90 nop
  119. 4004bc: 90 nop
  120. 4004bd: 90 nop
  121. 4004be: 90 nop
  122. 4004bf: 90 nop
  123.  
  124. 00000000004004c0 <foo>:
  125. 4004c0: 8d 47 01 lea 0x1(%rdi),%eax
  126. 4004c3: c3 retq
  127. 4004c4: 66 66 66 2e 0f 1f 84 data32 data32 nopw %cs:0x0(%rax,%rax,1)
  128. 4004cb: 00 00 00 00 00
  129.  
  130. 00000000004004d0 <main>:
  131. 4004d0: 0f 0b ud2
  132. 4004d2: 90 nop
  133. 4004d3: 90 nop
  134. 4004d4: 90 nop
  135. 4004d5: 90 nop
  136. 4004d6: 90 nop
  137. 4004d7: 90 nop
  138. 4004d8: 90 nop
  139. 4004d9: 90 nop
  140. 4004da: 90 nop
  141. 4004db: 90 nop
  142. 4004dc: 90 nop
  143. 4004dd: 90 nop
  144. 4004de: 90 nop
  145. 4004df: 90 nop
  146.  
  147. 00000000004004e0 <__libc_csu_init>:
  148. 4004e0: 48 89 6c 24 d8 mov %rbp,-0x28(%rsp)
  149. 4004e5: 4c 89 64 24 e0 mov %r12,-0x20(%rsp)
  150. 4004ea: 48 8d 2d 33 09 20 00 lea 0x200933(%rip),%rbp # 600e24 <__init_array_end>
  151. 4004f1: 4c 8d 25 2c 09 20 00 lea 0x20092c(%rip),%r12 # 600e24 <__init_array_end>
  152. 4004f8: 4c 89 6c 24 e8 mov %r13,-0x18(%rsp)
  153. 4004fd: 4c 89 74 24 f0 mov %r14,-0x10(%rsp)
  154. 400502: 4c 89 7c 24 f8 mov %r15,-0x8(%rsp)
  155. 400507: 48 89 5c 24 d0 mov %rbx,-0x30(%rsp)
  156. 40050c: 48 83 ec 38 sub $0x38,%rsp
  157. 400510: 4c 29 e5 sub %r12,%rbp
  158. 400513: 41 89 fd mov %edi,%r13d
  159. 400516: 49 89 f6 mov %rsi,%r14
  160. 400519: 48 c1 fd 03 sar $0x3,%rbp
  161. 40051d: 49 89 d7 mov %rdx,%r15
  162. 400520: e8 6b fe ff ff callq 400390 <_init>
  163. 400525: 48 85 ed test %rbp,%rbp
  164. 400528: 74 1c je 400546 <__libc_csu_init+0x66>
  165. 40052a: 31 db xor %ebx,%ebx
  166. 40052c: 0f 1f 40 00 nopl 0x0(%rax)
  167. 400530: 4c 89 fa mov %r15,%rdx
  168. 400533: 4c 89 f6 mov %r14,%rsi
  169. 400536: 44 89 ef mov %r13d,%edi
  170. 400539: 41 ff 14 dc callq *(%r12,%rbx,8)
  171. 40053d: 48 83 c3 01 add $0x1,%rbx
  172. 400541: 48 39 eb cmp %rbp,%rbx
  173. 400544: 75 ea jne 400530 <__libc_csu_init+0x50>
  174. 400546: 48 8b 5c 24 08 mov 0x8(%rsp),%rbx
  175. 40054b: 48 8b 6c 24 10 mov 0x10(%rsp),%rbp
  176. 400550: 4c 8b 64 24 18 mov 0x18(%rsp),%r12
  177. 400555: 4c 8b 6c 24 20 mov 0x20(%rsp),%r13
  178. 40055a: 4c 8b 74 24 28 mov 0x28(%rsp),%r14
  179. 40055f: 4c 8b 7c 24 30 mov 0x30(%rsp),%r15
  180. 400564: 48 83 c4 38 add $0x38,%rsp
  181. 400568: c3 retq
  182. 400569: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
  183.  
  184. 0000000000400570 <__libc_csu_fini>:
  185. 400570: f3 c3 repz retq
  186. 400572: 90 nop
  187. 400573: 90 nop
  188. 400574: 90 nop
  189. 400575: 90 nop
  190. 400576: 90 nop
  191. 400577: 90 nop
  192. 400578: 90 nop
  193. 400579: 90 nop
  194. 40057a: 90 nop
  195. 40057b: 90 nop
  196. 40057c: 90 nop
  197. 40057d: 90 nop
  198. 40057e: 90 nop
  199. 40057f: 90 nop
  200.  
  201. 0000000000400580 <__do_global_ctors_aux>:
  202. 400580: 55 push %rbp
  203. 400581: 48 89 e5 mov %rsp,%rbp
  204. 400584: 53 push %rbx
  205. 400585: 48 83 ec 08 sub $0x8,%rsp
  206. 400589: 48 8b 05 98 08 20 00 mov 0x200898(%rip),%rax # 600e28 <__CTOR_LIST__>
  207. 400590: 48 83 f8 ff cmp $0xffffffffffffffff,%rax
  208. 400594: 74 19 je 4005af <__do_global_ctors_aux+0x2f>
  209. 400596: bb 28 0e 60 00 mov $0x600e28,%ebx
  210. 40059b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
  211. 4005a0: 48 83 eb 08 sub $0x8,%rbx
  212. 4005a4: ff d0 callq *%rax
  213. 4005a6: 48 8b 03 mov (%rbx),%rax
  214. 4005a9: 48 83 f8 ff cmp $0xffffffffffffffff,%rax
  215. 4005ad: 75 f1 jne 4005a0 <__do_global_ctors_aux+0x20>
  216. 4005af: 48 83 c4 08 add $0x8,%rsp
  217. 4005b3: 5b pop %rbx
  218. 4005b4: 5d pop %rbp
  219. 4005b5: c3 retq
  220. 4005b6: 90 nop
  221. 4005b7: 90 nop
  222.  
  223. Disassembly of section .fini:
  224.  
  225. 00000000004005b8 <_fini>:
  226. 4005b8: 48 83 ec 08 sub $0x8,%rsp
  227. 4005bc: e8 5f fe ff ff callq 400420 <__do_global_dtors_aux>
  228. 4005c1: 48 83 c4 08 add $0x8,%rsp
  229. 4005c5: c3 retq
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement