DECOMPILER & IR STUDIOGHIDRA P-CODE ENGINE v11.1AST RECONSTRUCTION
Tri-Pane Synchronized C Decompiler & P-Code Micro-IR
Synchronized 3-way bytecode analysis: Machine Disassembly (x86/x64), Ghidra P-Code Intermediate Representation, and Reconstructed C Pseudocode.
Target Routine: BOOL __cdecl CheckKillswitchAndExecute(LPCSTR szUrl, LPCSTR szMutex)
Variable Type Propagation & Stack Frame Symbols
Type InferenceRename auto-generated decompilation symbols (e.g. local_4) to semantic malware reverse engineering descriptors. Edits reflect dynamically in Pane 3.
| Symbol / Stack Offset | Raw Type | Inferred Type | Semantic Renaming | Description |
|---|---|---|---|---|
local_4 [EBP - 0x04] | undefined4 | HINTERNET | Handle to remote HTTP request object | |
szUrl [EBP + 0x08] | char* | LPCSTR | Sinkhole domain URL pointer | |
szMutex [EBP + 0x0C] | char* | LPCSTR | Global named mutex string |
AI Copilot Subroutine Reverse Engineering Analysis
LLM RE REASONINGPurpose & Objective:
Hardcoded Web Killswitch Check and Ransomware Detonation Gate
The subroutine attempts an HTTP GET connection to an unresolvable domain. If the domain responds (e.g., sinkholed by malware researchers), the malware immediately terminates execution without encrypting files. If the connection fails (normal uninfected network), it acquires an infection mutex and fires the multithreaded AES encryption pipeline.
Detected Anti-Analysis Evasions:
- Sinkhole-sensitive logic (inversion of normal C2 behavior)
- Global Named Mutex check to prevent self-collision
- Direct WinInet API resolution
MITRE ATT&CK Mapping:
TA0005: Defense EvasionTA0011: Command & ControlTA0040: Impact
Dynamic Binary Patching Strategy:
Patch the JZ instruction at 0x0040811B with NOPs or invert to JNZ (75 0F) to force the binary to treat every network state as a sinkhole hit, halting detonation permanently.