Jump to content

Encoding Branch and Link BL sub_x


Go to solution Solved by jayvee,

18 posts in this topic

Recommended Posts

Posted (edited)

The issue I have is encoding the branch and link ARM instruction, since the opcode is pc-relative.
 
All I am trying to do is call a different function that returns a modified item instead of the original.
 
And I am stuck on figuring out the hex for these particular functions. To make it easier, I have here, the old assembly, and what I want to modify the new assembly to be.
 
Old Assembly:

Offset = 0x36C2A6
BL              sub_3C1FC4 // hex=0x55F08DFE
B               loc_36C308 // hex=0x2DE0

Modified Assembly:

Offset = 0x36EE8A
BL              sub_3C5944 // hex=??
B               loc_36EEEC // hex=??

I want it to reference these different functions.

 

If there is any way you can help me figure this out, it would be much appreciated!

 

If I am missing any other piece of information, let me know so I can include it on this post :D

Updated by Javi Tech
Posted

Change to HEX view in IDA to see the changes

Well it's not that, what I am trying to do is change the functions it is referencing, so instead of BL sub_3C1FC4, I am trying to make it to be BL sub_3C5944, but how would I do that? How would I know how to change the hex to make it reference that function?

Posted

I guess the function you mean is

BX       LR

which determines the end of the function.

 

2Byte BX LR : 7047
4Byte BX LR : 1EFF2FE1

Posted

I guess the function you mean is

BX       LR

which determines the end of the function.

 

2Byte BX LR : 7047

4Byte BX LR : 1EFF2FE1

Huh? No, it's not BX LR. I'm trying to link it to another function :o

Posted

Change 

MOV R0,#0

to

MOV R0,#1

at the location

sub_3C1FC4

BL links to the function which holds the value of the boolean. Remember #0 = false; #1= true

Posted

Yeah, he pretty much explains what I already know. I just want to know how to encode BL.W sub_X to hex or if there's a program that can do it for me.

 

BL.W sub_44F08 -> CA F0 43 F5

 

Where the heck does CA F0 43 F5 come from? O.o

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

    • Plants vs. Zombies v3.9.0 Jailed Cheats +5
      Modded/Hacked App: Plants vs. Zombies™ By EA Swiss Sarl
      Bundle ID: com.ea.pvzfree.bv
      iTunes Store Link: https://apps.apple.com/us/app/plants-vs-zombies/id893677096?uo=4


      Hack Features

      - Infinite Sun
      - Infinite Fertilizer, BugSpray, and Chocolate
      - Infinite Coins
      - Infinite Plants Life
      - No Cooldown

      Author: https://iosgods.com/profile/37846-asianqueen/

      Complete tutorial before using any hacked features or you will stuck forever



      iOS Hack Download IPA Link https://iosgods.com/topic/191088-plants-vs-zombies%E2%84%A2-v381-jailed-cheats-5/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 19 replies
    • Dragons: Rise of Berk v1.96.7 +5 Cheats
      Modded/Hacked App: Dragons: Rise of Berk By Jam City, Inc.
      Bundle ID: com.ludia.dragons
      iTunes Store Link: https://apps.apple.com/us/app/dragons-rise-of-berk/id667461862?uo=4


      Hack Features:
      - Free Shopping (shows original cost but able to purchase regardless)
      - Free Skipping
      - Free Odin's Market Shopping
      - Odin's Market Packs Never Reduce
      - Currency Hack [Spend to Gain - reverts to zero on next launch]
      - Enable Rider's Club


      Non-Jailbroken & No Jailbreak required hack(s):  https://iosgods.com/topic/79228-dragons-rise-of-berk-v1794-4-cheats-for-jailed-idevices/


      iOS Hack Download Link: https://iosgods.com/topic/139612-dragons-rise-of-berk-v1794-6-cheats/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 675 replies
    • Fishdom v8.9.4 Jailed Cheats +3
      Modded/Hacked App: Fishdom By PLR Worldwide Sales Limited
      Bundle ID: com.playrix.fishdom-freeplay
      iTunes Store Link: https://apps.apple.com/us/app/fishdom/id664575829?uo=4


      Hack Features:
      - Infinite Moves
      - Infinite Boosters
      - Infinite Lives

      NOTE: Play until you reached level 31 on non-hacked version before using this hack - Make sure you connected with GameCenter and Facebook to save your progress


      iOS Hack Download Link: https://iosgods.com/topic/116586-arm64-fishdom-v683-jailed-cheats-3/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 748 replies
    • [ JP / Global/ KR] Puzzle & Dragons Cheats v22.3.0 +3
      Modded/Hacked App: Puzzle & Dragons (English) by GungHo Online Entertainment, INC.
      Bundle ID: jp.gungho.padEN
      iTunes Store Link: https://apps.apple.com/us/app/puzzle-dragons-english/id563474464?uo=4&at=1010lce4


      Hack Features:
      - God Mode
      - OHK
      - Frozen Enemies


      iOS Hack Download Link: https://iosgods.com/topic/133984-puzzle-dragons-jp-english-cheats-all-versions-3/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 450 replies
    • Guild of Heroes: Fantasy RPG v1.179.2 - [ x Player Damage & More ]
      Modded/Hacked App: Guild of Heroes: Fantasy RPG By BIT.GAMES PBL
      Bundle ID: com.goplaytoday.guildofheroes
      iTunes Store Link: https://itunes.apple.com/us/app/guild-of-heroes-fantasy-rpg/id979474617?mt=8&uo=4&at=1010lce4


      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:
      - x Player Damage - x1 - 10
      - x Player Defense - x1 - 10
      - Enemies Auto Die
      - Premium Activate
      - Freeze Resources
      - Freeze Potions

      All features are unlinked and only for player, you!
      Note:
      Not Responsible For Any Bans


      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. This hack works on the latest x64 or ARM64 iDevices: iPhone 5s, 6, 6 Plus, 6s, 6s Plus, 7, 7 Plus, 8, 8 Plus, X, Xr, Xs, Xs Max, SE, iPod Touch 6G, iPad Air, Air 2, Pro & iPad Mini 2, 3, 4 and later.
      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/79822-guild-of-heroes-fantasy-rpg-v1679-5k-gold-sell-value-more/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 1,694 replies
    • Cats & Soup Cheats v2.69.0 +2
      Modded/Hacked App: Cats & Soup By HIDEA Co.,Ltd
      Bundle ID: com.hidea.cat
      iTunes Store Link: https://apps.apple.com/us/app/cats-soup/id1581431235?uo=4

       

      📌 Mod Requirements

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

       

      🤩 Hack Features

      - Infinite Currencies
      - Unlocked All Specials and No Ads

       

      Non-Jailbroken Hack: https://iosgods.com/topic/157486-cats-soup-v2630-jailed-cheats-2/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/157484-cats-soup-cheats-v2640-2/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 300 replies
    • Disney Magic Kingdoms Cheats v10.4.1 +1
      Modded/Hacked App: Disney Magic Kingdoms By Gameloft
      Bundle ID: com.gameloft.disneykingdom
      iTunes Store Link: https://apps.apple.com/us/app/disney-magic-kingdoms/id731592936?uo=4

       

      📌 Mod Requirements

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

       

      🤩 Hack Features

      - Free Store ( not Free iAP )

       

      Non-Jailbroken Hack: https://iosgods.com/topic/184748-disney-magic-kingdoms-v1012-jailed-cheats-1/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/147877-disney-magic-kingdoms-cheats-v1020-1/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 385 replies
    • Dice Dreams Cheats v1.91.1 +2
      Modded/Hacked App: Dice Dreams™ By SuperPlay LTD
      Bundle ID: com.superplaystudios.dicedreams
      iTunes Store Link: https://apps.apple.com/us/app/dice-dreams/id1484468651?uo=4


      Hack Features:
      - Custom Rolls
      - Unlimited Coins - afford regardless of if you have enough


      iOS Hack Download Link: https://iosgods.com/topic/138011-dice-dreams%E2%84%A2-v1692-2-cheats/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 629 replies
    • CarX Highway Racing Cheats v1.75.5 +4
      Modded/Hacked App: CarX Highway Racing by KAR IKS TEKHNOLODZHIS, OOO
      Bundle ID: com.CarXTech.highWayRacing
      iTunes Store Link: https://itunes.apple.com/us/app/carx-highway-racing/id1236730191?mt=8&uo=4&at=1010lce4



      Hack Features:
      - Infinite Currencies
      - Infinite Fulels
      - Infinite Nitros
      - All Cars Owned


      Hack Download Link: https://iosgods.com/topic/76180-arm64-carx-highway-racing-cheats-all-versions-4/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 716 replies
    • Dead Ahead: Zombie Warfare Cheats v4.2.1 +4
      Modded/Hacked App: Dead Ahead: Zombie Warfare By Mobirate Studio Ltd
      Bundle ID: com.mobirate.DeadAheadTactics
      iTunes Store Link: https://itunes.apple.com/us/app/dead-ahead-zombie-warfare/id1017311881?mt=8&uo=4&at=1010lce4


      Hack Features:
      - Freeze Coins
      - Freeze Fuels
      - Infinite Mana
      - Instant Warrior Spawn (Show timer but works)

      *NOTE: COULD CAUSE YOU BANNED FROM ONLINE TOURNAMENT, I'M NOT TAKING ANY RESPONSIBILITY. USE WISELY


      Hack Download Link:
      https://iosgods.com/topic/70815-arm64-dead-ahead-zombie-warfare-cheats-v211-4/
      #Hack #Jailbreak #Cydia #Cheat #Apple #Android #iOSGods
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 788 replies
    • [ The Battle Cats JP ] にゃんこ大戦争 Cheats v14.4.0 +3
      Modded/Hacked App: にゃんこ大戦争 By ponos corporation
      Bundle ID: jp.co.ponos.battlecats
      iTunes Store Link: https://apps.apple.com/jp/app/%E3%81%AB%E3%82%83%E3%82%93%E3%81%93%E5%A4%A7%E6%88%A6%E4%BA%89/id547145938?uo=4

       

      📌 Mod Requirements

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

       

      🤩 Hack Features

      - Infinite Cash
      - OHK Linked w/ Enemy
      - Infinite Cat Foods & EXP*

       

      Non-Jailbroken Hack: https://iosgods.com/topic/194335-the-battle-cats-jp-%E3%81%AB%E3%82%83%E3%82%93%E3%81%93%E5%A4%A7%E6%88%A6%E4%BA%89-v1432-jailed-cheats-4/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/194334-the-battle-cats-jp-%E3%81%AB%E3%82%83%E3%82%93%E3%81%93%E5%A4%A7%E6%88%A6%E4%BA%89-cheats-v1432-3/
        • Agree
        • Thanks
        • Like
      • 10 replies
    • Angry Birds Dream Blast Cheats v1.85.0 +3
      Modded/Hacked App: Angry Birds Dream Blast By Rovio Entertainment Oyj
      Bundle ID: com.rovio.dream
      iTunes Store Link: https://apps.apple.com/us/app/angry-birds-dream-blast/id1432579280?uo=4


      Hack Features:
      - Infinite Moves
      - Infinite Lives
      - Infinite Boosters


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/149687-angry-birds-dream-blast-v1340-jailed-cheats-3/


      iOS Hack Download Link: https://iosgods.com/topic/149684-angry-birds-dream-blast-cheats-all-versions-3/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 100 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