{
  "api_version": "1.0.0",
  "slug": "dos-exes-to-c",
  "url": "https://reversedwithai.com/p/dos-exes-to-c",
  "markdown_url": "https://reversedwithai.com/p/dos-exes-to-c.md",
  "json_url": "https://reversedwithai.com/p/dos-exes-to-c.json",
  "title": "Turned a 1988 DOS EXE and a 2015 Win32 EXE into working C code",
  "tagline": "Old executables back to working source, with a few details missed.",
  "summary": "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.",
  "target": {
    "name": "DOS and Visual Basic executables",
    "type": "legacy",
    "type_label": "Legacy software"
  },
  "platform": "DOS / Windows",
  "models": [
    "Claude 3.7 Sonnet"
  ],
  "tools": [],
  "outcome": "partial",
  "outcome_label": "Partial",
  "human_effort": null,
  "time_spent": null,
  "cost": null,
  "license": null,
  "checks": {
    "source_available": null,
    "repro_steps": null,
    "real_hardware": null,
    "independently_verified": null
  },
  "author": {
    "name": "Andrew Schulman (Software Litigation Consulting)",
    "url": null
  },
  "sources": {
    "repository": null,
    "writeup": "https://www.softwarelitigationconsulting.com/claude-3-7-turns-1988-and-2015-dos-exes-into-working-c-code/",
    "discussions": [],
    "all": [
      "https://www.softwarelitigationconsulting.com/claude-3-7-turns-1988-and-2015-dos-exes-into-working-c-code/"
    ]
  },
  "image": {
    "url": "https://covers.reversedwithai.com/dos-exes-to-c.webp",
    "credit": "Title card: Reversed with AI"
  },
  "commit_history": null,
  "added_at": "2026-10-13T00:00:05+00:00",
  "updated_at": "2026-10-13T00:00:05+00:00",
  "sources_reviewed_at": "2026-10-13T00:00:05+00:00",
  "reviewed_by": "editor",
  "human_notes": "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.",
  "reproduce": null,
  "body_md": "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.\n\nThe 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.\n\nFor 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.\n\nShown 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.\n\nTo 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.\n\nSources:\n- https://www.softwarelitigationconsulting.com/claude-3-7-turns-1988-and-2015-dos-exes-into-working-c-code/",
  "ai_use_excerpts": null
}
