Nintendo Switch Mii Maker .bin.cmp

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
CosmicDreams
Posts: 100
Joined: Thu Sep 13, 2018 6:38 pm

Nintendo Switch Mii Maker .bin.cmp

Post by CosmicDreams »

Don't think anyone has looked into this yet.
https://cdn.discordapp.com/attachments/419711036837330956/622119037429874718/archive.zip
Here's all the .bin.cmp files from the "archive" directory of the mii maker nca.
LolHacksRule
Posts: 865
Joined: Fri Apr 20, 2018 12:41 am

Re: Nintendo Switch Mii Maker .bin.cmp

Post by LolHacksRule »

I think you can open these in Switch Toolbox... They are compressed with ZCMP (zlib compression).
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Nintendo Switch Mii Maker .bin.cmp

Post by Ekey »

A slightly modified script for decompress these files.

Code: Select all

# Amiibo
# script for QuickBMS http://quickbms.aluigi.org

get NAME basename
getdstring SIGN 4
if SIGN u== "ZCMP"
    get DUMMY short
    idstring "\x34\x12"
    get VER long
    get ZERO long
    get SIZE long
    get ZSIZE asize
    math OFFSET = 0x80
    math ZSIZE - OFFSET
    clog NAME OFFSET ZSIZE SIZE
    set EXT extension NAME
    if EXT != "cbarc"
        cleanexit
    endif
    open "." NAME
    set NAME basename NAME
endif

string NAME + /
goto 0
idstring "CA01"
get FILES long
get BASE_OFF long
for i = 0 < FILES
    get OFFSET[i] long
next i
for i = 0 < FILES
    get SIZE long
    math OFFSET[i] + BASE_OFF
    log NAME OFFSET[i] SIZE
next i

print "Uuse http://aluigi.org/bms/splatoon_sarc.bms with the extracted SAR files"
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Nintendo Switch Mii Maker .bin.cmp

Post by aluigi »

Script 0.1.1 for guessing the correct endianess