# TH05: reconstructing Touhou 5's PC-98 programs

> TH05 reconstructs source for the Japanese PC-98 Touhou 5: Mystic Square programs MAIN.EXE, OP.EXE, MAINE.EXE and ZUN.COM. Maintained C/C++ and reviewed assembly are compared against bounded original code and data extents, including raw bytes and relocation order. The project reports accepted units separately from its still unmeasured overall authored-byte goal.

- Type: Case study
- Targets: Game
- Category: Independent reconstruction cases
- Relationship: Independent reconstruction project
- Sources reviewed: 2026-11-06
- Added to the catalog: 2026-11-08
- Original resource: <https://github.com/N0zoM1z0/th05>
- Primary source: <https://github.com/N0zoM1z0/th05/blob/9df0ac25f86bd8097206d1720b40d3127f44f4b8/README.md>
- Catalog page: <https://awesomerea.org/resources/th05-reconstruction-case/>
- Record JSON: <https://awesomerea.org/resources/th05-reconstruction-case/record.json>
- Chinese version: [简体中文](https://awesomerea.org/zh/resources/th05-reconstruction-case/index.md)

## Requirements & limits

- **Prerequisites:** A user-owned Japanese game image is required; game executables and assets are not included.
- **Prerequisites:** The documented workflow uses pinned ReC98, Borland/Wine and Ghidra analysis tooling.
- **Limits:** The overall authored-byte percentage remains unmeasured, and complete packed-file equality is a separate claim.
- **License:** MIT licence for repository-authored code and documentation.

## Primary sources

1. <https://github.com/N0zoM1z0/th05/blob/9df0ac25f86bd8097206d1720b40d3127f44f4b8/README.md>
2. <https://github.com/N0zoM1z0/th05/blob/9df0ac25f86bd8097206d1720b40d3127f44f4b8/docs/PROGRESS.md>
3. <https://github.com/N0zoM1z0/th05/blob/9df0ac25f86bd8097206d1720b40d3127f44f4b8/docs/ARCHITECTURE.md>

## More in Games

- [th06: an independently matching Touhou 6 decompilation](https://awesomerea.org/resources/cirno-labs-th06-case/index.md) · Case study
- [TH06: reconstructing Japanese 1.02h authored functions](https://awesomerea.org/resources/th06-strict-reconstruction-case/index.md) · Case study
- [th07: reconstructing Touhou 7 retail 1.00b](https://awesomerea.org/resources/cirno-th07-case/index.md) · Case study
- [TH08: exact-source reconstruction and separately tested ports](https://awesomerea.org/resources/th08-reconstruction-case/index.md) · Case study
- [TH095: function-level reconstruction of Shoot the Bullet 1.02a](https://awesomerea.org/resources/th095-reconstruction-case/index.md) · Case study
- [TH10: reconstructing Mountain of Faith 1.00a](https://awesomerea.org/resources/th10-reconstruction-case/index.md) · Case study

## About this entry

The description was reviewed against primary sources.
Original editorial content: MIT. Linked projects, papers and assets retain their own rights and licenses.
