zeroKilo / XEXLoaderWV

Ghidra Loader Module for X360 XEX Files
113 stars 13 forks source link

Compressed xex (Minecraft) fails to open #21

Closed Margen67 closed 3 months ago

Margen67 commented 1 year ago

Compressed xex like Minecraft fail to open unless I remove the compression using xextool: image

zeroKilo commented 1 year ago

hi, im not at home until next wednesday, before I can't look into that, any suggestions for code changes are welcome :) greetz WV

syndiate commented 4 months ago

If anyone else is having trouble with this, run this command: xextool -e d -c u default.xex To unencrypt and uncompress the xex file for usage with Ghidra @zeroKilo I know you can run executable files in a Java program, but can you run them in a Ghidra extension? If so, you may want to add xextool commands and such like the one I put above.

zeroKilo commented 4 months ago

well to be honest I rather implement the proper loading myself, im just low on time. my whole plugin is essentially an open source version of a tool like xextool just not for converting but loading into ghidra. if you can send me an example xex file that fail then I have something to work with. all my xex files work sofar

syndiate commented 4 months ago

@zeroKilo By an xex file that fails do you mean that's already unencrypted and uncompressed?

zeroKilo commented 4 months ago

Any that fails to get loaded by my plugin, very simply

syndiate commented 4 months ago

@zeroKilo https://archive.org/details/minecraft-xbox-360-edition-base-game Download this XBLA file, extract default.xex from it, and put it through your tool, it fails because the xex is encrypted and compressed

zeroKilo commented 4 months ago

alright, I will take a look this week hopefully (very busy atm)

zeroKilo commented 4 months ago

alright, this took me a while to find but it was a simple signed/unsigned problem, so I fixed the bug and it can load the xex file now.

https://github.com/zeroKilo/XEXLoaderWV/commit/7b2f7d46dd2d29bda50f708cf9a8576aafd88291

https://github.com/zeroKilo/XEXLoaderWV/releases/tag/11.1.1

please close this ticket if you have no further problems with loading xex files

avachon100510 commented 4 months ago

I am attempting to open the .xexp file, but I get this error: image

avachon100510 commented 4 months ago

And yes, I am using the newest patch.

avachon100510 commented 4 months ago

Okay, never mind, clearly I did something wrong on my end.

avachon100510 commented 4 months ago

God damn it, the error still occurs even if I uncompressed and uncrypted the .xex file with XeXTool 6.3... image

zeroKilo commented 4 months ago

yeah, tell me some xex doesnt work but dont ever link it, so I could possibly fix anything. did you even use the new release?

avachon100510 commented 4 months ago

Well, it looks like I did something wrong indeed. It works as intended now, it was me who did an oopsie. Yes, I did use the new release.