ROM Hack [Tutorial] How to Decrypt, Extract & Rebuild 3DS|CIA|CXI Files

  • Thread starter Asia81
  • Start date
  • Views 1,438,191
  • Replies 1,736
  • Likes 96

How is my english?

  • So bad...

    Votes: 67 7.3%
  • Good, sometimes it's not understandable

    Votes: 139 15.2%
  • Very understandable

    Votes: 550 60.0%
  • Perfect?

    Votes: 160 17.5%

  • Total voters
    916

Asia81

Yuri Lover ~
OP
Member
Joined
Nov 15, 2014
Messages
6,662
Trophies
3
Age
29
XP
3,536
Country
France
1433597859-rh-gt.png

This tutorial will try to help you extract a 3DS|CIA|CXI file to change its content, and will also explain how to rebuild your game once edited.

Thanks a lot to Ericzander & BullyWiiPlaza for their help to translate this tutorial in english :)
(Because I'm French, it’s difficult to make a full tutorial in a good english...).
If anyone see any typo or something wrong with my english (in the setup, the script, the tutorial...) let me know!

Ce tutoriel est également disponible ici pour les français (Pas à Jours) :
This tutorial is also available here for french users (Outdated):
http://www.pokemontrash.com/jeux-pokemon/decrypter-compiler-rom-3ds.php

SUMMARY

- What you need
- Prerequisites
- Decrypting
- Extracting
- Editing
- Rebuilding​

What you Need
  • An encrypted 3DS|CIA|CXI file (It can either be a game, game's update, system application, but anyways not a DLC file nor a DSi Ware!)
  • WinRAR, or another archive extractor
  • HackingToolkit9DS -> Click Here
Prerequisites

Install the new SetupUS|FR.exe of HackingToolkit9DS as a common tool:




Extracting

Open HackingToolkit9DS:
180220062531406418.png


Don't forget, your file(s) should not have any spaces in its(their) name(s), nor special characters, like é or à.
You want extract PokemonMoon.3ds ? Just write PokemonMoon.


If you plan to extract a 3DS file:
Write the "D" command, and enter the name of your .3DS file WITHOUT its extension.

If you plan to extract a CIA file:
Write the "CE" command, and enter the name of your .CIA file WITHOUT its extension.

If you plan to extract a CXI file:
Write the "CXI" command, and enter the name of your .CXI file WITHOUT its extension.

Wait while it's extracting.

The ExeFS content will be extracted in an ExtractedExeFS folder.
The RomFS content will be extracted in an ExtractedRomFS folder.
The DownloadPlay content will be extracted in an ExtractedDownloadPlay folder.
The Old3DS update will be extracted in an ExtractedO3DSUpdate folder.
The New3DS update will be extracted in an ExtractedN3DSUpdate folder.
The Manual will be extracted in an ExtractedManual folder.
The 3D Banner will be extracted in an ExtractedBanner folder.

The work here should be ok.
Now you’re able to edit the game, go to Editing.

Editing

Do what you want.
Edit music, textures, banner, icon..
If you follow this tutorial, you know what you want to do.
Once it's finished, rebuild your game.

If you want, you can also edit the UniqueID of your game:
Read here for more informations.


Rebuilding

If you extracted and plan to rebuild a 3DS file:
Open HackingToolkit9DS, write the "R" command, then enter the name you want for the output file.
180220070648442006.png


Enjoy!

If you extracted and plan to rebuild a CIA file:
Open HackingToolkit9DS, write the "CR" command, then enter the name you want for the output file.
You will be also asked to enter a minor and micro version number.
You can enter the number you want (0 if you don't know what to choose), but it's better to use the original version.
For know that, copy your clean/original CIA on your SD, open FBI and or TitleManager (no need to install it, just look the upper screen).
Then check the both last numbers in Version [MAJOR|MINOR|MICRO].
180220071016489058.png


Enjoy!

Troubleshooting

Before report an issue, be sure:
- Your 3DS|CIA|CXI file is clean and not decrypted by Decrypt9 or GodMode9.
- Your 3DS|CIA|CXI file doesn't have any space or special character in its name (such as é or à).
- Your 3DS|CIA|CXI file is in the same folder as HackingToolkit9DS.
- You're not trying to extract the file in the ProgramFiles folder (where installed core files are).
- To write or don't write the extension of your file when specified.
- To have installed the setup package for your language (SetupXX.exe file).

Changelogs

180220062531406418.png


Version 12
- Fixed encrypted CIA rebuild process.
- Removed installation check.

Version 11
- Hotfix for .3DS rebuild.
- .CIA rebuild still in progress.

Version 10
- Added: Support for Boot9 extraction on PC. Absolutely no more decryption is required on 3DS.
- Renamed: Project is renamed HackingToolkit9DS for the occasion.
- Edited: Some strings, words and sentences has been changed.
- Removed: Temporarily removed the 32 bits support.
- Removed: Integrated 3DS Builder.
- Removed: Integrated Pokemon Patch Pointer Tool.
- Removed: Integrated RomFS Extractor.
- Removed: Integrated RomFS Builder.

Version 9
- Fixed CIA rebuild script.

Version 8
- Fixed MassExtraction and MassRebuild scripts.

Version 7
- 32bits support should be fixed (I forgot to include a 32bits build of MakeRom).


Credits and Thanks

Credits:
CtrTool : profi200 | 3DSGuy| Neimod
Makerom : profi200 | 3DSGuy
Decrypt9 : d0k3, Shadowtrance & Archshift
HackingToolkit9DS : Asia81
CleanTool9 : Asia81

Thanks to:
Megadrifter
Stratovarius
Reisyukaku
Guitoh
Weby
Apache Thunder
Ericzander
BullyWiiPlaza
Cellenseres
redunka​
 
Last edited by Asia81,

Apache Thunder

I have cameras in your head!
Member
Joined
Oct 7, 2007
Messages
4,449
Trophies
3
Age
36
Location
Levelland, Texas
Website
www.mariopc.co.nr
XP
6,832
Country
United States
You can also perhaps provide an alternative method (which would be a lot shorter to explain then the old xorpad method) by using rxTools to decrypt the rom instead, then extract everything with CTRTool/3DSExplorer. The resulting files will already be decrypted and if ran on 7.x or newer sysnand, the key slot bin file won't be needed. :D
 

g.a.u

Well-Known Member
Newcomer
Joined
Oct 11, 2014
Messages
77
Trophies
0
Age
29
Location
Ho Chi Minh City, Vietnam
XP
626
Country
--sorry for my bad english--
i did all of these step ,when i rebuild Kingdom hearts 3d (with rsf editted) ,it created a 3ds rom has smaller size than it was (2,1gb -> 1.8gb)
Load the rom on 3ds and nothing happen (the icon is blank)
Tried to use this tool
https://gbatemp.net/threads/tool-makerom-gui.376540/
and this is error it give me
8IE301y.jpg
 

Eli'

Member
Newcomer
Joined
Feb 17, 2015
Messages
10
Trophies
0
XP
66
Country
France
I have done all correctly your tutorial here without update but it does not work!
The game freeze in the 3ds logo when you start to play. I edit nothing in the game (Extractedromfs's folder) only because I wanted to test before if it work or not but It does'nt work!
I can even put a full video of your tutorial to show you that it don't work. (perhaps I made something wrong but I don't think because If I update the game it work so...) I don't want the update.
 

Asia81

Yuri Lover ~
OP
Member
Joined
Nov 15, 2014
Messages
6,662
Trophies
3
Age
29
XP
3,536
Country
France
I have done all correctly your tutorial here without update but it does not work!
The game freeze in the 3ds logo when you start to play. I edit nothing in the game (Extractedromfs's folder) only because I wanted to test before if it work or not but It does'nt work!
I can even put a full video of your tutorial to show you that it don't work. (perhaps I made something wrong but I don't think because If I update the game it work so...) I don't want the update.

Proof it's working :

Just read the tutorial.



--sorry for my bad english--
i did all of these step ,when i rebuild Kingdom hearts 3d (with rsf editted) ,it created a 3ds rom has smaller size than it was (2,1gb -> 1.8gb)
Load the rom on 3ds and nothing happen (the icon is blank)
Tried to use this tool
https://gbatemp.net/threads/tool-makerom-gui.376540/
and this is error it give me

I'm sorry, but i don't really know how to do this with other game such as Pokemon.
Give me your RSF, i will try it.
It's Kingdom Hearts 3D EUR ?
 
  • Like
Reactions: Margen67

Eli'

Member
Newcomer
Joined
Feb 17, 2015
Messages
10
Trophies
0
XP
66
Country
France
Just read the tutorial?

Here a video to show you it don't work for me and i don't know for other (Video edited because I forget to not show the 3ds key):


What is wrong? I don't understand!
 

Fishaman P

Speedrunner
Member
Joined
Jan 2, 2010
Messages
3,323
Trophies
1
Location
Wisconsin
Website
twitch.tv
XP
2,203
Country
United States
I know, but where i give a 3DS key oO ?
My slot0x25KeyX.bin in the pack is not blank ?
That's not the issue.


In the tool pack you will find a slot0x25KeyX.bin file. Open it with a hex editor and replace 00 with the numbers that go along this mini-tutorial: File filling instructions [link snipped]. Copy and paste the key. The outcome will look like this :
The page you linked to directly features a link to the copyrighted key. The fact it's not directly included doesn't matter.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    Anyone wanna play with my joydock
  • BigOnYa @ BigOnYa:
    Biomutant looks cool tho, may have to try that
  • Quincy @ Quincy:
    Usually when such a big title leaks the Temp will be the first to report about it (going off of historical reports here, Pokemon SV being the latest one I can recall seeing pop up here)
  • K3Nv2 @ K3Nv2:
    I still like how a freaking mp3 file hacks webos all that security defeated by text yet again
  • BigOnYa @ BigOnYa:
    They have simulators for everything nowdays, cray cray. How about a sim that shows you playing the Switch.
  • K3Nv2 @ K3Nv2:
    That's called yuzu
    +1
  • BigOnYa @ BigOnYa:
    I want a 120hz 4k tv but crazy how more expensive the 120hz over the 60hz are. Or even more crazy is the price of 8k's.
  • K3Nv2 @ K3Nv2:
    No real point since movies are 30fps
  • BigOnYa @ BigOnYa:
    Not a big movie buff, more of a gamer tbh. And Series X is 120hz 8k ready, but yea only 120hz 4k games out right now, but thinking of in the future.
  • K3Nv2 @ K3Nv2:
    Mostly why you never see TV manufacturers going post 60hz
  • BigOnYa @ BigOnYa:
    I only watch tv when i goto bed, it puts me to sleep, and I have a nas drive filled w my fav shows so i can watch them in order, commercial free. I usually watch Married w Children, or South Park
  • K3Nv2 @ K3Nv2:
    Stremio ruined my need for nas
  • BigOnYa @ BigOnYa:
    I stream from Nas to firestick, one on every tv, and use Kodi. I'm happy w it, plays everything. (I pirate/torrent shows/movies on pc, and put on nas)
  • K3Nv2 @ K3Nv2:
    Kodi repost are still pretty popular
  • BigOnYa @ BigOnYa:
    What the hell is Kodi reposts? what do you mean, or "Wut?" -xdqwerty
  • K3Nv2 @ K3Nv2:
    Google them basically web crawlers to movie sites
  • BigOnYa @ BigOnYa:
    oh you mean the 3rd party apps on Kodi, yea i know what you mean, yea there are still a few cool ones, in fact watched the new planet of the apes movie other night w wifey thru one, was good pic surprisingly, not a cam
  • BigOnYa @ BigOnYa:
    Damn, only $2.06 and free shipping. Gotta cost more for them to ship than $2.06
  • BigOnYa @ BigOnYa:
    I got my Dad a firestick for Xmas and showed him those 3rd party sites on Kodi, he loves it, all he watches anymore. He said he has got 3 letters from AT&T already about pirating, but he says f them, let them shut my internet off (He wants out of his AT&T contract anyways)
  • K3Nv2 @ K3Nv2:
    That's where stremio comes to play never got a letter about it
  • BigOnYa @ BigOnYa:
    I just use a VPN, even give him my login and password so can use it also, and he refuses, he's funny.
  • BigOnYa @ BigOnYa:
    I had to find and get him an old style flip phone even without text, cause thats what he wanted. No text, no internet, only phone calls. Old, old school.
    K3Nv2 @ K3Nv2: https://youtu.be/z9E_uv5IT-o?si=0qMdVEnRK8mmclzS