Advertisement
genericPaster

hello.asm

Mar 11th, 2024
1,678
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Disassembly of section .init:
  2.  
  3. 0000000000001000 <_init>:
  4.     1000:       f3 0f 1e fa             endbr64
  5.     1004:       48 83 ec 08             sub    $0x8,%rsp
  6.     1008:       48 8b 05 e1 2f 00 00    mov    0x2fe1(%rip),%rax        # 3ff0 <__gmon_start__@Base>
  7.     100f:       48 85 c0                test   %rax,%rax
  8.     1012:       74 02                   je     1016 <_init+0x16>
  9.     1014:       ff d0                   call   *%rax
  10.     1016:       48 83 c4 08             add    $0x8,%rsp
  11.     101a:       c3                      ret
  12.  
  13. Disassembly of section .plt:
  14.  
  15. 0000000000001020 <.plt>:
  16.     1020:       ff 35 8a 2f 00 00       push   0x2f8a(%rip)        # 3fb0 <_GLOBAL_OFFSET_TABLE_+0x8>
  17.     1026:       ff 25 8c 2f 00 00       jmp    *0x2f8c(%rip)        # 3fb8 <_GLOBAL_OFFSET_TABLE_+0x10>
  18.     102c:       0f 1f 40 00             nopl   0x0(%rax)
  19.     1030:       f3 0f 1e fa             endbr64
  20.     1034:       68 00 00 00 00          push   $0x0
  21.     1039:       e9 e2 ff ff ff          jmp    1020 <_init+0x20>
  22.     103e:       66 90                   xchg   %ax,%ax
  23.     1040:       f3 0f 1e fa             endbr64
  24.     1044:       68 01 00 00 00          push   $0x1
  25.     1049:       e9 d2 ff ff ff          jmp    1020 <_init+0x20>
  26.     104e:       66 90                   xchg   %ax,%ax
  27.  
  28. Disassembly of section .plt.got:
  29.  
  30. 0000000000001050 <__cxa_finalize@plt>:
  31.     1050:       f3 0f 1e fa             endbr64
  32.     1054:       ff 25 76 2f 00 00       jmp    *0x2f76(%rip)        # 3fd0 <__cxa_finalize@GLIBC_2.2.5>
  33.     105a:       66 0f 1f 44 00 00       nopw   0x0(%rax,%rax,1)
  34.  
  35. Disassembly of section .plt.sec:
  36.  
  37. 0000000000001060 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@plt>:
  38.     1060:       f3 0f 1e fa             endbr64
  39.     1064:       ff 25 56 2f 00 00       jmp    *0x2f56(%rip)        # 3fc0 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@GLIBCXX_3.4>
  40.     106a:       66 0f 1f 44 00 00       nopw   0x0(%rax,%rax,1)
  41.  
  42. 0000000000001070 <_ZNSolsEPFRSoS_E@plt>:
  43.     1070:       f3 0f 1e fa             endbr64
  44.     1074:       ff 25 4e 2f 00 00       jmp    *0x2f4e(%rip)        # 3fc8 <_ZNSolsEPFRSoS_E@GLIBCXX_3.4>
  45.     107a:       66 0f 1f 44 00 00       nopw   0x0(%rax,%rax,1)
  46.  
  47. Disassembly of section .text:
  48.  
  49. 0000000000001080 <_start>:
  50.     1080:       f3 0f 1e fa             endbr64
  51.     1084:       31 ed                   xor    %ebp,%ebp
  52.     1086:       49 89 d1                mov    %rdx,%r9
  53.     1089:       5e                      pop    %rsi
  54.     108a:       48 89 e2                mov    %rsp,%rdx
  55.     108d:       48 83 e4 f0             and    $0xfffffffffffffff0,%rsp
  56.     1091:       50                      push   %rax
  57.     1092:       54                      push   %rsp
  58.     1093:       45 31 c0                xor    %r8d,%r8d
  59.     1096:       31 c9                   xor    %ecx,%ecx
  60.     1098:       48 8d 3d ca 00 00 00    lea    0xca(%rip),%rdi        # 1169 <main>
  61.     109f:       ff 15 3b 2f 00 00       call   *0x2f3b(%rip)        # 3fe0 <__libc_start_main@GLIBC_2.34>
  62.     10a5:       f4                      hlt
  63.     10a6:       66 2e 0f 1f 84 00 00    cs nopw 0x0(%rax,%rax,1)
  64.     10ad:       00 00 00
  65.  
  66. 00000000000010b0 <deregister_tm_clones>:
  67.     10b0:       48 8d 3d 59 2f 00 00    lea    0x2f59(%rip),%rdi        # 4010 <__TMC_END__>
  68.     10b7:       48 8d 05 52 2f 00 00    lea    0x2f52(%rip),%rax        # 4010 <__TMC_END__>
  69.     10be:       48 39 f8                cmp    %rdi,%rax
  70.     10c1:       74 15                   je     10d8 <deregister_tm_clones+0x28>
  71.     10c3:       48 8b 05 1e 2f 00 00    mov    0x2f1e(%rip),%rax        # 3fe8 <_ITM_deregisterTMCloneTable@Base>
  72.     10ca:       48 85 c0                test   %rax,%rax
  73.     10cd:       74 09                   je     10d8 <deregister_tm_clones+0x28>
  74.     10cf:       ff e0                   jmp    *%rax
  75.     10d1:       0f 1f 80 00 00 00 00    nopl   0x0(%rax)
  76.     10d8:       c3                      ret
  77.     10d9:       0f 1f 80 00 00 00 00    nopl   0x0(%rax)
  78.  
  79. 00000000000010e0 <register_tm_clones>:
  80.     10e0:       48 8d 3d 29 2f 00 00    lea    0x2f29(%rip),%rdi        # 4010 <__TMC_END__>
  81.     10e7:       48 8d 35 22 2f 00 00    lea    0x2f22(%rip),%rsi        # 4010 <__TMC_END__>
  82.     10ee:       48 29 fe                sub    %rdi,%rsi
  83.     10f1:       48 89 f0                mov    %rsi,%rax
  84.     10f4:       48 c1 ee 3f             shr    $0x3f,%rsi
  85.     10f8:       48 c1 f8 03             sar    $0x3,%rax
  86.     10fc:       48 01 c6                add    %rax,%rsi
  87.     10ff:       48 d1 fe                sar    %rsi
  88.     1102:       74 14                   je     1118 <register_tm_clones+0x38>
  89.     1104:       48 8b 05 ed 2e 00 00    mov    0x2eed(%rip),%rax        # 3ff8 <_ITM_registerTMCloneTable@Base>
  90.     110b:       48 85 c0                test   %rax,%rax
  91.     110e:       74 08                   je     1118 <register_tm_clones+0x38>
  92.     1110:       ff e0                   jmp    *%rax
  93.     1112:       66 0f 1f 44 00 00       nopw   0x0(%rax,%rax,1)
  94.     1118:       c3                      ret
  95.     1119:       0f 1f 80 00 00 00 00    nopl   0x0(%rax)
  96.  
  97. 0000000000001120 <__do_global_dtors_aux>:
  98.     1120:       f3 0f 1e fa             endbr64
  99.     1124:       80 3d 25 30 00 00 00    cmpb   $0x0,0x3025(%rip)        # 4150 <completed.0>
  100.     112b:       75 2b                   jne    1158 <__do_global_dtors_aux+0x38>
  101.     112d:       55                      push   %rbp
  102.     112e:       48 83 3d 9a 2e 00 00    cmpq   $0x0,0x2e9a(%rip)        # 3fd0 <__cxa_finalize@GLIBC_2.2.5>
  103.     1135:       00
  104.     1136:       48 89 e5                mov    %rsp,%rbp
  105.     1139:       74 0c                   je     1147 <__do_global_dtors_aux+0x27>
  106.     113b:       48 8b 3d c6 2e 00 00    mov    0x2ec6(%rip),%rdi        # 4008 <__dso_handle>
  107.     1142:       e8 09 ff ff ff          call   1050 <__cxa_finalize@plt>
  108.     1147:       e8 64 ff ff ff          call   10b0 <deregister_tm_clones>
  109.     114c:       c6 05 fd 2f 00 00 01    movb   $0x1,0x2ffd(%rip)        # 4150 <completed.0>
  110.     1153:       5d                      pop    %rbp
  111.     1154:       c3                      ret
  112.     1155:       0f 1f 00                nopl   (%rax)
  113.     1158:       c3                      ret
  114.     1159:       0f 1f 80 00 00 00 00    nopl   0x0(%rax)
  115.  
  116. 0000000000001160 <frame_dummy>:
  117.     1160:       f3 0f 1e fa             endbr64
  118.     1164:       e9 77 ff ff ff          jmp    10e0 <register_tm_clones>
  119.  
  120. 0000000000001169 <main>:
  121.     1169:       f3 0f 1e fa             endbr64
  122.     116d:       55                      push   %rbp
  123.     116e:       48 89 e5                mov    %rsp,%rbp
  124.     1171:       48 8d 05 8d 0e 00 00    lea    0xe8d(%rip),%rax        # 2005 <_ZStL19piecewise_construct+0x1>
  125.     1178:       48 89 c6                mov    %rax,%rsi
  126.     117b:       48 8d 05 be 2e 00 00    lea    0x2ebe(%rip),%rax        # 4040 <_ZSt4cout@GLIBCXX_3.4>
  127.     1182:       48 89 c7                mov    %rax,%rdi
  128.     1185:       e8 d6 fe ff ff          call   1060 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@plt>
  129.     118a:       48 8b 15 47 2e 00 00    mov    0x2e47(%rip),%rdx        # 3fd8 <_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GLIBCXX_3.4>
  130.     1191:       48 89 d6                mov    %rdx,%rsi
  131.     1194:       48 89 c7                mov    %rax,%rdi
  132.     1197:       e8 d4 fe ff ff          call   1070 <_ZNSolsEPFRSoS_E@plt>
  133.     119c:       b8 00 00 00 00          mov    $0x0,%eax
  134.     11a1:       5d                      pop    %rbp
  135.     11a2:       c3                      ret
  136.  
  137. Disassembly of section .fini:
  138.  
  139. 00000000000011a4 <_fini>:
  140.     11a4:       f3 0f 1e fa             endbr64
  141.     11a8:       48 83 ec 08             sub    $0x8,%rsp
  142.     11ac:       48 83 c4 08             add    $0x8,%rsp
  143.     11b0:       c3                      ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement