does anyone have an idea about how can i convert the following C inline ASM to a valid C# format? Thanks in advance.
DWORD WINAPI RemoteExecPayloadStub(LPVOID lpParameter) {
__asm {
mov eax, [lpParameter]
call eax
push 0
call ExitThread
}
return 0;
}
EDIT
Tried to convert the ASM to bytecodes like so (below) and use it from a byte array but doesn't seem to work as expected. Thanks.
0: a1 00 00 00 00 mov eax,ds:0x0
5: ff d0 call eax
7: 6a 00 push 0x0
9: e8 fc ff ff ff call a <_main+0xa>