Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Genshin Impact Closed Beta (.blk file)

Featured Replies

  • Replies 52
  • Views 1
  • Created
  • Last Reply

Top Posters In This Topic

  • Author
  • Localization

knightheart, posted Thu Mar 19, 2020 5:05 am (54721)


Hey, Genshin Impact's closed beta began today.
It runs on Unity, but everything except for audio and video files are saved in .blk files
I'm not sure what they are, and normal unity extraction tools don't work on them. But I have a sample for you guys since I can't figure it out.

https://drive.google.com/file/d/1xqnKJE ... sp=sharing
  • Author
  • Localization

aluigi, posted Thu Mar 19, 2020 2:14 pm (54747)


"blk\0", 32bit 0x10 and then just nonsense data, probably encrypted
  • Author
  • Localization

heng32032, posted Thu Mar 19, 2020 3:17 pm (54749)


knightheart wrote:
Hey, Genshin Impact's closed beta began today.
It runs on Unity, but everything except for audio and video files are saved in .blk files
I'm not sure what they are, and normal unity extraction tools don't work on them. But I have a sample for you guys since I can't figure it out.

https://drive.google.com/file/d/1xqnKJE ... sp=sharing


send some dll or .so or download url to me.
  • Author
  • Localization

knightheart, posted Thu Mar 19, 2020 9:08 pm (54761)


Quote:
"blk\0", 32bit 0x10 and then just nonsense data, probably encrypted


Any idea how to decrypt it?


Quote:
send some dll or .so or download url to me.



I don't understand what you're asking for
the assembly dlls? and I don't see any .so files in this game.


EDIT:
Actually, the first closed beta used different files, being .asb
I can't get into them either, so https://drive.google.com/open?id=14zgee ... q8sBfZMrAr
  • Author
  • Localization

lisomn, posted Fri Mar 20, 2020 5:05 am (54770)


The blk file uses a key group for XOR encryption

asb file xor key
Code:
\x71\x98\xaa\xe6\xce\x1b\x05\x4a\xe9\xff\x45\x21\xc3\x38\x5e\x3c
\x0f\xfb\xf5\xbb\xf6\x81\x48\x15\xfa\xd7\x77\x35\x82\x17\xd9\x9d
\x56\x28\x2e\xa9\x51\xba\x66\x2f\x22\xdd\xbb\x8a\x3b\xad\x90\x63
\xc6\x64\xfb\xd6\xcf\xa8\xbc\x48\x02\xc3\xbe\x36\xb2\x93\xbc\xd9

Skip "mark" at the beginning of asb
asb has 4 data blocks 612 and a 112 byte data block
4 bytes separated by each block need to be ignored
Image
Image
  • Author
  • Localization

heng32032, posted Fri Mar 20, 2020 1:19 pm (54808)


Genshin Impact PC version,

This is some logs of Genshin Impact PC version;

Hope that can help you
  • Author
  • Localization

knightheart, posted Fri Mar 20, 2020 8:24 pm (54833)


lisomn wrote:
The blk file uses a key group for XOR encryption

asb file xor key
Code:
\x71\x98\xaa\xe6\xce\x1b\x05\x4a\xe9\xff\x45\x21\xc3\x38\x5e\x3c
\x0f\xfb\xf5\xbb\xf6\x81\x48\x15\xfa\xd7\x77\x35\x82\x17\xd9\x9d
\x56\x28\x2e\xa9\x51\xba\x66\x2f\x22\xdd\xbb\x8a\x3b\xad\x90\x63
\xc6\x64\xfb\xd6\xcf\xa8\xbc\x48\x02\xc3\xbe\x36\xb2\x93\xbc\xd9

Skip "mark" at the beginning of asb
asb has 4 data blocks 612 and a 112 byte data block
4 bytes separated by each block need to be ignored
Image
Image



Thank you, but I don't quite understand what I'm supposed to do with this info.
Do you mind walking me through the process of decrypting the files?
  • Author
  • Localization

Rongril, posted Mon Mar 23, 2020 7:38 am (54980)


knightheart wrote:
lisomn wrote:
The blk file uses a key group for XOR encryption

asb file xor key
Code:
\x71\x98\xaa\xe6\xce\x1b\x05\x4a\xe9\xff\x45\x21\xc3\x38\x5e\x3c
\x0f\xfb\xf5\xbb\xf6\x81\x48\x15\xfa\xd7\x77\x35\x82\x17\xd9\x9d
\x56\x28\x2e\xa9\x51\xba\x66\x2f\x22\xdd\xbb\x8a\x3b\xad\x90\x63
\xc6\x64\xfb\xd6\xcf\xa8\xbc\x48\x02\xc3\xbe\x36\xb2\x93\xbc\xd9

Skip "mark" at the beginning of asb
asb has 4 data blocks 612 and a 112 byte data block
4 bytes separated by each block need to be ignored
Image
Image



Thank you, but I don't quite understand what I'm supposed to do with this info.
Do you mind walking me through the process of decrypting the files?


Where did you get the files for the first closed beta? I might be able to help you figure out the process if I can get them.
  • Author
  • Localization

knightheart, posted Mon Mar 23, 2020 8:31 am (54981)


Rongril wrote:

Where did you get the files for the first closed beta? I might be able to help you figure out the process if I can get them.


I was chosen for the first closed beta, so I got them directly from Mihoyo

I can't upload the entire thing, but i'm willing to send any individual files you'd need though, just let me know what it is.
  • Author
  • Localization

jovehong, posted Mon Mar 23, 2020 1:42 pm (54987)


removed

link added below
  • Author
  • Localization

aluigi, posted Tue Mar 24, 2020 10:03 am (55031)


Please just limit yourself to provide only the requested files for analysis.
If it's a closed beta probably you are not allowed to share the whole game (not sure how it works but check by yourself).
So, jovehong, I guess it's better if you edit your links.
  • Author
  • Localization

jovehong, posted Tue Mar 24, 2020 1:45 pm (55040)


aluigi wrote:
Please just limit yourself to provide only the requested files for analysis.
If it's a closed beta probably you are not allowed to share the whole game (not sure how it works but check by yourself).
So, jovehong, I guess it's better if you edit your links.


this closed beta needs invited account to play game
isn't it ok to share?

whatever, currently upload zip to google drive


*edit*
https://drive.google.com/drive/folders/ ... sp=sharing
2 assets .blk zip, 1 localge.pak
  • Author
  • Localization

aluigi, posted Tue Mar 24, 2020 2:47 pm (55042)


jovehong wrote:
this closed beta needs invited account to play game

Good point, thanks for the info.
  • Author
  • Localization

heng32032, posted Tue Mar 24, 2020 5:41 pm (55049)


Block Cipher
such as AES/DES
it get the key from "MiHoYo.SDK.HTTPServer.exe"
  • Author
  • Localization

jovehong, posted Wed Mar 25, 2020 1:51 am (55064)


heng32032 wrote:
Block Cipher
such as AES/DES
it get the key from "MiHoYo.SDK.HTTPServer.exe"


that .exe uploaded on above drive link
  • Author
  • Localization

mikoamoy, posted Wed Mar 25, 2020 7:32 am (55068)


Anyone already figure out the AES encryption key for blk files?
  • Author
  • Localization

Teapot, posted Wed Mar 25, 2020 8:02 pm (55088)


The game will run fine if you delete this exe file. But on the other side, removing "mihoyo_sdk_res" will make the game unloadable, it'll not be able to go further than the main screen. However the content of this file is pretty much unknown to me yet, All I can see is that it's Unity related because at the start of the file there's "UnityFS 5.x.x 2017.1.0p5". But you can see content of "mihoyo_sdk_res.manifest" (the game will also runs without this file). I will attach both file so anyone can take a look and maybe have an idea. I will also attach some extra files that may help the process but I'm not sure. I may add or remove stuff if I get more infos.

https://mega.nz/#F!1IhGgCTT!xplK0h7Hhr-_qIRjKlZhwA

EDIT: those "mihoyo_sdk_res" and "PC" file are packed Unity assets file and can be explored with UABE.
  • Author
  • Localization

gordonthanh, posted Sun Mar 29, 2020 3:12 am (55323)


With that xor key what i should i exactly do and what software is used to decrypt them?
  • Author
  • Localization

Teapot, posted Thu Apr 02, 2020 11:36 pm (55470)


knightheart wrote:
Rongril wrote:

Where did you get the files for the first closed beta? I might be able to help you figure out the process if I can get them.


I was chosen for the first closed beta, so I got them directly from Mihoyo

I can't upload the entire thing, but i'm willing to send any individual files you'd need though, just let me know what it is.


Can you find a way to upload the entire thing for me? I want to compare the files, it'll be easier for me like this. I'm also a CBT2 tester but I wasn't a CBT1.
  • Author
  • Localization

BlueEffie, posted Fri Apr 10, 2020 1:55 am (55721)


I decrypted the .blk file, but I don't want to disclose the source code, I can provide a decryption tool
  • Author
  • Localization

einherjar007, posted Fri Apr 10, 2020 12:48 pm (55733)


BlueEffie wrote:
I decrypted the .blk file, but I don't want to disclose the source code, I can provide a decryption tool

BlueEffie, thank you for your work. We look forward to the tools being released!
  • Author
  • Localization

einherjar007, posted Fri Apr 10, 2020 2:19 pm (55735)


chrrox wrote:
tool here

Thanks, chrrox. But this tool is for CBT1 (asb).
  • Author
  • Localization

chrrox, posted Fri Apr 10, 2020 10:42 pm (55745)


key is the same.
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.