Jump to content

Boolean in ARM64?


Go to solution Solved by Guest,

9 posts in this topic

Recommended Posts

Posted

Hey,

 

So I'm trying to make my hack support arm64 devices too, lazy too use AutoLipo & since most devices are arm64 it's good to understand it I think.

 

So the hack is done for armv7, I got a boolean function which looks like this in armv7:

__text:003D5A58 sub_3D5A58                            
__text:003D5A58                                        
__text:003D5A58                 CMP             R0, #0
__text:003D5A5A                 ITTT EQ
__text:003D5A5C                 MOVEQ           R0, #0
__text:003D5A5E                 SXTBEQ          R0, R0
__text:003D5A60                 BXEQ            LR
__text:003D5A62                 MOV             R1, #(_OBJC_IVAR_$_Something) ; char _somethign;
__text:003D5A6A                 ADD             R1, PC  ; char _something;
__text:003D5A6C                 LDR             R1, [R1] ; char _something;
__text:003D5A6E                 LDRB            R0, [R0,R1]
__text:003D5A70                 SXTB            R0, R0
__text:003D5A72                 BX              LR

 

What I did here was,

Change CMP R0, #0 to MOV R0, #1

and change MOVEQ R0, #0 to MOVEQ R0, #1.

This worked.

 

Now I went to the same function in arm64, and my mind was like :o 

This is the code:

 

sub_10041D8DC                           ; CODE XREF: sub_10031C83C+228�p
__text:000000010041D8DC                                        
__text:000000010041D8DC                 CBZ             X0, locret_10041D8F4
__text:000000010041D8E0                 ADRP            X8, #_OBJC_IVAR_$_something._something@PAGE ; bool _something;
__text:000000010041D8E4                 LDRSW           X8, [X8,#_OBJC_IVAR_$_Something._something@PAGEOFF] ; bool _something;
__text:000000010041D8E8                 LDRB            W8, [X0,X8]
__text:000000010041D8EC                 CMP             W8, #0
__text:000000010041D8F0                 CSET            W0, NE
__text:000000010041D8F4
__text:000000010041D8F4 locret_10041D8F4                        ; CODE XREF: sub_10041D8DC�j
__text:000000010041D8F4                 RET

 

So I was actually looking for a boolean, which I thought was: MOV X0, #0 or MOV W0, #0.

The only function I see which I have to include is the CMP.

 

So my question, what's the boolean function? Is it diffrent named in arm64 binary's?

 

Thankyou in advance :D

  • Solution
Posted (edited)
4 minutes ago, Ted2 said:

Hey,

 

So I'm trying to make my hack support arm64 devices too, lazy too use AutoLipo & since most devices are arm64 it's good to understand it I think.

 

So the hack is done for armv7, I got a boolean function which looks like this in armv7:


__text:003D5A58 sub_3D5A58                            
__text:003D5A58                                        
__text:003D5A58                 CMP             R0, #0
__text:003D5A5A                 ITTT EQ
__text:003D5A5C                 MOVEQ           R0, #0
__text:003D5A5E                 SXTBEQ          R0, R0
__text:003D5A60                 BXEQ            LR
__text:003D5A62                 MOV             R1, #(_OBJC_IVAR_$_Something) ; char _somethign;
__text:003D5A6A                 ADD             R1, PC  ; char _something;
__text:003D5A6C                 LDR             R1, [R1] ; char _something;
__text:003D5A6E                 LDRB            R0, [R0,R1]
__text:003D5A70                 SXTB            R0, R0
__text:003D5A72                 BX              LR

 

What I did here was,

Change CMP R0, #0 to MOV R0, #1

and change MOVEQ R0, #0 to MOVEQ R0, #1.

This worked.

 

Now I went to the same function in arm64, and my mind was like :o 

This is the code:

 


sub_10041D8DC                           ; CODE XREF: sub_10031C83C+228�p
__text:000000010041D8DC                                        
__text:000000010041D8DC                 CBZ             X0, locret_10041D8F4
__text:000000010041D8E0                 ADRP            X8, #_OBJC_IVAR_$_something._something@PAGE ; bool _something;
__text:000000010041D8E4                 LDRSW           X8, [X8,#_OBJC_IVAR_$_Something._something@PAGEOFF] ; bool _something;
__text:000000010041D8E8                 LDRB            W8, [X0,X8]
__text:000000010041D8EC                 CMP             W8, #0
__text:000000010041D8F0                 CSET            W0, NE
__text:000000010041D8F4
__text:000000010041D8F4 locret_10041D8F4                        ; CODE XREF: sub_10041D8DC�j
__text:000000010041D8F4                 RET

 

So I was actually looking for a boolean, which I thought was: MOV X0, #0 or MOV W0, #0.

The only function I see which I have to include is the CMP.

 

So my question, what's the boolean function? Is it diffrent named in arm64 binary's?

 

Thankyou in advance :D

CSET W0, NE is setting W0 to 1 if W8 is not zero. Try modding that to MOV W0, #1

Updated by Guest
Typo
Posted (edited)
6 minutes ago, shmoo said:

CSET W0, NE is setting W0 to zero if W8 is not zero. Try modding that to MOV W0, #1

Crashes :S

 

Edit: did the CMP to MOV W0, #1, should've been MOV W8, #1.

Works fine now, thankyou Shmoo! :D

Updated by Ted2
Posted
2 minutes ago, Ted2 said:

Crashes :S

Refresh I made a typo in the explanation. try changing the LDRB to MOV W8, #1. that way W8 will always be 1 making it so that W0 will always be 1

4 minutes ago, Ted2 said:

Crashes :S

 

Edit: did the CMP to MOV W0, #1, should've been MOV W8, #1.

Works fine now, thankyou Shmoo! :D

Haha good job :)

Posted
8 minutes ago, DiDA said:

In ARM64

MOV X0, #1 = True

 

http://armconverter.com/submissions.php

Yea, I was looking there. But got confused when in the arm64 function wasn't a boolean to false like it was in the armv7 function xD

 

10 minutes ago, shmoo said:

Refresh I made a typo in the explanation. try changing the LDRB to MOV W8, #1. that way W8 will always be 1 making it so that W0 will always be 1

Haha good job :)

The LDRB to MOV W8, #1 doesn't seem to work, but I'll just keep it with the other ine xD

Posted (edited)

10041D8DC =

mov w0,#1

ret

 

acts as mov r0,#1 bxlr

Updated by MRS14T3R
Posted
4 minutes ago, MRS14T3R said:

mov w0,#1

ret

You mean from the begin of the function?

If yes, that will crash the game xD

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

    • Turret Defense King v1.2.21 [ +9 Cheats ] Gold Max
      Modded/Hacked App: Turret Defense King By MOBIRIX
      Bundle ID: com.mobirix.tdwt
      iTunes Store Link: https://apps.apple.com/us/app/turret-defense-king/id6480586157?uo=4


      🚀 Hack Features

      - ADS NO [ Rewards Free]

      - Gold [ Revive To Get ]

      - Battle Coins [ Enemy Drop Kill ]

      - Tower Cost [ Earn Battle Coins ]

      - Enemy Max [ Only Stage Mod] Easy Win

      - Wave Max [ Only Stage Mod] Easy Win

      - Tower DMG [ Just Rebuild & Upgrade ]

      - Tower ATK Range

      - Tower Fire Rate
      • 15 replies
    • Turret Defense King v1.2.21 [ +9 Jailed ] Gold Max
      Modded/Hacked App: Turret Defense King By MOBIRIX
      Bundle ID: com.mobirix.tdwt
      iTunes Store Link: https://apps.apple.com/us/app/turret-defense-king/id6480586157?uo=4


      🚀 Hack Features

      - ADS NO [ Rewards Free]

      - Gold [ Revive To Get ]

      - Battle Coins [ Enemy Drop Kill ]

      - Tower Cost [ Earn Battle Coins ]

      - Enemy Max [ Only Stage Mod] Easy Win

      - Wave Max [ Only Stage Mod] Easy Win

      - Tower DMG [ Just Rebuild & Upgrade ]

      - Tower ATK Range

      - Tower Fire Rate
      • 15 replies
    • Cooking World: Cooking Games v1.21 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Cooking World: Cooking Games By MagicSeven Co., Ltd
      Bundle ID: com.cooking.world.chef.craze.restaurant.fever
      iTunes Store Link: https://apps.apple.com/us/app/cooking-world-cooking-games/id6469040590?uo=4
       

      🤩 Hack Features

      - Gems [ Earn Some ]
      - Coins [ Earn Some ]
      - Exp [ Earn Some + Rewards ] Breakable Feature

      - Lives [ Linked With Exp ]
      • 12 replies
    • Cooking World: Cooking Games v1.21 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Cooking World: Cooking Games By MagicSeven Co., Ltd
      Bundle ID: com.cooking.world.chef.craze.restaurant.fever
      iTunes Store Link: https://apps.apple.com/us/app/cooking-world-cooking-games/id6469040590?uo=4

       

      🤩 Hack Features

      - Gems [ Earn Some ]
      - Coins [ Earn Some ]
      - Exp [ Earn Some + Rewards ] Breakable Feature 

      - Lives [ Linked With Exp ]
      • 15 replies
    • DEAD TARGET: FPS Zombie Games v6.153.0 [ +10 Cheats ] Currency Max
      Modded/Hacked App: DEAD TARGET: FPS Zombie Games By VNG SINGAPORE PTE LTD
      Bundle ID: com.vng.g6.a.zombie
      iTunes Store Link: https://apps.apple.com/us/app/dead-target-fps-zombie-games/id901793885?uo=4
       

      Hack Features

      - Unlimited Gold
      - Unlimited Cash

      - Unlimited Diamonds
      - Unlimited Grenades
      - Unlimited MedKits
      - Unlimited Ammo
      - One Hit Kill
      - God Mode
      - High Accuracy

      - ADS NO
      • 17 replies
    • DEAD TARGET: FPS Zombie Games v6.153.0 [ +10 Jailed ] Currency Max
      Modded/Hacked App: DEAD TARGET: FPS Zombie Games By VNG SINGAPORE PTE LTD
      Bundle ID: com.vng.g6.a.zombie
      iTunes Store Link: https://apps.apple.com/us/app/dead-target-fps-zombie-games/id901793885?uo=4
       

      Hack Features

      - Unlimited Gold
      - Unlimited Cash

      - Unlimited Diamonds
      - Unlimited Grenades
      - Unlimited MedKits
      - Unlimited Ammo
      - One Hit Kill
      - God Mode
      - High Accuracy

      - ADS NO
      • 29 replies
    • Run! Goddess v1.0.22 [+4 Jailed Cheats]
      Modded/Hacked App: Run! Goddess By TOP GAMES INC.
      Bundle ID: com.topgamesinc.rg
      iTunes Store Link: https://apps.apple.com/us/app/run-goddess/id6667111749?uo=4



      🤩 Hack Features

      - No Skill Cooldown
      - Slow Enemy
      - Enemy Can't Attack (Enemy Can't Do Damage)
      • 94 replies
    • Run! Goddess v1.0.22 [+4 Cheats]
      Modded/Hacked App: Run! Goddess By TOP GAMES INC.
      Bundle ID: com.topgamesinc.rg
      iTunes Store Link: https://apps.apple.com/us/app/run-goddess/id6667111749?uo=4

       

      🤩 Hack Features

      - No Skill Cooldown
      - Slow Enemy
      - Enemy Can't Attack (Enemy Can't Do Damage)
       
        • Winner
      • 80 replies
    • Alien Survivor: Survival Arena v1.38.1 [ +7 Cheats ] Currency Max
      Modded/Hacked App: Alien Survivor: Survival Arena By IMPONILOX LIMITED
      Bundle ID: world.playme.x
      iTunes Store Link: https://apps.apple.com/us/app/alien-survivor-survival-arena/id1669761844?uo=4
       

      🚀 Hack Features

      - ADS NO [ Rewards Free ]

      - Gems [ Achievements Rewards Only One Get ]

      - Energy [ Just Buy ]

      - HP [ Just Equip & Unequip ]

      - ATK [ Just Equip & Unequip ]

      - DEF [ Just Equip & Unequip ]

      - Skill CD [ First Get Then Use ]


      🍏 For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/forum/79-no-jailbreak-section/
      🤖 Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      • 15 replies
    • Alien Survivor: Survival Arena v1.38.1 [ +7 Jailed ] Currency Max
      Modded/Hacked App: Alien Survivor: Survival Arena By IMPONILOX LIMITED
      Bundle ID: world.playme.x
      iTunes Store Link: https://apps.apple.com/us/app/alien-survivor-survival-arena/id1669761844?uo=4


      🚀 Hack Features

      - ADS NO [ Rewards Free ]

      - Gems [ Achievements Rewards Only One Get ]

      - Energy [ Just Buy ]

      - HP [ Just Equip & Unequip ]

      - ATK [ Just Equip & Unequip ]

      - DEF [ Just Equip & Unequip ]

      - Skill CD [ First Get Then Use ]


      🍏 Jailbreak iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 27 replies
    • Legend of Survivors V1.2.8 [ +17 Jailed ] Currency Max
      Modded/Hacked App: Legend of Survivors By ABI GLOBAL LTD.
      Bundle ID: com.abi.legendofsurvivors
      iTunes Store Link: https://apps.apple.com/us/app/legend-of-survivors/id6489580730?uo=4


      Hack Features:

      - NO ADS

      - Gems 

      - Gold

      - Energy 

      - Material

      - Health Max [ Equip & Upgrade ]

      - Damage [ Equip & Upgrade ]

      - Skill Cooldown

      - EXP + Level [ Patrol Reward ]

      - Patrol Reward [ Claim Unlimited ]

      - Growth Pack Unlock

      - Growth Pack [ Claim Unlimited ]

      - Monthly card Pack Unlock

      - Monthly card Pack [ Claim Unlimited ]


      Jailbreak required hack(s): https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 49 replies
    • Legend of Survivors V1.2.8 [ +17 Cheats ] Currency Max
      Modded/Hacked App: Legend of Survivors By ABI GLOBAL LTD.
      Bundle ID: com.abi.legendofsurvivors
      iTunes Store Link: https://apps.apple.com/us/app/legend-of-survivors/id6489580730?uo=4


      Hack Features:
      - IAP Free [ Buy Anything - Gems Gold Ads Premium Packs ]

      - NO ADS

      - Gems 

      - Gold

      - Energy 

      - Material

      - Health Max [ Equip & Upgrade ]

      - Damage [ Equip & Upgrade ]

      - Skill Cooldown

      - EXP + Level [ Patrol Reward ]

      - Patrol Reward [ Claim Unlimited ]

      - Growth Pack Unlock

      - Growth Pack [ Claim Unlimited ]

      - Monthly card Pack Unlock

      - Monthly card Pack [ Claim Unlimited ]
      • 132 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