Skip to content

Instantly share code, notes, and snippets.

@cchandler
Created December 23, 2010 23:26
Show Gist options
  • Save cchandler/753685 to your computer and use it in GitHub Desktop.
Save cchandler/753685 to your computer and use it in GitHub Desktop.
Correct opcode
4013c8: e8 eb f9 ff ff callq 400db8 <printf@plt>
4013cd: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%rbp)
4013d4: eb 45 jmp 40141b <main+0x2d7>
4013d6: 8b 45 ec mov -0x14(%rbp),%eax
4013d9: 48 98 cltq
4013db: 48 c1 e0 03 shl $0x3,%rax
4013df: 48 03 45 e0 add -0x20(%rbp),%rax
4013e3: 48 8b 00 mov (%rax),%rax
4013e6: 48 89 85 18 fe ff ff mov %rax,-0x1e8(%rbp)
4013ed: be 4b 1a 40 00 mov $0x401a4b,%esi
4013f2: bf 00 21 60 00 mov $0x602100,%edi
4013f7: e8 9c fa ff ff callq 400e98 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@plt>
4013fc: 48 89 c7 mov %rax,%rdi
4013ff: 48 8b b5 18 fe ff ff mov -0x1e8(%rbp),%rsi
401406: e8 8d fa ff ff callq 400e98 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@plt>
40140b: 48 89 c7 mov %rax,%rdi
40140e: be 08 0e 40 00 mov $0x400e08,%esi
401413: e8 90 fa ff ff callq 400ea8 <_ZNSolsEPFRSoS_E@plt>
401418: ff 45 ec incl -0x14(%rbp)
40141b: 8b 45 ec mov -0x14(%rbp),%eax
40141e: 3b 45 dc cmp -0x24(%rbp),%eax
401421: 7c b3 jl 4013d6 <main+0x292>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment