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

Platform:Xbox

From ReverseEngineering.wiki
Platform
Vendor Microsoft
On this wiki Facts · Code · Notes · Topics

Microsoft's first console (2001): a 32-bit x86 PC-like machine running a cut-down NT kernel; games are XBE executables on XDVDFS discs, linked against the XDK libraries and importing the kernel through a thunk table.

Overview

The original Xbox is x86 hardware with an NVIDIA NV2A GPU: the xemu emulator (GPL-2.0) models it as an x86 machine whose default CPU type is pentium3 (hw/xbox/xbox.c) with an NV2A device in hw/xbox/nv2a/ (commit 2de2c2228d). Unverified: the NT-derived kernel (xboxkrnl) is general knowledge, not checked in a source for this page. Programs are not PE files: the build tool links a normal PE, then converts it to an Format:XBE (Xbox executable). Discs use Format:XDVDFS (Xbox disc filesystem); the same filesystem family is used (with other media layouts) by Platform:Xbox 360.

Identifying a binary

  • File starts with XBEH (see the XBE page for the header offsets).
  • The library versions table inside the XBE names the XDK libraries (kernel, XAPI, D3D8, DSOUND, C runtime) and their build numbers, which dates the SDK used. The XBE header has dedicated pointers to the kernel and XAPI library records (nxdk tools/cxbe/Xbe.h); the library names D3D8 and DSOUND (and also XAPILIB, XACTENG, XGRAPHC, XNET and XONLINE) are the library names the XbSymbolDatabase project matches in that table (include/libXbSymbolDatabase.h, commit 20eced5447). Unverified: the C runtime library name is not among those constants and was not checked.
  • Kernel calls go through a thunk table of ordinals; there are no named imports.

Open-source references

  • Homebrew uses the nxdk toolchain; its tools/cxbe converts PE to XBE and documents the header structures (GPL-2.0-or-later).
  • xemu is an emulator for this console (it contains hw/xbox/xbox.c, "QEMU Xbox System Emulator"); it is a QEMU fork under the GNU GPL version 2 (COPYING and LICENSE at commit 2de2c2228d: source files without their own notice are GPL-2.0-or-later).

Code & repositories

  • https://github.com/XboxDev/nxdk @ 14d5ee97e73347c973f1f57b68b79ec08c9e77f2 · license: MIT AND GPL-2.0-or-later (declared by the contributor; GitHub's detector did not recognize a license file)
    Open Xbox homebrew toolchain (mixed licenses; tools/cxbe is GPL-2.0-or-later); tools/cxbe/Xbe.h documents the XBE header, certificate, section and library version structures
    Tested on: source read, not run: source reading only · checked 2026-10-18; last activity 2026-09-30
  • https://github.com/Cxbx-Reloaded/Cxbx-Reloaded @ 585c49a50af1255ab155099e06f24505f9c5a800 · license: GPL-2.0-only (declared by the contributor for the files used; GitHub reports GPL-2.0 for the repository)
    Xbox emulator; src/common/xbe/Xbe.h has the XBE structures, flags and XOR keys incl. Chihiro
    Tested on: source read, not run · checked 2026-10-19; last activity 2026-04-19
  • https://github.com/xemu-project/xemu @ 2de2c2228df8669ff244f9137c75974e6927f43e · license: GPL-2.0-only (declared by the contributor; GitHub's detector did not recognize COPYING)
    Xbox emulator; xemu-xbe.c reads the XBE header of the running title from guest memory
    Tested on: source read, not run · checked 2026-10-19; last activity 2026-10-19; Note: the latest release ships binaries; the wiki links only the source, never the binaries

See also

Platform:Xbox 360 (different CPU, different executable format, no binary compatibility).