/
githubmirror
/
x64dbg
Обзор
Документация
Войти
/
githubmirror
/
x64dbg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
development
src/exe/x64dbg_exe.cpp
54 строки
2 KB
Duncan Ogilvie
Re-enable crash dumps
08 июл 2026, 15:54
08 июл 2026, 15:54
ac70d94
Код
Авторство
О чём код?
/** @file x64dbg_exe.cpp @brief Implements the 64 debug executable class. */ #include <stdio.h> #include <windows.h> #include "crashdump.h" #include "../bridge/bridgemain.h" #include "../bridge/startupargs.h" #include "LoadResourceString.h" #include "signaturecheck.h" /** @fn int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) @brief Window main. @param hInstance The instance. @param hPrevInstance The previous instance. @param lpCmdLine The command line. @param nShowCmd The show command. @return An APIENTRY. */ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) { // Reference: https://www.trendmicro.com/pl_pl/research/23/b/investigating-the-plugx-trojan-disguised-as-a-legitimate-windows.html if(!InitializeSignatureCheck()) MessageBoxA(nullptr, "Failed to initialize signature check.", "Error", MB_SYSTEMMODAL | MB_ICONERROR); CrashDumpInitialize(); const auto startupOptions = ParseHostStartupOptions(); BRIDGE_CONFIG config = {}; if(!startupOptions.userDirectory.empty()) config.szUserDirectory = startupOptions.userDirectory.c_str(); const wchar_t* errormsg = BridgeInit(&config); if(errormsg) { MessageBoxW(0, errormsg, LoadResString(IDS_BRIDGEINITERR), MB_ICONERROR | MB_SYSTEMMODAL); return 1; } errormsg = BridgeStart(); if(errormsg) { MessageBoxW(0, errormsg, LoadResString(IDS_BRIDGESTARTERR), MB_ICONERROR | MB_SYSTEMMODAL); return 1; } return 0; }