Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Super Smash Bros. Crusade (.BIN)

Featured Replies

  • Author
  • Localization

Mario123311, posted Sat Jan 23, 2016 7:17 pm (10992)


The fangame Super Smash Bros. crusade has since put this weird format on the games resources as ".BIN". I haven't really found a good way to crack it though but if it's safe to ask, is it possible to do so by any chance? If this shouldn't be asked about though feel free to lock I guess.
  • Author
  • Localization

aluigi, posted Sat Jan 30, 2016 9:43 pm (11142)


No idea about that file. The nintendo decompression doesn't work on it.
  • Author
  • Localization

Mario123311, posted Sat Jan 30, 2016 9:53 pm (11143)


It's not exactly an offical Nintendo game though. Basically a fangame. I dunno what compression they used.
  • Author
  • Localization

aluigi, posted Sat Jan 30, 2016 10:54 pm (11144)


Ah ok.
Well, basically these bin archives are xored with the key "runaway_horses_take_us_through_the_night" and then decompressed by the HuffDecompress(input_file_path, output_file_path) function of PAK_File.dll

I don't have that algorithm in quickbms so I guess the only option is writing a script that calls the function of the dll.
I will keep you update.
  • Author
  • Localization

Mario123311, posted Sat Jan 30, 2016 11:13 pm (11146)


Really nice. Thanks. :3 I'll probably ask how to repack them some other time. But for now I think things are settled. Much obliged.



Just tell me whenever how I recompile this back to a .BIN I guess so I can test my changes ingame.
  • Author
  • Localization

aluigi, posted Sun Jan 31, 2016 11:12 am (11151)


PAK_File.dll contains all the functions to do everything you desire with the bin archives.
You need to know a bit of programming and reverse engineering (to find the arguments of the exported functions) to use it:
Code:
Name            Address  Ordinal     
----            -------  -------     
SaveToFile      00413EB4 1           
AddFromFile     00413E1C 2           
GetFileSize     00413DB8 3           
SetFileContents 00413D5C 4           
GetFileContents 00413CAC 5           
GetFileIndex    00413BE8 6           
GetFileCount    00413BB8 7           
DeleteFile      00413B4C 8           
RenameFile      00413AC8 9           
AddFile         00413A44 10         
SavePAK         004139D8 11         
LoadPAK         0041396C 12         
Reset           00413930 13         
_Free           00413914 14         
_Init           004138E4 15         
HuffDecompress  0041385C 16         
HuffCompress    004137CC 17         
XORCrypt        0041370C 18         
DllEntryPoint   00413FF8 [main entry]

Personally I'm not interested, but it should be an easy job if someone is interested.

The alternative is using the reimport feature of quickbms in 3 steps:
  • reimport
  • HuffCompress
  • xor

If you want to try it do the following:
  • use the original script to extract the files of one bin archive (for example pacman.bin)
  • do NOT delete temp.bin
  • use reimport.bat selecting the script 1 you see below and selecting temp.bin and the sub-folder where have been extracted the files (for example inside the \pacman\ folder)
  • use script 2 on temp.bin
  • it will generate a new file called output.bin
I have tested it here and it works.

SCRIPT 1 to use in REIMPORT mode on temp.bin and the extraction sub-folder
Code:
# USE reimport.bat!
idstring "PACK"
get OFFSET long
get FILES long
math FILES / 0x40
goto OFFSET
for i = 0 < FILES
    getdstring NAME 0x38
    get OFFSET long
    get SIZE long
    log NAME OFFSET SIZE
next i


SCRIPT 2 to use on temp.bin, you muse have PAK_File.dll in the same folder of quickbms:
Code:
# do NOT use reimport.bat!
get NAME filename
CallDLL "PAK_File.dll" "HuffCompress" __stdcall RET NAME TEMPORARY_FILE

open "." TEMPORARY_FILE
get SIZE asize
log TEMPORARY_FILE 0 SIZE
encryption xor "runaway_horses_take_us_through_the_night"
log "output.bin" 0 SIZE
encryption "" ""


Usage example from command-line covering extraction and the 2 steps explained now:
Code:
quickbms super_smash_bros_crusade.bms z:\pacman.bin z:\folder
quickbms -w -r 1.bms Z:\folder\temp.bin Z:\folder\pacman
quickbms 2.bms Z:\folder\temp.bin Z:\folder
  • Author
  • Localization

Mario123311, posted Sun Jan 31, 2016 4:11 pm (11154)


Thanks, Just wondering though: Where can I get those 3 scripts compiled though? Sorry if I'm asking a lot, if you want I can just do it myself somehow I guess.
  • Author
  • Localization

aluigi, posted Sun Jan 31, 2016 6:05 pm (11155)


What you mean?
They are quickbms scripts...
  • Author
  • Localization

Mario123311, posted Sun Jan 31, 2016 6:43 pm (11156)


Having a bit of trouble. I'm not getting an "output.bin"

Edit: Never mind, Figured out.
  • Author
  • Localization

bigfatidiot, posted Sun May 26, 2019 1:04 am (48027)


When I use the BMS script posted by Aluigi. I don't get an output file, I get a "temporary file". what do I do with that?
  • Author
  • Localization

bigfatidiot, posted Sun May 26, 2019 2:16 pm (48055)


Thank you
  • Author
  • Localization

bigfatidiot, posted Tue May 28, 2019 7:12 pm (48084)


i'm having the same issue. Should I make a new thread about it or should I post here, Aluigi
  • Author
  • Localization

bigfatidiot, posted Tue May 28, 2019 11:06 pm (48089)


Now I didn't make this, A luigi did. EVery time I use it the cmd closes and it gives me a temporary file and some kind of .bin file but it does not extract them, rather it just crashes. Can Aluigi fix this?

super_smash_bros_crusade.bms

  • Author
  • Localization

aluigi, posted Sat Jun 01, 2019 7:56 pm (48237)


Maybe the encryption key is changed, don't know just guessing.
  • Author
  • Localization

bigfatidiot, posted Sun Jun 02, 2019 6:24 pm (48360)


Is there a possible way to fix this?
  • Author
  • Localization

aluigi, posted Mon Jun 03, 2019 12:29 pm (48383)


Not without the required information (keys, formats, whatever)
  • Author
  • Localization

bigfatidiot, posted Fri Jun 07, 2019 1:42 am (48558)


aluigi wrote:
Not without the required information (keys, formats, whatever)

How would a link to the game do? Its completely free so no worries on that,
  • Author
  • Localization

aluigi, posted Wed Jun 12, 2019 2:53 pm (48716)


Still remains the problem of finding someone interested in working on it
  • Author
  • Localization

P-Up, posted Wed Aug 21, 2019 8:29 pm (50398)


In the latest update to the game, which is 0.9.2, I was able to create a temp.bin and a "TEMPORARY FILE" with the BMS script that we used previously. Unlike to what SUP3RBOB had happen, mine never crashed.
  • Author
  • Localization

Bonkos, posted Sat Sep 07, 2019 11:32 pm (50632)


Did you figure out how to edit it?
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.