patois / ntrdisasm Goto Github PK
View Code? Open in Web Editor NEWAnnotated disassembly of the NTR 2.x custom firmware for the Nintendo N3DS
Annotated disassembly of the NTR 2.x custom firmware for the Nintendo N3DS
This is a work-in-progress project which aims at reverse engineering and documenting the NTR 2.0 custom firmware (CFW) for the Nintendo N3DS. The CFW contains some interesting features and tricks to learn from, such as - the injection of code into foreign processes by temporarily modifying Kernel objects - displaying in-game menus by writing to LCD registers - "stealing" service handles from known locations of other processes - hooking code - implementation of a debugger - client / server code - a plugin system - calling privileged ARM11 code using svcBackdoor() - running games from other regions by patching their SMDH
Hi patois. I don't know if you're using IDA Pro. If so, you can try to generate some signature files with FLAIR. Use IDA2PAT Reloaded
for (.elf) or Official FLAIR
from SDK for a library (.a). After used pelf or ida2pat and sigmake and conflicts solved, you get the .sig file. You can then put the .sig file to /sig/arm in IDA folder, and load it from File->Load File->FILRT..
. If signature matches IDA would soon show up the functions in light blue. In short, this helps you recover symbols.
#This generates libgcc.pat.
pelf libgcc.a
#This tried to generate the sig, with library name as libgcc.
sigmake -nlibgcc libgcc.pat libgcc.sig
#libgcc has conflicts, so it generated a libgcc.exc.
#I edited the file, and removed the comments in the first few lines of file.
sigmake -nlibgcc -xlibgcc.exc libgcc.pat libgcc.sig
Sometimes you would have to solve some conflicts, such as.
+__gnu_sssubsa3 0C 073F 000031E1001061E00100004A0100A0E11EFF2FE1000031E1FBFFFF5A000050E3
__gnu_sssubsq3 0C 073F 000031E1001061E00100004A0100A0E11EFF2FE1000031E1FBFFFF5A000050E3
These step would be easier if use regex to place + for those firsts of each term. To me i replaced \r\n\r\n__
to \r\n\r\n+__
, and the file is almost done.
Well. You might have to generate more sig files if there are some versions for its dependencies. For examples there are quite a few versions of libctru.
I like your work, much. Hope this helps you.. Still trying to recover rxTools.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.