About decrypting CIA files...

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by ultimatetemper, Feb 8, 2015.

  1. ultimatetemper
    OP

    ultimatetemper GBAtemp Fan

    Member
    312
    53
    Dec 30, 2010
    1- Is it possible?
    2- If it's possible, how can I get, for example, the music from a CIA rom?

    Please guide me.
     
  2. liomajor

    liomajor GBAtemp Maniac

    Member
    1,463
    1,065
    Jun 10, 2008
    United States
    If the cia is installed, you can decrypt the files like you would normaly do using SDinfo_gen.py fetching their xorpads.

    example:
    1. padxorer 00000020.app title.0004008c.00009800.content.00000000.00000020.app.xorpad >> 00000020.app.out
    2. ctrtool --romfsdir=romfs 00000020.app.out

    Usualy Music is .bcstm >> https://gbatemp.net/threads/release-every-file-explorer.373615/

    Save it as .wav ^_^
     
  3. ultimatetemper
    OP

    ultimatetemper GBAtemp Fan

    Member
    312
    53
    Dec 30, 2010
    I don't have the CIA installed.
    How can I decrypt then?
     
  4. liomajor

    liomajor GBAtemp Maniac

    Member
    1,463
    1,065
    Jun 10, 2008
    United States
    Depends, if the cia was generated from .3ds, you can try "makerom -ciatocci <name_of_cia>.cia"

    If its from funkycia, makerom will fail to do this, you need to create xorpads to get romfs after installing it!
     
  5. Duo8

    Duo8 I don't like video games

    Member
    3,444
    1,144
    Jul 16, 2013
    If it's a converted CIA then usually those are decrypted.

    If not then extract the ncch then use the decryptor.
     
  6. ultimatetemper
    OP

    ultimatetemper GBAtemp Fan

    Member
    312
    53
    Dec 30, 2010
    Makerom worked, what should I do now?
     
  7. liomajor

    liomajor GBAtemp Maniac

    Member
    1,463
    1,065
    Jun 10, 2008
    United States
    As Duo8 said, the cia you are using is already decrypted - if its encrypted, makerom would have failed!

    1. ctrtool -p --romfs=decrypted_romfs.bin <your_cci>
    2. ctrtool --romfsdir=romfs decrypted_romfs.bin
     
    I pwned U! likes this.
  8. ultimatetemper
    OP

    ultimatetemper GBAtemp Fan

    Member
    312
    53
    Dec 30, 2010
    Thanks all!
    Problem solved.
    BTW this method doesn't seem to work with 4GB CIA's (like Bravely Default). How can I extract the music from 4GB CIAs
     
    OctopusRift likes this.
  9. urherenow

    urherenow GBAtemp Psycho!

    Member
    3,058
    916
    Mar 8, 2009
    United States
    Japan
    using the SD utility on O3DS locks up rxtools, even with NTR loaded. It works as it does on N3DS if I use Gateway. I heard that you could rebuild the .cia somehow to make it work under rxtools. Does anybobdy know the steps to do this?