A file having .xbe extension is an executable application from an Xbox video game disc. The XBE files are the main files that are executed in the Xbox System and are not supposed to be opened typically on a computer, but it can be opened on a PC using an Xbox emulation program. These files are usually created by game developers, and then signed by Microsoft. The file structure is similar to the Windows PE files, but some important changes according to the XBox settings are applied to make it runnable at XBox.
XBE file format
The XBE file is composed of an image header, a collection of section headers, a certificate, thread local storage data, a collection of library versions, Microsoft bitmap, and the sections that contain the code and resources.
The image header comprises the information that explains where the other components of the executable are located within the file, and how the runnable should be treated and loaded.
The TLS Table consists of all the information needed by the XBE to properly set up thread-local storage. It is basically unique to the TLS Directory found in PE32 files, and can be directly copied from there. This table may be omitted, if the XBE file does not use any thread-local storage, and the respective field in the image header set to zero.
Raw Data Start
Absolute (i.e. not an RVA) address of start of the TLS variable data in the program image.
Raw Data End
Absolute (i.e. not an RVA) address of end of the TLS variable data in the program image.
Address of Index
Absolute (i.e. not an RVA) address of the TLS Index variable.
Address of Callbacks
Absolute (i.e. not an RVA) address of the null-terminated TLS callback functions table.
Size of Zero Fill
The number of bytes following the raw data that should be set to zero in memory.
A a certificate is mandatory for each Xbox executable that contains information about the titles:
Time and date when the certificate was created
Alternative title IDs
Allowed types of media that the executable can be run from (HD, DVD, CD, etc.)
LAN key raw data used for System Link
Signature key raw data (used to sign savegames)
Alternate signature keys
Original size of the certificate
Online service name (not present in early executables)
Run time security flags (not present in early executables)
Allowed media types
Media types which are allowed by the executable to be run from. The following values are known:
The sections are expressed by the section headers. The section headers start right after the certificate and contain information where in the file the actual sections exists. At least two sections are always present in an Xbox executable: