Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Software:Diablo

From ReverseEngineering.wiki
Software
Developer Blizzard North
Publisher Blizzard Entertainment
Engine proprietary
Platforms Windows (x86, PE)
Versions 1.00 to 1.09b; Hellfire 1.00
On this wiki Facts · Code · Notes · Topics

Blizzard North's 1996 action RPG (Windows 95 PC original; patched up to 1.09b, 2001) and its Hellfire expansion. The diasurgical/devilution project reconstructed its source to match the 1.09b Diablo.exe function by function.

Overview

Diablo.exe is a 32-bit Windows program that reads DIABDAT.MPQ (Format:MPQ (MoPaQ)) and uses DiabloUI.dll, Storm.dll, SmackW32.dll and Standard.snp. The Hellfire expansion has its own executable and HELLFIRE data archives; the shareware demo uses SPAWN.MPQ.

Identifying the version

The devilution README states that its build replaces Diablo.exe and needs the files of the original game patched to 1.09(b): DIABDAT.MPQ, DiabloUI.dll, SmackW32.dll, Standard.snp and Storm.dll. Its CHANGELOG states that all functions are binary identical to 1.09b. The resource file (Diablo.rc) carries VS_VERSION_INFO with FILEVERSION 2001,5,18,1 and PRODUCTVERSION 1,0,9,2, FileDescription "Diablo". defs.h defines the retail game id as the multi-character constant 'DRTL' with GAME_VERSION 42 (Hellfire: 'HRTL', GAME_VERSION 34) for the network game protocol.

Function and address list

devilution publishes comparer-config/diablo.toml, hellfire.toml and spawn.toml: one func entry per function of the original executables with name, addr (virtual address, image base 0x400000) and size, and a header comment with address_offset = 0x400C00 (virtual address minus the file offset of the code). The Diablo list has 9418 lines. It names all functions of 1.09b-era Diablo.exe, so it can be imported as symbols once a build with a hash is registered. Unverified: which SHA-256 the file offsets match (the repository gives none).

Data formats

Code & repositories

  • https://github.com/diasurgical/devilution : source reconstruction (Sustainable Use License 1.0: non-commercial use and distribution; read it before reusing anything).
  • https://github.com/diasurgical/devilutionX : the portable port, see Software:DevilutionX.
  • https://github.com/diasurgical/devilution @ 9f01757243412bb154d02d9af65c804159e6e0ea · license: LicenseRef-Sustainable-Use-1.0 (declared by the contributor; GitHub's detector did not recognize LICENSE.md)
    Reconstructed source of Diablo 1.09b plus comparer-config function lists
    Tested on: source read, not run: Diablo 1.09b (not run) · checked 2026-10-18
  • https://github.com/diasurgical/devilutionX @ a927236209828a1f1dcb7ef32bdd03a288710c29 · license: LicenseRef-Sustainable-Use-1.0 (declared by the contributor; GitHub's detector did not recognize LICENSE.md)
    Portable Diablo/Hellfire port; CEL/CL2/PCX to CLX converters
    Tested on: source read, not run: Diablo data files (not run) · checked 2026-10-18