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

  • Thread starter Asia81
  • Start date
  • Views 1,186,084
  • Replies 1,657
  • Likes 93

How is my english?

  • So bad...

    Votes: 62 7.5%
  • Good, sometimes it's not understandable

    Votes: 126 15.3%
  • Very understandable

    Votes: 503 60.9%
  • Perfect?

    Votes: 135 16.3%

  • Total voters
    826

Asia81

Yuri Lover ~
OP
Member
GBAtemp Patron
Joined
Nov 15, 2014
Messages
6,186
Trophies
3
Age
27
XP
1,742
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,284
Trophies
2
Age
34
Location
Levelland, Texas
Website
www.mariopc.co.nr
XP
5,928
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
63
Trophies
0
Age
27
Location
Ho Chi Minh City, Vietnam
XP
486
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
36
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
GBAtemp Patron
Joined
Nov 15, 2014
Messages
6,186
Trophies
3
Age
27
XP
1,742
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
36
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,284
Trophies
0
Location
Wisconsin
Website
twitch.tv
XP
1,586
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.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
    kenenthk @ kenenthk: Are people out there really spending $100 on fans...