<!-- Canonical page: https://reversedwithai.com/p/dos-exes-to-c -->
Canonical page: https://reversedwithai.com/p/dos-exes-to-c

# Turned a 1988 DOS EXE and a 2015 Win32 EXE into working C code

> Old executables back to working source, with a few details missed.

Claude rebuilt working C from a 1988 DOS EXE and a 2015 Win32 program, but missed some details, such as pen input in a separate Visual Basic program.

## Key facts

- Target: DOS and Visual Basic executables
- Category: Legacy software
- Platform: DOS / Windows
- Models: Claude 3.7 Sonnet
- Outcome: Partial
- Checks: Source available: not reported; Repro steps: not reported; Real hardware: not reported; Verified by others: not reported
- Author: Andrew Schulman (Software Litigation Consulting)
- Added: 2026-10-13
- Updated: 2026-10-13
- Sources reviewed: 2026-10-13 (editor)

## What was done

Andrew Schulman of Software Litigation Consulting gave Claude 3.7 Sonnet old executables with no source code, in a test report, not a released project. The post responds to a Slashdot item dated 1 March 2025 and links the shared chats for the 1988 and 2015 tests. From a 38 KB 1988 DOS EXE originally written in C, Claude rebuilt about 1,000 lines of working C that ran correctly on several examples. It also reconstructed most of a 2015 Win32 command-line program, but it missed the program's purpose.

The test followed a viral post in which Claude turned a small Visual Basic EXE into a Python script. For the 1988 program, Claude described its method as "constraint-based reconstruction". It leaned heavily on strings in the binary, including a usage and help screen, and assumed that screen described every feature.

For the 2015 program, Schulman still had the C source. Claude recovered most of the components but not how they fit together. The program picks the best of four regression types, and Claude only got there with hints. Claude could not disassemble the binary itself. Schulman uploaded a disassembly Schulman made, trimmed of run-time library and startup code to fit Claude's file size limits, and from that Claude produced C that compiled, ran and behaved like the original.

Shown the real source afterwards, Claude rated its reconstruction about 75 to 80% accurate to the original. Schulman questions where that figure comes from. In a separate test with a 1995 Visual Basic program, LOANAPP.EXE, Claude missed its pen input until nudged, then found a reference to PENCNTRL.VBX. In Schulman's tests ChatGPT 4.5 had not succeeded yet, Gemini would not accept an .exe upload and DeepSeek-R1 rejected the file.

To repeat it you need old executables you are entitled to analyse, Claude with file upload, and a disassembler for anything that depends on real disassembly. Claude did the reconstruction while Schulman supplied hints, the trimmed disassembly and the comparison with the real source.

Sources:
- https://www.softwarelitigationconsulting.com/claude-3-7-turns-1988-and-2015-dos-exes-into-working-c-code/

## Human work and limitations

Schulman had to give hints before Claude understood the 2015 program's purpose, and he supplied a trimmed disassembly himself because Claude could not disassemble the EXE. In a related test, Claude missed a 1995 program's pen input until he pointed it out.

## Sources

- [Write-up](https://www.softwarelitigationconsulting.com/claude-3-7-turns-1988-and-2015-dos-exes-into-working-c-code/)

Figures are reported by the author and not measured by this site, except the commit history. Entry drafted with AI from the linked sources and checked against them.

Cite as: Andrew Schulman (Software Litigation Consulting) (2026). Turned a 1988 DOS EXE and a 2015 Win32 EXE into working C code. Reversed with AI. https://reversedwithai.com/p/dos-exes-to-c
