Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void* my_func = malloc(4k);
- imulq $2, %rcx, %rcx
- addq $5, %rcx
- movq %rcx, %rax
- retq
- strcpy((char*)my_func, "x48x6BxC9x02x48x83xC1x05x48x89C8C3 ");
- typedef int (*func_type)(int);
- for(t=0; t<N; t++)
- s=(func_type)(my_func)(t);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement