MCPcopy Index your code
hub / github.com/emoose/xbox-reversing

github.com/emoose/xbox-reversing @stfschk-0.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release stfschk-0.2 ↗ · + Follow
157 symbols 261 edges 8 files 4 documented · 3%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Collection of things to help with reversing that I've made or come across, hopefully others might find these useful!

Feel free to make an issue/PR if you have any problems or improvements.

Contents

xbox360.py & x360_imports.py

(Note: an updated, native DLL version of xbox360.py can be found here: https://github.com/emoose/idaxex)

IDA 7.0+ python loader script for Xbox360 XEX executables, should support loading almost all (uncompressed) XEX formats, including most pre-1888 beta formats.

To make use of it copy both scripts into your IDA loaders/ directory, and make sure your Python2.7 setup has PyCrypto module installed ("pip install pycrypto"...)

This almost has feature-parity with xorloser's excellent Xex Loader, though sadly is missing two major features in comparison: - compressed XEX support: requires an LZX decompressor, doesn't seem to be any native Python2.7 impl. available though (really should have checked before starting this!) - adding to imports window: while we can read & map in all imports from a module fine, there strangely doesn't seem to be any Python API for populating the imports window :(

Since those have pretty major blockers I don't think any more development will be happening to this script, hopefully it might come in handy for anyone wanting to write a proper IDA/Ghidra plugin though :)

templates/

This folder contains templates for use with 010 Editor. Xbox360 related templates were mainly written by Anthony, with some very minor additions by me.

Templates can be installed by opening Options -> Compiling -> Templates, clicking "Add..." and then choosing the template to install, which should make 010 Editor automatically load the template when opening a supported file.

License

All code is licensed under the 3-Clause BSD License unless otherwise stated.

Core symbols most depended-on inside this repo

EndianSwap
called by 52
stfschk/StfsStructs.cs
read_struct
called by 23
xbox360.py
XEX_HEADER_SIZEDSTRUCT
called by 11
xbox360.py
Add
called by 11
stfschk/Utility.cs
Read
called by 9
stfschk/StfsFileSystem.cs
ToString
called by 8
stfschk/StfsFileSystem.cs
EndianSwap
called by 7
stfschk/Utility.cs
XEX_HEADER_ULONG
called by 6
xbox360.py

Shape

Class 61
Method 59
Function 33
Enum 4

Languages

C#58%
Python42%

Modules by API surface

xbox360.py54 symbols
stfschk/StfsStructs.cs33 symbols
stfschk/Utility.cs26 symbols
stfschk/StfsFileSystem.cs18 symbols
x360_imports.py12 symbols
stfschk/XboxStructs.cs7 symbols
stfschk/Program.cs4 symbols
stfschk/XeCrypt.cs3 symbols

For agents

$ claude mcp add xbox-reversing \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page