alloc(newmem,2048,"msvcrt.dll"+734C0) 
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
mov [4BA30000+10],rsi
mov [4BA30000+14],rbp
mov [4BA30000+18],rsp


mov r11,rcx
sub rdx,rcx

exit:
jmp returnhere

"msvcrt.dll"+734C0:
jmp newmem
nop
returnhere:

