Jump to content

Set r0 to a fixed value? How?


Go to solution Solved by arthurdapaz,

5 posts in this topic

Recommended Posts

Posted (edited)

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? Updated by arthurdapaz
Posted

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)

  • Solution
Posted (edited)

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.

Updated by arthurdapaz

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

    • Travel Decor V1.0.11 [ +5 Cheats ] Auto Win
      Modded/Hacked App: Travel Decor By SHEN ZHEN QIYOU ICT. CO.LTD
      Bundle ID: com.match.fun.free.traveldecor
      App Store Link: https://apps.apple.com/ca/app/travel-decor/id6480403680?uo=4

      🤩 Hack Features

      - Auto ADS OFF
      - Auto Win / Use 1 Move
      - Unlimited Coins / Use & Earn
      - Unlimited Potion / Use & Earn
      - Unlimited Lives / Use & Earn
      • 0 replies
    • Travel Decor V1.0.11 [ +5 Jailed ] Auto Win
      Modded/Hacked App: Travel Decor By SHEN ZHEN QIYOU ICT. CO.LTD
      Bundle ID: com.match.fun.free.traveldecor
      App Store Link: https://apps.apple.com/ca/app/travel-decor/id6480403680?uo=4

      🤩 Hack Features

      - Auto ADS OFF
      - Auto Win / Use 1 Move
      - Unlimited Coins / Use & Earn
      - Unlimited Potion / Use & Earn
      - Unlimited Lives / Use & Earn
      • 0 replies
    • Strongest Knight Cheats v1.43 +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/
      • 32 replies
    • Hot Wheels Unlimited Modded v2025.2.0 +1
      Modded/Hacked App: Hot Wheels Unlimited By Budge Studios
      Bundle ID: com.budgestudios.HotWheelsUnlimited
      App Store Link: https://apps.apple.com/us/app/hot-wheels-unlimited/id1523486249?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

      - PREMIUM

       

      Non-Jailbroken Hack: https://iosgods.com/topic/135064-hot-wheels-unlimited-v202512-jailed-mod-1/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/135061-hot-wheels-unlimited-modded-v202512-1/
      • 68 replies
    • SUPERSTAR JYPNATION Cheats v3.26.8 +3
      Modded/Hacked App: SUPERSTAR JYPNATION By Dalcomsoft Inc.
      Bundle ID: com.dalcomsoft.ss.jyp
      iTunes Store Link: https://apps.apple.com/us/app/superstar-jypnation/id1086866467?uo=4


      Hack Features:
      - Auto Dance
      - Never Lose Combo
      - Always S.Perfect


      iOS Hack Download Link: https://iosgods.com/topic/184872-superstar-jypnation-cheats-v3180-3/
      • 26 replies
    • Subway Surfers Cheats v3.52.1 +5
      Modded/Hacked App: Subway Surfers By Sybo Games ApS
      Bundle ID: com.kiloo.subwaysurfers
      iTunes Store Link: https://apps.apple.com/us/app/subway-surfers/id512939461?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

      - Free Store (not Free iAP)
      - Free iAP (ViP Only)
      - Unlock Characters Outfit
      - Custom Jump Height
      - No Clip (To end level swipe to left til you get dizzy, swipe again and you will lose)

       

      Non-Jailbroken Hack: https://iosgods.com/topic/119795-subway-surfers-v3425-jailed-cheats-5/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/119793-subway-surfers-cheats-v3430-5/
      • 2,361 replies
    • Sniper 3D: Gun Shooting Games Cheats v5.32.0 +7
      Modded/Hacked App: Sniper 3D Assassin: FPS Battle By Fun Games For Free
      Bundle ID: com.fungames.sniper3d
      iTunes Store Link: https://itunes.apple.com/us/app/sniper-3d-assassin-fps-battle/id930574573?mt=8&uo=4&at=1010lce4



      Hack Features:
      - Infinite Coins Only (Upgrade Weapon and Speed up Delivery with Coins)
      - Infinite Energy
      - Infinite Ammo / No Reload
      - No Spread
      - Unlock Premium Weapon - Semi

      NOTE: The game diamond currency is completely server-sided so do not request


      Hack Download Link: https://iosgods.com/topic/74114-arm64-sniper-3d-fps-battle-shoot-to-kill-2018-cheats-all-versions-7/

      Credits:
      - @Laxus
      • 3,918 replies
    • Subway Surfers v3.52.1 +23 Jailed Cheats [ Currencies + More ]
      Modded/Hacked App: Subway Surfers By Sybo Games ApS
      Bundle ID: com.kiloo.subwaysurfers
      iTunes Store Link: https://apps.apple.com/us/app/subway-surfers/id512939461?uo=4


      Hack Features:
      - Unlimited Currencies
      - Freeze Currencies
      - Free In-App Purchases
      - All Characters Unlocked
      - All Boards Unlocked
      - God Mode
      - No Stumble
      - Score Multiplier
      - Speed Multiplier
      - Gravity Multiplier
      - Jump Height Multiplier
      - Air Jump Height Multiplier
      - Unlimited Jumps
      - Unlimited Powers
      - Instant Lane Change
      - Freeze Trains
      - No Clip
      - Disable All Pickup
      - No Revive Cost
      - Unlimited Jetpack Time
      - Camera Stops
      - Camera Follows


      Jailbreak required hack(s): [Mod Menu Hack] Subway Surfers v3.40.0 +20 Cheats [ Currencies + More ] - 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/
      • 74 replies
    • Subway Surfers v3.52.1 +23 Cheats [ Currencies + More ]
      Modded/Hacked App: Subway Surfers By Sybo Games ApS
      Bundle ID: com.kiloo.subwaysurfers
      iTunes Store Link: https://apps.apple.com/us/app/subway-surfers/id512939461?uo=4


      Hack Features:
      - Unlimited Currencies
      - Freeze Currencies
      - Free In-App Purchases
      - All Characters Unlocked
      - All Boards Unlocked
      - God Mode
      - No Stumble
      - Score Multiplier
      - Speed Multiplier
      - Gravity Multiplier
      - Jump Height Multiplier
      - Air Jump Height Multiplier
      - Unlimited Jumps
      - Unlimited Powers
      - Instant Lane Change
      - Freeze Trains
      - No Clip
      - Disable All Pickup
      - No Revive Cost
      - Unlimited Jetpack Time
      - Camera Stops
      - Camera Follows


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Subway Surfers v3.40.0 +20 Jailed Cheats [ Currencies + More ] - ViP Non-Jailbroken Hacks & 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/
      • 72 replies
    • Heroes Crew: Strategy Defense v1.3.51 [+12 Cheats]
      Modded/Hacked App: Heroes Crew: Strategy Defense By AlohaFactory
      Bundle ID: com.overdogs.heroes
      App Store Link: https://apps.apple.com/us/app/heroes-crew-strategy-defense/id6744350078?uo=4



      🤩 Hack Features

      - Add Currency
      - Unlimited Items
      - Unlimited Property (Heroes, Relic etc)
      - Activate VVip (Use after tutorial and only in main menu)
      - Activate Premium Hunt Pass (Use after tutorial and only in main menu)
      - Unlimited Battle Currency (Always Will Increase)
      • 113 replies
    • Heroes Crew: Strategy Defense v1.3.51 [+12 Jailed Cheats]
      Modded/Hacked App: Heroes Crew: Strategy Defense By AlohaFactory
      Bundle ID: com.overdogs.heroes
      App Store Link: https://apps.apple.com/us/app/heroes-crew-strategy-defense/id6744350078?uo=4



      🤩 Hack Features

      - Add Currency
      - Unlimited Items
      - Unlimited Property (Heroes, Relic etc)
      - Activate VVip (Use after tutorial and only in main menu)
      - Activate Premium Hunt Pass (Use after tutorial and only in main menu)
      - Unlimited Battle Currency (Always Will Increase)
      • 48 replies
    • Crunchyroll: Two Strikes v1.1.2 +2 Jailed Cheats [ Unlocked ]
      Modded/Hacked App: Crunchyroll: Two Strikes By Crunchyroll, LLC
      Bundle ID: com.crunchyroll.gv.twostrikes
      App Store Link: https://apps.apple.com/us/app/crunchyroll-two-strikes/id6742846993?uo=4

       


      🤩 Hack Features

      - God Mode *Online Untested*
      -- Full Game Unlocked
      • 7 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