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!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below. For more information, please read our Posting Guidelines.
Reply to this topic... Posting Guidelines

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Our picks

    • King God Castle:Tower Defense v153.0.02 +8 Cheats
      Modded/Hacked App: King God Castle By AWESOMEPIECE
      Bundle ID: com.awesomepiece.castle
      iTunes Store Link: https://apps.apple.com/us/app/king-god-castle/id1526791430?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing or any other file managers for iOS.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).


      Hack Features:
      - Damage Multiplier
      - Defense Multiplier
      - Unlimited Skills
      - Kill All Enemies
      - Spawn Max Level Units
      - Game Speed Multiplier
      - Free Summon Cost
      - Free Expand Cost
      - Jailbreak Detection Removed


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/


      iOS Hack Download Link:

      Hidden Content
      Download Hack







      Installation Instructions:
      STEP 1: Download the .deb Cydia hack file from the link above. Use Safari/Google Chrome or other iOS browsers to download.
      STEP 2: Once the file has downloaded, tap on it and then you will be prompted on whether you want to open the deb with iGameGod or copy it to Filza.
      STEP 3: If necessary, tap on the downloaded file, and then, you will need to press 'Install' from the options on your screen.
      STEP 4: Let iGameGod/Filza finish the cheat installation. Make sure it successfully installs, otherwise see the note below.
      STEP 5: If the hack is a Mod Menu — which is usually the case nowadays — the cheat features can be toggled in-game. Some cheats have options that can be enabled from your iDevice settings.
      STEP 6: Turn on the features you want and play the game. You may need to follow further instructions inside the hack's popup in-game.

       

      NOTE: If you have any questions or problems, read our Troubleshooting topic & Frequently Asked Questions & Answers topic. If you still haven't found a solution, post your issue down below and we'll do our best to help! If the hack does work for you, please post your feedback below and help out other fellow members that are encountering issues.


      Credits:
      - AlyssaX64


      Cheat Video/Screenshots:

      N/A
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 108 replies
    • League of Dreamers - My Story v2.0 +3 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: League of Dreamers - My Story By Story Inc. Company
      Bundle ID: com.storyincorporate.leagueofdreamers
      iTunes Store Link: https://apps.apple.com/us/app/league-of-dreamers-my-story/id1591679538
       

      Hack Features:
      - 666 Gems -> Earn some then restart the game.
      - 666 Keys -> Earn some then restart the game.
      - Free In-App Purchases -> Allows free in-app purchases.


      Jailbreak required hack(s): [Mod Menu Hack] League of Dreamers - My Story v1.54 +3 Cheats [ Unlimited Currencies ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 149 replies
    • League of Dreamers - My Story v2.0 +3 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: League of Dreamers - My Story By Story Inc. Company
      Bundle ID: com.storyincorporate.leagueofdreamers
      iTunes Store Link: https://apps.apple.com/us/app/league-of-dreamers-my-story/id1591679538
       

      Hack Features:
      - 666 Gems -> Earn some then restart the game.
      - 666 Keys -> Earn some then restart the game.
      - Free In-App Purchases


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 69 replies
    • The Walking Zombie 2 v3.33.0 +12 Jailed Cheats [ God Mode, Damage, Speed ]
      Modded/Hacked App: The Walking Zombie 2 By Alda Games s.r.o.
      Bundle ID: com.aldagames.zombieshooter
      iTunes Store Link: https://apps.apple.com/us/app/the-walking-zombie-2/id1477794561
       

      Hack Features:
      - Unlimited Silver
      - Unlimited Gold
      - God Mode
      - Custom Damage
      - Custom Move Speed
      - Custom Doctor
      - Unlimited Ammo -> Will not decrease.
      - Instant Reload
      - Insane Fire Rate
      - No Weapon Recoil
      - No Weapon Spread
      - No Camera Shake


      Jailbreak required hack(s): [Mod Menu Hack] The Walking Zombie 2 v3.6.12 +12 Cheats [ God Mode, Damage, Speed ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 83 replies
    • The Walking Zombie 2 v3.33.0 +12 Cheats [ God Mode, Damage, Speed ]
      Modded/Hacked App: The Walking Zombie 2 By Alda Games s.r.o.
      Bundle ID: com.aldagames.zombieshooter
      iTunes Store Link: https://apps.apple.com/us/app/the-walking-zombie-2/id1477794561


      Hack Features:
      - Unlimited Silver
      - Unlimited Gold
      - God Mode
      - Custom Damage
      - Custom Move Speed
      - Custom Doctor
      - Unlimited Ammo -> Will not decrease.
      - Instant Reload
      - Insane Fire Rate
      - No Weapon Recoil
      - No Weapon Spread
      - No Camera Shake


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 79 replies
    • MARVEL Puzzle Quest: Hero RPG v321.0.701151 +2 Jailed Cheats [ One-Hit Kill ]
      Modded/Hacked App: MARVEL Puzzle Quest: Hero RPG By D3PA
      Bundle ID: com.d3p.yorkMPQ
      iTunes Store Link: https://apps.apple.com/us/app/marvel-puzzle-quest-hero-rpg/id618349779


      Hack Features:
      - God Mode -> Linked. Wait until it's the enemies turn then enable this feature.
      - One-Hit Kill -> Linked. Wait until it's your turn then enable this feature.


      Jailbreak required hack(s): [Mod Menu Hack] MARVEL Puzzle Quest: Hero RPG v264.0.617994 +2 Cheats [ One-Hit Kill ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 96 replies
    • MeChat v4.32.2 +1 Jailed Cheat [ Unlimited Gems ]
      Modded/Hacked App: MeChat By PlayMe Studio
      Bundle ID: world.playme.mechat
      iTunes Store Link: https://apps.apple.com/us/app/mechat/id1536157979
       

      Hack Features:
      - Unlimited Gems -> Will increase instead of decrease.
      - Unlimited Gems -> Earn some then uninstall this hack. DO NOT SPEND ANY GEMS WHILST THIS FEATURE IS ENABLED! [ VIP ]


      Free Jailbreak required hack(s): [Mod Menu Hack] [Free] MeChat - Love Secrets v3.3.2 +1 Cheat [ Unlimited Gems ] - Free Jailbroken Cydia Cheats - iOSGods
      ViP Jailbreak required hack(s): [Mod Menu Hack] MeChat - Love Secrets v3.3.2 +1 Cheat [ Unlimited Gems ] - ViP Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 751 replies
    • Disney Speedstorm v1.11.0 +2 Jailed Cheats [ Unlimited Nitro ]
      Modded/Hacked App: Disney Speedstorm By Gameloft
      Bundle ID: com.gameloft.disneyspeedstorm
      iTunes Store Link: https://apps.apple.com/us/app/disney-speedstorm/id6449708682?uo=4


      Hack Features:
      - Unlimited Nitro -> Will not decrease.
      - Instant Nitro Max


      Jailbreak required hack(s): [Mod Menu Hack] Disney Speedstorm v1.5.0 +2 Cheats [ Unlimited Nitro ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 74 replies
    • Disney Speedstorm v1.11.0 +2 Cheats [ Unlimited Nitro ]
      Modded/Hacked App: Disney Speedstorm By Gameloft
      Bundle ID: com.gameloft.disneyspeedstorm
      iTunes Store Link: https://apps.apple.com/us/app/disney-speedstorm/id6449708682?uo=4


      Hack Features:
      - Unlimited Nitro -> Will not decrease.
      - Instant Nitro Max


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Disney Speedstorm v1.5.0 +2 Jailed Cheats [ Unlimited Nitro ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 63 replies
    • MARVEL Puzzle Quest: Hero RPG v321.0.701151 +2 Cheats [ One-Hit Kill ]
      Modded/Hacked App: MARVEL Puzzle Quest: Hero RPG By D3PA
      Bundle ID: com.d3p.yorkMPQ
      iTunes Store Link: https://apps.apple.com/us/app/marvel-puzzle-quest-hero-rpg/id618349779


      Hack Features:
      - God Mode -> Linked. Wait until it's the enemies turn then enable this feature. This feature will auto update itself once a new version of the app is released!
      - One-Hit Kill -> Linked. Wait until it's your turn then enable this feature. This feature will auto update itself once a new version of the app is released!


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] MARVEL Puzzle Quest: Hero RPG v264.0.617994 +1 Jailed Cheat [ One-Hit Kill ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 56 replies
    • [ VIP ] MeChat v4.32.2 +1 Cheat [ Unlimited Gems ]
      Modded/Hacked App: MeChat By PlayMe Studio
      Bundle ID: world.playme.mechat
      iTunes Store Link: https://apps.apple.com/us/app/mechat/id1536157979
       

      Hack Features:
      - Unlimited Gems -> Earn some then uninstall this hack. DO NOT SPEND ANY GEMS WHILST THIS FEATURE IS ENABLED!


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] MeChat - Love Secrets v3.3.2 +1 Jailed Cheat [ Unlimited Gems ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Free Jailbreak required hack(s): [Mod Menu Hack] [Free] MeChat - Love Secrets v3.3.2 +1 Cheat [ Unlimited Gems ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 128 replies
    • Claire's Chronicles: Solitaire v0.19.0 +1++ Jailed Cheat [ Unlimited Everything ]
      Modded/Hacked App: Claire's Chronicles: Solitaire By wooga gmbh
      Bundle ID: net.wooga.claires.chronicles.solitaire.design.mystery.town.adventure
      iTunes Store Link: https://apps.apple.com/gb/app/claires-chronicles-solitaire/id6478491092?uo=4


      Hack Features:
      - Unlimited Everything -> Will increase instead of decrease.


      Jailbreak required hack(s): [Mod Menu Hack] Claire's Chronicles: Solitaire v0.12.1 +1++ Cheat [ Unlimited Everything ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Like
      • 13 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