Page 1 of 4
Xbox shrinking tool needed
Posted: Sun Jul 07, 2019 2:40 pm
by Jackal
Are there any coders who could have a look at this?
http://xboxdevwiki.net/XDVDFS#Random_blocks
https://github.com/JayFoxRox/xbox-dvd-compress
It would be great to have a tool developed similar to nNASOS for dramatically reducing the compressed size of Xbox images (by scrubbing the random padding and allowing it to be regenerated)
Re: Xbox shrinking tool needed
Posted: Sun Jul 07, 2019 2:51 pm
by Sniik
Jackal wrote:Are there any coders who could have a look at this?
http://xboxdevwiki.net/XDVDFS#Random_blocks
It would be great to have a tool developed similar to nNASOS for dramatically reducing the compressed size of Xbox images (by scrubbing the random padding and allowing it to be regenerated)
Yeah I would like to. Is this known to be correct?
Re: Xbox shrinking tool needed
Posted: Mon Jul 08, 2019 9:53 am
by LedZeppelin68
great, thanks for the link, very interesting for research
will take a look after figuring out the 3ds decryption
Re: Xbox shrinking tool needed
Posted: Wed Jul 10, 2019 4:15 am
by LedZeppelin68
It works!
https://pastebin.com/vfC9GSLX
Tested it with the game from the example and known seed
Compressed size of archive 65 mb, against 6.4Gb with "garbage"
Great, Jackal, thanks for the info!
Re: Xbox shrinking tool needed
Posted: Wed Jul 10, 2019 7:53 am
by LedZeppelin68
OK, test it on "Petit Copter (Japan).iso"
2 executables
1) xbox_dernd.exe - derandomizer
like "nasos deux", it doesn't change the structure of the file, just replaces "random data block" with block full of "JUNK", it is like zeroing but it serves as a mark
you will get a file called "Petit Copter (Japan).f401863e.iso"
f401863e is a seed for the random generator
2) xboxRegen.exe - regenerator of random data
replaces blocks full of "JUNK" with random data blocks, generated by using seed number
xbox_dernd is tweaked to be compatible with the Petit Copter for test purpose
the tweak is, that it bruteforces only 1/16 part of full range
from 0xf0000000 to 0xffffffff (f401863e)
to speed up the test process, it tooks about 8 seconds on my rig
brutforcing the full range will took about 8 minutes
P.S. 7zipped iso is 48,7 Mb
Re: Xbox shrinking tool needed
Posted: Wed Jul 10, 2019 10:15 am
by wiggy2k
wow, nice work, that does work really quickly too.
That's a massive space saving.
Re: Xbox shrinking tool needed
Posted: Wed Jul 10, 2019 11:10 am
by retaliator
Great work, keep on saving me a loooooot of space on my rigs!

Re: Xbox shrinking tool needed
Posted: Wed Jul 10, 2019 12:09 pm
by Jackal
Hi,
great job! 3 questions:
- Is there only 1 seed value for the entire disc? So it shouldn't take long to brute force every disc once they are supported?
- Does nNASOS also fill with "JUNK" pattern, or something else?
- I tried 2 random games (Crimson Skies - High Road to Revenge (USA) (En,Fr,De,Zh,Ko) + Tony Hawk's Pro Skater 2x (USA) ), but it couldn't find a seed value. So just this 1 game is supported for now?
Re: Xbox shrinking tool needed
Posted: Wed Jul 10, 2019 12:51 pm
by LedZeppelin68
Hello!
1) 1 seed value for entire disc, since current tool uses only one thread brutrforcing takes around 8 minutes on modern PC, I'll try to speed it up
2) I cannot tell for sure about nNASOS, if it uses the first version of NASOS, no it fills garbage blocks with zeroes and should have header block with marks which block uses garbage padding.
NASOS deux replaces garbage with "JUNK", and the image is playable in emulator
/viewtopic.php?t=13218
3) Yes, this version supporting one game only
Re: Xbox shrinking tool needed
Posted: Wed Jul 10, 2019 12:56 pm
by LedZeppelin68
this is time taken to brute the seed value for "Silent Hill 2 - Inner Fears (Europe) (En,Ja,Fr,De,Es,It).iso"