Homebrew Decrypting DSiWare .cia?

  • Thread starter Deleted User
  • Start date
  • Views 10,025
  • Replies 18
D

Deleted User

Guest
OP
With the recent TWL_FIRM patches that have been released, I decided I would look into translating a DSiWare game that I've always been interested in.
Is there any way to extract a romfs from the cia file to edit? I've tried to decrypt the cia in Decrypt9, but it tells me it's already decrypted.
 

cearp

瓜老外
Developer
Joined
May 26, 2008
Messages
8,725
Trophies
2
XP
8,510
Country
Tuvalu
first of all wait more than a few hours before bumping.
maybe the cia is already decrypted. did you make it with FunkyCIA? did you find it online? maybe it still was made with FunkyCIA because unless it was converted from dsi format, if this was dumped from the eshop then yes it will be encrypted unless someone specially decrypted it

so, decrypt it like any other eshop content... get the title key from the ticket, decrypt that, use it to decrypt the files... etc
 
D

Deleted User

Guest
OP
first of all wait more than a few hours before bumping.
Oh, sorry about that. I noticed that it was on the second page and only had 1 view. I'll be more patient in the future.
maybe the cia is already decrypted. did you make it with FunkyCIA? did you find it online? maybe it still was made with FunkyCIA because unless it was converted from dsi format, if this was dumped from the eshop then yes it will be encrypted unless someone specially decrypted it

so, decrypt it like any other eshop content... get the title key from the ticket, decrypt that, use it to decrypt the files... etc
It was dumped with FUNKYCIA, but not by me. How would I obtain a ticket for it?
 

cearp

瓜老外
Developer
Joined
May 26, 2008
Messages
8,725
Trophies
2
XP
8,510
Country
Tuvalu
It was dumped with FUNKYCIA, but not by me. How would I obtain a ticket for it?
the ticket is in the cia, and easy way would be to use FunkyCIA to dump the ticket, use the cia as input instead of a ticket.db use -noignore to stop ignoring the ticket because it would be ignored beccause it's not a legit ticket :)
 
  • Like
Reactions: Deleted User
D

Deleted User

Guest
OP
the ticket is in the cia, and easy way would be to use FunkyCIA to dump the ticket, use the cia as input instead of a ticket.db use -noignore to stop ignoring the ticket because it would be ignored beccause it's not a legit ticket :)
Is the tmd file that FUNKYCIA generates the ticket?
 
D

Deleted User

Guest
OP
no tmd, you want the ticket.
this dsiware may already exist in decrypted form somewhere, have you had a good look?
you can tell us what game if you want, just no sharing of the files :)
Trust me, I have had a good look. The game isn't found anywhere, and i had no way of getting it since its jpn eshop only, and i have a us 3ds. Someone on reddit dumped it for me as a cia using FUNKYCIA.

The game is Too Much Tingle Pack, if you were curious, but like I said I couldn't find a dump anywhere.

How would I obtain the ticket then? I typed into cmd [FunkyCia2.py tp.cia -no ignore -type ALL]. Is that wrong? (I'm guessing it is.)
 

cearp

瓜老外
Developer
Joined
May 26, 2008
Messages
8,725
Trophies
2
XP
8,510
Country
Tuvalu
Trust me, I have had a good look. The game isn't found anywhere, and i had no way of getting it since its jpn eshop only, and i have a us 3ds. Someone on reddit dumped it for me as a cia using FUNKYCIA.

The game is Too Much Tingle Pack, if you were curious, but like I said I couldn't find a dump anywhere.

How would I obtain the ticket then? I typed into cmd [FunkyCia2.py tp.cia -no ignore -type ALL]. Is that wrong? (I'm guessing it is.)
sure that looks like it would work :)
use -nodownload also, so that the files from cdn won't be downloaded, because all you want is the ticket
 
D

Deleted User

Guest
OP
sure that looks like it would work :)
use -nodownload also, so that the files from cdn won't be downloaded, because all you want is the ticket
So the cetk file is the ticket?
Edit - nvm, I've confirmed that the cetk file is the ticket. Would I use decrypt9 to decrypt the cia? How would I point it to the ticket?
 
Last edited by ,

PedroxBest

Well-Known Member
Newcomer
Joined
Jul 2, 2019
Messages
69
Trophies
0
Location
Italva-RJ, Brazil
Website
pedroxthebest-net.webnode.com
XP
227
Country
Brazil
i know how to do that, it's not a .nds but it's ez to convert to .nds:
1. download CTRTool and extract the .ZIP: https://mega.nz/#!GaAx3KSI!qdEMzCCSY3Cs8N578UFwl2TwcF2AttD1750v-hLSMi8
2. go to the CTRTool folder and put the CIA file on the CTRTool named as "dsiware.cia"
3. run "extract.bat"
4. now you will get two files which is "00000000.app" and "00000000.app.0000.00000000"
5. delete the "00000000.app" and rename the "00000000.app.0000.00000000" to "<game name>.nds"
6. DONE!

NOTE: i only tested with a DSiWare, i don't think it work with 3DS CIAs, but you can give it a try :P
EDIT2: nvm, it work with 3DS CIAs too!
 
Last edited by PedroxBest,
  • Like
Reactions: matt!

Vague Rant

Deceptively cute
Member
Joined
Aug 7, 2008
Messages
2,463
Trophies
2
Location
Melbourne
Website
vaguerant.tumblr.com
XP
3,302
Country
I know this is a three-year-old thread, but you can also use GodMode9 to do what PedroxBest describes above.
  1. drop a DSiWare CIA on your SD card
  2. run GodMode9 (for many users, hold Start on 3DS boot)
  3. navigate to your CIA in drive [0:] SDCARD and select it with A
  4. select CIA image options... and Mount image to drive, then confirm you want to Enter path now with A
  5. select the .app file (this is the DSiWare NDS ROM; it should be the second item in the list) and select Copy to 0:/gm9/out
  6. copy your ROM from your SD card's /gm9/out folder to your PC or wherever it is you want to have it, rename it to .nds, etc.
 

OOngabinga

New Member
Newbie
Joined
Jun 4, 2020
Messages
2
Trophies
0
Age
22
XP
112
Country
United States
i know how to do that, it's not a .nds but it's ez to convert to .nds:
1. download CTRTool and extract the .ZIP:
2. go to the CTRTool folder and put the CIA file on the CTRTool named as "dsiware.cia"
3. run "extract.bat"
4. now you will get two files which is "00000000.app" and "00000000.app.0000.00000000"
5. delete the "00000000.app" and rename the "00000000.app.0000.00000000" to "<game name>.nds"
6. DONE!

NOTE: i only tested with a DSiWare, i don't think it work with 3DS CIAs, but you can give it a try :P
EDIT2: nvm, it work with 3DS CIAs too!
Okay, I did that but when I load the rom in desmume i just get a white screen
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    SylverReZ @ SylverReZ: @OctoAori20, Cool. Same here.