Poll & Discussion: We wish the site to continue (Y/N)
NetEase NPK (EXPK) Archive Decryptor
- Bigchillghost
- double-veteran

- Posts: 981
- Joined: Tue Jul 05, 2016 9:37 am
- Has thanked: 29 times
- Been thanked: 1137 times
NetEase NPK (EXPK) Archive Decryptor
- 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.
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.
You do not have the required permissions to view the files attached to this post.
Last edited by Bigchillghost on Fri Feb 21, 2020 7:59 am, edited 10 times in total.
May you find peace in this puzzle-solving game.
when you get helped.
- An Imitable Workflow for Reverse Engineering a Game Model
- Advanced Mesh Reaper
- Reverse Model Wireframe
when you get helped.-
huitbgoiouythy
- beginner
- Posts: 20
- Joined: Thu Nov 15, 2018 5:43 pm
- Has thanked: 83 times
- Been thanked: 2 times
- Bigchillghost
- double-veteran

- Posts: 981
- Joined: Tue Jul 05, 2016 9:37 am
- Has thanked: 29 times
- Been thanked: 1137 times
Re: NetEase NPK (EXPK) Archive Decryptor
Update:
Fixed a stupid bug that cause the decryption failed with Onmyoji Arena. Added support for Win XP.
Fixed a stupid bug that cause the decryption failed with Onmyoji Arena. Added support for Win XP.
May you find peace in this puzzle-solving game.
when you get helped.
- An Imitable Workflow for Reverse Engineering a Game Model
- Advanced Mesh Reaper
- Reverse Model Wireframe
when you get helped.- Bigchillghost
- double-veteran

- Posts: 981
- Joined: Tue Jul 05, 2016 9:37 am
- Has thanked: 29 times
- Been thanked: 1137 times
Re: NetEase NPK (EXPK) Archive Decryptor
Update:
Fixed another bug that introduced by previous fix. Sorry about that.
Fixed another bug that introduced by previous fix. Sorry about that.
May you find peace in this puzzle-solving game.
when you get helped.
- An Imitable Workflow for Reverse Engineering a Game Model
- Advanced Mesh Reaper
- Reverse Model Wireframe
when you get helped.- Bigchillghost
- double-veteran

- Posts: 981
- Joined: Tue Jul 05, 2016 9:37 am
- Has thanked: 29 times
- Been thanked: 1137 times
Re: NetEase NPK (EXPK) Archive Decryptor
Update:
1. Changed the detecting method to adjust with different version games;
2. Fixed an issue for decrypting MARVEL Super War.
1. Changed the detecting method to adjust with different version games;
2. Fixed an issue for decrypting MARVEL Super War.
May you find peace in this puzzle-solving game.
when you get helped.
- An Imitable Workflow for Reverse Engineering a Game Model
- Advanced Mesh Reaper
- Reverse Model Wireframe
when you get helped.- Bigchillghost
- double-veteran

- Posts: 981
- Joined: Tue Jul 05, 2016 9:37 am
- Has thanked: 29 times
- Been thanked: 1137 times
Re: NetEase NPK (EXPK) Archive Decryptor
Update:
Added a longer xor key. Check the first post for details.
Added a longer xor key. Check the first post for details.
May you find peace in this puzzle-solving game.
when you get helped.
- An Imitable Workflow for Reverse Engineering a Game Model
- Advanced Mesh Reaper
- Reverse Model Wireframe
when you get helped.- Bigchillghost
- double-veteran

- Posts: 981
- Joined: Tue Jul 05, 2016 9:37 am
- Has thanked: 29 times
- Been thanked: 1137 times
Re: NetEase NPK (EXPK) Archive Decryptor
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.
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.
Last edited by Bigchillghost on Wed Jan 22, 2020 7:44 am, edited 1 time in total.
May you find peace in this puzzle-solving game.
when you get helped.
- An Imitable Workflow for Reverse Engineering a Game Model
- Advanced Mesh Reaper
- Reverse Model Wireframe
when you get helped.- Bigchillghost
- double-veteran

- Posts: 981
- Joined: Tue Jul 05, 2016 9:37 am
- Has thanked: 29 times
- Been thanked: 1137 times
Re: NetEase NPK (EXPK) Archive Decryptor
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.
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.
May you find peace in this puzzle-solving game.
when you get helped.
- An Imitable Workflow for Reverse Engineering a Game Model
- Advanced Mesh Reaper
- Reverse Model Wireframe
when you get helped.- Bigchillghost
- double-veteran

- Posts: 981
- Joined: Tue Jul 05, 2016 9:37 am
- Has thanked: 29 times
- Been thanked: 1137 times
Re: NetEase NPK (EXPK) Archive Decryptor
Update:
Added longer key for MSW above v2.6.0: 1915 KB approximately. Sufficient for every high res character package.
Added longer key for MSW above v2.6.0: 1915 KB approximately. Sufficient for every high res character package.
May you find peace in this puzzle-solving game.
when you get helped.
- An Imitable Workflow for Reverse Engineering a Game Model
- Advanced Mesh Reaper
- Reverse Model Wireframe
when you get helped.Re: NetEase NPK (EXPK) Archive Decryptor
I found the decryption method and key of [Forever 7 Day's Capital] [Onmyoji Arena] [Marvel Super War] in IDA Pro 
This is the decryption code fragment written by C#. Just decryption without extraction
This is the decryption code fragment written by C#. Just decryption without extraction
You do not have the required permissions to view the files attached to this post.
- Bigchillghost
- double-veteran

- Posts: 981
- Joined: Tue Jul 05, 2016 9:37 am
- Has thanked: 29 times
- Been thanked: 1137 times
Re: NetEase NPK (EXPK) Archive Decryptor
Congratulations!
I've updated the xorkeys generated with the method you posted.
May you find peace in this puzzle-solving game.
when you get helped.
- An Imitable Workflow for Reverse Engineering a Game Model
- Advanced Mesh Reaper
- Reverse Model Wireframe
when you get helped.-
m545891031
- advanced
- Posts: 52
- Joined: Wed Jul 20, 2016 9:04 pm
- Has thanked: 1 time
- Been thanked: 1 time
Re: NetEase NPK (EXPK) Archive Decryptor
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?Bigchillghost wrote: ↑Fri Feb 21, 2020 7:59 amCongratulations!
I've updated the xorkeys generated with the method you posted.![]()
