Jump to content

Set r0 to a fixed value? How?


arthurdapaz

5 posts in this topic

Recommended Posts

Hello friends! My assembly knowledge is poor and I have a problemo here.

 

The image below shows what I'm trying to patch.

 

cMc40bI.jpg

 

I have set breakpoint (via gdb) on this highlighted address (0x1100E2), which moves to r0 the value of processed sub_1C00F2 as noticed when viewing rX registers.

 

r0             0x23aac00        37399552
r1             0x34     52
r2             0x176abfb0       392871856
r3             0x3      3
r4             0x0      0
r5             0x176abfb0       392871856
r6             0x23aac00        37399552
r7             0x1149370        18125680
r8             0x16e08ac0       383814336
r9             0x16e08aa0       383814304
r10            0x40000  262144
r11            0xffffffff       -1
r12            0x39d53aec       970275564
sp             0x1149364        18125668
lr             0x1db6b5 1947317
pc             0x1c00e2 1835234
cpsr           0x20000030       536870960
How can I set r0 value to this 0x23aac00 (37399552) and fix it, so the CMP.W right after will result the same always?
Link to comment
https://iosgods.com/topic/31060-set-r0-to-a-fixed-value-how/
Share on other sites

MOV R0,#0x23aac00

Just convert it to hex via the hex converter up there. See the original in hex, reverse it and see which ARM it is. Use the same ARM and replace it into the binary (make sure its a duplicate so you have the origjnal one just in case)

oh guys! I got, actually, thanks to @shmoo. I was misunderstanding the logic. The trick is different, we need to consider the CMP.W and what it is doing... It is comparing R0 with 0xFFFFFFFF, so, I just need to fix this comparison value, instead of setting r0 to any random number.

 

So, we replace this BL sub_... with a MOV R0, #0xFFFFFFFF and the CMP.W will always return what we want! Anything different from #0xFFFFFFFF (which is -1), will return other value.

Archived

This topic is now archived and is closed to further replies.

  • Our picks

    • Alien Invasion: RPG Idle Space Cheats v4.03.01 +2
      Modded/Hacked App: Alien Invasion: RPG Idle Space By MULTICAST GAMES LIMITED
      Bundle ID: com.multicastgames.venomSurvive
      iTunes Store Link: https://apps.apple.com/us/app/alien-invasion-rpg-idle-space/id6443697602?uo=4


      Hack Features:
      - Infinite Currencies


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/167591-alien-invasion-rpg-idle-space-v204-jailed-cheats-1/


      iOS Hack Download Link: https://iosgods.com/topic/167589-alien-invasion-rpg-idle-space-cheats-v204-1/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 392 replies
    • Toy Blast Cheats v18340 +6
      Modded/Hacked App: Toy Blast By Peak Games
      Bundle ID: net.peakgames.amy
      iTunes Store Link: https://itunes.apple.com/us/app/toy-blast/id890378044?mt=8&uo=4&at=1010lce4



      Hack Features:
      - Infinite Hearts
      - Infinite Coins
      - Infinite Boosters
      - Never Lose
      - High Score
      - Always 3 Stars


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/73056-arm64-toy-blast-v5431-jailed-cheats-3/


      Hack Download Link: https://iosgods.com/topic/73037-arm64-toy-blast-cheats-v5475-6/



      Credits:
      - @Laxus
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 630 replies
    • Travel Town - Merge Adventure Cheats v2.12.890 +1
      Modded/Hacked App: Travel Town By Magmatic Games Ltd
      Bundle ID: io.randomco.travel
      iTunes Store Link: https://apps.apple.com/us/app/travel-town/id1521236603?uo=4


      Hack Features:
      - Infinite Currencies


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/148953-travel-town-v231-jailed-cheats-1/

      iOS Hack Download Link: https://iosgods.com/topic/148951-travel-town-cheats-all-versions-1/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 128 replies
    • Hill Climb Racing 2 v1.64.2 Cheats +1
      Modded/Hacked App: Hill Climb Racing 2 By Fingersoft
      Bundle ID: com.fingersoft.hillclimbracing2
      iTunes Store Link: https://apps.apple.com/us/app/hill-climb-racing-2/id1146465836?uo=4


      Hack Features:
      - Freeze Coins
      - Freeze Gems
      - Freeze Scraps


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/108295-hill-climb-racing-2-v1611-jailed-cheats-2/


      iOS Hack Download Link: https://iosgods.com/topic/108298-hill-climb-racing-2-v1612-cheats-3/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 2,157 replies
    • Smurfs' Village Cheats v2.73.1 +1
      Modded/Hacked App: Smurfs' Village By Flashman Studios LLC
      Bundle ID: com.capcommobile.smurfs
      iTunes Store Link: https://itunes.apple.com/us/app/smurfs-village/id399648212?mt=8&uo=4&at=1010lce4



      Hack Features:
      - Infinite Gold (Spend some)
      - Infinite SmurfBerries (Spend some)


      Hack Download Link: https://iosgods.com/topic/75948-arm64-smurfs-village-cheats-v1680-2/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 434 replies
    • Strongest Knight Cheats v1.09 +4
      Modded/Hacked App: Strongest Knight By Superlink Ltd.
      Bundle ID: com.idlemaster.hero
      iTunes Store Link: https://apps.apple.com/us/app/strongest-knight/id6738113239?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Freeze Currencies
      - No Ads (Don't use the deb cheat unless you complete tutorial -- Finish use 4 ads boost quest)
       


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/190406-strongest-knight-v106-jailed-cheats-4/


      iOS Hack Download Link: https://iosgods.com/topic/190404-strongest-knight-cheats-v106-4/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 21 replies
    • Pocket Champs PVP Racing Games Cheats v5.4.20 +2
      Modded/Hacked App: Pocket Champs: 3D Racing Games By MADBOX
      Bundle ID: com.pocketchamps.game
      iTunes Store Link: https://apps.apple.com/us/app/pocket-champs-3d-racing-games/id1542776143?uo=4


      Hack Features:
      - Free Store (not Free iAP) -- Negative value will reset to 0 on launch
      - Infinite Coins & Gems

      iOS Hack Download Link: https://iosgods.com/topic/165006-pocket-champs-3d-racing-games-cheats-v318-2/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 176 replies
    • Warhammer 40,000: Tacticus v1.25.22 +4 Cheats
      Modded/Hacked App: Warhammer 40,000: Tacticus By Snowprint Studios AB
      Bundle ID: com.snowprintstudios.tacticus
      iTunes Store Link: https://apps.apple.com/us/app/warhammer-40-000-tacticus/id1599937506?uo=4

      Hack Features:
      - Always Win [ even if all your characters die, you win ]
      - Custom Ability Stats
      - Ability Always Available
      - Game Speed Multiplier

      Note: Use characters that do ability attack to multiple enemies like Varro Tigurius & Bellator


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/163492-warhammer-40000-tacticus-v1133-3-cheats-for-jailed-idevices/


      iOS Hack Download Link: https://iosgods.com/topic/163377-warhammer-40000-tacticus-v1133-4-cheats/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 273 replies
    • Groove Journey v3.1.1 Jailed Mod +1
      Modded/Hacked App: Groove Journey By Somtochukwu Mbala
      Bundle ID: com.kaipha.groovejourney
      iTunes Store Link: https://apps.apple.com/us/app/groove-journey/id6736345547?uo=4


      Hack Features:
      - PREMIUM


      iOS Hack Download IPA Link: https://iosgods.com/topic/190862-groove-journey-v311-jailed-mod-1/
      • 0 replies
    • BitLife - Life Simulator Cheats v3.17.4 +2
      Modded/Hacked App: BitLife - Life Simulator by Candywriter, LLC
      Bundle ID: com.wtfapps.apollo16
      iTunes Store Link: https://apps.apple.com/us/app/bitlife-life-simulator/id1374403536?uo=4&at=1010lce4


      Hack Features:
      - Infinite Cash
      - Free Bitizen Purchase (Press Cancle) - Work for All Versions


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/84167-arm64-bitlife-life-simulator-v1412-jailed-cheats-2/


      Hack Download Link: https://iosgods.com/topic/84223-arm64-bitlife-life-simulator-cheats-all-versions-2/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 3,403 replies
    • Office Cat: Idle Tycoon Game v1.0.37 +1 Jailed Cheat
      Modded/Hacked App: Office Cat: Idle Tycoon Game By treeplla Inc.
      Bundle ID: com.tree.idle.cat.office
      iTunes Store Link: https://apps.apple.com/us/app/office-cat-idle-tycoon-game/id6471960010?uo=4


      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Sideloadly / Cydia Impactor or alternatives.
      - A Computer Running Windows/macOS/Linux with iTunes installed.


      Hack Features:
      - Reward Multiplier*

      *Turn Off When You Get Enough Currencies Otherwise It'll Go Negative


      Jailbreak required hack(s): 


      iOS Hack Download IPA Link:

      Hidden Content

      Download via the iOSGods App








      PC Installation Instructions:
      STEP 1: If necessary, uninstall the app if you have it installed on your iDevice. Some hacked IPAs will install as a duplicate app. Make sure to back it up so you don't lose your progress.
      STEP 2: Download the pre-hacked .IPA file from the link above to your computer. To download from the iOSGods App, see this tutorial topic.
      STEP 3: Download Sideloadly and install it on your PC.
      STEP 4: Open/Run Sideloadly on your computer, connect your iOS Device, and wait until your device name shows up.
      STEP 5: Once your iDevice appears, drag the modded .IPA file you downloaded and drop it inside the Sideloadly application.
      STEP 6: You will now have to enter your iTunes/Apple ID email login, press "Start" & then you will be asked to enter your password. Go ahead and enter the required information.
      STEP 7: Wait for Sideloadly to finish sideloading/installing the hacked IPA. If there are issues during installation, please read the note below.
      STEP 8: Once the installation is complete and you see the app on your Home Screen, you will need to go to Settings -> General -> Profiles/VPN & Device Management. Once there, tap on the email you entered from step 6, and then tap on 'Trust [email protected]'.
      STEP 9: Now go to your Home Screen and open the newly installed app and everything should work fine. You may need to follow further per app instructions inside the hack's popup in-game.

      NOTE: iOS/iPadOS 16 and later, you must enable Developer Mode. For free Apple Developer accounts, you will need to repeat this process every 7 days. Jailbroken iDevices can also use Sideloadly/Filza/IPA Installer to normally install the IPA with AppSync. If you have any questions or problems, read our Sideloadly FAQ section of the topic and if you don't find a solution, please post your issue down below and we'll do our best to help! If the hack does work for you, 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
      • 76 replies
    • Office Cat Tycoon: Idle games v1.0.37 +1 Cheat
      Modded/Hacked App: Office Cat Tycoon: Idle games By treeplla Inc.
      Bundle ID: com.tree.idle.cat.office
      iTunes Store Link: https://apps.apple.com/us/app/office-cat-tycoon-idle-games/id6471960010?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:
      - Reward Multiplier*

      *Turn Off When You Get Enough Currencies Otherwise It'll Go Negative


      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
      • 65 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