ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Fri Jul 19, 2019 4:38 am

All times are UTC




Post new topic  Reply to topic  [ 15 posts ] 
Author Message
PostPosted: Sun Dec 31, 2017 3:50 pm 

Joined: Mon Oct 06, 2014 6:41 pm
Posts: 383
Hi everybody,
I want to translate a Chinese IOS game to my language. But I dont know how to decrypt Lua files of Cocos2dx (I'm noob). I read this article but still do not understand: https://boards.libre.io/threads/decrypt ... es.297552/
So, I hope someone is able to help me decrypt these files, I am extremely thankful
Link of files: https://drive.google.com/file/d/1Q2s-g0 ... ixMXF/view
Link alll game files: https://drive.google.com/file/d/1JXj03c ... Vuzj3/view


Top
   
PostPosted: Sun Dec 31, 2017 4:09 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 10553
Eh no, this is a different encryption:
http://aluigi.org/bms/kdqht_lua.bms


Top
   
PostPosted: Mon Jan 01, 2018 1:36 am 

Joined: Mon Oct 06, 2014 6:41 pm
Posts: 383
aluigi wrote:
Eh no, this is a different encryption:
http://aluigi.org/bms/kdqht_lua.bms

Thanks Aluigi, can you help me to encrypt the edited files ? I tried reimport but the new files must be same size as original :(


Top
   
PostPosted: Mon Jan 01, 2018 10:55 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 10553
Script 0.2, you must re-decrypt the files because it now adds a "_decrypt" suffix in the filename.
Reuse the script on the decryted files to automatically encrypt them


Top
   
PostPosted: Mon Jan 01, 2018 12:13 pm 

Joined: Mon Oct 06, 2014 6:41 pm
Posts: 383
aluigi wrote:
Script 0.2, you must re-decrypt the files because it now adds a "_decrypt" suffix in the filename.
Reuse the script on the decryted files to automatically encrypt them

Thanks so much, its work perfectly :D


Top
   
PostPosted: Mon Sep 17, 2018 4:05 am 

Joined: Mon Oct 06, 2014 6:41 pm
Posts: 383
Hi Aluigi, can you help me with this file ? Thanks.


Attachments:
data_hero.rar [74.67 KiB]
Downloaded 40 times
Top
   
PostPosted: Wed Sep 19, 2018 2:23 am 

Joined: Mon Oct 06, 2014 6:41 pm
Posts: 383
Please help me. Thanks


Top
   
PostPosted: Tue Sep 25, 2018 2:32 am 

Joined: Mon Oct 06, 2014 6:41 pm
Posts: 383
Need some help, thanks :(


Top
   
PostPosted: Tue Sep 25, 2018 5:55 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 10553
It's encrypted, simple.
What's the game?


Top
   
PostPosted: Tue Sep 25, 2018 7:57 am 

Joined: Mon Oct 06, 2014 6:41 pm
Posts: 383
aluigi wrote:
It's encrypted, simple.
What's the game?

The name is "三国演义:吞噬无界" - KingWar - IOS game :)
Attachment is all database of game. Thanks


Attachments:
datas.rar [1.3 MiB]
Downloaded 39 times
Top
   
PostPosted: Thu Oct 04, 2018 2:06 am 

Joined: Mon Oct 06, 2014 6:41 pm
Posts: 383
Help me, Aluigi. Thanks


Top
   
PostPosted: Thu Oct 04, 2018 1:47 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 10553
Unfortunately I can't, I can only write a script once someone will post the algorithm and key.


Top
   
PostPosted: Thu Oct 04, 2018 3:02 pm 

Joined: Thu Oct 04, 2018 2:59 pm
Posts: 8
I found out xxtea by simple, unfortunately my ability is not enough to find the key, the game uses anti-debugging.

Code:
int __fastcall cocos2d::xxtea_decrypt(int a1, int a2, int a3, unsigned int a4, int a5, int a6, int a7, int a8, int (__fastcall *a9)(int), int a10, int a11, int a12, _DWORD *a13)
{
  unsigned int v13; // r7
  int v14; // r6
  int v15; // r4
  int v17; // [sp+24h] [bp+4h]
  int v18; // [sp+28h] [bp+8h]

  v13 = a4;
  *a13 = 0;
  if ( a4 > 0xF )
  {
    v15 = sub_73D7FC(a1, a2, a3, a13);
  }
  else
  {
    v18 = a2;
    v17 = a1;
    v14 = sub_6C65B4(16);
    sub_6C63F4();
    sub_6C64B4(v14 + v13, 16 - v13, 0);
    v15 = sub_73D7FC(v17, v18, v14, a13);
    sub_6C64C4(v14);
  }
  return a9(v15);
}


Top
   
PostPosted: Sun Jun 30, 2019 4:30 am 

Joined: Mon Oct 06, 2014 6:41 pm
Posts: 383
Hi Aluigi, the game is updated with Android version. But I cant extract OBB file. Please help me, thanks :D
https://play.google.com/store/apps/deta ... zbf.jyfree


Top
   
PostPosted: Tue Jul 02, 2019 6:49 am 

Joined: Mon Oct 06, 2014 6:41 pm
Posts: 383
need some help, please :D


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 15 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