[SOLVED] Company of Heroes (Android) - main obb

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

[SOLVED] Company of Heroes (Android) - main obb

Post by AlphaTwentyThree »

Hi!

I'm currently looking at above game. It consists of two obb archives, whereas one of them is just an sga archive that can be extracted with WGE. The other one however... well, I'll need some help.
Here are the first 5MB: https://1fichier.com/?zn96omq5k5hyb8jujsfn
Thanks a lot in advance!
Last edited by AlphaTwentyThree on Fri Jan 21, 2022 5:08 am, edited 2 times in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Company of Heroes (Android) - main obb

Post by aluigi »

AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: Company of Heroes (Android) - main obb

Post by AlphaTwentyThree »

Hey cool, thanks! :)
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: [SOLVED] Company of Heroes (Android) - main obb

Post by AlphaTwentyThree »

Sorry to post again but I have a follow-up question about one of the archive, which seems compressed or encrypted:

Image

Which one is it?
Here's the first 1M: https://1fichier.com/?x0d79gx6bw5eent8pdsy
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: [SOLVED] Company of Heroes (Android) - main obb

Post by aluigi »

I think it's an archive with encrypted index table because there is a filename at offset 0x7946, a string of 256 bytes, and later like at 0x37bad and so on.
And then all the data is compressed with zlib, offzip can do magic if you can't find the encryption algorithm of the table:

Code: Select all

0x00007a4a  00030163 -> 00059200
0x00037cb1  00004271 -> 00007ea0
0x0003c026  000018dc -> 00002410
0x0003da06  0001b38b -> 0003ccf0
0x00058e95  0001447f -> 00035710
0x0006d418  0000345e -> 00004c00
0x0007097a  0000037d -> 00023050
0x00070dfb  00004288 -> 00010010
0x00075187  00006339 -> 0000a420
0x0007b5c4  00034410 -> 000590c0
0x000afad8  0000135f -> 00001910
0x000b0f3b  0000ad26 -> 00040010
0x000bbd65  00001438 -> 00040010
0x000bd2a1  00001987 -> 0008cb70
0x000bed2c  0000546a -> 00006e40
0x000c429a  0000dc0e -> 00014a10
0x000d1fac  00023889 -> 00029cd0
0x000f5939  0000a6c7 -> 0002faaa
...
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: [SOLVED] Company of Heroes (Android) - main obb

Post by AlphaTwentyThree »

Yep, works for me ;)