Super Robot Wars V (PC) .cpk encryption

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
anakronus
Posts: 17
Joined: Thu Mar 26, 2020 12:38 am

Super Robot Wars V (PC) .cpk encryption

Post by anakronus »

Now that Super Robot Wars V has come to PC and I would like to rip some assets and translate the game to my language, however I've hit a roadblock, the game's cpk archive contents seem to be encrypted (No obvious pattern in .DDS images), I tried my luck with some RE but it quickly got out of my league so I came here looking for help, thank you in advance :D

I've attached a cpk file (from SRWV_ROOT/data/statusimage) for reference.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Super Robot Wars V (PC) .cpk encryption

Post by aluigi »

Have you tried using CriPakTools?

I confirm that there is an 8bytes pattern in the dds files extracted with my cpk.bms script, that's usually used in blowfish encryptions, but I don't know if it's something specific to the format (like it happened with a Naruto game as far as I remember) or specific for this game only.
I'm sure the other users can provide better support.
anakronus
Posts: 17
Joined: Thu Mar 26, 2020 12:38 am

Re: Super Robot Wars V (PC) .cpk encryption

Post by anakronus »

Yeah, CriPakTools can get the files out, but they still are unreadable due to encryption, and I can confirm is encryption as the Vita version of the game does not have any problem when extracting data.
Furthermore, reading the forum I came across signsearch and the program found this:

Code: Select all

Signsrch 0.2.4
by Luigi Auriemma
e-mail: aluigi@autistici.org
web:    aluigi.org
  optimized search function by Andrew http://www.team5150.com/~andrew/
  disassembler engine by Oleh Yuschuk

- open file "C:\Games\Super Robot Wars V\SRWV.EXE"
- 6672896 bytes allocated
- load signatures
- open file C:\Games\Super Robot Wars V\signsrch.sig
- 3075 signatures in the database
- start 8 threads
- start signatures scanning:

  offset   num  description [bits.endian.size]
  --------------------------------------------
  00121972 2065 Haval init [32.le.32&]
  00132a3e 3048 DMC compression [32.le.16&]
  003f1469 3051 compression algorithm seen in the game DreamKiller [32.be.12&]
  0042bbd0 921  Blowfish ks0 table [32.le.1024]
  0042bbd0 2335 Blowfish_s_init [32.le.4096]
  0042bc28 2067 Haval mc3 [32.le.128]
  0042bc88 2219 HAVAL2_DS [32.le.32]
  0042bca8 2069 Haval mc4 [32.le.128]
  0042bd08 2217 HAVAL1_DS [32.le.32]
  0042bd28 2071 Haval mc5 [32.le.128]
  0042bfd0 923  Blowfish ks1 table [32.le.1024]
  0042c3d0 925  Blowfish ks2 table [32.le.1024]
  0042c7d0 927  Blowfish ks3 table [32.le.1024]
  004aca69 2266 CRYPTON [32.le.16&]
  004c8a50 3038 unlzx table_three [32.le.64]
  004c9330 538  CRC-16-IBM maxim/usb [crc16.0xa001 le rev 1.512]
  004c9330 527  CRC-16-IBM maxim/usb [crc16.0x8005 lenorev int_min.512]
  004d2c10 2508 Electronic Arts TQI base_table2 [..64]
  004d2c70 1563 libavcodec ff_zigzag_direct [..64]
  004d3810 648  CRC-32-IEEE 802.3 [crc32.0xedb88320 lenorev 1.1024]
  004d3810 641  CRC-32-IEEE 802.3 [crc32.0x04c11db7 le rev int_min.1024]
  0054a65e 2545 anti-debug: IsDebuggerPresent [..17]
  0059623b 2417 MBC2 [32.le.248&]
  00596560 2418 MBC2 [32.be.248&]
  00596739 1038 padding used in hashing algorithms (0x80 0 ... 0) [..64]
  00608398 3050 compression algorithm seen in the game DreamKiller [32.le.12&]

- 26 signatures found in the file in 6 seconds
- done


I'm not sure how to proceed with this info now however.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Super Robot Wars V (PC) .cpk encryption

Post by aluigi »

Try uploading SRWV.EXE, maybe some users will take a look at it and get the key.
anakronus
Posts: 17
Joined: Thu Mar 26, 2020 12:38 am

Re: Super Robot Wars V (PC) .cpk encryption

Post by anakronus »

Update on this, I got the key! It was a weird process powered by insomnia and perseverance, but it was really fun!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Super Robot Wars V (PC) .cpk encryption

Post by aluigi »

Feel free to share, in case someone else is interested.
anakronus
Posts: 17
Joined: Thu Mar 26, 2020 12:38 am

Re: Super Robot Wars V (PC) .cpk encryption

Post by anakronus »

Oh yeah, if someone needs it, the key for the game is:

Code: Select all

SRVW Steam Game
very simple, actually xd I also went ahead and checked Super Robot Wars X's key and you can actually guess what it is based on this one.
Last edited by anakronus on Sat Aug 29, 2020 5:18 pm, edited 1 time in total.
anakronus
Posts: 17
Joined: Thu Mar 26, 2020 12:38 am

Re: Super Robot Wars V (PC) .cpk encryption

Post by anakronus »

Oh yeah, if someone needs it, the key for the game is:

Code: Select all

SRVW Steam Game
very simple, actually xd I also went ahead and checked Super Robot Wars X's key and you can actually guess what it is based on this one.
Last edited by anakronus on Sat Aug 29, 2020 5:18 pm, edited 1 time in total.
sar777
Posts: 1
Joined: Sat Aug 15, 2020 12:28 pm

Re: Super Robot Wars V (PC) .cpk encryption

Post by sar777 »

anakronus wrote:Oh yeah, if someone needs it, the key for the game is:

Code: Select all

SRWV Steam Game
very simple, actually xd I also went ahead and checked Super Robot Wars X's key and you can actually guess what it is based on this one.


How to use this KEY?
anakronus
Posts: 17
Joined: Thu Mar 26, 2020 12:38 am

Re: Super Robot Wars V (PC) .cpk encryption

Post by anakronus »

sar777 wrote:
anakronus wrote:Oh yeah, if someone needs it, the key for the game is:

Code: Select all

SRWV Steam Game
very simple, actually xd I also went ahead and checked Super Robot Wars X's key and you can actually guess what it is based on this one.
How to use this KEY?


It's blowfish encrypted, you can use a simple quickbms script like these:

Decryption:

Code: Select all

encryption blowfish "SRVW Steam Game" #Use the key "SRXW Steam Game" for SRW X
get SIZE asize
get NAME basename
get EXT extension
string NAME + _decrypted.
string NAME + EXT
log NAME 0 SIZE


Encryption:

Code: Select all

encryption blowfish "SRVW Steam Game" "" 1 #Use the key "SRXW Steam Game" for SRW X
get SIZE asize
get NAME basename
get EXT extension
log NAME 0 SIZE


If what you are planning is a translation the scripts are inside SRWV_ROOT/Data/STAGE/STGEST_EN.cpk, with the first file being a table and the chapters are separated .lua files (once parsed the table), object descriptions are inside SRWV_ROOT/CommonData/ShiroData/LanguageData/EN/LT00_EN.cpk and the menus on SRWV_ROOT\Data\AIDDATA\EN\SysText.cpk (first file, with a BLTU header)

If you actually want to translate it and can figure more of the game, let me know! :D
udterry
Posts: 6
Joined: Wed Apr 14, 2021 4:14 am

Re: Super Robot Wars V (PC) .cpk encryption

Post by udterry »

anakronus wrote:...cut by aluigi...


try the key "SRXW Steam Game" for SRW X no work :shock:
https://drive.google.com/file/d/1mRah82 ... sp=sharing
love18z
Posts: 3
Joined: Thu May 06, 2021 12:33 pm

Re: Super Robot Wars V (PC) .cpk encryption

Post by love18z »

anakronus wrote:...cut by aluigi...


Hello, I have the same problem, "srxw" is invalid
Can you explain it in detail? :shock:
anakronus
Posts: 17
Joined: Thu Mar 26, 2020 12:38 am

Re: Super Robot Wars V (PC) .cpk encryption

Post by anakronus »

udterry wrote:try the key "SRXW Steam Game" for SRW X no work :shock:
https://drive.google.com/file/d/1mRah82 ... sp=sharing

love18z wrote:Hello, I have the same problem, "srxw" is invalid
Can you explain it in detail? :shock:


Sorry for not checking the forum before, yeah I accidentally made a typo when writing the password :oops: , I'm real sorry, the actual pass for Super Robot Wars X is

Code: Select all

SRVX Steam Game
udterry
Posts: 6
Joined: Wed Apr 14, 2021 4:14 am

Re: Super Robot Wars V (PC) .cpk encryption

Post by udterry »

anakronus wrote:
udterry wrote:try the key "SRXW Steam Game" for SRW X no work :shock:
https://drive.google.com/file/d/1mRah82 ... sp=sharing

love18z wrote:Hello, I have the same problem, "srxw" is invalid
Can you explain it in detail? :shock:


Sorry for not checking the forum before, yeah I accidentally made a typo when writing the password :oops: , I'm real sorry, the actual pass for Super Robot Wars X is

Code: Select all

SRVX Steam Game

:D thanks!~
love18z
Posts: 3
Joined: Thu May 06, 2021 12:33 pm

Re: Super Robot Wars V (PC) .cpk encryption

Post by love18z »

anakronus wrote:
udterry wrote:try the key "SRXW Steam Game" for SRW X no work :shock:
https://drive.google.com/file/d/1mRah82 ... sp=sharing

love18z wrote:Hello, I have the same problem, "srxw" is invalid
Can you explain it in detail? :shock:


Sorry for not checking the forum before, yeah I accidentally made a typo when writing the password :oops: , I'm real sorry, the actual pass for Super Robot Wars X is

Code: Select all

SRVX Steam Game


:D Thank you very much,I love you!!!