About XOR decryption of unity games

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
libaibaba
Posts: 18
Joined: Mon Oct 29, 2018 3:04 pm

About XOR decryption of unity games

Post by libaibaba »

Hello everyone,I recently watched a mobile game《overlord》,Its assets are encrypted with XOR and regularly, and I have calculated filexor "0xFF",But I don't know how to implement loops on BMS,This is assets.https://mega.nz/#!mWRR2YyL!gtO4BHq8fkpZqcDSampg1UNMLrib1FLBcNwXVBPTkxw
Finally, please forgive my English and thank you.
chrrox
Posts: 388
Joined: Thu Aug 07, 2014 10:28 pm

Re: About XOR decryption of unity games

Post by chrrox »

so starting at offset 1 it reads 8 bytes xored with 0xFF then reads 10 bytes plain and repeats that till the end of the file?
just xor the file with
0x00FFFFFFFFFFFFFFFF000000000000000000

so

Code: Select all

get size asize
get name basename
string name + .dec
filexor "\x00\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x00\x00\x00\x00\x00\x00\x00\x00\x00"
log name 0 size
libaibaba
Posts: 18
Joined: Mon Oct 29, 2018 3:04 pm

Re: About XOR decryption of unity games

Post by libaibaba »

chrrox wrote:so starting at offset 1 it reads 8 bytes xored with 0xFF then reads 10 bytes plain and repeats that till the end of the file?
just xor the file with
0x00FFFFFFFFFFFFFFFF000000000000000000

so

Code: Select all

get size asize
get name basename
string name + .dec
filexor "\x00\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x00\x00\x00\x00\x00\x00\x00\x00\x00"
log name 0 size


Succeed!!!! Thanks very much!! :D Have a good day :lol:
Harry_AJMK418
Posts: 1
Joined: Sun Aug 21, 2022 8:08 am

Re: About XOR decryption of unity games

Post by Harry_AJMK418 »

I need help in the decryption of xor encrypted files of the unity game Call Of Duty Mobile if anyone could help me out! if can help me out dm me on twitter - @Harry_AJMK418 or discord - Harry$#4180