Need help for extracting model files - [Lapis Re:Lights]

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
XiaoYe
Posts: 1
Joined: Mon Dec 20, 2021 4:42 am

Need help for extracting model files - [Lapis Re:Lights]

Post by XiaoYe »

I've been trying to extract the game assets with Asset Studio, however, it can't be loaded with Asset Studio.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Need help for extracting model files - [Lapis Re:Lights]

Post by aluigi »

The first byte of every 7 bytes is XORed with 0xee.
Script for decrypting the files, it works with any xor key:

Code: Select all

encryption xor "UnityFS"
log MEMORY_FILE 0 7
getdstring KEY 7 MEMORY_FILE
encryption xor KEY "" 0 7
get SIZE asize
get NAME filename
string NAME + ".decrypt"
log NAME 0 SIZE
Feel free to set a better extension, I choose .decrypt but you can use whatever you prefer.
LuigiwithTHEDoNg
Posts: 28
Joined: Sat May 22, 2021 4:22 am

Re: Need help for extracting model files - [Lapis Re:Lights]

Post by LuigiwithTHEDoNg »

Uh, some failed to decrypt properly......

https://drive.google.com/drive/folders/ ... 0PYg4k75VA

Is there anything to decrypt them well cause....they have different keys... :(
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Need help for extracting model files - [Lapis Re:Lights]

Post by aluigi »

Because the length of the non-xored bytes changes for whatever reason and probably also other things change.
It's just a waste of time without the correct algorithm.
LuigiwithTHEDoNg
Posts: 28
Joined: Sat May 22, 2021 4:22 am

Re: Need help for extracting model files - [Lapis Re:Lights]

Post by LuigiwithTHEDoNg »

is there anything i can do cause....i really want to rip the assets privately....
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Need help for extracting model files - [Lapis Re:Lights]

Post by aluigi »

Maybe someone will find a rule for automatically calculating the xor key working with all the files, I have no other ideas at the moment because a file I checked didn't differ only in the length of the key.