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

    • [ FFBE WoTV Japan ] FFBE幻影戦争 WAR OF THE VISIONS Cheats v12.0.2 +3
      Modded/Hacked App: FFBE幻影戦争 戦略RPG/シミュレーションゲーム By SQUARE ENIX Co., Ltd.
      Bundle ID: com.square-enix.WOTVffbejp
      iTunes Store Link: https://apps.apple.com/jp/app/ffbe%E5%B9%BB%E5%BD%B1%E6%88%A6%E4%BA%89-%E6%88%A6%E7%95%A5rpg-%E3%82%B7%E3%83%9F%E3%83%A5%E3%83%AC%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%E3%82%B2%E3%83%BC%E3%83%A0/id1443703517?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Full Map Movement


      iOS Hack Download Link: https://iosgods.com/topic/173484-ffbe-wotv-japan-ffbe%E5%B9%BB%E5%BD%B1%E6%88%A6%E4%BA%89-war-of-the-visions-cheats-v916-3/
      • 89 replies
    • Treasure Party: Puzzle Fun! v2.34.3 [ +3 Jailed ] Coins Max
      Modded/Hacked App: Treasure Party: Puzzle Fun! By PlayQ Inc.
      Bundle ID: net.playq.treasureparty4
      iTunes Store Link: https://apps.apple.com/us/app/treasure-party-puzzle-fun/id1668898401?uo=4

       
      Hack Features

      - Coins
      - Lives
      - Moves



      Jailbreak required iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 14 replies
    • Treasure Party: Puzzle Fun! v2.34.3 [ +3 Cheats ] Coins Max
      Modded/Hacked App: Treasure Party: Puzzle Fun! By PlayQ Inc.
      Bundle ID: net.playq.treasureparty4
      iTunes Store Link: https://apps.apple.com/us/app/treasure-party-puzzle-fun/id1668898401?uo=4

       

      Hack Features

      - Coins
      - Lives
      - Moves



      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/

       

      iOS Hack Download Link


      Hidden Content

      Download Hack
      • 10 replies
    • Dream Resort - Match 3 Games v1.3.2 [ +7 Jailed ] Auto Win
      Modded/Hacked App: Dream Resort - Match 3 Games By F.O.G LIMITED
      Bundle ID: com.dream.resort.candy.match.mania.ios
      iTunes Store Link: https://apps.apple.com/us/app/dream-resort-match-3-games/id6737011572?uo=4
       

      🚀 Hack Features

      - Auto ADS Disable

      - Coins

      - Diamonds

      - Lives Cost

      - Moves Freeze

      - Booster [ Buy Get Unlimited After use Then work ]

      - Auto win 


      🍏 Jailbreak iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 9 replies
    • Dream Resort - Match 3 Games v1.3.2 [ +7 Cheats ] Auto Win
      Modded/Hacked App: Dream Resort - Match 3 Games By F.O.G LIMITED
      Bundle ID: com.dream.resort.candy.match.mania.ios
      iTunes Store Link: https://apps.apple.com/us/app/dream-resort-match-3-games/id6737011572?uo=4

       

      🔧 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Cydia, Sileo or Zebra).

       

      🚀 Hack Features

      - Auto ADS Disable

      - Coins

      - Diamonds

      - Lives Cost

      - Moves Freeze

      - Booster [ Buy Get Unlimited After use Then work ]

      - Auto win 


      🍏 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/
      • 10 replies
    • Plant Power - Fruit Showdown! v7.5 [ +20++ Cheats ] Currency Max
      Modded/Hacked App: Plant Power - Fruit Showdown! By Ka Chun CHEUNG
      Bundle ID: com.CHEUNG.plant
      iTunes Store Link: https://apps.apple.com/us/app/plant-power-fruit-showdown/id6657962632?uo=4

       

      🤩 Hack Features

      - ADS NO [ Rewards Free ]

      - Speed UP Card Active

      - Gems

      - Gold

      - Energy

      - Golden Keys

      - Silver Keys

      - Hero Basic [ Unlocked ]

      - Hero Legendary [ Unlocked Just Tap Card ]

      - Weapons Unlocked

      - Walls Unlocked

      - GamePlay Unlocked [ Play Free Any ]

      - Weapon LvL UP Cards

      - Basic Hero LvL UP Cards

      - Wave Faster Skip [ Kill 1 Monster ]

      - Weapon LvL & Status [ ATK SKILL CD CRITI HP ETC ]

      - Basic Hero LvL & Status [ ATK CD CRITI ETC ]

      - Legendary Hero LvL & Status [ ATK CD CRITI ETC ]
      • 5 replies
    • Plant Power - Fruit Showdown! v7.5 [ +20++ Jailed ] Currency Max
      Modded/Hacked App: Plant Power - Fruit Showdown! By Ka Chun CHEUNG
      Bundle ID: com.CHEUNG.plant
      iTunes Store Link: https://apps.apple.com/us/app/plant-power-fruit-showdown/id6657962632?uo=4
       

      🤩 Hack Features

      - ADS NO [ Rewards Free ]

      - Speed UP Card Active

      - Gems

      - Gold

      - Energy

      - Golden Keys

      - Silver Keys

      - Hero Basic [ Unlocked ]

      - Hero Legendary [ Unlocked Just Tap Card ]

      - Weapons Unlocked

      - Walls Unlocked

      - GamePlay Unlocked [ Play Free Any ]

      - Weapon LvL UP Cards

      - Basic Hero LvL UP Cards

      - Wave Faster Skip [ Kill 1 Monster ]

      - Weapon LvL & Status [ ATK SKILL CD CRITI HP ETC ]

      - Basic Hero LvL & Status [ ATK CD CRITI ETC ]

      - Legendary Hero LvL & Status [ ATK CD CRITI ETC ]
      • 2 replies
    • BASEBALL 9 v3.7.0 +9 Cheats for Jailed iDevices!
      Modded/Hacked App: BASEBALL 9 By playus soft
      Bundle ID: us.kr.baseballnine
      iTunes Store Link: https://apps.apple.com/us/app/baseball-9/id1340866223?uo=4


      Hack Features:
      - Unlimited Coins
      - Unlimited Stamina
      - Unlimited Gems
      - Unlimited Recruit Tickets
      - Unlimited Gold Badges
      - Unlimited Silver Badges
      - Unlimited Platinum Badges
      - Unlimited XP Drinks
      - Unlimited Condition Drinks


      Jailbreak required hack(s): https://iosgods.com/topic/136094-baseball-9-cheats-all-versions-1/


      Hack Download Link: https://iosgods.com/topic/82460-baseball-9-v333-9-cheats-for-jailed-idevices/
        • Informative
        • Agree
        • Winner
        • Like
      • 1,451 replies
    • Modded/Hacked App: Transformers: Earth Wars By Space Ape Ltd
      Bundle ID: com.backflipstudios.transformersearthwars
      iTunes Store Link: https://apps.apple.com/us/app/transformers-earth-wars/id1058526204?uo=4


      Hack Features:
      - Infinite Mana

      I update hacks based on how popular their topic on iOSGods is.
      Jailbreak required hack(s): https://iosgods.com/topic/51838-iosgods-exclusive-transformers-earth-wars-v167-4-cheats/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 228 replies
    • Assassin's Creed Rebellion v3.6.0 +3 Jailed Cheats [Godmode & O-HK]
      Modded/Hacked App: Assassin's Creed Rebellion by Ubisoft
      Bundle ID: com.ubisoft.accovenant
      iTunes Store Link: https://itunes.apple.com/us/app/assassins-creed-rebellion/id1164056434


      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Cydia Impactor.
      - A Computer Running Windows/Mac/Linux.


      Hack Features:
      - Godmode - Health will not decrease.
      - One-Hit Kill - The damage you deal will be normal but the enemies will die.
      -- "Region Not Supported" Security Alert Bypassed
        • Winner
        • Like
      • 526 replies
    • Assassin's Creed Rebellion v3.5.9 Cheats [Godmode/O-HK]
      Modded/Hacked App: Assassin's Creed Rebellion by Ubisoft
      Bundle ID: com.ubisoft.accovenant
      iTunes Store Link: https://itunes.apple.com/us/app/assassins-creed-rebellion/id1164056434


      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:
      - Godmode - Health will not decrease.
      - One-Hit Kill - The damage you deal will be normal but the enemies will die.
      - All Assassin's Unlocked - Will unlock all assassin's and let you use all of them.
      -- "Region Not Supported" Security Alert Bypassed
        • Agree
        • Winner
        • Like
      • 2,044 replies
    • [iOSGods Exclusive] Transformers: Earth Wars v25.3 +4 Cheats!
      Modded/Hacked App: Transformers: Earth Wars By Backflip Studios
      Bundle ID: com.backflipstudios.transformersearthwars
      iTunes Link: https://itunes.apple.com/us/app/transformers-earth-wars/id1058526204


      Hack Features:
      - Infinite Mana / Can always use Skill (This allows you to always use your transformers skill, even if you don't have enough mana)
      - Auto Win! Press Retreat Button ingame to instantly destroy the enemies base. Works in offline and pvp/online!
      - Can deploy units anywhere on the battlefield!
      - No Cooldown for Bots
        • Informative
        • Like
      • 1,184 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