DOS and Visual Basic executables · Partial

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

by Andrew Schulman (Software Litigation Consulting)Read the write-up Save and follow16 views
View JSON
DOS and Visual Basic executables: Old executables back to working source, with a few details missed.
Image: Title card: Reversed with AI

Who did what

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.

What was done

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.

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/

Discussion

Your library

Sources

Sources reviewed · Added

An AI model drafted this entry from the sources above. Checked against the sources on 13 Oct 2026. The figures are the author's. How entries are checked. Something wrong? Tell me.

The weekly dump: new projects, once a week