Reverse-CIA.bat
Code:
@ Echo off
set GameName=%~n1
md "%GameName%"
tools\_makerom -ciatocci %1
tools\ctrtool -p --exheader="exheader.bin" --romfs="romfs.bin" --exefs="exefs.bin" --logo="logo.bin" "%GameName%.cci"
tools\ctrtool -t exefs --exefsdir="%GameName%" "exefs.bin" --decompresscode
tools\ctrtool -t exheader "exheader.bin" > "exheader.txt"
tools\ctrtool -i "%GameName%.cci" >info.txt
move %1 "%GameName%"
move *.bin "%GameName%"
move *.cci "%GameName%"
move *.txt "%GameName%"
Now you have all files except your needed .rsf to rebuild unencrypted .3ds without manual.
Take a sample rsf, look @ info.txt/exheader.txt and fill the sample with all you need.
>>> makerom -f cci -target g -minor 9 -rsf "<your-rsf>" -desc app:7 -romfs "romfs.bin" -exheader "exheader.bin" -logo "logo.bin" -exefslogo -code "code.bin" -icon "icon.bin" -banner "banner.bin" -alignwr -o <your-rebuilded-3ds>