Anyone can help me to solve my problem I have no knowledge about asm. I wat to run an asm to a specific address or offset.
example I want to run the block of asm in the address I specified 0x00424B1C?
any idea? thanks in advance!!
example I want to run the block of asm in the address I specified 0x00424B1C?
Code:
#include "StdAfx.h"
void __declspec(naked) MyStuff() {
__asm {
PUSH EBP
MOV EBP, ESP
MOV EAX, DWORD PTR SS : [EBP + 0x8]
MOV EAX, DWORD PTR DS : [EAX]
XOR EAX, ENCPACKET
MOV DWORD PTR SS : [EBP + 0x8], EAX
MOV AX, WORD PTR SS : [EBP + 0xA]
POP EBP
RETN 0x4
}
}
void SetStuff(){
SetJmp((LPVOID)0x00424B1C, MyStuff);
}
Last edited: