Page 4 of 4

Re: The Dark Knight Rises .gla

Posted: Fri Dec 24, 2021 8:10 pm
by Ekey
I decided to look at the files, in general, in these archives the header is always encrypted (in the files from the game Sniper Fury) by xor with seed like:

Code: Select all

0x19660D * dwSeed  + 0x3C6EF35F
After decrypting the header you got next structure:

Code: Select all

class GlaHeader
{
   //Values in big endian
   public UInt32 dwVersion { get; set; } // Always 0
   public UInt32 dwTableOffset { get; set; }
   public Int32 dwTotalFiles { get; set; }
   public UInt32 dwMagic { get; set; } // A9D10201
}
Image

Re: The Dark Knight Rises .gla

Posted: Sat Dec 25, 2021 3:09 pm
by Ekey
Hashing algorithm is FNV1a. Entry table

Code: Select all

class Gla2Entry
{
   public UInt32 dwHash { get; set; }
   public UInt32 dwOffset { get; set; }
   public Int32 dwDecompressedSize { get; set; }
   public Int32 dwCompressedSize { get; set; }
   public Int32 dwReserved { get; set; }
   public Int32 dwEncrypted { get; set; } // if value > 0 then encrypted (can be 0/1/8) algo type???
}