Ex4 to Mq4 Decompiler GitHub Verified: Separating Fact from Fiction in the World of MetaTrader Reverse Engineering
1. Stale or Fake Repositories
- Many repos are 5–10 years old, targeting MT4 builds before 600.
- They often contain only a README or a link to external (often shady) download sites.
- Example: a repo named “EX4-to-MQ4-Decompiler” with no actual code—just a placeholder.
Step-by-Step (Using dmage/ex4-to-mq4):
- Install IDA Pro 7.0+ (Freeware version works partially)
- Clone the repo:
git clone https://github.com/dmage/ex4-to-mq4.git - Copy your EX4 file into the
exefolder. - Run the IDA script
ex4_to_mq4.pyinside IDA Pro on the loaded EX4. - Recovered MQ4 will be saved as
_decomp.mq4.
Does a Truly "Verified" GitHub Decompiler Exist?
Let’s be direct: No fully automated, 100% reliable, verified EX4 to MQ4 decompiler is publicly available on GitHub for the latest MT4 builds.
Why? Because MetaQuotes has continuously improved obfuscation and encryption in EX4 files since build 600 (released in 2014). Most public decompilers on GitHub are:
- Outdated – They only work on EX4 files from MT4 builds 509 or older.
- Partial – They recover only parts of the code, often breaking complex logic.
- Fake or malicious – Some repositories simply host malware or redirect to paid services.
However, a few GitHub projects have gained relative trust among reverse engineers. These are not "verified" by MetaQuotes (they would never endorse decompilation), but they are verified by community usage.
2. Legal Liability
Most EAs and indicators have license agreements prohibiting reverse engineering. Even if you own a copy, decompilation may violate:
- The Digital Millennium Copyright Act (DMCA) in the US.
- The EU Copyright Directive.
- MetaQuotes’ EULA (Section 4.2: “You may not reverse engineer, decompile, or disassemble the Software”).
3. MQL4 Decompiler by 'nohkin' (Legacy but still used)
- Repo:
nohkin/mql4-decompiler - Status: Works only for older EX4 files (build 509–600).
- Note: Many modern EX4s (build 1353+) will fail.
- GitHub link:
https://github.com/nohkin/mql4-decompiler