Advertisement
Guest User

log

a guest
Aug 25th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.18 KB | None | 0 0
  1. ./simple_foo: file format elf64-x86-64
  2.  
  3.  
  4. Disassembly of section .init:
  5.  
  6. 0000000000000528 <_init>:
  7. 528: 48 83 ec 08 sub $0x8,%rsp
  8. 52c: 48 8b 05 b5 0a 20 00 mov 0x200ab5(%rip),%rax # 200fe8 <__gmon_start__>
  9. 533: 48 85 c0 test %rax,%rax
  10. 536: 74 02 je 53a <_init+0x12>
  11. 538: ff d0 callq *%rax
  12. 53a: 48 83 c4 08 add $0x8,%rsp
  13. 53e: c3 retq
  14.  
  15. Disassembly of section .plt:
  16.  
  17. 0000000000000540 <.plt>:
  18. 540: ff 35 72 0a 20 00 pushq 0x200a72(%rip) # 200fb8 <_GLOBAL_OFFSET_TABLE_+0x8>
  19. 546: ff 25 74 0a 20 00 jmpq *0x200a74(%rip) # 200fc0 <_GLOBAL_OFFSET_TABLE_+0x10>
  20. 54c: 0f 1f 40 00 nopl 0x0(%rax)
  21.  
  22. 0000000000000550 <puts@plt>:
  23. 550: ff 25 72 0a 20 00 jmpq *0x200a72(%rip) # 200fc8 <puts@GLIBC_2.2.5>
  24. 556: 68 00 00 00 00 pushq $0x0
  25. 55b: e9 e0 ff ff ff jmpq 540 <.plt>
  26.  
  27. 0000000000000560 <printf@plt>:
  28. 560: ff 25 6a 0a 20 00 jmpq *0x200a6a(%rip) # 200fd0 <printf@GLIBC_2.2.5>
  29. 566: 68 01 00 00 00 pushq $0x1
  30. 56b: e9 d0 ff ff ff jmpq 540 <.plt>
  31.  
  32. Disassembly of section .plt.got:
  33.  
  34. 0000000000000570 <__cxa_finalize@plt>:
  35. 570: ff 25 82 0a 20 00 jmpq *0x200a82(%rip) # 200ff8 <__cxa_finalize@GLIBC_2.2.5>
  36. 576: 66 90 xchg %ax,%ax
  37.  
  38. Disassembly of section .text:
  39.  
  40. 0000000000000580 <_start>:
  41. 580: 31 ed xor %ebp,%ebp
  42. 582: 49 89 d1 mov %rdx,%r9
  43. 585: 5e pop %rsi
  44. 586: 48 89 e2 mov %rsp,%rdx
  45. 589: 48 83 e4 f0 and $0xfffffffffffffff0,%rsp
  46. 58d: 50 push %rax
  47. 58e: 54 push %rsp
  48. 58f: 4c 8d 05 ea 01 00 00 lea 0x1ea(%rip),%r8 # 780 <__libc_csu_fini>
  49. 596: 48 8d 0d 73 01 00 00 lea 0x173(%rip),%rcx # 710 <__libc_csu_init>
  50. 59d: 48 8d 3d 2a 01 00 00 lea 0x12a(%rip),%rdi # 6ce <main>
  51. 5a4: ff 15 36 0a 20 00 callq *0x200a36(%rip) # 200fe0 <__libc_start_main@GLIBC_2.2.5>
  52. 5aa: f4 hlt
  53. 5ab: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
  54.  
  55. 00000000000005b0 <deregister_tm_clones>:
  56. 5b0: 48 8d 3d 59 0a 20 00 lea 0x200a59(%rip),%rdi # 201010 <__TMC_END__>
  57. 5b7: 55 push %rbp
  58. 5b8: 48 8d 05 51 0a 20 00 lea 0x200a51(%rip),%rax # 201010 <__TMC_END__>
  59. 5bf: 48 39 f8 cmp %rdi,%rax
  60. 5c2: 48 89 e5 mov %rsp,%rbp
  61. 5c5: 74 19 je 5e0 <deregister_tm_clones+0x30>
  62. 5c7: 48 8b 05 0a 0a 20 00 mov 0x200a0a(%rip),%rax # 200fd8 <_ITM_deregisterTMCloneTable>
  63. 5ce: 48 85 c0 test %rax,%rax
  64. 5d1: 74 0d je 5e0 <deregister_tm_clones+0x30>
  65. 5d3: 5d pop %rbp
  66. 5d4: ff e0 jmpq *%rax
  67. 5d6: 66 2e 0f 1f 84 00 00 nopw %cs:0x0(%rax,%rax,1)
  68. 5dd: 00 00 00
  69. 5e0: 5d pop %rbp
  70. 5e1: c3 retq
  71. 5e2: 0f 1f 40 00 nopl 0x0(%rax)
  72. 5e6: 66 2e 0f 1f 84 00 00 nopw %cs:0x0(%rax,%rax,1)
  73. 5ed: 00 00 00
  74.  
  75. 00000000000005f0 <register_tm_clones>:
  76. 5f0: 48 8d 3d 19 0a 20 00 lea 0x200a19(%rip),%rdi # 201010 <__TMC_END__>
  77. 5f7: 48 8d 35 12 0a 20 00 lea 0x200a12(%rip),%rsi # 201010 <__TMC_END__>
  78. 5fe: 55 push %rbp
  79. 5ff: 48 29 fe sub %rdi,%rsi
  80. 602: 48 89 e5 mov %rsp,%rbp
  81. 605: 48 c1 fe 03 sar $0x3,%rsi
  82. 609: 48 89 f0 mov %rsi,%rax
  83. 60c: 48 c1 e8 3f shr $0x3f,%rax
  84. 610: 48 01 c6 add %rax,%rsi
  85. 613: 48 d1 fe sar %rsi
  86. 616: 74 18 je 630 <register_tm_clones+0x40>
  87. 618: 48 8b 05 d1 09 20 00 mov 0x2009d1(%rip),%rax # 200ff0 <_ITM_registerTMCloneTable>
  88. 61f: 48 85 c0 test %rax,%rax
  89. 622: 74 0c je 630 <register_tm_clones+0x40>
  90. 624: 5d pop %rbp
  91. 625: ff e0 jmpq *%rax
  92. 627: 66 0f 1f 84 00 00 00 nopw 0x0(%rax,%rax,1)
  93. 62e: 00 00
  94. 630: 5d pop %rbp
  95. 631: c3 retq
  96. 632: 0f 1f 40 00 nopl 0x0(%rax)
  97. 636: 66 2e 0f 1f 84 00 00 nopw %cs:0x0(%rax,%rax,1)
  98. 63d: 00 00 00
  99.  
  100. 0000000000000640 <__do_global_dtors_aux>:
  101. 640: 80 3d c9 09 20 00 00 cmpb $0x0,0x2009c9(%rip) # 201010 <__TMC_END__>
  102. 647: 75 2f jne 678 <__do_global_dtors_aux+0x38>
  103. 649: 48 83 3d a7 09 20 00 cmpq $0x0,0x2009a7(%rip) # 200ff8 <__cxa_finalize@GLIBC_2.2.5>
  104. 650: 00
  105. 651: 55 push %rbp
  106. 652: 48 89 e5 mov %rsp,%rbp
  107. 655: 74 0c je 663 <__do_global_dtors_aux+0x23>
  108. 657: 48 8b 3d aa 09 20 00 mov 0x2009aa(%rip),%rdi # 201008 <__dso_handle>
  109. 65e: e8 0d ff ff ff callq 570 <__cxa_finalize@plt>
  110. 663: e8 48 ff ff ff callq 5b0 <deregister_tm_clones>
  111. 668: c6 05 a1 09 20 00 01 movb $0x1,0x2009a1(%rip) # 201010 <__TMC_END__>
  112. 66f: 5d pop %rbp
  113. 670: c3 retq
  114. 671: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
  115. 678: f3 c3 repz retq
  116. 67a: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1)
  117.  
  118. 0000000000000680 <frame_dummy>:
  119. 680: 55 push %rbp
  120. 681: 48 89 e5 mov %rsp,%rbp
  121. 684: 5d pop %rbp
  122. 685: e9 66 ff ff ff jmpq 5f0 <register_tm_clones>
  123.  
  124. 000000000000068a <foo>:
  125. 68a: 55 push %rbp
  126. 68b: 48 89 e5 mov %rsp,%rbp
  127. 68e: f3 0f 10 05 0e 01 00 movss 0x10e(%rip),%xmm0 # 7a4 <_IO_stdin_used+0x14>
  128. 695: 00
  129. 696: f3 0f 11 45 f4 movss %xmm0,-0xc(%rbp)
  130. 69b: f3 0f 10 05 01 01 00 movss 0x101(%rip),%xmm0 # 7a4 <_IO_stdin_used+0x14>
  131. 6a2: 00
  132. 6a3: f3 0f 11 45 f8 movss %xmm0,-0x8(%rbp)
  133. 6a8: f3 0f 10 4d f4 movss -0xc(%rbp),%xmm1
  134. 6ad: f3 0f 10 05 f3 00 00 movss 0xf3(%rip),%xmm0 # 7a8 <_IO_stdin_used+0x18>
  135. 6b4: 00
  136. 6b5: f3 0f 59 c1 mulss %xmm1,%xmm0
  137. 6b9: f3 0f 10 4d f8 movss -0x8(%rbp),%xmm1
  138. 6be: f3 0f 58 c1 addss %xmm1,%xmm0
  139. 6c2: f3 0f 11 45 fc movss %xmm0,-0x4(%rbp)
  140. 6c7: f3 0f 10 45 fc movss -0x4(%rbp),%xmm0
  141. 6cc: 5d pop %rbp
  142. 6cd: c3 retq
  143.  
  144. 00000000000006ce <main>:
  145. 6ce: 55 push %rbp
  146. 6cf: 48 89 e5 mov %rsp,%rbp
  147. 6d2: 48 83 ec 10 sub $0x10,%rsp
  148. 6d6: 48 8d 3d b7 00 00 00 lea 0xb7(%rip),%rdi # 794 <_IO_stdin_used+0x4>
  149. 6dd: e8 6e fe ff ff callq 550 <puts@plt>
  150. 6e2: b8 00 00 00 00 mov $0x0,%eax
  151. 6e7: e8 9e ff ff ff callq 68a <foo>
  152. 6ec: 66 0f 7e c0 movd %xmm0,%eax
  153. 6f0: 89 45 fc mov %eax,-0x4(%rbp)
  154. 6f3: f3 0f 5a 45 fc cvtss2sd -0x4(%rbp),%xmm0
  155. 6f8: 48 8d 3d a1 00 00 00 lea 0xa1(%rip),%rdi # 7a0 <_IO_stdin_used+0x10>
  156. 6ff: b8 01 00 00 00 mov $0x1,%eax
  157. 704: e8 57 fe ff ff callq 560 <printf@plt>
  158. 709: b8 00 00 00 00 mov $0x0,%eax
  159. 70e: c9 leaveq
  160. 70f: c3 retq
  161.  
  162. 0000000000000710 <__libc_csu_init>:
  163. 710: 41 57 push %r15
  164. 712: 41 56 push %r14
  165. 714: 49 89 d7 mov %rdx,%r15
  166. 717: 41 55 push %r13
  167. 719: 41 54 push %r12
  168. 71b: 4c 8d 25 8e 06 20 00 lea 0x20068e(%rip),%r12 # 200db0 <__frame_dummy_init_array_entry>
  169. 722: 55 push %rbp
  170. 723: 48 8d 2d 8e 06 20 00 lea 0x20068e(%rip),%rbp # 200db8 <__init_array_end>
  171. 72a: 53 push %rbx
  172. 72b: 41 89 fd mov %edi,%r13d
  173. 72e: 49 89 f6 mov %rsi,%r14
  174. 731: 4c 29 e5 sub %r12,%rbp
  175. 734: 48 83 ec 08 sub $0x8,%rsp
  176. 738: 48 c1 fd 03 sar $0x3,%rbp
  177. 73c: e8 e7 fd ff ff callq 528 <_init>
  178. 741: 48 85 ed test %rbp,%rbp
  179. 744: 74 20 je 766 <__libc_csu_init+0x56>
  180. 746: 31 db xor %ebx,%ebx
  181. 748: 0f 1f 84 00 00 00 00 nopl 0x0(%rax,%rax,1)
  182. 74f: 00
  183. 750: 4c 89 fa mov %r15,%rdx
  184. 753: 4c 89 f6 mov %r14,%rsi
  185. 756: 44 89 ef mov %r13d,%edi
  186. 759: 41 ff 14 dc callq *(%r12,%rbx,8)
  187. 75d: 48 83 c3 01 add $0x1,%rbx
  188. 761: 48 39 dd cmp %rbx,%rbp
  189. 764: 75 ea jne 750 <__libc_csu_init+0x40>
  190. 766: 48 83 c4 08 add $0x8,%rsp
  191. 76a: 5b pop %rbx
  192. 76b: 5d pop %rbp
  193. 76c: 41 5c pop %r12
  194. 76e: 41 5d pop %r13
  195. 770: 41 5e pop %r14
  196. 772: 41 5f pop %r15
  197. 774: c3 retq
  198. 775: 90 nop
  199. 776: 66 2e 0f 1f 84 00 00 nopw %cs:0x0(%rax,%rax,1)
  200. 77d: 00 00 00
  201.  
  202. 0000000000000780 <__libc_csu_fini>:
  203. 780: f3 c3 repz retq
  204.  
  205. Disassembly of section .fini:
  206.  
  207. 0000000000000784 <_fini>:
  208. 784: 48 83 ec 08 sub $0x8,%rsp
  209. 788: 48 83 c4 08 add $0x8,%rsp
  210. 78c: c3 retq
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement