#include <windows.h>
char *URL = "https://www.mpgh.net/forum/members/166111-alex_agnew.html";
char *Title = "Error";
char *Body = "We where not able to attach the dll to the process!";
#define ADR_EngineText 0x7B63AC
struct pExecute
{
void Assembly(void *adress,void *bytes,int size);
void Message(char *title,char *body);
void Navigate(char *url);
void Attach(LPVOID Thread);
}; pExecute *pStruct;
void pExecute::Assembly(void *adress,void *bytes,int size)
{
DWORD HideAsm;
VirtualProtect(adress,size,PAGE_EXECUTE_READWRITE, &HideAsm);
memcpy((VOID *)(adress),(PBYTE)(bytes),(size));
VirtualProtect(adress,size,HideAsm,&HideAsm);
}
void pExecute::Message(char *title,char *body)
{ MessageBoxA(0,body,title,0); }
void pExecute::Navigate(char *url)
{ ShellExecuteA(0,0,url,0,0,SW_SHOWNORMAL); }
void pExecute::Attach(LPVOID Thread)
{ CreateThread(0,0,(LPTHREAD_START_ROUTINE)Thread,0, 0,0); }
LPVOID dwKit(HINSTANCE hDll)
{
char *Engine = "https://mpgh.net";
if(GetAsyncKeyState(VK_INSERT)&1)
{
__asm
{
push 0x32; /* collors */
push 0xff; /* collors */
push Engine;
mov esi,ADR_EngineText;
call esi;
}
}
return dwKit;
}
BOOL __stdcall DllMain(HINSTANCE hDll,DWORD Kit,LPVOID Thr)
{ switch(Kit){
case 0: pStruct->Navigate(URL); break;
case 1: pStruct->Attach((LPVOID)dwKit); break;
case 2: pStruct->Message(Title,Body); break;
}}