Here is the ASM code.
Code:
mov ecx,[Value] mov [eax+08],ecx mov edx, [eax+04] jmp return Value: db 00 00 42 43
Code:
{
__asm
{
mov ecx,[Value]
mov [eax+0x08],ecx
mov edx,[eax+0x04]
jmp [Return]
Value:
db 00 00 42 43
}
}
But how do I go around this. I also tried using this.
Code:
#define Value __asm _emit 0x00 __asm _emit 0x00 __asm _emit 0x42 __asm _emit 0x43
If anyone has an alternative solution, or some way I could directly write the bytes at a codecave that would be great.






