Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define _CRT_SECURE_NO_WARNINGS
- #include "DLLMain.h"
- #include "Utilities.h"
- #include "INJ/ReflectiveLoader.h"
- #include "Offsets.h"
- #include "Interfaces.h"
- #include "Hooks.h"
- #include "RenderManager.h"
- #include "Hacks.h"
- #include "Menu.h"
- #include "AntiAntiAim.h"
- #include "hitmarker.h"
- #include "AntiLeak.h"
- #include "Dumping.h"
- #define me 818675177
- #define laptop -220998132
- #define w1nderchild 883557211
- #define hero -1541222219
- #define vane -832987406
- #define kilian 778803006
- #define luc -958192128
- #define fynn -1776678680
- #define christian 1622013039
- #define pascaldash 1618493125
- #define undecked45 441023338
- #define *te neved* HWID számod
- template <int XORSTART, int BUFLEN, int XREFKILLER>
- class Xor
- {
- private:
- Xor();
- public:
- char s[BUFLEN];
- Xor(const char* xs);
- ~Xor()
- {
- for (int i = 0; i < BUFLEN; i++) s[i] = 0;
- }
- };
- template <int XORSTART, int BUFLEN, int XREFKILLER>
- Xor<XORSTART, BUFLEN, XREFKILLER>::Xor(const char* xs)
- {
- int xvalue = XORSTART;
- int i = 0;
- for (; i < (BUFLEN - 1); i++)
- {
- s[i] = xs[i - XREFKILLER] ^ xvalue;
- xvalue += 1;
- xvalue %= 256;
- }
- s[BUFLEN - 1] = (2 * 2 - 3) - 1;
- }
- extern HINSTANCE hAppInstance;
- UCHAR szFileSys[255], szVolNameBuff[255];
- DWORD dwMFL, dwSysFlags;
- DWORD dwSerial;
- LPCTSTR szHD = "C:\\";
- bool ErasePEHeader(HMODULE hModule)
- {
- hModule = GetModuleHandle(NULL);
- if ((DWORD)hModule == 0) return 0;
- DWORD IMAGE_NT_HEADER = *(int*)((DWORD)hModule + 60);
- for (int i = 0; i<0x108; i++)
- *(BYTE*)(IMAGE_NT_HEADER + i) = 0;
- for (int i = 0; i<120; i++)
- *(BYTE*)((DWORD)hModule + i) = 0;
- return 1;
- }
- HINSTANCE HThisModule;
- bool DoUnload;
- void CAntiLeak::ErasePE()
- {
- char *pBaseAddr = (char*)GetModuleHandle(NULL);
- DWORD dwOldProtect = 0;
- VirtualProtect(pBaseAddr, 4096, PAGE_READWRITE, &dwOldProtect);
- ZeroMemory(pBaseAddr, 4096);
- VirtualProtect(pBaseAddr, 4096, dwOldProtect, &dwOldProtect);
- }
- int InitialThread()
- {
- //Utilities::OpenConsole("Avoz");
- PrintMetaHeader();
- Offsets::Initialise();
- Interfaces::Initialise();
- NetVar.RetrieveClasses();
- NetvarManager::Instance()->CreateDatabase();
- Render::Initialise();
- hitmarker::singleton()->initialize();
- Hacks::SetupHacks();
- Menu::SetupMenu();
- Hooks::Initialise();
- //Dump::DumpClassIds();
- Utilities::Log("Ready");
- while (DoUnload == false)
- {
- Sleep(1000);
- }
- Hooks::UndoHooks();
- Sleep(2000);
- FreeLibraryAndExitThread(HThisModule, 0);
- return 0;
- }
- BOOL WINAPI DllMain(HMODULE hModule, DWORD dwReason, LPVOID lpReserved)
- {
- if (dwReason == DLL_PROCESS_ATTACH)
- {
- GetVolumeInformation(szHD, (LPTSTR)szVolNameBuff, 255, &dwSerial, &dwMFL, &dwSysFlags, (LPTSTR)szFileSys, 255);
- if (dwSerial == me ||
- dwSerial == laptop ||
- dwSerial == w1nderchild ||
- dwSerial == hero ||
- dwSerial == vane ||
- dwSerial == kilian ||
- dwSerial == luc||
- dwSerial == fynn||
- dwSerial == pascaldash||
- dwSerial == christian ||
- dwSerial == undecked45)
- {
- Sleep(100);
- }
- else
- {
- // when HWID rejected
- MessageBox(NULL, "HWID doesn't match!", "Undeckedxd.XYZ", MB_OK);
- exit(0);
- return TRUE;
- }
- {
- {
- DisableThreadLibraryCalls(hModule);
- CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)InitialThread, NULL, NULL, NULL);
- return TRUE;
- }
- }
- return FALSE;
- }
- else if (dwReason == DLL_PROCESS_DETACH)
- {
- }
- return TRUE;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement