how to disassemble firmware

Discussion in '3DS - Flashcards & Custom Firmwares' started by electricarrows0, Feb 7, 2016.

  1. electricarrows0
    OP

    electricarrows0 Member

    Newcomer
    24
    4
    Jan 8, 2016
    United States
    how to disassemble or decompile firmware, i'm planning on trying to make custom firmware as a project [Edit i accidentally posted in the wrong topic now i can't change it]
     
    Last edited by electricarrows0, Feb 7, 2016
  2. dark_samus3

    dark_samus3 GBAtemp Addict

    Member
    2,314
    1,712
    May 30, 2015
    United States
    First, report your post and have the reason be moving it to the CFW section... Anyways you need a disassembler (like IDA or something) and you need to split the FIRM into arm11 kernel, arm9 kernel, process9 and there's one other thing I think... Then disassemble each of them with the disassembler
     
    Last edited by dark_samus3, Feb 7, 2016
  3. electricarrows0
    OP

    electricarrows0 Member

    Newcomer
    24
    4
    Jan 8, 2016
    United States
    is that how you disassemble it, i tried using devkitarm and it said it did not know the format, or was i using the wrong thing its called objdump and its the devkitarm version
     
  4. dark_samus3

    dark_samus3 GBAtemp Addict

    Member
    2,314
    1,712
    May 30, 2015
    United States
    You probably aren't going to get much from devkitarm, you might get some good info from objdump but first you need to decrypt your FIRM (assuming you're using N3DS FIRM) then you need to separate it and then you'll be able to run it through
     
  5. electricarrows0
    OP

    electricarrows0 Member

    Newcomer
    24
    4
    Jan 8, 2016
    United States
    i have to decrypt it?? anyway i guess i do have to decrypt it, now i guess i have to decrypt it, what decryption software can i use?
     
  6. dark_samus3

    dark_samus3 GBAtemp Addict

    Member
    2,314
    1,712
    May 30, 2015
    United States
    Decrypt9 can usually do it but not for N3DS FIRM yet... You might have to do a bit of messing around, the key is an AES-ECB key with slot0x11key96.bin being the file with the key stored in it
     
  7. Shadowtrance

    Shadowtrance GBAtemp Addict

    Member
    2,482
    1,515
    May 9, 2014
    Hervey Bay, Queensland
    Disassemble it to what end? What exactly do you want to DO with it?
    And to decrypt it use Decrypt9. https://gbatemp.net/threads/download-decrypt9-open-source-decryption-tools-wip.388831/

    Umm pretty sure it can do n3ds firm too, no reason it can't afaik.
     
  8. dark_samus3

    dark_samus3 GBAtemp Addict

    Member
    2,314
    1,712
    May 30, 2015
    United States
    Not dumping the FIRM partition, that's easily possible, but the same reason emuNAND wasn't possible for so long is why he can't just get an XORpad, decrypt it and pop it into a disassembler... Which is possible with an O3DS mind you ;)
     
  9. zoogie

    zoogie simple pimp tool

    Member
    6,247
    7,915
    Nov 30, 2014
    United States
    If you have to ask these questions, you're years away from writing a cfw.
     
    Zidapi and ihaveamac like this.
  10. electricarrows0
    OP

    electricarrows0 Member

    Newcomer
    24
    4
    Jan 8, 2016
    United States
    i want to make it where it can run through the system updater and modify it and reassemble it and then reencrypt it again and then see if it works and then have custom firmware released all basically and install it by changing dns servers to custom and update and get it from the computer and have custom firmware if i can recompile it exactly the same
     
  11. Shadowtrance

    Shadowtrance GBAtemp Addict

    Member
    2,482
    1,515
    May 9, 2014
    Hervey Bay, Queensland
    I call BS as I'm pretty damn sure I've decrypted the n3ds firm before... :P
     
  12. dark_samus3

    dark_samus3 GBAtemp Addict

    Member
    2,314
    1,712
    May 30, 2015
    United States
    Well that's something you'd do to the system titles, not the firmware... And it's really not that simple

    — Posts automatically merged - Please don't double post! —

    Maybe <9.6 FIRM, sure I'll buy that but not >9.5
     
  13. electricarrows0
    OP

    electricarrows0 Member

    Newcomer
    24
    4
    Jan 8, 2016
    United States
    i know i should of asked first

    — Posts automatically merged - Please don't double post! —

    i might still try

    — Posts automatically merged - Please don't double post! —

    you mean there's other things nintendo put in to make it harder to do right?