Echo off
set input=
set /p input= What do you want to do with %1 do you want the extracted contents 1. decrypted or 2.left using current encryption:
if %input%==1 goto decrypted
if %input%==2 goto encrypted
:encrypted
set /p input= What part do you want 1. extract exefs 2. extract exheader 3. extract romfs 4. extract all:
if %input%==1 goto 11
if %input%==2 goto 22
if %input%==3 goto 33
if %input%==4 goto 44
exit
:11
ctrtool -p --exefs=exefsencrypted.bin %1
pause
exit
:22
ctrtool -p --exheader=exheaderencrypted.bin %1
pause
exit
:33
ctrtool -p --romfs=romfsencrypted.bin %1
pause
exit
:44
ctrtool -p --exefs=exefsencrypted.bin %1
ctrtool -p --romfs=romfsencrypted.bin %1
ctrtool -p --romfs=romfsencrypted.bin %1
ctrtool -p --romfs=romfsencrypted.bin %1
pause
exit
:decrypted
set /p input= What part do you want 1. extract exefs 2. extract exheader 3. extract romfs 4. extract all:
if %input%==1 goto 1
if %input%==2 goto 2
if %input%==3 goto 3
if %input%==4 goto 4
exit
:1
ctrtool --exefs=exefsdecrypted.bin %1
pause
exit
:2
ctrtool --exheader=exheaderdecrypted.bin %1
pause
exit
:3
ctrtool --romfs=romfsdecrypted.bin %1
pause
exit
:4
ctrtool --exefs=exefsdecrypted.bin %1
ctrtool --exheader=exheaderdecrypted.bin %1
ctrtool --romfs=romfsdecrypted.bin %1
pause
exit