tenho seguinte código c++ Header File typedef BOOL(WINAPI* GetModuleHandleExA_t)(DWORD,…
- User
tenho seguinte código c++
Header File
typedef BOOL(WINAPI* GetModuleHandleExA_t)(DWORD, LPCSTR, HMODULE*); typedef DWORD(WINAPI* GetModuleFileNameA_t)(HMODULE, LPSTR, DWORD); typedef VOID(WINAPI* ExitProcess_t)(UINT); typedef int (WINAPI* MessageBoxA_t)(HWND, LPCSTR, LPCSTR, UINT); typedef HWND(WINAPI* GetConsoleWindow_t)(void); typedef HMODULE(WINAPI* GetModuleHandleA_t)(LPCSTR);
class Client { public: static void InitializeRagexe();
static GetModuleHandleExA_t pGetModuleHandleExA; static GetModuleFileNameA_t pGetModuleFileNameA; static ExitProcess_t pExitProcess; static MessageBoxA_t pMessageBoxA; static GetConsoleWindow_t pGetConsoleWindow; static GetModuleHandleA_t pGetModuleHandleA; };
cpp file
GetModuleHandleExA_t Client::pGetModuleHandleExA = nullptr; GetModuleFileNameA_t Client::pGetModuleFileNameA = nullptr; ExitProcess_t Client::pExitProcess = nullptr; MessageBoxA_t Client::pMessageBoxA = nullptr; GetConsoleWindow_t Client::pGetConsoleWindow = nullptr; GetModuleHandleA_t Client::pGetModuleHandleA = nullptr;
void Client::InitializeRagexe() { HMODULE kernel32 = GetModuleHandleA(SecureString("kernel32.dll").c_str());
if (kernel32) { pGetModuleHandleExA = reinterpret_cast(reinterpret_cast<void*>(GetProcAddress(kernel32, SecureString("GetModuleHandleExA").c_str()))); pGetModuleFileNameA = reinterpret_cast(reinterpret_cast<void*>(GetProcAddress(kernel32, SecureString("GetModuleFileNameA").c_str()))); pExitProcess = reinterpret_cast(reinterpret_cast<void*>(GetProcAddress(kernel32, SecureString("ExitProcess").c_str()))); pGetConsoleWindow = reinterpret_cast(reinterpret_cast<void*>(GetProcAddress(kernel32, SecureString("GetConsoleWindow").c_str()))); pGetModuleHandleA = reinterpret_cast(reinterpret_cast<void*>(GetProcAddress(kernel32, SecureString("GetModuleHandleA").c_str()))); }
if (Client::pGetModuleHandleA) { HMODULE kernel32 = Client::pGetModuleHandleA(SecureString("kernel32.dll").c_str()); HMODULE user32 = Client::pGetModuleHandleA(SecureString("user32.dll").c_str());
if (user32) { Client::pMessageBoxA = reinterpret_cast<MessageBoxA_t>(reinterpret_cast<void*>(GetProcAddress(user32, SecureString("MessageBoxA").c_str()))); } } }
Como posso fazer para ocultar GetModuleHandleA e GetProcAddress do meu ida ?
por exemplo código do ida
ModuleHandleA = GetModuleHandleA((LPCSTR)v0); if ( v65 > 0xF ) { v2 = Block[0]; v3 = v65 + 1; if ( v65 + 1 >= 0x1000 )
e
v7 = sub_1000B940(v76); if ( *(_DWORD *)(v7 + 20) > 0xFu ) v7 = *(_DWORD *)v7; dword_1004E064 = (int)GetProcAddress(ModuleHandleA, (LPCSTR)v7); if ( v77 > 0xF )
note que ele mostra os nomes das funções citadas
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.