AutoHotkey Decompiler with Windows Context Menu Integration
AHK-Hacker extracts source code from compiled AutoHotkey executables (.exe) by directly reading the embedded RCDATA resource via Windows LoadLibrary API.
Simply right-click any .exe file and select "AHK-Hacker - Decompile".
- One-click decompilation - Right-click context menu integration
- Drag-and-drop support - Drop
.exeontoAHK-Hacker.exe - Automatic file naming - Output as
filename_decompiled.ahk - Works anywhere - Decompile files from any location
[R/O|R/W] - No admin rights needed - Uses HKEY_CURRENT_USER registry
- Automatic packer detection - Detects UPX and MPRESS packers:
- UPX: Unpacks UPX-compressed executables
- MPRESS: Extracts via Windows ReadProcessMemory API
- Download the latest release zip from Releases
- Extract the zip anywhere. If Windows flags the file as downloaded, manually unblock: right‑click
AHK-Hacker.exe→ Properties → check Unblock → Apply - Run
AHK-Hacker.exe(or drag an.exefile onto it)
First-run auto-install: The first time you run AHK-Hacker.exe, it will prompt to install the context menu integration:
- Click OK to install → Adds right-click menu + creates uninstall shortcut
- Click Cancel to skip → Continues with decompilation (prompts again next time)
Done! No administrator privileges, AutoHotkey, or external downloads required.
- Run AHK-Hacker.exe
- When prompted, click OK to install the right-click context menu
- An uninstall shortcut (Uninstall AHK-Hacker.lnk) is created in the same folder
Install the context menu directly:
AHK-Hacker.exe /installInstall silently (no prompts):
AHK-Hacker.exe /install /silentNotes:
- No administrator privileges required; registry writes use
HKEY_CURRENT_USER. - If Windows flags the executable as downloaded, manually unblock via Properties → Unblock before first run (see Quick Start step 2).
- Right-click any
.exefile in Windows Explorer - Select "AHK-Hacker - Decompile" from the context menu
- Wait a few seconds
- A notification will appear with the result
- The decompiled
.ahkfile will be in the same folder as the.exe
You can also drag any .exe file onto AHK-Hacker.exe:
- Drag the target
.exefile ontoAHK-Hacker.exe - Wait a few seconds for processing
- The decompiled
.ahkfile is saved using the same output rules as above
Input: C:\MyPrograms\MyScript.exe
Output: C:\MyPrograms\MyScript_decompiled.ahk
Log: [AHK-Hacker folder]\log\MyScript_decompile_20250118_143052.log
Note: If the source file is on a read-only location, output will be saved to:
Output: [AHK-Hacker folder]\ahk\MyScript_decompiled.ahk
AHK-Hacker\
├── ahk\ (Decompiled output - when source is read-only)
├── bin\ (Runtime binaries - downloaded on-demand)
│ ├── mATE\ (myAutToExe decompiler - downloaded if needed)
│ └── upx.exe (UPX unpacker - downloaded if needed)
├── lib\ (Shared libraries - source reference only)
│ ├── Automated-MemoryRead.ahk (Automated memory extraction via ReadProcessMemory API)
│ ├── Launch-MyAutToExe.ahk (Downloads mATE for very old AHK decompilation)
│ ├── Notifications.ahk (Notification library)
│ ├── PE-Analysis.ahk (PE analysis, packer detection, RCData extraction)
│ ├── Script-Utils.ahk (Shared script utilities)
│ └── Unpack-Exe.ahk (Downloads UPX unpacker for packed executables)
├── log\ (Decompilation logs)
├── AH.ico (AHK-Hacker icon)
├── AHK-Hacker.ahk (Main decompiler script - source reference only)
├── AHK-Hacker.exe (Compiled and signed executable - run this!)
└── Uninstall AHK-Hacker.lnk (Uninstall shortcut - created on first run)
Note: Source files (.ahk) are included as reference only. You only need AHK-Hacker.exe to run the decompiler.
- Double-click
Uninstall AHK-Hacker.lnk(created on first run) - Click OK on the uninstallation prompt (or Cancel to abort)
This will automatically:
- Remove the context menu integration
- Delete the uninstall shortcut itself
Alternatively, run from command line:
AHK-Hacker.exe /uninstallOr silently without prompts:
AHK-Hacker.exe /uninstall /silentNote: The AHK-Hacker folder, log files, bin folder, and ahk output folder are not deleted. You can manually delete the folder if you want to remove everything.
Cause: The .exe file is not a compiled AutoHotkey script (validated via RT_MANIFEST resource).
Possible causes:
- The file is not an AutoHotkey compiled executable
- The executable is protected/encrypted (e.g., Themida, Enigma)
- The executable is very old (will try the myAutToExe decompiler fallback)
- The executable is corrupted
- Not enough disk space
- Windows: 10 or later
- Internet: Required for downloading UPX / mATE (only when needed)
No AutoHotkey installation required! The compiled AHK-Hacker.exe is self-contained.
HKEY_CURRENT_USER\Software\Classes\exefile\shell\AHK-Hacker
Works with compiled scripts from:
- AutoHotkey <= v1.0.48.5 (myAutToExe decompiler offered as fallback)
- AutoHotkey v1.1.x (all versions)
- AutoHotkey v2.x (all versions)
Packer Support:
- UPX-packed: Automatically detected and unpacked via UPX tool
- MPRESS-packed: Automatically detected and extracted via ReadProcessMemory API
- See CLAUDE.md for details
- AHK-Hacker - inspired by: AutoHotkey Decompiler v2.97.00C by Jake (A-gent)
- AutoHotkey - Powerful. Easy to learn: The ultimate automation scripting language for Windows.
- UPX - the Ultimate Packer for eXecutables
- myAutToExe (mATE) - AutoIt Decompiler