0xreversed/with.ai
By model

Reverse engineering with Codex and GPT models

This page lists projects where OpenAI models did part of the reverse engineering: the Codex agent, ChatGPT, or a GPT model called directly. Codex runs in a terminal like Claude Code, so it can call disassemblers and other command line tools, and several projects connected it to Ghidra or Binary Ninja through an MCP server. The work covers DOS game reconstruction and ports, lost source recovery for an Electron app, a Bluetooth printer protocol, private API discovery, and defensive malware triage in isolated labs. A few entries are research studies that compared GPT models with Claude and others on the same binaries. Where authors give a model version, time or cost, it is shown on the project page. As with other models, the pattern is that Codex reads and writes code quickly while the person defines the target, tests the output against the original and corrects mistakes. Each entry links the original writeup or repo.

Projects
14
Outcomes
Works3Partial5Research6
Models used
GPT13Claude7Gemini1
14 projects

The projects

Unnamed first-person shooter: preview from momo5502.com
Works
Blog · Games and mods
Pick

600+ billion tokens: an agent swarm decompiled a first-person shooter

15+ agents, three months, 99% of a shooter rebuilt in C++.

Time About 3 months
Chromatron: preview from quesma.com
Works
Blog · Games and mods
Pick

Recompiled a 20-year-old puzzle game for Apple Silicon and the web

A 20-year-old puzzle game, running natively on Apple Silicon and in the browser.

Model Claude Opus 4.6
Research
Blog · Research and benchmarks

CrackMeBench: a benchmark of agents recovering validation logic from stripped binaries

GPT-5.5 solved 11 of 12 stripped CrackMes; Claude Opus 4.7 solved 7.

Model GPT-5.5
Partial
GitHub · Games and mods

Reverse engineering SkyRoads from its DOS executable into a native Rust port with Codex

A 1993 DOS racer rebuilt in Rust, still being matched against DOS traces.

Model Codex 5.4
Research
Blog · Research and benchmarks

Decompiling the Synergy: a user study of humans and LLMs reverse engineering together

LLM help lifted novices near expert level; experts gained little.

Model GPT-4o
Partial
Blog · Games and mods

Reconstructing DX-Ball 1.07 as C with Codex and REA, tested against the original x86

DX-Ball as C, checked against the original x86 across 3,205 cases.

Model Codex
Research
Blog · Malware (defensive)

Wrote reusable Codex CLI skills for malware unpacking and IOC extraction in FLARE-VM

Two Codex skills, iterated until errors dropped from 20 to 4.

Research
Blog · Malware (defensive)

Built a structured agentic malware-analysis pipeline and tested it on a known government trojan

A case-file workflow for agents, tested on a publicly documented trojan.

Time About 17 minutes for the first pass and 30 for validation
Research
Blog · Malware (defensive)

Tested GPT and Claude models as malware analysts with Ghidra, x64dbg and REMnux MCP servers

Six hours of manual work down to 30 minutes, and plenty of wrong IoCs to check.

Cost Estimated 5-20 euros in tokens per analysis
Partial
Blog · Firmware and hardware

Reverse engineered a Bluetooth cat-shaped thermal printer with ChatGPT's help

No Bluetooth background, a cat-shaped printer, and dithered images printing.

Model ChatGPT
宝玉
@dotey

@embirico @OpenAI How I Used Codex to "Recover" Lost Source Code in 5 Days Ever lost your source code? It's a terrible feeling. Years ago, I built an Electron drawing app. Then I lost the source code. All I had left was the compiled version. I thought about rewriting it from scratch, but the

Harvester (1996): preview from alexbevi.com
Partial
Blog · Games and mods

Started a ScummVM engine for the 1996 DOS game Harvester with Codex and GhidraMCP

A ScummVM engine for a 1996 horror adventure, started in about a day.

Time About a day for the first playable scenes
Codex CLI: preview from simonwillison.net
Works
Blog · Apps

Used Codex to reverse engineer the Codex CLI and call GPT-5-Codex-Mini directly

Codex reverse engineers its own CLI to reach a model before its API launched.

Model GPT-5-Codex
fast16 malware: preview from sentinelone.com
Research
Blog · Malware (defensive)

Eight-stage malware analysis to test long-horizon agents

How far do frontier models get on an eight-stage malware analysis alone?

Model GPT-5.6 Sol
Did something like this?

Share the writeup or repo, and what the AI got right and wrong.

Submit a project
Learn

Related guides

Tools

Tools these projects used

All tools
FAQ

Common questions

Yes, when it has tools. Projects here gave Codex access to Ghidra through REA or GhidraMCP and used it to rename functions, rebuild code as C and port games.

Explore

Other topics