document.write('');
document.write('');
document.write('');
document.write('');
document.write('Paste provided by Paste.ee - View Original - View Raw - Download
');
document.write('
#ifdef UNICODE\n#undef UNICODE\n#endif\n\n#include <Windows.h>\n\nUINT GetRegStringA(char* lpPath, char* lpValue, char* lpOut, DWORD MaxLength)\n{\n DWORD dwType = REG_SZ;\n HKEY hKey;\n\n if (RegOpenKeyA(HKEY_LOCAL_MACHINE, lpPath, &hKey))\n {\n return 0;\n }\n\n if (RegQueryValueExA(hKey, lpValue, nullptr, &dwType, (BYTE*)lpOut, &MaxLength))\n {\n RegCloseKey(hKey);\n return 0;\n }\n\n RegCloseKey(hKey);\n\n return strlen(lpOut);\n}\n\nint main()\n{\n char MvPath[MAX_PATH] = { 0 };\n if (!GetRegStringA("SOFTWARE\\Rock Hippo\\MicroVolts", "ExecutePath", MvPath, MAX_PATH))\n {\n return 0;\n }\n\n SetCurrentDirectoryA(MvPath);\n strcat_s(MvPath, "\\Bin\\MicroVolts.exe");\n\n STARTUPINFO StartInfo = { 0 };\n PROCESS_INFORMATION ProcInfo = { 0 };\n if (!CreateProcessA(MvPath, nullptr, nullptr, nullptr, 0, 0, nullptr, nullptr, &StartInfo, &ProcInfo))\n {\n return 0;\n }\n\n WriteProcessMemory(ProcInfo.hProcess, reinterpret_cast<void*>(0x00B85D30), reinterpret_cast<BYTE*>("\xC2\x04\x00"), 3, nullptr);\n\n CloseHandle(ProcInfo.hProcess);\n CloseHandle(ProcInfo.hThread);\n\n return 0;\n}
');
function initEmbeddedPaste_bNftYbWcQO5iADE6() {
hljs.highlightBlock(document.getElementById('pastee-bNftYbWcQO5iADE6-content'));
}
addEventListener('DOMContentLoaded', initEmbeddedPaste_bNftYbWcQO5iADE6, false);
addEventListener('load', initEmbeddedPaste_bNftYbWcQO5iADE6, false);