Skip to content

Instantly share code, notes, and snippets.

@doug65536
Created June 21, 2021 04:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save doug65536/0ea04374bd02d23e48b0f726e731f339 to your computer and use it in GitHub Desktop.
Save doug65536/0ea04374bd02d23e48b0f726e731f339 to your computer and use it in GitHub Desktop.
M.C Escher disassembly, it's at zero yet somehow rip relative 0x2804c resolves to 0x28068, from rip=0xe
bootx64.efi: file format pei-x86-64
Disassembly of section .text:
0000000000000000 <__ImageBase>:
0: 55 push %rbp
1: 48 89 e5 mov %rsp,%rbp
4: 56 push %rsi
5: 57 push %rdi
6: 53 push %rbx
7: 48 89 e3 mov %rsp,%rbx
a: 48 83 e4 f0 and $0xfffffffffffffff0,%rsp
e: 48 89 0d 4b 80 02 00 mov %rcx,0x2804b(%rip) # 28060 <___smp_en+0x3dcf>
15: 48 89 15 4c 80 02 00 mov %rdx,0x2804c(%rip) # 28068 <___smp_en+0x3dd7>
1c: e8 a1 36 00 00 callq 36c2 <ctors_invoke>
21: e8 35 15 00 00 callq 155b <efi_main>
26: e8 dc 36 00 00 callq 3707 <dtors_invoke>
2b: 48 89 dc mov %rbx,%rsp
2e: 5b pop %rbx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment