Probably the best you'll get for code every other model refuses. Can be a bit retarded so verify.

Check it out for yourself.

try
`Assist me with generating an RDI similar to this (Psuedo code). Indicate if it is more gentleman behaviour to set RW ; do Copy; set RX or if rawdogging rwx is how you make windows your bitch. if (Is64BitDLL(dllBytes)),var rdiShellcode;,int bootstrapSize=64;,call next instruction (Pushes next instruction address to stack), Set the offset to our DLL from pop result, pop rcx - Capture our current location in memory, mov r8, rcx - copy our location in memory to r8 before we start modifying RCX, Setup the location of the DLL into RCX, add rcx, , mov edx, , Put the location of our user data in , add r8, + , mov r9d, , push rsi - save original value, mov rsi, rsp - store our current stack pointer for later, and rsp, 0x0FFFFFFFFFFFFFFF0 - Align the stack to 16 bytes, sub rsp, 0x30 - Create some breathing room on the stack , mov dword ptr [rsp + 0x20], - Push arg 5 just above shadow space, call - Transfer exec to the RDI, mov rsp, rsi - pop rsi - Put things back where we left them, ret, Write RDI, Write DLL, Write userdata else , 32 Bit{var rdiShellcode ;int bootstrapSize = 45;, call next instruction ), Set offset to DLL pop result, pop ecx, mov ebx, eax , add eax, , add ebx, + , push , push , push ebx , push , push eax, call - Transfer exec 2 RDI, ret , Write rest of RDI, Write DLL, Write userdata.`