ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Tue Feb 20, 2018 11:41 am

All times are UTC




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Mon Feb 12, 2018 9:44 pm 
User avatar

Joined: Sun Aug 17, 2014 7:27 pm
Posts: 885
Game: http://store.steampowered.com/app/49514 ... inja_STORM
Image

Someone tool to decrypt EN files or export_import for all?


Attachments:
.exe.rar [2.98 MiB]
Downloaded 14 times
[PC] EN encrypted.rar [349.62 KiB]
Downloaded 9 times
[PC] CH decrypted.rar [196.53 KiB]
Downloaded 13 times
[PS3] files.rar [207.63 KiB]
Downloaded 10 times
Top
   
PostPosted: Sun Feb 18, 2018 12:08 pm 

Joined: Sat Aug 09, 2014 2:34 pm
Posts: 721
PseudoCode, a1 > Buffer, a2 > Size

Code:
__int64 __fastcall sub_140510790(__int64 a1, signed int a2)
{
  __int64 v3; // r10
  signed int v4; // edi
  signed int v5; // esi
  signed int v6; // ebp
  unsigned int v7; // ebx
  char *v8; // r9
  signed int v9; // er11
  int v10; // ecx
  __int64 v11; // rdx
  __int64 v12; // rax
  char v13; // cl
  unsigned int v15; // [rsp+20h]

  v3 = a1;
  v4 = 357500045;
  v5 = 45339085;
  v6 = 1134809849;
  v7 = 1635685890;
  if ( a2 > 0 )
  {
    v8 = (char *)&v15 - a1;
    do
    {
      v9 = a2;
      v10 = v4 ^ (v4 << 11);
      v4 = v5;
      v5 = v6;
      v6 = v7;
      v7 ^= v10 ^ ((v10 ^ (v7 >> 11)) >> 8);
      if ( a2 > 4 )
        v9 = 4;
      v15 = v7;
      v11 = v9;
      if ( v9 > 0 )
      {
        v12 = v3;
        do
        {
          v13 = v8[v12++];
          *(_BYTE *)(v12 - 1) ^= v13;
          --v11;
        }
        while ( v11 );
      }
      a2 -= v9;
      v3 += 4i64;
      v8 -= 4;
    }
    while ( a2 > 0 );
  }
  return 0i64;
}


Top
   
PostPosted: Sun Feb 18, 2018 7:21 pm 
User avatar

Joined: Sun Aug 17, 2014 7:27 pm
Posts: 885
Welcome back Ekey! :) Can you write a utility?


Attachments:
File comment: [PC] EN encrypted
others .xfbin.rar [3.91 MiB]
Downloaded 2 times
Top
   
PostPosted: Mon Feb 19, 2018 9:36 am 

Joined: Sat Aug 09, 2014 2:34 pm
Posts: 721
Thanks :). The decrypted xfbin's of the PC version differs from the PS3 version. Seems they compressed. Anyway here test tool.
On files xflst works fine.

Code:
Usage:
xfbin_test menu.xfbin menu.xfbin.dec
xfbin_test menu.xfbin.dec menu.xfbin


Example > option_button00.xflst

Code:
<?xml version="1.0" ?>
<xflst>
  <xfbin name="option_button.xfbin">
Z:\char\x\option\max\steam\option_button00.mdl.xfbin
Z:\char\x\option\tex\steam\option_button03_win.tex.xfbin
Z:\char\x\option\anm\steam\option_button00.anm.xfbin
</xfbin>
<xflst>
</xflst>


Attachments:
xfbin_test.rar [35.41 KiB]
Downloaded 12 times
Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited