Ogre Tale - no extension

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Amagakuro
Posts: 46
Joined: Wed Sep 23, 2015 4:47 pm

Ogre Tale - no extension

Post by Amagakuro »

I'd like to get the sprites of this 2D action game, provided, once extracted, that they're easily readable~

Here a few cutted samples. Thanks
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Ogre Tale - no extension

Post by aluigi »

I supposed the files are obfuscated because the data isn't readable, but there are visible patterns.
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Ogre Tale - no extension

Post by Ekey »

Simple code for decrypt header

Code: Select all

void Orge_Decrypt(BYTE* pBuffer, DWORD dwSize)
{
  BYTE bXorByte = 0xA9;
  for (int i = 0; i < dwSize; bXorByte += 6, i++)
  {
     pBuffer[i] ^= bXorByte;
  }
}


Code: Select all

struct OrgeHeader
{
   DWORD dwSize;
   DWORD dwFiles; // ????
};

OrgeHeader TOrgeHeader;
fread(&TOrgeHeader, sizeof(TOrgeHeader), 1, fi);

TOrgeHeader.dwSize = ~TOrgeHeader.dwSize;
TOrgeHeader.dwFiles ^= 0x12876623;

BYTE *pBuffer = new BYTE[TOrgeHeader.dwSize];
memset(pBuffer, 0, TOrgeHeader.dwSize);
fread(pBuffer, TOrgeHeader.dwSize, 1, fi);

Orge_Decrypt(pBuffer, TOrgeHeader.dwSize);


Content decryption > https://pastebin.com/6pCPz52c
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Ogre Tale - no extension

Post by aluigi »

Work-in-progress script based on your info:

Code: Select all

get SIZE long
math SIZE ^ -1
get FILES long
math FILES ^ 0x12876623
savepos OFFSET
encryption "incremental xor" 0xa9 6
log MEMORY_FILE OFFSET SIZE
for i = 0 < FILES
    get DUMMY long MEMORY_FILE
next i
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Ogre Tale - no extension

Post by Ekey »

Game does not start for me, so I can't look how the content is decrypted :(
corruptturret
Posts: 8
Joined: Fri Aug 31, 2018 4:50 am

Re: Ogre Tale - no extension

Post by corruptturret »

Googling "0x12876623" brought me here. Wow. As far as I can tell, Mages uses the same encoded containers in this game as it does in all current Phantom Breaker games (and hopefully the next one coming soon).

https://github.com/Lucina/ThirdPlaygrou ... tomBreaker

I have a working extractor (and working conversion for Phantom Breaker palette / RLE images), it should work for this as well.
Amagakuro
Posts: 46
Joined: Wed Sep 23, 2015 4:47 pm

Re: Ogre Tale - no extension

Post by Amagakuro »

*facepalm* i didn't notice the previous answers, sorry guys.
And thanks corruptturret for your solution :)
kaimuangel
Posts: 13
Joined: Fri Oct 02, 2020 2:04 pm

Re: Ogre Tale - no extension

Post by kaimuangel »

corruptturret wrote:Googling "0x12876623" brought me here. Wow. As far as I can tell, Mages uses the same encoded containers in this game as it does in all current Phantom Breaker games (and hopefully the next one coming soon).

https://github.com/Lucina/ThirdPlaygrou ... tomBreaker

I have a working extractor (and working conversion for Phantom Breaker palette / RLE images), it should work for this as well.


The links are expired,is it possible for you to reupload the program? Thanks.