ROM Hack How do I disassemble 3ds games with Ghidra

Sammyueru

Member
OP
Newcomer
Joined
Apr 4, 2021
Messages
12
Trophies
0
Age
43
XP
33
Country
United States
I was wondering how I would disassemble a 3DS game (Pokemon X to be more specific even though I don't think that matters) with Ghidra. Also if I have to do it with something else (that's not paid for) then that's fine with me too.
Thanks in advance.
 

BinaryGears

Member
Newcomer
Joined
Dec 23, 2021
Messages
7
Trophies
0
Age
30
XP
61
Country
United States
It looks like there is a loader, an open-source one, that is supposed to work for 3ds that is located on github; I have not used the loader or have any experience in reverse engineering 3ds games so I am not sure if it really does work. I have not done much with ARM assembly but a quick search turns up that the 3ds uses an ARM11 or some variation of it. I know Ghidra has some ARM support but I don't know how well it supports that version of ARM processor.

Have you tried opening up your binary with Ghidra to see what happens?

Assuming you open it up and can get some form of disassembly, you would have to know more about the internals of a 3ds I would assume. The function calls and various other parts of the code will be hard to read as it especially without knowing much about the 3ds OS and hardware. I would look to the homebrew scene for this console, as well as reverse engineering docs or any docs in general that might lend to a better understanding of how the console works. You could possibly find some homebrew game that is open source, this would be a pretty big win because you could compare the source to the de-compiled code and also learn more about the internals of the system at the same time.

It depends on what you want to do with the disassembly what you will do from there, look to the disassembly of OOT for the N64. I am not sure how many people worked on it but it took a while and a lot of tools to accomplish porting the code to a readable and ready to compile version of C.
 
General chit-chat
Help Users
  • Jayro @ Jayro:
    We need more progressive fireballs like AOC in politics, she handled that heckler like a champ.
  • K3N1 @ K3N1:
    Yeah I was hoping she'd go full on WWE cause I'm that violent
  • FAST6191 @ FAST6191:
    Fireballs are fun but I prefer competence and skill
  • FAST6191 @ FAST6191:
    if we can have economic literacy, decency and respect for rights then so much the better but that is asking too much.
  • Xzi @ Xzi:
    Even if AOC had gone straight from being a bartender to running for president, she would've been preferable to the last two guys we elected
  • Sonic Angel Knight @ Sonic Angel Knight:
    Is saturday Spaghetti night? :P
  • SylverReZ @ SylverReZ:
    @Jayro, Happy birthday! :hrth:
  • Psionic Roshambo @ Psionic Roshambo:
    And the rich get richer lol
  • Psionic Roshambo @ Psionic Roshambo:
    Selling my house have an inheritance coming, new job that pays like 100K a year lol
  • K3N1 @ K3N1:
    Go give homeless people $20 and shove a camera in their face while you do it you caring dick :angry:
  • Psionic Roshambo @ Psionic Roshambo:
    Lol no they will buy food or something lol
  • K3N1 @ K3N1:
    Every homeless McDonald's has a drive thru with 30% ABV sprite
  • Veho @ Veho:
    I gave this homeless guy $5 and an old lady behind me told me he's just going to use it for drugs, so I confronted him and asked where I could also get drugs for $5
  • Veho @ Veho:
    The leading expert on drug abuse and drug rehabilitation in our country recently said in an interview that IT people and developers are all on cocaine (statistics have shown). So I thought I could score some, but apparently none of my coworkers or my wife's coworkers or our friends and their coworkers are on cocaine and don't know where to get some primo shit. Which leads me to believe the statistic is somewhat skewed.
  • Veho @ Veho:
    Turns out all the cocaine is actually consumed by one single guy and he's messing up the averages.
  • Veho @ Veho:
    Both in cocaine use, and in the KPI.
  • Veho @ Veho:
    "Why can't you be more like Mike, he solved 1024 tickets today, the rest of you struggle with 50."
  • Veho @ Veho:
    "Why can't Mike be more like a human being and not a walking brick of cocaine?"
  • Veho @ Veho:
    Mike be like...
  • K3N1 @ K3N1:
    Xanax is a bit better than coke but gotta murder a few doctors before they actually give it to you over here
  • K3N1 @ K3N1:
    Oh public freak outs? Take this in two to three months you should notice a difference
  • Veho @ Veho:
    Xanax is the opposite of what I need.
  • K3N1 @ K3N1:
    Well then just buy monster energy and mix it with meth
    K3N1 @ K3N1: Well then just buy monster energy and mix it with meth