Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Note: the first argument specifies the _arguments_ for the generated redirect-function
- ./main 0
- push %ebp
- mov %esp,%ebp
- call <address>
- pop %ebp
- ret
- ./main 1
- push %ebp
- mov %esp,%ebp
- sub $0x4,%esp
- mov 0x8(%ebp),%eax
- mov %eax,0x0(%esp)
- call <address>
- leave
- ret
- ./main 3
- push %ebp
- mov %esp,%ebp
- sub $0xc,%esp
- mov 0x10(%ebp),%eax
- mov %eax,0x8(%esp)
- mov 0xc(%ebp),%eax
- mov %eax,0x4(%esp)
- mov 0x8(%ebp),%eax
- mov %eax,0x0(%esp)
- call <address>
- leave
- ret
- ./main 20
- push %ebp
- mov %esp,%ebp
- sub $0x50,%esp
- mov 0x54(%ebp),%eax
- mov %eax,0x4c(%esp)
- mov 0x50(%ebp),%eax
- mov %eax,0x48(%esp)
- mov 0x4c(%ebp),%eax
- mov %eax,0x44(%esp)
- mov 0x48(%ebp),%eax
- mov %eax,0x40(%esp)
- mov 0x44(%ebp),%eax
- mov %eax,0x3c(%esp)
- mov 0x40(%ebp),%eax
- mov %eax,0x38(%esp)
- mov 0x3c(%ebp),%eax
- mov %eax,0x34(%esp)
- mov 0x38(%ebp),%eax
- mov %eax,0x30(%esp)
- mov 0x34(%ebp),%eax
- mov %eax,0x2c(%esp)
- mov 0x30(%ebp),%eax
- mov %eax,0x28(%esp)
- mov 0x2c(%ebp),%eax
- mov %eax,0x24(%esp)
- mov 0x28(%ebp),%eax
- mov %eax,0x20(%esp)
- mov 0x24(%ebp),%eax
- mov %eax,0x1c(%esp)
- mov 0x20(%ebp),%eax
- mov %eax,0x18(%esp)
- mov 0x1c(%ebp),%eax
- mov %eax,0x14(%esp)
- mov 0x18(%ebp),%eax
- mov %eax,0x10(%esp)
- mov 0x14(%ebp),%eax
- mov %eax,0xc(%esp)
- mov 0x10(%ebp),%eax
- mov %eax,0x8(%esp)
- mov 0xc(%ebp),%eax
- mov %eax,0x4(%esp)
- mov 0x8(%ebp),%eax
- mov %eax,0x0(%esp)
- call <address>
- leave
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement