Page 1 of 2

NetEase NPK (EXPK) Archive Decryptor

Posted: Sun Jul 07, 2019 4:05 pm
by Bigchillghost
- Feature:
Decrypt encrypted NPK archives with "EXPK" signature and write the data back into the source archive.

- Usage:
The tool requires an encryption key in order to perform the decryption. You can get the up-to-date key from here. Copy all the files (including the key) into your working directory and run the batch file.

- Supported Games:
Marvel Super War
Onmyoji Arena

- Note:
The key provided above is compatible for both Onmyoji Arena (OA) and Marvel Super War (MSW) below v2.6.0. MSW above v2.6.0 has switched to a different key which can be downloaded here.

- About Encryption Key:
The two games above use simple xor for encryption, but with an infinite fixed sequence as key. Now thanks to BlueEffie the method to compute the key is made public. But for the sake of the continuity of this tool and its performance, I decided to not change the old routine but simply update the xorkey for both games.

Below is the historic info of the xor key just for record:
1. The original key (871 KB) mostly was taken from this page (credit to zhouhang95).
2. The previous key described in this post has been extended by 980% in length (9414 KB) compared with the original one, making it possible to decrypt larger data. It's sufficient to handle the largest asset of OA and MSW (up to v2.6.0).
3. Current xor keys for both games are extended to 16 mega bytes using the method posted by BlueEffie.

EXPKDec.zip

Re: NetEase NPK (EXPK) Archive Decryptor

Posted: Sun Jul 07, 2019 4:42 pm
by TakeAaron
thank you

Re: NetEase NPK (EXPK) Archive Decryptor

Posted: Mon Jul 08, 2019 9:32 am
by huitbgoiouythy
Thank you! Gonna test this out for Marvel Super War.

Re: NetEase NPK (EXPK) Archive Decryptor

Posted: Mon Jul 08, 2019 11:03 am
by wansf
epic :eek:
will u keep adding more key in the future?

Re: NetEase NPK (EXPK) Archive Decryptor

Posted: Tue Jul 09, 2019 10:01 am
by Bigchillghost
Update:
Fixed a stupid bug that cause the decryption failed with Onmyoji Arena. Added support for Win XP.

Re: NetEase NPK (EXPK) Archive Decryptor

Posted: Tue Jul 16, 2019 12:24 pm
by Bigchillghost
Update:
Fixed another bug that introduced by previous fix. Sorry about that. :lol:

Re: NetEase NPK (EXPK) Archive Decryptor

Posted: Sat Aug 10, 2019 4:42 am
by Bigchillghost
Update:
1. Changed the detecting method to adjust with different version games;
2. Fixed an issue for decrypting MARVEL Super War.

Re: NetEase NPK (EXPK) Archive Decryptor

Posted: Wed Jan 15, 2020 10:43 am
by Bigchillghost
Update:
Added a longer xor key. Check the first post for details.

Re: NetEase NPK (EXPK) Archive Decryptor

Posted: Fri Jan 17, 2020 5:23 am
by Bigchillghost
Update:
1. Another update to the long key: now approximately 1155 KB;
2. Updated decryptor to v0.4.1 for better perfomance;
3. Added encryption key for Marvel Super War above v2.6.0.

Check the main post for details.

Re: NetEase NPK (EXPK) Archive Decryptor

Posted: Tue Jan 21, 2020 6:47 pm
by Bigchillghost
Update:
1. Ultimate update to the long key for Onmyoji Arena and Marvel Super War (below v2.6.0): now approximately 9414 KB;
2. Updated decryptor to v0.4.2: added real-time status message during decryption.

The key for MSW above v2.6.0 hasn't been updated yet.

Re: NetEase NPK (EXPK) Archive Decryptor

Posted: Thu Jan 23, 2020 2:36 pm
by Bigchillghost
Update:
Added longer key for MSW above v2.6.0: 1915 KB approximately. Sufficient for every high res character package.

Re: NetEase NPK (EXPK) Archive Decryptor

Posted: Thu Feb 20, 2020 3:02 pm
by BlueEffie
I found the decryption method and key of [Forever 7 Day's Capital] [Onmyoji Arena] [Marvel Super War] in IDA Pro :D

This is the decryption code fragment written by C#. Just decryption without extraction
NPKDecrypt.rar

Re: NetEase NPK (EXPK) Archive Decryptor

Posted: Fri Feb 21, 2020 7:59 am
by Bigchillghost
BlueEffie wrote: Thu Feb 20, 2020 3:02 pm I found the decryption method and key of [Forever 7 Day's Capital] [Onmyoji Arena] [Marvel Super War] in IDA Pro :D
Congratulations!

I've updated the xorkeys generated with the method you posted. :D

Re: NetEase NPK (EXPK) Archive Decryptor

Posted: Thu Jun 11, 2020 10:08 am
by Untily
Thank you [roll]

Re: NetEase NPK (EXPK) Archive Decryptor

Posted: Sat Jun 13, 2020 10:37 am
by m545891031
Bigchillghost wrote: Fri Feb 21, 2020 7:59 am
BlueEffie wrote: Thu Feb 20, 2020 3:02 pm I found the decryption method and key of [Forever 7 Day's Capital] [Onmyoji Arena] [Marvel Super War] in IDA Pro :D
Congratulations!

I've updated the xorkeys generated with the method you posted. :D
Unable to get the file name when decompressing using QuickBMS script, does it mean that using this tool can get the correct name when decompressing NPK? :o