World of Subways 4 - new C4 engine GRAF variant

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

World of Subways 4 - new C4 engine GRAF variant

Post by AlphaTwentyThree »

Hi!
World of Subways 4 uses a different kind of archive than the previous titles. I've written an in-progress script but I'm unable to get the offsets. Here is a sample archive: http://*USE_ANOTHER_FILEHOSTING*/d355d84 ... ameData.7z

And this is my script so far. I have no idea what the three unknown fields are for - somewhere has got to be the offset and size but I just can't figure it out. :\
Anyway:

Code: Select all

get INFO long
math INFO += 4
for i = 0 # only for number_of_files retrieval...
   get NAME string
   savepos MYOFF
   if MYOFF == INFO
      break
   endif
next i
set FILES i
for i = 0 < FILES
   get CRC long
   get NAMEPOS long
   math NAMEPOS += 4
   savepos MYOFF
   goto NAMEPOS
   get NAME string
   goto MYOFF
   get UNK1 long
   get UNK2 long
   get UNK3 long
next i
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: World of Subways 4 - new C4 engine GRAF variant

Post by aluigi »

http://aluigi.org/papers/bms/others/world_subways_4.bms

Basically it's a normal ZIP file xored with a NULL delimited password of 0x100 bytes (total 0x101 bytes) and with that useless header at the beginning of the archive.
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: World of Subways 4 - new C4 engine GRAF variant

Post by AlphaTwentyThree »

Damn, didn't recognize that! Thanks! :D
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: World of Subways 4 - new C4 engine GRAF variant

Post by AlphaTwentyThree »

Well... however there's a file that gives me a memory allocation error: http://*USE_ANOTHER_FILEHOSTING*/63defd8 ... eWorld.pak
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: World of Subways 4 - new C4 engine GRAF variant

Post by aluigi »

I have replaced Encryption with Filexor so that it doesn't load the whole file in memory.

Why don't you have 2Gb of RAM free?!? :)
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: World of Subways 4 - new C4 engine GRAF variant

Post by AlphaTwentyThree »

Haha ;)
Thanks Luigi! :)