Guest User

Untitled

a guest
Jul 19th, 2025
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASM (NASM) 5.33 KB | Software | 0 0
  1. $ objdump -d a.out
  2.  
  3. a.out:     file format elf64-x86-64
  4.  
  5.  
  6. Disassembly of section .init:
  7.  
  8. 0000000000001000 <_init>:
  9.     1000:   f3 0f 1e fa             endbr64
  10.     1004:   48 83 ec 08             sub    $0x8,%rsp
  11.     1008:   48 8b 05 c1 2f 00 00    mov    0x2fc1(%rip),%rax        # 3fd0 <__gmon_start__@Base>
  12.     100f:   48 85 c0                test   %rax,%rax
  13.     1012:   74 02                   je     1016 <_init+0x16>
  14.     1014:   ff d0                   call   *%rax
  15.     1016:   48 83 c4 08             add    $0x8,%rsp
  16.     101a:   c3                      ret
  17.  
  18. Disassembly of section .plt:
  19.  
  20. 0000000000001020 <puts@plt-0x10>:
  21.     1020:   ff 35 ca 2f 00 00       push   0x2fca(%rip)        # 3ff0 <_GLOBAL_OFFSET_TABLE_+0x8>
  22.     1026:   ff 25 cc 2f 00 00       jmp    *0x2fcc(%rip)        # 3ff8 <_GLOBAL_OFFSET_TABLE_+0x10>
  23.     102c:   0f 1f 40 00             nopl   0x0(%rax)
  24.  
  25. 0000000000001030 <puts@plt>:
  26.     1030:   ff 25 ca 2f 00 00       jmp    *0x2fca(%rip)        # 4000 <puts@GLIBC_2.2.5>
  27.     1036:   68 00 00 00 00          push   $0x0
  28.     103b:   e9 e0 ff ff ff          jmp    1020 <_init+0x20>
  29.  
  30. Disassembly of section .text:
  31.  
  32. 0000000000001040 <_start>:
  33.     1040:   f3 0f 1e fa             endbr64
  34.     1044:   31 ed                   xor    %ebp,%ebp
  35.     1046:   49 89 d1                mov    %rdx,%r9
  36.     1049:   5e                      pop    %rsi
  37.     104a:   48 89 e2                mov    %rsp,%rdx
  38.     104d:   48 83 e4 f0             and    $0xfffffffffffffff0,%rsp
  39.     1051:   50                      push   %rax
  40.     1052:   54                      push   %rsp
  41.     1053:   45 31 c0                xor    %r8d,%r8d
  42.     1056:   31 c9                   xor    %ecx,%ecx
  43.     1058:   48 8d 3d da 00 00 00    lea    0xda(%rip),%rdi        # 1139 <main>
  44.     105f:   ff 15 5b 2f 00 00       call   *0x2f5b(%rip)        # 3fc0 <__libc_start_main@GLIBC_2.34>
  45.     1065:   f4                      hlt
  46.     1066:   66 2e 0f 1f 84 00 00    cs nopw 0x0(%rax,%rax,1)
  47.     106d:   00 00 00
  48.     1070:   48 8d 3d a1 2f 00 00    lea    0x2fa1(%rip),%rdi        # 4018 <__TMC_END__>
  49.     1077:   48 8d 05 9a 2f 00 00    lea    0x2f9a(%rip),%rax        # 4018 <__TMC_END__>
  50.     107e:   48 39 f8                cmp    %rdi,%rax
  51.     1081:   74 15                   je     1098 <_start+0x58>
  52.     1083:   48 8b 05 3e 2f 00 00    mov    0x2f3e(%rip),%rax        # 3fc8 <_ITM_deregisterTMCloneTable@Base>
  53.     108a:   48 85 c0                test   %rax,%rax
  54.     108d:   74 09                   je     1098 <_start+0x58>
  55.     108f:   ff e0                   jmp    *%rax
  56.     1091:   0f 1f 80 00 00 00 00    nopl   0x0(%rax)
  57.     1098:   c3                      ret
  58.     1099:   0f 1f 80 00 00 00 00    nopl   0x0(%rax)
  59.     10a0:   48 8d 3d 71 2f 00 00    lea    0x2f71(%rip),%rdi        # 4018 <__TMC_END__>
  60.     10a7:   48 8d 35 6a 2f 00 00    lea    0x2f6a(%rip),%rsi        # 4018 <__TMC_END__>
  61.     10ae:   48 29 fe                sub    %rdi,%rsi
  62.     10b1:   48 89 f0                mov    %rsi,%rax
  63.     10b4:   48 c1 ee 3f             shr    $0x3f,%rsi
  64.     10b8:   48 c1 f8 03             sar    $0x3,%rax
  65.     10bc:   48 01 c6                add    %rax,%rsi
  66.     10bf:   48 d1 fe                sar    $1,%rsi
  67.     10c2:   74 14                   je     10d8 <_start+0x98>
  68.     10c4:   48 8b 05 0d 2f 00 00    mov    0x2f0d(%rip),%rax        # 3fd8 <_ITM_registerTMCloneTable@Base>
  69.     10cb:   48 85 c0                test   %rax,%rax
  70.     10ce:   74 08                   je     10d8 <_start+0x98>
  71.     10d0:   ff e0                   jmp    *%rax
  72.     10d2:   66 0f 1f 44 00 00       nopw   0x0(%rax,%rax,1)
  73.     10d8:   c3                      ret
  74.     10d9:   0f 1f 80 00 00 00 00    nopl   0x0(%rax)
  75.     10e0:   f3 0f 1e fa             endbr64
  76.     10e4:   80 3d 2d 2f 00 00 00    cmpb   $0x0,0x2f2d(%rip)        # 4018 <__TMC_END__>
  77.     10eb:   75 33                   jne    1120 <_start+0xe0>
  78.     10ed:   55                      push   %rbp
  79.     10ee:   48 83 3d ea 2e 00 00    cmpq   $0x0,0x2eea(%rip)        # 3fe0 <__cxa_finalize@GLIBC_2.2.5>
  80.     10f5:   00
  81.     10f6:   48 89 e5                mov    %rsp,%rbp
  82.     10f9:   74 0d                   je     1108 <_start+0xc8>
  83.     10fb:   48 8b 3d 0e 2f 00 00    mov    0x2f0e(%rip),%rdi        # 4010 <__dso_handle>
  84.     1102:   ff 15 d8 2e 00 00       call   *0x2ed8(%rip)        # 3fe0 <__cxa_finalize@GLIBC_2.2.5>
  85.     1108:   e8 63 ff ff ff          call   1070 <_start+0x30>
  86.     110d:   c6 05 04 2f 00 00 01    movb   $0x1,0x2f04(%rip)        # 4018 <__TMC_END__>
  87.     1114:   5d                      pop    %rbp
  88.     1115:   c3                      ret
  89.     1116:   66 2e 0f 1f 84 00 00    cs nopw 0x0(%rax,%rax,1)
  90.     111d:   00 00 00
  91.     1120:   c3                      ret
  92.     1121:   66 66 2e 0f 1f 84 00    data16 cs nopw 0x0(%rax,%rax,1)
  93.     1128:   00 00 00 00
  94.     112c:   0f 1f 40 00             nopl   0x0(%rax)
  95.     1130:   f3 0f 1e fa             endbr64
  96.     1134:   e9 67 ff ff ff          jmp    10a0 <_start+0x60>
  97.  
  98. 0000000000001139 <main>:
  99.     1139:   55                      push   %rbp
  100.     113a:   48 89 e5                mov    %rsp,%rbp
  101.     113d:   48 8d 05 c0 0e 00 00    lea    0xec0(%rip),%rax        # 2004 <_IO_stdin_used+0x4>
  102.     1144:   48 89 c7                mov    %rax,%rdi
  103.     1147:   e8 e4 fe ff ff          call   1030 <puts@plt>
  104.     114c:   b8 00 00 00 00          mov    $0x0,%eax
  105.     1151:   5d                      pop    %rbp
  106.     1152:   c3                      ret
  107.  
  108. Disassembly of section .fini:
  109.  
  110. 0000000000001154 <_fini>:
  111.     1154:   f3 0f 1e fa             endbr64
  112.     1158:   48 83 ec 08             sub    $0x8,%rsp
  113.     115c:   48 83 c4 08             add    $0x8,%rsp
  114.     1160:   c3                      ret
Advertisement
Add Comment
Please, Sign In to add comment