ROM Hack How do I disassemble 3ds games with Ghidra

Sammyueru

Member
OP
Newcomer
Joined
Apr 4, 2021
Messages
13
Trophies
0
Age
44
XP
55
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
31
XP
71
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.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Psionic Roshambo @ Psionic Roshambo:
    Float like a butterfly burns when I pee lol
    +1
  • BigOnYa @ BigOnYa:
    So does that mean your date was not good? It burns now?
    +1
  • K3Nv2 @ K3Nv2:
    Got two new stds in one night
    +1
  • BigOnYa @ BigOnYa:
    Giggity
    +1
  • The Catboy @ The Catboy:
    I don't bite! Minus the times when I did bite
  • The Catboy @ The Catboy:
    Like 5 minutes ago
  • K3Nv2 @ K3Nv2:
    Billie needs her lunch
  • K3Nv2 @ K3Nv2:
    Ffs papa brought back the cheeseburger pizza it's like the only decent pie they had since the 80s
  • BigOnYa @ BigOnYa:
    I'm not a fan of papa johns, but that does sound good. We hardly order out pizza, I like making my own, but when we do its donatoes
  • K3Nv2 @ K3Nv2:
    I get them like once every two months anymore
  • K3Nv2 @ K3Nv2:
    Just because it's half a mile from where I live
  • BigOnYa @ BigOnYa:
    Request next time you order, that Shaq deliver it to you
  • K3Nv2 @ K3Nv2:
    I want him to buy me a chain also
  • K3Nv2 @ K3Nv2:
    Open it right next to the one we have
    +1
  • BakerMan @ BakerMan:
    guys should i make a new thread and just count the amount of posts until kyle, luke or leo joins the thread for fun?
  • BakerMan @ BakerMan:
    kyle's fine, just waiting for that wario joke

    luke and leo though, they yap until the thread's enjoyability is about halved
  • K3Nv2 @ K3Nv2:
    Leo is Luke's alterego when he gets hard
  • BigOnYa @ BigOnYa:
    Luke is gone, he got banned. And I'm surprised Leo hasn't yet
  • K3Nv2 @ K3Nv2:
    Subway was actually pretty decent tonight
  • BigOnYa @ BigOnYa:
    Wut you get, a seafood and psi salad sub
  • K3Nv2 @ K3Nv2:
    Psi had my footlong meatball special
    +1
  • PandaPandel @ PandaPandel:
    i want a meatball sandwich
    now
  • K3Nv2 @ K3Nv2:
    Gay
  • BigOnYa @ BigOnYa:
    Bout time you came out and admitted it
  • K3Nv2 @ K3Nv2:
    Bigonya talks to himself often
    +1
    K3Nv2 @ K3Nv2: Bigonya talks to himself often +1