Jump to content

1 post in this topic

Recommended Posts

Posted

I am beginner and I am trying to hack the game Pocket Mortys, the game is like pokemon where IVs are randomly generated from 1-16. I want to hack this part of the game but I haven't been successful. I've loaded up the game into IDA and found the code for the function that generates these IV's, here it is

MortyData$$GenerateIVs                  ; CODE XREF: MortyData$$.ctor:loc_2690A8↑p
il2cpp:000000000026A9C4                                         ; DATA XREF: __data:000000000317E3B8↓o
il2cpp:000000000026A9C4
il2cpp:000000000026A9C4 var_20          = -0x20
il2cpp:000000000026A9C4 var_10          = -0x10
il2cpp:000000000026A9C4 var_s0          =  0
il2cpp:000000000026A9C4
il2cpp:000000000026A9C4                 STP             X22, X21, [SP,#-0x10+var_20]!
il2cpp:000000000026A9C8                 STP             X20, X19, [SP,#0x20+var_10]
il2cpp:000000000026A9CC                 STP             X29, X30, [SP,#0x20+var_s0]
il2cpp:000000000026A9D0                 ADD             X29, SP, #0x20
il2cpp:000000000026A9D4                 MOV             X20, X2
il2cpp:000000000026A9D8                 MOV             X21, X1
il2cpp:000000000026A9DC                 MOV             X19, X0
il2cpp:000000000026A9E0                 ADRP            X22, #byte_3357212@PAGE
il2cpp:000000000026A9E4                 LDRB            W8, [X22,#byte_3357212@PAGEOFF]
il2cpp:000000000026A9E8                 TBNZ            W8, #0, loc_26AA00
il2cpp:000000000026A9EC                 ADRL            X0, StringLiteral_7959 ; MortyDefault
il2cpp:000000000026A9F4                 BL              sub_25F7DF4
il2cpp:000000000026A9F8                 MOV             W8, #1
il2cpp:000000000026A9FC                 STRB            W8, [X22,#byte_3357212@PAGEOFF]
il2cpp:000000000026AA00
il2cpp:000000000026AA00 loc_26AA00                              ; CODE XREF: MortyData$$GenerateIVs+24↑j
il2cpp:000000000026AA00                 LDR             X0, [X19,#0x10]
il2cpp:000000000026AA04                 CBZ             X0, loc_26AAA8
il2cpp:000000000026AA08                 ADRL            X8, StringLiteral_7959 ; MortyDefault
il2cpp:000000000026AA10                 LDR             X1, [X8] ; MortyDefault
il2cpp:000000000026AA14                 MOV             X2, #0
il2cpp:000000000026AA18                 BL              System.String$$Equals_17774564
il2cpp:000000000026AA1C                 CBZ             W0, loc_26AA2C
il2cpp:000000000026AA20                 STP             W20, W20, [X19,#0x54]
il2cpp:000000000026AA24                 MOV             X8, X20
il2cpp:000000000026AA28                 B               loc_26AA90
il2cpp:000000000026AA2C ; ---------------------------------------------------------------------------
il2cpp:000000000026AA2C
il2cpp:000000000026AA2C loc_26AA2C                              ; CODE XREF: MortyData$$GenerateIVs+58↑j
il2cpp:000000000026AA2C                 ADD             W20, W20, #1
il2cpp:000000000026AA30                 MOV             X0, X21
il2cpp:000000000026AA34                 MOV             X1, X20
il2cpp:000000000026AA38                 MOV             X2, #0
il2cpp:000000000026AA3C                 BL              UnityEngine.Random$$Range_16731460
il2cpp:000000000026AA40                 STR             W0, [X19,#0x54]
il2cpp:000000000026AA44                 MOV             X0, X21
il2cpp:000000000026AA48                 MOV             X1, X20
il2cpp:000000000026AA4C                 MOV             X2, #0
il2cpp:000000000026AA50                 BL              UnityEngine.Random$$Range_16731460
il2cpp:000000000026AA54                 STR             W0, [X19,#0x58]
il2cpp:000000000026AA58                 MOV             X0, X21
il2cpp:000000000026AA5C                 MOV             X1, X20
il2cpp:000000000026AA60                 MOV             X2, #0
il2cpp:000000000026AA64                 BL              UnityEngine.Random$$Range_16731460
il2cpp:000000000026AA68                 MOV             X20, X0
il2cpp:000000000026AA6C                 LDP             W8, W9, [X19,#0x54]
il2cpp:000000000026AA70                 ADD             W8, W8, W0
il2cpp:000000000026AA74                 ADD             W8, W8, W9
il2cpp:000000000026AA78                 MOV             W9, #0x55555556
il2cpp:000000000026AA80                 SMULL           X8, W8, W9
il2cpp:000000000026AA84                 LSR             X9, X8, #0x3F ; '?'
il2cpp:000000000026AA88                 LSR             X8, X8, #0x20 ; ' '
il2cpp:000000000026AA8C                 ADD             W8, W8, W9
il2cpp:000000000026AA90
il2cpp:000000000026AA90 loc_26AA90                              ; CODE XREF: MortyData$$GenerateIVs+64↑j
il2cpp:000000000026AA90                 STR             W20, [X19,#0x5C]
il2cpp:000000000026AA94                 STR             W8, [X19,#0x50]
il2cpp:000000000026AA98                 LDP             X29, X30, [SP,#0x20+var_s0]
il2cpp:000000000026AA9C                 LDP             X20, X19, [SP,#0x20+var_10]
il2cpp:000000000026AAA0                 LDP             X22, X21, [SP+0x20+var_20],#0x30
il2cpp:000000000026AAA4                 RET
il2cpp:000000000026AAA8 ; ---------------------------------------------------------------------------
il2cpp:000000000026AAA8
il2cpp:000000000026AAA8 loc_26AAA8                              ; CODE XREF: MortyData$$GenerateIVs+40↑j
il2cpp:000000000026AAA8                 BL              sub_25F7F08
il2cpp:000000000026AAA8 ; End of function MortyData$$GenerateIVs

I have tried the following: Changing the first two BL UnityEngine.Random$$Range_16731460 functions to MOV W0, #16 and the third one to MOV X0, #16. I have done this using IGG's LIve Offset Patcher, and replacing the binary file with the modified one, in both occasions my game instantly crashes or after I turn the patches on in IGG.

After that didn't work I went to code for the function UnityEngine.Random$$Range_16731460, here it is

il2cpp:0000000000FF4D44 UnityEngine.Random$$Range_16731460      ; CODE XREF: AssetBundleDefs$$AppendPathWithAntiCache+50↑p
il2cpp:0000000000FF4D44                                         ; AudioController$$PlayRndSFX+EC↑p ...
il2cpp:0000000000FF4D44
il2cpp:0000000000FF4D44 var_20          = -0x20
il2cpp:0000000000FF4D44 var_10          = -0x10
il2cpp:0000000000FF4D44 var_s0          =  0
il2cpp:0000000000FF4D44
il2cpp:0000000000FF4D44                 STP             X22, X21, [SP,#-0x10+var_20]!
il2cpp:0000000000FF4D48                 STP             X20, X19, [SP,#0x20+var_10]
il2cpp:0000000000FF4D4C                 STP             X29, X30, [SP,#0x20+var_s0]
il2cpp:0000000000FF4D50                 ADD             X29, SP, #0x20
il2cpp:0000000000FF4D54                 MOV             X19, X1
il2cpp:0000000000FF4D58                 MOV             X20, X0
il2cpp:0000000000FF4D5C                 ADRP            X21, #qword_335E128@PAGE
il2cpp:0000000000FF4D60                 LDR             X2, [X21,#qword_335E128@PAGEOFF]
il2cpp:0000000000FF4D64                 CBNZ            X2, loc_FF4D7C
il2cpp:0000000000FF4D68                 ADRL            X0, aUnityengineRan_0 ; "UnityEngine.Random::RandomRangeInt(Syst"...
il2cpp:0000000000FF4D70                 BL              sub_25F7DAC
il2cpp:0000000000FF4D74                 MOV             X2, X0
il2cpp:0000000000FF4D78                 STR             X0, [X21,#qword_335E128@PAGEOFF]
il2cpp:0000000000FF4D7C
il2cpp:0000000000FF4D7C loc_FF4D7C                              ; CODE XREF: UnityEngine.Random$$Range_16731460+20↑j
il2cpp:0000000000FF4D7C                 MOV             X0, X20
il2cpp:0000000000FF4D80                 MOV             X1, X19
il2cpp:0000000000FF4D84                 LDP             X29, X30, [SP,#0x20+var_s0]
il2cpp:0000000000FF4D88                 LDP             X20, X19, [SP,#0x20+var_10]
il2cpp:0000000000FF4D8C                 LDP             X22, X21, [SP+0x20+var_20],#0x30
il2cpp:0000000000FF4D90                 BR              X2
il2cpp:0000000000FF4D90 ; End of function UnityEngine.Random$$Range_16731460

I really don't know what I can do to this function help me but here it is in case anyone has an idea. If anyone can help or if i'm doing something wrong please let me know!

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

    • Empire Heroes: Strategy Game v1.0.1 [+4 Jailed Cheats]
      Modded/Hacked App: Empire Heroes: Strategy Game By VIETNAM TAAP TECHNOLOGY COMPANY LIMITED
      Bundle ID: com.nature.empireheroes
      App Store Link: https://apps.apple.com/us/app/empire-heroes-strategy-game/id6742527014?uo=4


      🤩 Hack Features

      - Unlimited Coins
      - Unlimited Gems
      - Free IAP
      - Never Die
      • 1 reply
    • Empire Heroes: Strategy Game v1.0.1 [+4 Cheats]
      Modded/Hacked App: Empire Heroes: Strategy Game By VIETNAM TAAP TECHNOLOGY COMPANY LIMITED
      Bundle ID: com.nature.empireheroes
      App Store Link: https://apps.apple.com/us/app/empire-heroes-strategy-game/id6742527014?uo=4


       

      🤩 Hack Features

      - Unlimited Coins
      - Unlimited Gems
      - Free IAP
      - Never Die
      • 0 replies
    • Matching Story v1.42.04 [ +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
      • 35 replies
    • Matching Story v1.42.04 [ +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
      • 45 replies
    • Shadow Fight 4: Arena Cheat v1.9.50 +4
      Modded/Hacked App: Shadow Fight 4: Arena By Nekki Limited
      Bundle ID: com.nekki.shadowfightarena
      iTunes Store Link: https://apps.apple.com/us/app/shadow-fight-4-arena/id1479050948?uo=4


      Hack Features:
      - Freeze Enemies

      ViP Features:
      - Multiply Attack
      - Multiply Defense
      - God Mode
       

      Non-Jailbroken & No Jailbreak required hack(s):  https://iosgods.com/topic/136035-shadow-fight-4-arena-v1920-jailed-cheat-4/


      iOS Hack Download Link: https://iosgods.com/topic/136014-shadow-fight-4-arena-cheat-v1920-4/
      • 385 replies
    • [ ArKnights TW ] 明日方舟 v28.4.01 - [ x Player Damage & More ]
      Modded/Hacked App: 明日方舟 By GRYPH FRONTIER PTE. LTD.
      Bundle ID: tw.txwy.ios.arknights
      iTunes Store Link: https://apps.apple.com/tw/app/%E6%98%8E%E6%97%A5%E6%96%B9%E8%88%9F/id1490985322?uo=4

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - x Player Damage - x1 - 1000
      - x Player Defense - x1 - 1000
      - x Player Attack Speed - x1 - 10
      - Frozen Enemies
      - Instant - Kill
      - Instant - Win
      - Unlimited Skills
      - No Deploy Cost

       

      Non-Jailbroken Hack: https://iosgods.com/topic/129722-arknights-tw-%E6%98%8E%E6%97%A5%E6%96%B9%E8%88%9F-v26321-jailed-cheats-8/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/129583-arknights-tw-%E6%98%8E%E6%97%A5%E6%96%B9%E8%88%9F-v26321-x-player-damage-more/
      • 460 replies
    • Sneaky Sasquatch Cheats v2.0.6 +3
      Modded/Hacked App: Sneaky Sasquatch By RAC7 Games
      Bundle ID: com.rac7.SneakySasquatch
      iTunes Store Link: https://apps.apple.com/us/app/sneaky-sasquatch/id1098342019?uo=4


      Hack Features:
      - Infinite Gold
      - Unlock All
      - No Hunger


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/148262-sneaky-sasquatch-v172-jailed-cheats-3/


      iOS Hack Download Link: https://iosgods.com/topic/148261-sneaky-sasquatch-cheats-v172-3/
      • 183 replies
    • Mini Militia - Doodle Army 2 Cheats v5.6.0 +8 [ God Mode & More ]
      Modded/Hacked App: Mini Militia - Doodle Army 2 By Miniclip SA
      Bundle ID: com.chadtowns.da2
      App Store Link: https://apps.apple.com/us/app/mini-militia-doodle-army-2/id405885221?uo=4

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - God Mode
      - One Hit Kill
      - Infinite Ammo
      - No Reload
      - Infinite Grenade
      - Infinite Jetpack Boost
      - Friendly Fire Enabled
      - Premium

       

      Free Non-Jailbroken Hack: https://iosgods.com/topic/178790-mini-militia-doodle-army-2-v560-jailed-cheats-5/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/96342-mini-militia-doodle-army-2-cheats-v560-8-god-mode-more/
      • 602 replies
    • Tower of God: NEW WORLD Cheats v2.12.00 +4
      Modded/Hacked App: Tower of God: NEW WORLD By Netmarble Corporation
      Bundle ID: com.netmarble.tog
      iTunes Store Link: https://apps.apple.com/us/app/tower-of-god-new-world/id1599435437?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Always Critical
      - Skip Battle Intro


      Non-Jailbroken & No Jailbreak required hack(s): 
       

      iOS Hack Download Link: https://iosgods.com/topic/186202-tower-of-god-new-world-cheats-v20101-4/
      • 96 replies
    • Merge Magic Academy v1.7.0 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Merge Magic Academy By ZYMobile
      Bundle ID: com.zymobile.magic.merge.ios
      App Store Link: https://apps.apple.com/us/app/merge-magic-academy/id6746467003?uo=4


      🤩 Hack Features

      - Gems
      - Energy
      - Stars
      • 1 reply
    • Merge Magic Academy v1.7.0 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Merge Magic Academy By ZYMobile
      Bundle ID: com.zymobile.magic.merge.ios
      App Store Link: https://apps.apple.com/us/app/merge-magic-academy/id6746467003?uo=4
       

      🤩 Hack Features

      - Gems
      - Energy
      - Stars
      • 1 reply
    • Loot Heroes v1.8.0 +10 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Loot Heroes: Fantasy RPG Games By BoomBit, Inc.
      Bundle ID: com.bbp.lootheroes
      iTunes Store Link: https://apps.apple.com/us/app/loot-heroes-fantasy-rpg-games/id6642699678?uo=4


      Hack Features:
      - Freeze Currencies
      - God Mode -> Traps still cause damage.
      - One-Hit Kill
      - All Heroes Unlocked
      - All Skins Unlocked
      - No Skill Cooldown
      - No Ads

      VIP
      - Unlimited Currencies -> Earn some.
      - Auto Win
      - Battle Pass Unlocked
      • 118 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