Exetools (https://forum.exetools.com/index.php)
-   General Discussion (https://forum.exetools.com/forumdisplay.php?f=2)
-   -   How to decompile xbox 360 exe files? (https://forum.exetools.com/showthread.php?t=19724)

jonwil 12-17-2020 04:54

How to decompile xbox 360 exe files?
I have the new IDA with the ppc decompiler and I have an XBOX 360 exe file (a .exe rather than a .xbe if that makes a difference) with a matching PDB.

How do I get the exe file and pdb into IDA in a form that I can then disassemble with the PPC decompiler?

atom0s 12-17-2020 09:08

Is it a .xex file which is normally what the Xbox uses?
If it is, is it protected as a .xex.slc?

Would need more info on the file itself/see the file to tell if it's protected/valid.

jonwil 12-17-2020 10:14

https://mega.nz/file/T9lRSa4S#5BZqR-IpIyb04PHH3vWQo990AiFZrdtJKMUUXCyaIYQ is the binary file I am working with along with the matching PDB (how and where it came from I don't know, I just want to be able to load both the exe and pdb into IDA and then decompile stuff with the IDA PPC decompiler)

atom0s 12-17-2020 11:05

3 Attachment(s)
Ok for this, the xex is compressed, so you need to decompress it first.
Attached to this post is xextool v6.3. (use with caution, no idea if its trusted/safe, I use it in a VM)

Put xextool and the exe you supplied in the same folder, open command prompt and run:

xextool.exe -c u SpeedMilestoneOpt-enUS.exe
This will decrypt/decompress the file.

Next, use the attached python scripts for IDA which are loaders. Place the .py's inside of <Path to IDA>/loaders/

These scripts are the old idaxex version before it was turned into a plugin. (However, the plugin does not work/support the 32bit version of IDA.) I've modded this script to work with IDA 7.5 (Python 3.9.x).

You should see the option to run the file with the Python script as the loader now in IDA. Let that run and then you should be able to apply the .pdb after it loads.

atom0s 12-17-2020 11:07

Also, you may get a warning/error trying to run the decompiler complaining about compiler configurations. To fix that:

- Open IDA.exe (not the 64bit exe)
- Open the Xbox .xex image.
- Go to Options -> Compiler...

Adjust the settings such as:

You can also look at the output window in IDA to see what issues may still exist and adjust accordingly.

All times are GMT +8. The time now is 13:06.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX