Jump to content

help with Mario Kart Tour iOS IL2CPP dumping — Registration Pointers (static analysis)


6 posts in this topic

Recommended Posts

Posted (edited)

@Batch

Hi everyone don't mean to be a bug 


I'm working on dumping Mario Kart Tour (iOS, Unity 2022.3.68f1) using a custom Il2CppDumper and I'm stuck on the correct `Il2CppCodeRegistration` and `Il2CppMetadataRegistration` pointers.  


I think the pointers are correct but whatever I do, it just refuses to dump the Global-Metadata.dat. It might be something with the XOR key? I obtained the Global-Metadata.dat at runtime using iGameGod. Because they embedded the metadata in the iOS binary. I'm also trying to get better at this and learn. (I do not have a jailbroken device)


I've done extensive static analysis already:

 

### Key Findings

- **Metadata Loader**: `sub_2478B14` (0x2478B14) — simple per-dword XOR decryptor.

  - Key: `dword_7AE6128` = `0x20015111`  <--- the key might be wrong but not sure

  - Encrypted table: `dword_5F0FD1C`

  - Called from `sub_518AEF0` (main init function at 0x518AEF0)

 

- **Registration Setup**:

  - `sub_518AEF0` loads decrypted metadata into `qword_7C8CBA0` / `qword_7C8CBA8`

  - Populates `qword_7C8CB98` (CodeRegistration) and `qword_7C8CBC0` (MetadataRegistration)

  - Pointer chain: `unk_5B96820` → `off_70E1050` → `unk_7A1D788`

 

- **Critical Static Pointers** (from detailed xref tracing):
 

 ```c

  #define IL2CPP_OVERRIDE_CODE_REG 0x6E6C478     // 0x6E6C478

  #define IL2CPP_OVERRIDE_META_REG 0x5B96820     // 0x5B96820

  ```

  These come from the stub `sub_24F51D8` which does:
 

 ```arm

  ADRL X0, unk_6E6C478

  ADRL X1, unk_5B96820

  ADRL X2, unk_54F5004

  B    sub_51382B4

  ```

 

I tried 2 different dumpers and none worked, then resorted to running and debugging this one in VS Code via Kilo Code with the Rust Analyzer Via my SuperGrok Oauth Subscription: 

https://github.com/rodroidmods/il2cpp-dumper-rs

Note: I did end up deleting the modified il2cpp-dumper-rs cloned project because I just could not get it to work

additionally, I checked the iL2cpp classes and methods in the Binary and they seemed correct to me or I could have missed something. and the other thing is I noticed is as soon as I added the XOR key decryption function in the VS Code it seemed like it wanted to work but was still getting hung up on something.
 

This is purely for educational / research purposes.

 

Thanks in advance for any help or tips on what to try! :hug:

Updated by Taylor Meyer
Posted

I think maybe the magic bytes are different from the normal one and straight up refuse it? Also if you dumper global-metadata.dat from igg, should be fully decrypted. And are you sure the CodeRegistration and MetadataRegistration are correct? And also those dumpers may not support new metadata version, so you need to adjust them as well, the hung up probably on this or on how you decrypt.
I suggest you to:

  • Find the metadata version 
  • See if your CodeRegistration and MetadataRegistration are correct
  • See if they modified any Struct
  • Thanks 1
Posted
47 minutes ago, Batch said:

I think maybe the magic bytes are different from the normal one and straight up refuse it? Also if you dumper global-metadata.dat from igg, should be fully decrypted. And are you sure the CodeRegistration and MetadataRegistration are correct? And also those dumpers may not support new metadata version, so you need to adjust them as well, the hung up probably on this or on how you decrypt.
I suggest you to:

  • Find the metadata version 
  • See if your CodeRegistration and MetadataRegistration are correct
  • See if they modified any Struct

thank you Batch I will check when I have a chance then let you know appreciate it 🙏

Posted

So i analyzed this one, im adding into my dumper with static analysis, can confirm that your CodeRegistration and MetadataRegistration are correct, there's no struct changes and metadata version is 31. Also note that this game is really really hard to dump 

Posted (edited)
22 minutes ago, Batch said:

So i analyzed this one, im adding into my dumper with static analysis, can confirm that your CodeRegistration and MetadataRegistration are correct, there's no struct changes and metadata version is 31. Also note that this game is really really hard to dump 

interesting would like to know what the issue is so I can learn from this? like is it one of the _IL2cpp functions? 

Edit: or maybe a bug with the XOR Decryption? 

Updated by Taylor Meyer
Posted
13 hours ago, Taylor Meyer said:

interesting would like to know what the issue is so I can learn from this? like is it one of the _IL2cpp functions? 

Edit: or maybe a bug with the XOR Decryption? 

They encrypted the sh!t out of it ahah, you need to reconstruct everything lol

But if you dump clean global-metadata.dat i think it's just XOR decryption bug. Use AI to help you out, here a hint:

const ZAKA_CODEGEN_MODULES_VA: u64 = 0x7B01720;
const ZAKA_NAME_XOR_KEY_VA: u64 = 0x706CF50;
const ZAKA_NAME_XOR_KEY_LEN: usize = 128;
const ZAKA_NAME_XOR_KEY_PREFIX: [u8; 8] = [0x2C, 0xC5, 0xD5, 0x9F, 0xCC, 0xCE, 0x8C, 0xFE];
const MAX_ZAKA_MODULE_NAME_BYTES: usize = 256;

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Our picks

    • Soccer Super Hero v0.36.3 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Soccer Super Hero By Omnithos Games HongKong Limited
      Bundle ID: com.soccer.football.score.ios
      App Store Link: https://apps.apple.com/ph/app/soccer-super-hero/id6754830171?uo=4

      🤩 Hack Features

      - ADS NO / Rewards Free
      - Unlimited Gems
      - Unlimited Coins
      - Market Value / Easy To Unlock All LvL & Rank
        • Agree
        • Haha
        • Winner
        • Like
      • 9 replies
    • Soccer Super Hero v0.36.3 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Soccer Super Hero By Omnithos Games HongKong Limited
      Bundle ID: com.soccer.football.score.ios
      App Store Link: https://apps.apple.com/ph/app/soccer-super-hero/id6754830171?uo=4

      🤩 Hack Features

      - ADS NO / Rewards Free
      - Unlimited Gems
      - Unlimited Coins
      - Market Value / Easy To Unlock All LvL & Rank
        • Agree
        • Haha
        • Thanks
        • Like
      • 13 replies
    • Super Heavy Iron Tank v1.1.4 [ +7 APK MOD ] Auto Win
      Mod APK Game Name: Super Heavy Iron Tank
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=net.gameduo.vg&hl=en

       

      🤩 Hack Features

      - ADS NO / Rewards Free
      - DMG
      - ATK Speed
      ::::: ViP :::::
      - Auto Win
      - Energy Unlimited
      - Auto Skip Wave
      - Quick Supply

       

      ⬇️ Android Mod APK Download Link


      Hidden Content

      iOSGods App for Android







       

      📖 Android Installation Instructions

      STEP 1: Download the modded APK file from the link above using your preferred Android browser or download manager.
      STEP 2: Once the download is complete, open your file manager and locate the downloaded .apk file (usually in the Downloads folder).
      STEP 3: Tap the APK file, then select Install. If prompted, enable Install from Unknown Sources in your device settings.
      STEP 3A: If the mod includes an OBB file, extract it if it’s inside an archive. Then move the folder to: /Android/obb/
      STEP 3B: If the mod includes a DATA file, extract it if it’s archived. Then move the folder to: /Android/data/
      STEP 4: Once installed, open the game and toggle your desired cheats & features through the APK mod menu. Enjoy!

       

      NOTE: If you have any questions or issues, read our Frequently Asked Questions topic. If you still need help, post your issue below and we’ll assist you as soon as possible. If the mod works for you, please share your feedback to help other members!

       

      🙌 Credits

      - IK_IK

       

      📷 Cheat Video/Screenshots

      N/A

       

       iOS & iPadOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & Hacks or the iOSGods App for a variety of modded games and apps for non-jailbroken iOS devices.
        • Like
      • 1 reply
    • Matching Story v1.67.01 [ +6 Cheats ] Auto Win
      Modded/Hacked App: Matching Story By VERTEX GAMES PTE. LTD.
      Bundle ID: matching.story
      iTunes Store Link: https://apps.apple.com/ph/app/matching-story/id1558803930?uo=4


      🤩 Hack Features

      - Auto Win

      - Coins

      - Diamonds [ Win Match Linked With Moves ]

      - Lives

      - Booster

      - Moves
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 109 replies
    • Matching Story v1.67.01 [ +6 Jailed ] Auto Win
      Modded/Hacked App: Matching Story By VERTEX GAMES PTE. LTD.
      Bundle ID: matching.story
      iTunes Store Link: https://apps.apple.com/ph/app/matching-story/id1558803930?uo=4

       
      🤩 Hack Features

      - Auto Win

      - Coins

      - Diamonds [ Win Match Linked With Moves ]

      - Lives

      - Booster

      - Moves
        • Informative
        • Agree
        • Haha
        • Thanks
        • Like
      • 107 replies
    • Sport Star - Team Manager Idle v0.10.0 [ +4 APK MOD ] Currency Max
      Mod APK Game Name: Sport Star - Team Manager Idle
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.coolcatsgames.sportstaridle&hl=en

      🤩 Hack Features

      - ADS NO / Rewards Free
      - Currency Freeze
      - Gems Max
      - Cash Increaser
      • 0 replies
    • Sport Star - Team Manager Idle v0.10.0 [ +5 Cheats ] Currency Max
      Modded/Hacked App: Sport Star - Team Manager Idle By Gryphon Games UG (haftungsbeschrankt)
      Bundle ID: com.coolcatsgames.sportstaridle
      App Store Link: https://apps.apple.com/us/app/sport-star-team-manager-idle/id6761053085?uo=4

      🤩 Hack Features

      - ADS NO / Rewards Free
      - Enough Currency
      - Currency Freeze
      - Gems Max
      - Cash Increaser
        • Like
      • 0 replies
    • Sport Star - Team Manager Idle v0.10.0 [ +5 Jailed ] Currency Max
      Modded/Hacked App: Sport Star - Team Manager Idle By Gryphon Games UG (haftungsbeschrankt)
      Bundle ID: com.coolcatsgames.sportstaridle
      App Store Link: https://apps.apple.com/us/app/sport-star-team-manager-idle/id6761053085?uo=4

      🤩 Hack Features

      - ADS NO / Rewards Free
      - Enough Currency
      - Currency Freeze
      - Gems Max
      - Cash Increaser
      • 0 replies
    • God Rivals: RPG Roguelike +8 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: God Rivals: RPG Roguelike By Gamee Joint Stock Company
      Bundle ID: com.gamee.godslayer.rpg.rougelike
      App Store Link: https://apps.apple.com/us/app/god-rivals-rpg-roguelike/id6747413590?uo=4

       

      🤩 Hack Features

      - God Mode
      - One-Hit Kill
      - Increased Attack Speed
      - No Skill Cooldown
      - Auto Win
      - Unlimited Currencies -> Will increase instead of decrease.
      - Unlock Premium Pass
      - Unlock Royal Pass
        • Informative
        • Winner
        • Like
      • 4 replies
    • Dragon Barrage: Brick Breaker v1.1.6 [ +6 APK MOD ] Auto Win
      Modded/Hacked App: Dragon Barrage By Ryogo Oka
      Bundle ID: game01.hosistem.ne
      App Store Link: https://apps.apple.com/us/app/dragon-barrage/id6760708796?uo=4

      🤩 Hack Features

      - ATK MAX
      :::::: VIP ::::::
      - Auto ADS NO
      - Auto Win
      - Unlimited Gems / Sell Items Then Get
      - Unlimited Energy
      - Enemy Freeze
        • Like
      • 2 replies
    • Dragon Barrage v1.1.6 [ +6 Cheats ] Auto Win
      Modded/Hacked App: Dragon Barrage By Ryogo Oka
      Bundle ID: game01.hosistem.ne
      App Store Link: https://apps.apple.com/us/app/dragon-barrage/id6760708796?uo=4

      🤩 Hack Features

      - ATK MAX
      :::::: VIP ::::::
      - Auto ADS NO
      - Auto Win
      - Unlimited Gems
      - Unlimited Energy
      - Enemy Freeze
      • 0 replies
    • Dragon Barrage v1.1.6 [ +6 Jailed ] Auto Win
      Modded/Hacked App: Dragon Barrage By Ryogo Oka
      Bundle ID: game01.hosistem.ne
      App Store Link: https://apps.apple.com/us/app/dragon-barrage/id6760708796?uo=4

      🤩 Hack Features

      - ATK MAX
      :::::: VIP ::::::
      - Auto ADS NO
      - Auto Win
      - Unlimited Gems
      - Unlimited Energy
      - Enemy Freeze
        • Like
      • 0 replies
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines