Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Decrypt lua files of Cocos2dx ?

Featured Replies

  • Author
  • Localization

hackspeedok, posted Sun Dec 31, 2017 3:50 pm (31148)


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
  • Author
  • Localization

hackspeedok, posted Mon Jan 01, 2018 1:36 am (31159)


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 :(
  • Author
  • Localization

aluigi, posted Mon Jan 01, 2018 10:55 am (31170)


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
  • Author
  • Localization

hackspeedok, posted Mon Jan 01, 2018 12:13 pm (31173)


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
  • Author
  • Localization

hackspeedok, posted Mon Sep 17, 2018 4:05 am (38543)


Hi Aluigi, can you help me with this file ? Thanks.
  • Author
  • Localization

hackspeedok, posted Wed Sep 19, 2018 2:23 am (38598)


Please help me. Thanks
  • Author
  • Localization

hackspeedok, posted Tue Sep 25, 2018 2:32 am (38799)


Need some help, thanks :(
  • Author
  • Localization

aluigi, posted Tue Sep 25, 2018 5:55 am (38804)


It's encrypted, simple.
What's the game?
  • Author
  • Localization

hackspeedok, posted Tue Sep 25, 2018 7:57 am (38810)


aluigi wrote:
It's encrypted, simple.
What's the game?

The name is "????:????" - KingWar - IOS game :)
Attachment is all database of game. Thanks
  • Author
  • Localization

hackspeedok, posted Thu Oct 04, 2018 2:06 am (39040)


Help me, Aluigi. Thanks
  • Author
  • Localization

aluigi, posted Thu Oct 04, 2018 1:47 pm (39060)


Unfortunately I can't, I can only write a script once someone will post the algorithm and key.
  • Author
  • Localization

memes, posted Thu Oct 04, 2018 3:02 pm (39064)


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);
}
  • Author
  • Localization

hackspeedok, posted Tue Jul 02, 2019 6:49 am (49110)


need some help, please :D
  • Author
  • Localization

RonDo, posted Thu Jul 25, 2019 4:29 pm (50000)


hackspeedok wrote:
need some help, please :D

send me APK file or a place i can download APK i will take a look
  • Author
  • Localization

hackspeedok, posted Tue Aug 13, 2019 7:40 am (50291)


Hi all, please help me. Thanks
  • Author
  • Localization

hackspeedok, posted Fri Sep 27, 2019 10:31 am (50964)


Need some help
  • Author
  • Localization

hackspeedok, posted Sun Sep 29, 2019 3:44 pm (51135)


Hi Aluigi, can you help me ?
  • Author
  • Localization

aluigi, posted Sun Sep 29, 2019 4:58 pm (51137)


@hackspeedok
I don't think there will ever be updates to this topic.
  • Author
  • Localization

hackspeedok, posted Sat Oct 05, 2019 12:05 pm (51333)


Thanks Aluigi :( so sad
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.