Home / Blog / Read the binary

Method · Essay

Read the binary, not the vibes.

Ask a coding agent how a closed program works and you get a fluent answer. Often it is a good guess: a calculator probably does percentages the usual way, a game probably speeds up linearly. The trouble is “probably”. The agent has read a lot about software in general and nothing about this file in particular.

Give the same agent the program's instructions and the answer stops being a guess. That is the whole idea behind REP: the model is already good at reading code, so hand it the code, in whatever form the program ships.

The program is the documentation

Docs describe what a program should do. The binary is what it does. The two drift apart in exactly the places you care about: the edge case, the old behaviour kept for compatibility, the constant someone tuned by hand. Windows Calculator's % key does two different things depending on the operator before it, and one branch in the code says exactly which.

Three habits that keep an agent honest

1. Every claim points at a place

An address, a file and line, a request. “The check XORs each byte with a table at 0x2040” can be verified in ten seconds. “It uses some kind of obfuscation” cannot. Ask for locations and you get answers you can check.

2. Read the data, not just the code

Code says compare with a table; the table says what. Half of reverse engineering is reading the bytes a function points at: the masks of a checker, the speed numbers in a game's config, the 100 behind a % key. A good tool hands the agent both, side by side.

3. Run it to prove it

A recovered rule is a hypothesis until the original program agrees. Type the recovered flag in and the checker says Correct!; run a game's own update loop four thousand times and its speed should read 10 if the rule was read right. The agent writes the check, the program grades it.

Why not just a bigger model?

Bigger models guess better. They still guess. A model that reads the actual instructions has the answer in front of it; a bigger one reasoning from general knowledge still has to guess it. Spend the budget on giving the model the evidence, then on making it check its work.

Where to start

Pick one behaviour you are curious about in software you may examine, ask one question, and insist on locations. The first investigation takes ten minutes; the native guide walks through a compiled program from strings to a solved check.