Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 12-17-2020, 04:54
jonwil jonwil is offline
VIP
 
Join Date: Feb 2004
Posts: 347
Rept. Given: 2
Rept. Rcvd 19 Times in 7 Posts
Thanks Given: 1
Thanks Rcvd at 46 Times in 29 Posts
jonwil Reputation: 19
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?
Reply With Quote
  #2  
Old 12-17-2020, 09:08
atom0s's Avatar
atom0s atom0s is offline
Family
 
Join Date: Jan 2015
Location: 127.0.0.1
Posts: 321
Rept. Given: 25
Rept. Rcvd 106 Times in 51 Posts
Thanks Given: 49
Thanks Rcvd at 543 Times in 218 Posts
atom0s Reputation: 100-199 atom0s Reputation: 100-199
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.
__________________
Personal Projects Site: https://atom0s.com
Reply With Quote
  #3  
Old 12-17-2020, 10:14
jonwil jonwil is offline
VIP
 
Join Date: Feb 2004
Posts: 347
Rept. Given: 2
Rept. Rcvd 19 Times in 7 Posts
Thanks Given: 1
Thanks Rcvd at 46 Times in 29 Posts
jonwil Reputation: 19
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)
Reply With Quote
  #4  
Old 12-17-2020, 11:05
atom0s's Avatar
atom0s atom0s is offline
Family
 
Join Date: Jan 2015
Location: 127.0.0.1
Posts: 321
Rept. Given: 25
Rept. Rcvd 106 Times in 51 Posts
Thanks Given: 49
Thanks Rcvd at 543 Times in 218 Posts
atom0s Reputation: 100-199 atom0s Reputation: 100-199
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:
Code:
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.
Attached Files
File Type: rar XexTool_v6.3.rar (209.6 KB, 3 views)
File Type: zip xbox360.zip (8.7 KB, 3 views)
File Type: zip x360_imports.zip (25.9 KB, 3 views)
__________________
Personal Projects Site: https://atom0s.com
Reply With Quote
The Following 2 Users Gave Reputation+1 to atom0s For This Useful Post:
Kurapica (12-17-2020), tonyweb (12-17-2020)
The Following 2 Users Say Thank You to atom0s For This Useful Post:
chants (12-17-2020), niculaita (12-17-2020)
  #5  
Old 12-17-2020, 11:07
atom0s's Avatar
atom0s atom0s is offline
Family
 
Join Date: Jan 2015
Location: 127.0.0.1
Posts: 321
Rept. Given: 25
Rept. Rcvd 106 Times in 51 Posts
Thanks Given: 49
Thanks Rcvd at 543 Times in 218 Posts
atom0s Reputation: 100-199 atom0s Reputation: 100-199
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:
https://i.imgur.com/jMCWNTQ.png

You can also look at the output window in IDA to see what issues may still exist and adjust accordingly.
__________________
Personal Projects Site: https://atom0s.com
Reply With Quote
The Following 2 Users Say Thank You to atom0s For This Useful Post:
chants (12-17-2020), niculaita (12-17-2020)
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
xbox unhackable..? Sabor General Discussion 0 12-12-2005 05:25
XBOX 2 picture leaked ferrari_xtec General Discussion 1 09-18-2004 01:52
Decompile .OBJ files? FEARHQ General Discussion 2 08-12-2003 15:31


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


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX
( 1998 - 2021 )