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

    • DomiNations v12.1470.1471 +40++ Cheats [ Exclusive ]
      Modded/Hacked App: DomiNations by NEXON M Inc.
      Bundle ID: com.nexonm.dominations
      iTunes Store Link: https://itunes.apple.com/us/app/dominations/id922558758


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iFile / Filza / iFunBox / iTools or any other file managers for iOS.
      - Cydia Substrate (from Cydia).
      - PreferenceLoader (from Cydia).


      Hack Features:
      - Unlimited Crowns/Food/Oil/Gold -> Resources will add instead of subtracting. Works with Crowns. Read note inside the feature for more information! This does not work for speeding up buildings.
      - All Achievements Unlocked
      - Freeze Crowns/Food/Oil/Gold -> Freezes Resources so they do not decrease when used! This does not work for speeding up buildings.
      - No Citizens Cost
      - Place Multiple of Same Building
      - 0 Cost to Speed Up Training Troops
      - 0 Cost to Speed Up Tactics
      - 0 Food Cost to Train Troops
      - 0 Food Cost to Upgrade Troops
      - No Timer to Upgrade Troops
      - 0 Food Cost to Train Spells
      - 0 General Train Cost
      - No General Train Cooldown
      - 0 Food Cost to Build Wonder
      - 0 Food Cost to Research Troops
      - 0 Food Cost to Upgrade Tactics
      - No Timer to Library Research
      - No Timer to Upgrade Spells
      - 0 Cost to Upgrade Buildings
      - 0 Workers Required to Upgrade
      This hack is an In-Game Mod Menu (iGMM). In order to activate the Mod Menu, tap on the iOSGods button found inside the app.
        • Informative
        • Agree
        • Like
      • 4,976 replies
    • (Obtained a Mythical) 신화급 귀속 아이템을 손에 넣었다 : 방치형 RPG v1.2.3 +3 Jailed Cheats
      Modded/Hacked App: 신화급 귀속 아이템을 손에 넣었다 : 방치형 RPG By STUDIO LICO Corp.
      Bundle ID: com.studiolico.mythicitem
      App Store Link: https://apps.apple.com/kr/app/%EC%8B%A0%ED%99%94%EA%B8%89-%EA%B7%80%EC%86%8D-%EC%95%84%EC%9D%B4%ED%85%9C%EC%9D%84-%EC%86%90%EC%97%90-%EB%84%A3%EC%97%88%EB%8B%A4-%EB%B0%A9%EC%B9%98%ED%98%95-rpg/id6737224619?uo=4

       

       

      📌 Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      🤩 Hack Features

      - Damage Multiplier
      - Freeze Currencies
      - No ADS

       

      ⬇️ iOS Hack Download IPA Link


      Hidden Content

      Download via the iOSGods App







       

      📖 PC Installation Instructions

      STEP 1: Download the pre-hacked .IPA file from the link above to your computer. To download from the iOSGods App, see our iOSGods App IPA Download Tutorial which includes a video example.
      STEP 2: Download Sideloadly and install it on your Windows or Mac.
      STEP 3: Open Sideloadly on your computer, connect your iOS device, and wait until your device name appears in Sideloadly.
      STEP 4: Once your iDevice is recognized, drag the modded .IPA file you downloaded and drop it into the Sideloadly application.
      STEP 5: Enter your Apple Account email, then press “Start.” You’ll then be asked to enter your password. Go ahead and provide the required information.
      STEP 6: Wait for Sideloadly to finish sideloading/installing the hacked IPA. If there are issues during installation, please read the note below.
      STEP 7: 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 8: 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. 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 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
      • 1 reply
    • Amikin Village: Magic Sim RPG v0.17.0 +6 Jailed Cheats [ Damage + More ]
      Modded/Hacked App: Amikin Village: Magic Sim RPG By HELIO LTD
      Bundle ID: com.heliogames.amikin.survival
      App Store Link: https://apps.apple.com/us/app/amikin-village-magic-sim-rpg/id6478102304?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - God Mode
      - Speed Multiplier
      - Unlimited Weapon Durability
      - Split Hack
      - Max Level -> Earn some XP.
      • 265 replies
    • Amikin Village: Magic Sim RPG v0.17.0 +6 Cheats [ Damage + More ]
      Modded/Hacked App: Amikin Village: Magic Sim RPG By HELIO LTD
      Bundle ID: com.heliogames.amikin.survival
      App Store Link: https://apps.apple.com/us/app/amikin-village-magic-sim-rpg/id6478102304?uo=4

       
       

      🤩 Hack Features

      - Damage Multiplier
      - God Mode
      - Speed Multiplier
      - Unlimited Weapon Durability
      - Split Hack
      - Max Level -> Earn some XP.
      • 77 replies
    • Red's First Flight v1.3.1 +2 Jailed Cheats [ Score Multi ]
      Modded/Hacked App: Red's First Flight By Rovio Entertainment Oyj
      Bundle ID: com.rovio.abclassic22
      App Store Link: https://apps.apple.com/us/app/reds-first-flight/id1596736236?uo=4

       
       

      🤩 Hack Features

      - Score Multiplier
      - Damage Score Multiplier
      • 2 replies
    • Red's First Flight v1.3.1 +2 Cheats [ Score Multi ]
      Modded/Hacked App: Red's First Flight By Rovio Entertainment Oyj
      Bundle ID: com.rovio.abclassic22
      App Store Link: https://apps.apple.com/us/app/reds-first-flight/id1596736236?uo=4

       
       

      🤩 Hack Features

      - Score Multiplier
      - Damage Score Multiplier
      • 0 replies
    • Tower Defence Turret Evolution v1.1 [+3 Jailed Cheats]
      Modded/Hacked App: Tower Defence Turret Evolution By Glib Grozin
      Bundle ID: com.grozingames.tdte
      App Store Link: https://apps.apple.com/us/app/tower-defence-turret-evolution/id6744372753?uo=4



      🤩 Hack Features

      - Add Emerald
      - Add Coin (Enable inside battle)
      - Never Die

      • 1 reply
    • Tower Defence Turret Evolution v1.1 [+3 Cheats]
      Modded/Hacked App: Tower Defence Turret Evolution By Glib Grozin
      Bundle ID: com.grozingames.tdte
      App Store Link: https://apps.apple.com/us/app/tower-defence-turret-evolution/id6744372753?uo=4



      🤩 Hack Features

      - Add Emerald
      - Add Coin (Enable inside battle)
      - Never Die
       
      • 0 replies
    • Subway Surfers v3.45.2 +22 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/
        • Like
      • 38 replies
    • Subway Surfers v3.45.2 +22 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/
        • Thanks
      • 42 replies
    • Subway Surfers City v1.23.0 +10 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Subway Surfers City By Sybo Games ApS
      Bundle ID: com.sybogames.subway.surfers.game
      iTunes Store Link: https://apps.apple.com/ca/app/subway-surfers-city/id6504188939?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:
      - Unlimited Coins -> Earn or spend some.
      - Unlimited Keys -> Earn or spend some.
      - Unlimited Revives - Earn or spend some.
      - Unlimited Tokens -> Earn or spend some.
      - All Boards Unlocked
      - All Surfers Unlocked
      - Max Level -> Earn some XP.
      - God Mode
      - Unlimited Score
      - Unlimited Jumps


      Jailbreak required hack(s): [Mod Menu Hack] Subway Surfers City v1.13.2 +7 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/
      • 189 replies
    • Subway Surfers City v1.23.0 +10 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Subway Surfers City By Sybo Games ApS
      Bundle ID: com.sybogames.subway.surfers.game
      iTunes Store Link: https://apps.apple.com/ca/app/subway-surfers-city/id6504188939?uo=4


      Hack Features:
      - Unlimited Coins
      - Unlimited Keys
      - Unlimited Revives
      - All Boards Unlocked
      - All Surfers Unlocked
      - Max Level -> Earn some XP.
      - God Mode


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Subway Surfers City v1.13.2 +5 Jailed Cheats [ Unlimited Currencies ] - 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/
      • 49 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