indirect-call.asm 227 B

1234567891011121314
  1. global _start
  2. section .data
  3. %include "header.inc"
  4. mov eax, foo
  5. call eax
  6. foo:
  7. xor eax, eax
  8. ; clear stack (pushed eip is not the same between vm and gdb execution)
  9. mov dword [esp], 0
  10. %include "footer.inc"