AI reconstructs 2009 Call of Duty: Modern Warfare 2 source code with 83% byte-for-byte match

icon币界网
Share
AI summary iconSummary
A project announcement reveals that a team led by Maurice Heumann used AI and crypto news tools to decompile Call of Duty: Modern Warfare 2 into C++ source code. Over three months, the team consumed over 50 billion tokens and deployed AI agents such as Sonnet 5 and Luna. The final output achieved 99% function coverage and 83% byte-for-byte accuracy. The team will not publicly release the code.
CoinDesk reports:

IT Home, October 13 update: On October 9, developer Maurice Heumann released a project report stating that his team spent three months and consumed over 500 billion tokens to invoke AI agents to decompile the 2009 game "Call of Duty: Modern Warfare 2" and reconstruct it into C++ source code.

The project is led by Hoyman, with assistance from RektInator, Future, st0rm, and other community members.

For AI invocation, the team initially used both Claude Max (20x) and Codex Pro subscriptions, running AI agents through Claude Code CLI and Codex CLI. The models included Sonnet 5, Opus 5.5, Luna, Sol, and Terra, with agents tracking tasks via GitHub Issues and exchanging information through Discord.

In the first month of the project, four agents were deployed: three responsible for decompiling and submitting code, and one for review. By this stage, approximately 80% of the functions were completed, allowing the game to launch, display the main menu, and load maps; however, the team found that while the code was readable, it contained semantic errors at the level of function signatures, types, structure layouts, and logic.

Subsequently, the team introduced a "byte-by-byte matching decompilation" verification mechanism. This mechanism reconstructs the target file using the original game compiler and performs a byte-by-byte comparison between the reconstructed functions and those in the original EXE/PDB files; functions that pass are marked as PASS, while those that fail are revised by the agent.

To prevent agents from bypassing validation, the team prohibits inline assembly, naked functions, object patching, and embedding bytes directly in code, and verifies script hashes against GitHub Actions secrets via CI. This mechanism enables low-cost models to perform high-accuracy tasks under strict feedback, replacing manual or agent-based review processes.

In the later stage of the project, 14 Luna agents and 2 Opus 5.5 agents primarily operated, submitting code via independent branches and pull requests. Ultimately, 99% of the game functions were incorporated into the reconstructed source code, and 83% achieved byte-for-byte matching; the remaining functions could not be fully matched due to non-deterministic characteristics or linker behavior.

Byte-for-byte matching refers to comparing the binary data of a reconstructed function, after compilation, with the corresponding function in the original program on a byte-by-byte basis. If the data matches exactly, it typically indicates that the function retains the same semantics and behavior in the target compilation environment as in the original.

Hoymann stated that the relevant code will not be made public, and the reconstruction results will be retained solely for private use.

IT Home provides the reference link: 500+ Billion Tokens Later: Letting AI Agents Decompile A First-Person Shooter

Disclaimer: The information on this page may have been obtained from third parties and does not necessarily reflect the views or opinions of KuCoin. This content is provided for general informational purposes only, without any representation or warranty of any kind, nor shall it be construed as financial or investment advice. KuCoin shall not be liable for any errors or omissions, or for any outcomes resulting from the use of this information. Investments in digital assets can be risky. Please carefully evaluate the risks of a product and your risk tolerance based on your own financial circumstances. For more information, please refer to our Terms of Use and Risk Disclosure.