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

    • Shoot & Hide v1.5.3 [ +6 Cheats ] Currency Max
      Modded/Hacked App: Shoot & Hide By CRAZY LABS BY TABTALE , G.P.
      Bundle ID: com.sniper.shoot.hide.game
      App Store Link: https://apps.apple.com/us/app/shoot-hide/id6747033069?uo=4

      🤩 Hack Features

      Pre Activated
      - Currency Max / Earn Then Get
      - Trophies Max Earn Then Get
      - Heroes Unlocked / Linked Trophies
      - Location Unlocked / Linked Trophies
      - Merge Anything
      - HP MAX / ON When Enemy Turn After Disable
        • Like
      • 2 replies
    • Shoot & Hide v1.5.3 [ +6 Jailed ] Currency Max
      Modded/Hacked App: Shoot & Hide By CRAZY LABS BY TABTALE , G.P.
      Bundle ID: com.sniper.shoot.hide.game
      App Store Link: https://apps.apple.com/us/app/shoot-hide/id6747033069?uo=4

      🤩 Hack Features

      Pre Activated
      - Currency Max / Earn Then Get
      - Trophies Max Earn Then Get
      - Heroes Unlocked / Linked Trophies
      - Location Unlocked / Linked Trophies
      - Merge Anything
      - HP MAX / ON When Enemy Turn After Disable
      • 1 reply
    • Real War: Survival Game v0.1.4 [ +4 APK MOD ] Troops Max
      Mod APK Game Name: Real War: Survival Game
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.zc.action.war.survival.game

      🤩 Hack Features

      - Auto ADS NO
      - Upgrade Cost 0 / Easy To Get Coins - ATK - Fire Rate
      ::::::: VIP :::::::
      - Unlimited Troops / Hit Damage Then Use It / Just Hit 🟢🔴 Then Work
      - Max ATK
        • Informative
        • Agree
        • Winner
      • 2 replies
    • Real War: Survival Game v1.1.0 [ +4 Cheats ] Troops Max
      Modded/Hacked App: Real War: Survival Game By Rameez Rehmat
      Bundle ID: com.sku.action.war.survival.games
      App Store Link: https://apps.apple.com/us/app/real-war-survival-game/id6772532581?uo=4

      🤩 Hack Features

      - Auto ADS NO
      - Upgrade Cost 0 / Easy To Get Coins - ATK - Fire Rate
      ::::::: VIP :::::::
      - Unlimited Troops / Hit Damage Then Use It / Just Hit 🟢🔴 Then Work
      - Custom ATK 
        • Like
      • 1 reply
    • Real War: Survival Game v1.1.0 [ +4 Jailed ] Troops Max
      Modded/Hacked App: Real War: Survival Game By Rameez Rehmat
      Bundle ID: com.sku.action.war.survival.games
      App Store Link: https://apps.apple.com/us/app/real-war-survival-game/id6772532581?uo=4

      🤩 Hack Features

      - Auto ADS NO
      - Upgrade Cost 0 / Easy To Get Coins - ATK - Fire Rate
      ::::::: VIP :::::::
      - Unlimited Troops / Hit Damage Then Use It / Just Hit 🟢🔴 Then Work
      - Custom ATK 
        • Agree
        • Like
      • 0 replies
    • DRAGON BALL Z DOKKAN BATTLE Japan (ドラゴンボールZ ドッカンバトル) v6.2.5 +7 Cheats!
      Modded/Hacked App: ドラゴンボールZ ドッカンバトル By BANDAI NAMCO Entertainment Inc.
      Bundle ID: jp.co.bandainamcogames.BNGI0211
      iTunes Link: https://itunes.apple.com/jp/app/ドラゴンボールz-ドッカンバトル/id951627670


      Hack Features
      - Unlimited HP  -  (Put .0 at the back of your value: 1000.0)
      - Unlimited Damage  -  (Put .0 at the back of your value: 1000.0)
      - Unlimited Defense  -  (Put .0 at the back of your value: 1000.0)
      - Dice Hack -  [ONLY RANGE BETWEEN 1 - 6 or it will crash]  -  (Put .0 at the back of your value: 4.0)
      - Dice Hack 1, 2, 3
      - Dice Hack 4, 5, 6
      - Auto Win Battles -> Disable if you get errors.
      PUT .0 at the back of all values!
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 8,073 replies
    • Mushroom War: Evolution TD v1.16.2 [ +8 APK MOD ] Currency Max
      Mod APK Game Name: Mushroom War: Evolution TD
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=rollingball.td.mushroom.warriors&hl=en

      🤩 Hack Features

      - ADS Skip Ticket Max / Rewards Free
      - Battle Food Speed
      ::::::: VIP :::::::
      - AI Freeze
      - Unlimited Gems
      - Unlimited Coins
      - Base HP MAX
      - Base HP Freeze
      - Hero HP Freeze
        • Like
      • 1 reply
    • Mushroom War: Evolution TD v1.2.0 [ +8 Cheats ] Currency Max
      Modded/Hacked App: Mushroom War: Evolution TD By Hangzhou Rolling Technology Co., Ltd.
      Bundle ID: com.snowball.td.mushroom
      App Store Link: https://apps.apple.com/us/app/mushroom-war-evolution-td/id6761058966?uo=4

      🤩 Hack Features

      - ADS Skip Ticket Max / Rewards Free
      - Battle Food
      ::::::: VIP :::::::
      - AI Freeze
      - Unlimited Gems
      - Unlimited Coins
      - Base HP MAX
      - Base HP Freeze
      - Hero HP Freeze
        • Like
      • 2 replies
    • Mushroom War: Evolution TD v1.2.0 [ +8 Jailed ] Currency Max
      Modded/Hacked App: Mushroom War: Evolution TD By Hangzhou Rolling Technology Co., Ltd.
      Bundle ID: com.snowball.td.mushroom
      App Store Link: https://apps.apple.com/us/app/mushroom-war-evolution-td/id6761058966?uo=4

      🤩 Hack Features

      - ADS Skip Ticket Max / Rewards Free
      - Battle Food
      ::::::: VIP :::::::
      - AI Freeze
      - Unlimited Gems
      - Unlimited Coins
      - Base HP MAX
      - Base HP Freeze
      - Hero HP Freeze
        • Like
      • 1 reply
    • Skull Hero : XP Farm RPG v0.0.1.6 [ +3 APK MOD ] ATK MAX
      Mod APK Game Name: Skull Hero : XP Farm RPG
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.horus.hero.xp.farm.rpg&hl=en

      🤩 Hack Features

      - ViP Active
      - Enough Gems
      - ATK MAX
      • 0 replies
    • Skull Hero : XP Farm RPG v0.1.0 [ +3 Cheats ] ATK MAX
      Modded/Hacked App: Skull Hero : XP Farm RPG By HORUS ENTERTAINMENT LIMITED
      Bundle ID: com.horusent.hero.xp.farm.rpg
      App Store Link: https://apps.apple.com/us/app/skull-hero-xp-farm-rpg/id6775685404?uo=4

      🤩 Hack Features

      - ViP Active
      - Enough Gems
      - ATK MAX
        • Like
      • 1 reply
    • Skull Hero : XP Farm RPG v0.1.0 [ +3 Jailed ] ATK MAX
      Modded/Hacked App: Skull Hero : XP Farm RPG By HORUS ENTERTAINMENT LIMITED
      Bundle ID: com.horusent.hero.xp.farm.rpg
      App Store Link: https://apps.apple.com/us/app/skull-hero-xp-farm-rpg/id6775685404?uo=4

      🤩 Hack Features

      - ViP Active
      - Enough Gems
      - ATK MAX
        • Informative
        • Agree
        • Thanks
      • 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