Another way around it.
Code:
char strPatch[] = "\x90\xe9";
unsigned char Half_Hour_DC_Bytes[] = { 0x81, 0xC1, 0x40, 0x77, 0x1B, 0x00 };
int Half_Hour_DC_Address = ASM::FindPattern(0x005A25CE, 0x0068532C, Half_Hour_DC_Bytes, 6) + 8;
if(!Half_Hour_DC_Address || !WriteProcessMemory(GetCurrentProcess(), (void*)Half_Hour_DC_Address, strPatch, 2, &ByteRed)) { Message(2017"); return false; }
MODULEINFO mi = {0};
HMODULE TQANP = GetModuleHandleA("TQAnp.dll");
if(TQANP)
{
GetModuleInformation( GetCurrentProcess(), TQANP, &mi, sizeof(mi) );
int TQANP_Address = ASM::FindPattern((int)TQANP, (int)(TQANP + mi.SizeOfImage), TQANP_Bytes, 3) - 24;
char strPatch[] = "\xEB";
if(!TQANP_Address || !WriteProcessMemory(GetCurrentProcess(), (void*)TQANP_Address, strPatch, 1, &ByteRed)) { Message(2018); return false; }
return true;
}
Message(2019); return false;
//Hooks/patches/code/etc goes here and none of it will be detected.