{
  "added_at": "2026-11-08",
  "additional_evidence_urls": [
    "https://github.com/Cirno-Labs/th06/blob/c7bcab1f81a04169c23f8a700b5ae9ed8a858388/orig/README.md",
    "https://github.com/Cirno-Labs/th06/blob/c7bcab1f81a04169c23f8a700b5ae9ed8a858388/docs/exe-parity.md"
  ],
  "category": "reconstruction-cases",
  "class": "game",
  "description_en": "th06 reconstructs C++ source for Touhou 6: Embodiment of Scarlet Devil retail version 1.02h from the original executable. The workflow uses headless Ghidra analysis, the original MSVC and DirectX toolchain under Wine, and byte comparisons of functions and the whole executable. The author reports that all 511 game functions and the rebuilt executable match the original, with replay traces compared separately.",
  "description_zh": "th06 从《东方红魔乡》零售版 1.02h 的原始可执行文件重建 C++ 源码。流程使用无界面 Ghidra 分析、Wine 下的原版 MSVC 与 DirectX 工具链，并逐字节比对函数及完整可执行文件。作者报告称，511 个游戏函数和重建的可执行文件均与原版匹配，并单独比较游戏回放的运行轨迹。",
  "entry_url": "https://awesomerea.org/resources/cirno-labs-th06-case/",
  "entry_url_zh": "https://awesomerea.org/zh/resources/cirno-labs-th06-case/",
  "evidence_class": 2,
  "evidence_status": "observed",
  "evidence_url": "https://github.com/Cirno-Labs/th06/blob/c7bcab1f81a04169c23f8a700b5ae9ed8a858388/README.md",
  "group": "cases",
  "id": "cirno-labs-th06-case",
  "json_url": "https://awesomerea.org/resources/cirno-labs-th06-case/record.json",
  "kind": "case-study",
  "markdown_url": "https://awesomerea.org/resources/cirno-labs-th06-case/index.md",
  "markdown_url_zh": "https://awesomerea.org/zh/resources/cirno-labs-th06-case/index.md",
  "name": "th06: an independently matching Touhou 6 decompilation",
  "name_zh": "th06：独立完成的《东方红魔乡》匹配反编译",
  "reconstruction_method": "matching-decompilation",
  "record_type": "resource",
  "relationship": "independent-reconstruction",
  "requirement_facets": [
    "prerequisites",
    "prerequisites",
    "prerequisites",
    "license"
  ],
  "requirements": [
    "Requires the user's own retail Touhou 6 files updated to version 1.02h.",
    "Building requires Wine, Python 3, just, binutils, 7-Zip, Visual C++ .NET 2002, Windows XP SP2 Platform SDK, and DirectX 8.0 SDK.",
    "Replay checks additionally require Xvfb, xdotool, ImageMagick, 32-bit Mesa, and the ja_JP.UTF-8 locale.",
    "GPL-3.0-only licence for the project source."
  ],
  "requirements_zh": [
    "需要使用者自己的《东方红魔乡》零售版文件，并更新至 1.02h。",
    "构建需要 Wine、Python 3、just、binutils、7-Zip、Visual C++ .NET 2002、Windows XP SP2 Platform SDK 和 DirectX 8.0 SDK。",
    "录像检查还需要 Xvfb、xdotool、ImageMagick、32 位 Mesa 和 ja_JP.UTF-8 语言环境。",
    "项目源码采用 GPL-3.0-only 许可证。"
  ],
  "scope": "unknown",
  "targets": [
    "game"
  ],
  "url": "https://github.com/Cirno-Labs/th06",
  "verification": "source-reviewed",
  "verified_at": "2026-11-06"
}
