ZenHAX
http://zenhax.com/

NARUTO: Ultimate Ninja STORM .xfbin
http://zenhax.com/viewtopic.php?f=12&t=7406
Page 1 of 1

Author:  makc_ar [ Mon Feb 12, 2018 9:44 pm ]
Post subject:  NARUTO: Ultimate Ninja STORM .xfbin

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 15 times
[PC] EN encrypted.rar [349.62 KiB]
Downloaded 9 times
[PC] CH decrypted.rar [196.53 KiB]
Downloaded 14 times
[PS3] files.rar [207.63 KiB]
Downloaded 10 times

Author:  Ekey [ Sun Feb 18, 2018 12:08 pm ]
Post subject:  Re: NARUTO: Ultimate Ninja STORM .xfbin

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;
}

Author:  makc_ar [ Sun Feb 18, 2018 7:21 pm ]
Post subject:  Re: NARUTO: Ultimate Ninja STORM .xfbin

Welcome back Ekey! :) Can you write a utility?

Attachments:
File comment: [PC] EN encrypted
others .xfbin.rar [3.91 MiB]
Downloaded 2 times

Author:  Ekey [ Mon Feb 19, 2018 9:36 am ]
Post subject:  Re: NARUTO: Ultimate Ninja STORM .xfbin

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

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/