Jump to content

Assistance in True or False in IDA ARM64


Go to solution Solved by Rook,

3 posts in this topic

Recommended Posts

Posted (edited)

Hello every one,

i'm new to ida pro & and i always using flex to patch some apps

but i wanted to change to ida for better experienceĀ 

i have a question about Boolean ( True / False ) in ida

as you see below i have this function which i can change it to true of false in flex easily

but i want to know how to make This Function TRUE in ida

Ā 

STP Ā  Ā  Ā  Ā  Ā  Ā  X20, X19, [SP,#-0x10+var_10]!
STP Ā  Ā  Ā  Ā  Ā  Ā  X29, X30, [SP,#0x10+var_s0]
ADD Ā  Ā  Ā  Ā  Ā  Ā  X29, SP, #0x10
ADRP Ā  Ā  Ā  Ā  Ā  Ā X8, #_OBJC_IVAR_$_TitleModel.titleTextView@PAGE ; TextViewWithColor *titleTextView;
LDRSW Ā  Ā  Ā  Ā  Ā  X8, [X8,#_OBJC_IVAR_$_TitleModel.titleTextView@PAGEOFF] ; TextViewWithColor *titleTextView;
LDR Ā  Ā  Ā  Ā  Ā  Ā  X0, [X0,X8] ; void *
ADRP Ā  Ā  Ā  Ā  Ā  Ā X8, #selRef_font@PAGE
LDR Ā  Ā  Ā  Ā  Ā  Ā  X1, [X8,#selRef_font@PAGEOFF] ; char *
BL Ā  Ā  Ā  Ā  Ā  Ā  Ā _objc_msgSend
MOV Ā  Ā  Ā  Ā  Ā  Ā  X29, X29
BL Ā  Ā  Ā  Ā  Ā  Ā  Ā _objc_retainAutoreleasedReturnValue
MOV Ā  Ā  Ā  Ā  Ā  Ā  X19, X0
ADRP Ā  Ā  Ā  Ā  Ā  Ā X8, #selRef_familyName@PAGE
LDR Ā  Ā  Ā  Ā  Ā  Ā  X1, [X8,#selRef_familyName@PAGEOFF] ; char *
BL Ā  Ā  Ā  Ā  Ā  Ā  Ā _objc_msgSend
MOV Ā  Ā  Ā  Ā  Ā  Ā  X29, X29
BL Ā  Ā  Ā  Ā  Ā  Ā  Ā _objc_retainAutoreleasedReturnValue
MOV Ā  Ā  Ā  Ā  Ā  Ā  X20, X0
MOV Ā  Ā  Ā  Ā  Ā  Ā  X0, X19
BL Ā  Ā  Ā  Ā  Ā  Ā  Ā _objc_release
ADRP Ā  Ā  Ā  Ā  Ā  Ā X8, #classRef_TitleModel@PAGE
LDR Ā  Ā  Ā  Ā  Ā  Ā  X0, [X8,#classRef_TitleModel@PAGEOFF] ; void *
ADRP Ā  Ā  Ā  Ā  Ā  Ā X8, #selRef_fontFantasyIncludesFontFamilyName_@PAGE
LDR Ā  Ā  Ā  Ā  Ā  Ā  X1, [X8,#selRef_fontFantasyIncludesFontFamilyName_@PAGEOFF] ; char *
MOV Ā  Ā  Ā  Ā  Ā  Ā  X2, X20
BL Ā  Ā  Ā  Ā  Ā  Ā  Ā _objc_msgSend
MOV Ā  Ā  Ā  Ā  Ā  Ā  X19, X0
MOV Ā  Ā  Ā  Ā  Ā  Ā  X0, X20
BL Ā  Ā  Ā  Ā  Ā  Ā  Ā _objc_release
MOV Ā  Ā  Ā  Ā  Ā  Ā  X0, X19
LDP Ā  Ā  Ā  Ā  Ā  Ā  X29, X30, [SP,#0x10+var_s0]
LDP Ā  Ā  Ā  Ā  Ā  Ā  X20, X19, [SP+0x10+var_10],#0x20
RET
; End of function -[TitleModel IsPremium]
Updated by Haidar92
explain more
  • Like 1
  • Solution
Posted

To return this whole function to TRUE or FALSE, you need to write

20 00 80 52 C0 03 5F D6 -> TRUE

00 00 80 52 C0 03 5F D6 -> FALSE

At the beginning of the function. In your case:Ā STP Ā  Ā  Ā  Ā  Ā  Ā  X20, X19, [SP,#-0x10+var_10]!

Live Offset Patcher may be able to help you with testing!

  • Like 1
Posted (edited)
5 hours ago, Rook said:

To return this whole function to TRUE or FALSE, you need to write

20 00 80 52 C0 03 5F D6 -> TRUE

00 00 80 52 C0 03 5F D6 -> FALSE

At the beginning of the function. In your case:Ā STP Ā  Ā  Ā  Ā  Ā  Ā  X20, X19, [SP,#-0x10+var_10]!

Live Offset Patcher may be able to help you with testing!

Thanks for reply

I solve the issue FINALLY with your methodĀ 

but there is some functions don't start with STP Like this one :

ADRP            X8, #selRef_ownsSubscription_@PAGE
LDR             X1, [X8,#selRef_ownsSubscription_@PAGEOFF]
ADRP            X2, #cfstr_Oneyearunlockv@PAGE ; "Unlock"
ADD             X2, X2, #cfstr_Oneyearunlockv@PAGEOFF ; "Unlock"
B               _objc_msgSend


And this one also :

SUB             SP, SP, #0x140
STP             X28, X27, [SP,#0x130+var_50]
STP             X26, X25, [SP,#0x130+var_40]
STP             X24, X23, [SP,#0x130+var_30]
STP             X22, X21, [SP,#0x130+var_20]
STP             X20, X19, [SP,#0x130+var_10]
STP             X29, X30, [SP,#0x130+var_s0]
ADD             X29, SP, #0x130
MOV             X19, X0
ADRP            X8, #___stack_chk_guard_ptr@PAGE
LDR             X8, [X8,#___stack_chk_guard_ptr@PAGEOFF]
LDR             X8, [X8]
ADRP            X9, #cfstr_Oneyearunlockv@PAGE ; "OneYearUnlock"
ADD             X9, X9, #cfstr_Oneyearunlockv@PAGEOFF ; "OneYearUnlock"
STUR            X8, [X29,#var_58]
ADRP            X8, #cfstr_Halfyearunlock@PAGE ; "HalfYearUnlock"
ADD             X8, X8, #cfstr_Halfyearunlock@PAGEOFF ; "HalfYearUnlock"
ADRP            X10, #cfstr_Monthlyunlockv@PAGE ; "MonthlyUnlock"
ADD             X10, X10, #cfstr_Monthlyunlockv@PAGEOFF ; "MonthlyUnlock"
STP             X9, X8, [X29,#var_70]
STUR            X10, [X29,#var_60]
ADRP            X8, #classRef_NSArray@PAGE
LDR             X0, [X8,#classRef_NSArray@PAGEOFF] ; void *
ADRP            X8, #selRef_arrayWithObjects_count_@PAGE
LDR             X1, [X8,#selRef_arrayWithObjects_count_@PAGEOFF] ; char *
SUB             X2, X29, #-var_70
MOV             W3, #3
BL              _objc_msgSend
MOV             X29, X29
BL              _objc_retainAutoreleasedReturnValue
MOVI            V0.16B, #0
STP             Q0, Q0, [SP,#0x130+var_130]
STP             Q0, Q0, [SP,#0x130+var_110]
BL              _objc_retain
MOV             X20, X0
ADRP            X8, #selRef_countByEnumeratingWithState_objects_count_@PAGE
LDR             X21, [X8,#selRef_countByEnumeratingWithState_objects_count_@PAGEOFF]
MOV             X2, SP
ADD             X3, SP, #0x130+var_F0
MOV             X1, X21 ; char *
MOV             W4, #0x10
BL              _objc_msgSend
CBZ             X0, loc_1001631D0

What should i edit ?

Updated by Haidar92
i solve the issue ,, but there is more

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

    • Myth Reborn: Merge Master v2.0.9 [ +2 APK MOD ] Currency Max
      Mod APK Game Name:Ā Myth Reborn: Merge Master
      Rooted Device: Not Required.
      Google Play Store Link:Ā https://play.google.com/store/apps/details?id=com.dobolix.mythreborn.merge.master

      🤩 Hack Features

      - Unlimited Gems
      -Ā Unlimited Coins
      • 1 reply
    • Party Project: Merge&Makeover v1.5.2 [ +3 APK MOD ] Currency Max
      Mod APK Game Name:Ā Party Project: Merge Makeover
      Rooted Device: Not Required.
      Google Play Store Link:Ā https://play.google.com/store/apps/details?id=com.paxiegames.ropemerge&hl=en

      Ā 

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Coin
      - Energy NO Need

      Ā 

      ā¬‡ļøĀ Android Mod APKĀ Download Link


      Hidden Content

      iOSGods App for Android







      Ā 

      šŸ“–Ā Android Installation Instructions

      STEP 1:Ā Download the modded APK file from the link above using your preferred Android browser or download manager.
      STEP 2:Ā Once the download is complete, open your file manager and locate the downloaded .apk file (usually in the Downloads folder).
      STEP 3:Ā Tap the APK file, then select Install. If prompted, enable Install from Unknown Sources in your device settings.
      STEP 3A:Ā If the mod includes an OBB file, extract it if it’s inside an archive. Then move the folder to: /Android/obb/
      STEP 3B:Ā If the mod includes a DATA file, extract it if it’s archived. Then move the folder to: /Android/data/
      STEP 4:Ā Once installed, open the game and toggle your desired cheats & features through the APK mod menu. Enjoy!

      Ā 

      NOTE:Ā If you have any questions or issues, readĀ ourĀ Frequently Asked QuestionsĀ topic. If you still need help, post your issue below and we’ll assist you as soon as possible. If the mod works for you, please share your feedback to help other members!

      Ā 

      šŸ™ŒĀ Credits

      - IK_IK

      Ā 

      šŸ“·Ā Cheat Video/Screenshots

      N/A

      Ā 

      Ā iOS & iPadOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & HacksĀ or the iOSGods AppĀ for a variety of modded games and apps for non-jailbroken iOS devices.
      • 0 replies
    • Cat City : Idle Tycoon Games v1.0.8 [ +3 APK MOD ] Currency Max
      Mod APK Game Name:Ā Cat City : Idle Tycoon Games
      Rooted Device: Not Required.
      Google Play Store Link:Ā https://play.google.com/store/apps/details?id=com.tree.idle.cat.city

      Ā 

      🤩 Hack Features

      - Unlimited Gems
      -Ā Unlimited cash
      -Ā Unlimited EXP Can

      Ā 

      ā¬‡ļøĀ Android Mod APKĀ Download Link


      Hidden Content

      iOSGods App for Android







      Ā 

      šŸ“–Ā Android Installation Instructions

      STEP 1:Ā Download the modded APK file from the link above using your preferred Android browser or download manager.
      STEP 2:Ā Once the download is complete, open your file manager and locate the downloaded .apk file (usually in the Downloads folder).
      STEP 3:Ā Tap the APK file, then select Install. If prompted, enable Install from Unknown Sources in your device settings.
      STEP 3A:Ā If the mod includes an OBB file, extract it if it’s inside an archive. Then move the folder to: /Android/obb/
      STEP 3B:Ā If the mod includes a DATA file, extract it if it’s archived. Then move the folder to: /Android/data/
      STEP 4:Ā Once installed, open the game and toggle your desired cheats & features through the APK mod menu. Enjoy!

      Ā 

      NOTE:Ā If you have any questions or issues, readĀ ourĀ Frequently Asked QuestionsĀ topic. If you still need help, post your issue below and we’ll assist you as soon as possible. If the mod works for you, please share your feedback to help other members!

      Ā 

      šŸ™ŒĀ Credits

      - IK_IK

      Ā 

      šŸ“·Ā Cheat Video/Screenshots

      N/A

      Ā 

      Ā iOS & iPadOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & HacksĀ or the iOSGods AppĀ for a variety of modded games and apps for non-jailbroken iOS devices.
      • 1 reply
    • Cat City : Idle Tycoon Games v1.0.8 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Cat Snack Bar: City Simulation By treeplla Inc.
      Bundle ID: com.tree.idle.cat.city
      App Store Link: https://apps.apple.com/ph/app/cat-snack-bar-city-simulation/id6753163785?uo=4

      🤩 Hack Features

      - Unlimited Gems
      -Ā Unlimited cash
      -Ā Unlimited EXP Can
        • Thanks
        • Like
      • 5 replies
    • Cat City : Idle Tycoon Games v1.0.8 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Cat Snack Bar: City Simulation By treeplla Inc.
      Bundle ID: com.tree.idle.cat.city
      App Store Link: https://apps.apple.com/ph/app/cat-snack-bar-city-simulation/id6753163785?uo=4

      🤩 Hack Features

      - Unlimited Gems
      -Ā Unlimited cash
      -Ā Unlimited EXP Can
        • Informative
        • Thanks
        • Like
      • 3 replies
    • Yukon: Family Adventure v1.71.0 [ +4++ Cheats ] Everything Unlimited
      Modded/Hacked App: Yukon: Family Adventure By Enixan Europe Limited
      Bundle ID: com.enixan.yukon.family.adventure
      iTunes Store Link: https://apps.apple.com/us/app/yukon-family-adventure/id6455041311?uo=4


      🤩 Hack Features

      - Gems

      - Energy

      - Items

      - EXP
        • Agree
        • Thanks
        • Winner
        • Like
      • 28 replies
    • Yukon: Family Adventure v1.71.0 [ +4++ Jailed ] Everything Unlimited
      Modded/Hacked App: Yukon: Family Adventure By Enixan Europe Limited
      Bundle ID: com.enixan.yukon.family.adventure
      iTunes Store Link: https://apps.apple.com/us/app/yukon-family-adventure/id6455041311?uo=4


      🤩 Hack Features

      - Gems

      - Energy

      - Items

      - EXP
        • Informative
        • Haha
        • Thanks
        • Winner
        • Like
      • 46 replies
    • Clash of Realms: Battle Decks v1.3.3 [ +4 APK MOD ] Currency Max
      Mod APK Game Name:Ā Clash of Realms: Battle Decks
      Rooted Device: Not Required.
      Google Play Store Link:Ā https://play.google.com/store/apps/details?id=com.fanqu.b8&hl=en

      Ā 

      🤩 Hack Features

      -Ā Avatar Frame & Decor Unlocked
      -Ā Battle Pass Active
      -Ā Currency Freeze
      :::: VIP ::::
      - Unlimited Currency

      Ā 

      ā¬‡ļøĀ Android Mod APKĀ Download Link


      Hidden Content

      iOSGods App for Android







      Ā 

      šŸ“–Ā Android Installation Instructions

      STEP 1:Ā Download the modded APK file from the link above using your preferred Android browser or download manager.
      STEP 2:Ā Once the download is complete, open your file manager and locate the downloaded .apk file (usually in the Downloads folder).
      STEP 3:Ā Tap the APK file, then select Install. If prompted, enable Install from Unknown Sources in your device settings.
      STEP 3A:Ā If the mod includes an OBB file, extract it if it’s inside an archive. Then move the folder to: /Android/obb/
      STEP 3B:Ā If the mod includes a DATA file, extract it if it’s archived. Then move the folder to: /Android/data/
      STEP 4:Ā Once installed, open the game and toggle your desired cheats & features through the APK mod menu. Enjoy!

      Ā 

      NOTE:Ā If you have any questions or issues, readĀ ourĀ Frequently Asked QuestionsĀ topic. If you still need help, post your issue below and we’ll assist you as soon as possible. If the mod works for you, please share your feedback to help other members!

      Ā 

      šŸ™ŒĀ Credits

      - IK_IK

      Ā 

      šŸ“·Ā Cheat Video/Screenshots

      N/A

      Ā 

      Ā iOS & iPadOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & HacksĀ or the iOSGods AppĀ for a variety of modded games and apps for non-jailbroken iOS devices.
      • 1 reply
    • Clash of Realms: Battle Decks v1.8.1 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Clash of Realms: Battle Decks By HONGKONG FANGQU NETWORK CO., LIMITED
      Bundle ID: com.fanqu.b8
      App Store Link: https://apps.apple.com/us/app/clash-of-realms-battle-decks/id6749603720?uo=4

      🤩 Hack Features

      -Ā Avatar Frame & Decor Unlocked
      -Ā Battle Pass Active
      -Ā Currency Freeze
      :::: VIP ::::
      - Unlimited Currency
        • Like
      • 11 replies
    • Clash of Realms: Battle Decks v1.8.1 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Clash of Realms: Battle Decks By HONGKONG FANGQU NETWORK CO., LIMITED
      Bundle ID: com.fanqu.b8
      App Store Link: https://apps.apple.com/us/app/clash-of-realms-battle-decks/id6749603720?uo=4

      🤩 Hack Features

      -Ā Avatar Frame & Decor Unlocked
      -Ā Battle Pass Active
      -Ā Currency Freeze
      :::: VIP ::::
      - Unlimited Currency
        • Agree
        • Thanks
        • Like
      • 10 replies
    • Truck Simulator USA Revolution v7.5.0 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Truck Simulator USA Revolution By Marusac Alexandru Persoana Fizica Autorizata
      Bundle ID: com.ovilex.trucksimulatorusa
      App Store Link: https://apps.apple.com/us/app/truck-simulator-usa-revolution/id1178960991?uo=4Ā 

      🤩 Hack Features

      - Unlimited Gold
      -Ā Unlimited Cash
      - Truck Sell Price / Earn Cash
      - Unlocked All TruckĀ 
        • Agree
        • Like
      • 10 replies
    • Truck Simulator USA Revolution v7.5.0 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Truck Simulator USA Revolution By Marusac Alexandru Persoana Fizica Autorizata
      Bundle ID: com.ovilex.trucksimulatorusa
      App Store Link: https://apps.apple.com/us/app/truck-simulator-usa-revolution/id1178960991?uo=4Ā 

      🤩 Hack Features

      - Unlimited Gold
      -Ā Unlimited Cash
      - Truck Sell Price / Earn Cash
      - Unlocked All TruckĀ 
        • Like
      • 5 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