Jump to content

 Something great is coming! 🚀

Stay tuned for the big reveal happening here on iOSGods on the 17th of December!

The countdown has finished!

Some questions with reversing asm via ida


Go to solution Solved by Theo1357,

11 posts in this topic

Recommended Posts

Posted

Got a few questions, Still new to decompiling stuff and reversing so yeah.

I will list them below.

 

1.

When I am reversing a function and it calls the CityBalance$$GetUpgradePrice then (I am guessing) it stores the returned value in D8 from D0 right? 

image.png

 

2.

When decompiling functions I sometimes see var_whateverhere = 0xwhateverHere but it isnt a field offset of anykind, what do they do and how can I understand them? (I included some of the start asm of that function to help you understand if needed)

image.png

 

3.

When wanting to hook onto functions, to modify the field offset (in this case we will use 0x10 = int Coins) would I do something like FunctionOffset + 0x10 to get the fieldoffest variable to then read/write toward that pointed to object?

 

Like I said I am still new to decompiling stuff and reversing, please excuse me if this is easy for you. 

  • Solution
Posted

1. Yes
2. I gusse it is offset in stack, skip it
3. No, you must use pointer class + 0x10

void (*old_PersistentPlayerUpdate)(void* _this) = nil;
void PersistentPlayerUpdate(void* _this) {
   old_PersistentPlayerUpdate(_this);
   if ([menu isSwitchWithIdentifierActive:@"currency"]) {
     void *playerData = *(void **)((uint64_t)_this + 0x18);
     void *Container = *(void **)((uint64_t)playerData + 0x30);
     void *Player = *(void **)((uint64_t)Container + 0x10);
     void *player = *(void **)((uint64_t)Player + 0x10);
    *(int *)((uint64_t)player + 0x134) = 999999999;
    *(int *)((uint64_t)player + 0x138) = 999999999;
    *(int *)((uint64_t)player + 0x13C) = 999999999;
    *(int *)((uint64_t)player + 0x140) = 999999999;
  }
}

MSHookFunction((void *)getRealOffset(APEncryptHex(0x013BE034)), (void *)PersistentPlayerUpdate, (void **)&old_PersistentPlayerUpdate);

  • Like 2
Posted
4 minutes ago, tien0246 said:

1. Yes
2. I gusse it is offset in stack, skip it
3. No, you must use pointer class + 0x10

void (*old_PersistentPlayerUpdate)(void* _this) = nil;
void PersistentPlayerUpdate(void* _this) {
   old_PersistentPlayerUpdate(_this);
   if ([menu isSwitchWithIdentifierActive:@"currency"]) {
     void *playerData = *(void **)((uint64_t)_this + 0x18);
     void *Container = *(void **)((uint64_t)playerData + 0x30);
     void *Player = *(void **)((uint64_t)Container + 0x10);
     void *player = *(void **)((uint64_t)Player + 0x10);
    *(int *)((uint64_t)player + 0x134) = 999999999;
    *(int *)((uint64_t)player + 0x138) = 999999999;
    *(int *)((uint64_t)player + 0x13C) = 999999999;
    *(int *)((uint64_t)player + 0x140) = 999999999;
  }
}

MSHookFunction((void *)getRealOffset(APEncryptHex(0x013BE034)), (void *)PersistentPlayerUpdate, (void **)&old_PersistentPlayerUpdate);

Thank you and thank you alot more for providing a code sample. 

Posted
On 6/2/2024 at 9:55 AM, tien0246 said:

3. No, you must use pointer class + 0x10

Just to be 100% sure:

The offset of the class would be the pointer class in this case correct?
image.png

So 0x32B87DC 0x14 (example)

Posted
38 minutes ago, carpoa said:

Just to be 100% sure:

The offset of the class would be the pointer class in this case correct?
image.png

So 0x32B87DC 0x14 (example)

Nope, pointer not offset.

If you wanna hack field in ida, try find somewhere like

str w9, [x19, #0x10]
register w9 hold your coin, find at the top somewhere write the value in w9

Posted
1 minute ago, tien0246 said:

Nope, pointer not offset.

If you wanna hack field in ida, try find somewhere like

str w9, [x19, #0x10]
register w9 hold your coin, find at the top somewhere write the value in w9

ic mk. Could you just explain using pointers and getting them please? Thanks for your help :thankyou:

Posted
31 minutes ago, carpoa said:

ic mk. Could you just explain using pointers and getting them please? Thanks for your help :thankyou:

 

On 6/2/2024 at 3:55 PM, tien0246 said:

1. Yes
2. I gusse it is offset in stack, skip it
3. No, you must use pointer class + 0x10

void (*old_PersistentPlayerUpdate)(void* _this) = nil;
void PersistentPlayerUpdate(void* _this) {
   old_PersistentPlayerUpdate(_this);
   if ([menu isSwitchWithIdentifierActive:@"currency"]) {
     void *playerData = *(void **)((uint64_t)_this + 0x18);
     void *Container = *(void **)((uint64_t)playerData + 0x30);
     void *Player = *(void **)((uint64_t)Container + 0x10);
     void *player = *(void **)((uint64_t)Player + 0x10);
    *(int *)((uint64_t)player + 0x134) = 999999999;
    *(int *)((uint64_t)player + 0x138) = 999999999;
    *(int *)((uint64_t)player + 0x13C) = 999999999;
    *(int *)((uint64_t)player + 0x140) = 999999999;
  }
}

MSHookFunction((void *)getRealOffset(APEncryptHex(0x013BE034)), (void *)PersistentPlayerUpdate, (void **)&old_PersistentPlayerUpdate);

Using hook like it

  • Like 1
Posted
3 minutes ago, tien0246 said:

 

Using hook like it

ohh ok gotcha.

Reading the code I'm assuming _this is the pointer (I guess you could say that) for the class it is within right? I just want to be sure.

Posted
9 minutes ago, carpoa said:

ohh ok gotcha.

Reading the code I'm assuming _this is the pointer (I guess you could say that) for the class it is within right? I just want to be sure.

_this is poiter class

Posted
1 minute ago, tien0246 said:

_this is poiter class

gotcha right that makes sense thank you.

  • Like 1

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

    • Evergrove Idle: Grow Magic v1.4.1 [ +2 Cheats ] Currency Max
      Modded/Hacked App: Evergrove Idle: Grow Magic By Series Entertainment Inc.
      Bundle ID: ai.series.evergrove
      App Store Link: https://apps.apple.com/us/app/evergrove-idle-grow-magic/id6754113874?uo=4

      🤩 Hack Features

      - Unlimited Currency
      - Unlimited Resources
      • 2 replies
    • Evergrove Idle: Grow Magic v1.4.1 [ +2 Jailed ] Currency Max
      Modded/Hacked App: Evergrove Idle: Grow Magic By Series Entertainment Inc.
      Bundle ID: ai.series.evergrove
      App Store Link: https://apps.apple.com/us/app/evergrove-idle-grow-magic/id6754113874?uo=4

      🤩 Hack Features

      - Unlimited Currency
      - Unlimited Resources
      • 4 replies
    • Legend of Frog v0.11.98 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Legend of Frog By AZUR INTERACTIVE GAMES LIMITED
      Bundle ID: com.metime.movingtower
      App Store Link: https://apps.apple.com/us/app/legend-of-frog/id6742558794?uo=4

      🤩 Hack Features

      - Unlimited Currency / Visual But Works
      - Unlimited Resources / Visual But Works
      - Quest Complete / NO Need Task
      • 3 replies
    • Legend of Frog v0.11.98 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Legend of Frog By AZUR INTERACTIVE GAMES LIMITED
      Bundle ID: com.metime.movingtower
      App Store Link: https://apps.apple.com/us/app/legend-of-frog/id6742558794?uo=4

      🤩 Hack Features

      - Unlimited Currency / Visual But Works
      - Unlimited Resources / Visual But Works
      - Quest Complete / NO Need Task
      • 3 replies
    • Beauty Sort : Makeover Story v1.5.6 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Beauty Sort : Makeover Story By Rosecrab Limited
      Bundle ID: ios.beauty.love.sort.match.stylist.story
      App Store Link: https://apps.apple.com/us/app/beauty-sort-makeover-story/id6752563587?uo=4

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Booster
      - Unlimited Lives
      • 1 reply
    • Beauty Sort : Makeover Story v1.5.6 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Beauty Sort : Makeover Story By Rosecrab Limited
      Bundle ID: ios.beauty.love.sort.match.stylist.story
      App Store Link: https://apps.apple.com/us/app/beauty-sort-makeover-story/id6752563587?uo=4

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Booster
      - Unlimited Lives
      • 1 reply
    • Basketball Master: Dunk Hero v1.1.0 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Basketball Master: Dunk Hero By UDO GAMES OYUN YAZILIM ANONIM SIRKETI
      Bundle ID: com.udogames.dunkmasters
      App Store Link: https://apps.apple.com/us/app/basketball-master-dunk-hero/id6744168445?uo=4

      🤩 Hack Features

      - ADS NO
      - Unlimited Cash
      - Unlimited Gold / Tested No
      - Unlimited Energy
      • 1 reply
    • Basketball Master: Dunk Hero v1.1.0 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Basketball Master: Dunk Hero By UDO GAMES OYUN YAZILIM ANONIM SIRKETI
      Bundle ID: com.udogames.dunkmasters
      App Store Link: https://apps.apple.com/us/app/basketball-master-dunk-hero/id6744168445?uo=4

      🤩 Hack Features

      - ADS NO
      - Unlimited Cash
      - Unlimited Gold / Tested No
      - Unlimited Energy
      • 1 reply
    • Yarn Fever! Unravel Puzzle v7.1 [ +3 Cheats  ] Booster Max
      Modded/Hacked App: Yarn Fever! Unravel Puzzle By GETSMART TECHNOLOGY COMPANY LIMITED
      Bundle ID: puzzle.yarn.fever.unravel.puzzle
      App Store Link: https://apps.apple.com/us/app/yarn-fever-unravel-puzzle/id6747875092?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

      - Unlimited Slots
      - Unlimited Booster
      - Lives / 0 Play Unlimited

       

      ⬇️ iOS Hack Download Link


      Hidden Content

      Download Hack







       

      📖 iOS Installation Instructions

      STEP 1: Download the .deb hack file from the link above. Use Safari, Google Chrome or other iOS browsers to download.
      STEP 2: Once the file has downloaded, tap on it and then you will be prompted on whether you want to open the deb with iGameGod or copy it to Filza.
      STEP 3: If needed, tap on the downloaded file again, then select ‘Normal Install’ from the options on your screen.
      STEP 4: Let iGameGod/Filza finish the cheat installation. If it doesn’t install successfully, see the note below.
      STEP 5: Open the game, log in to your iOSGods account when asked, then toggle on the features you want and enjoy!

       

      NOTE: If you have any questions or problems, read our Jailbreak iOS Hack Troubleshooting & Frequently Asked Questions & Answers topic. If you still haven't found a solution, post your issue below and we'll do our best to help! If the hack does work for you, please post your feedback below and help out other fellow members that are encountering issues.

       

      🙌 Credits

      - IK_IK

       

      📷 Cheat Video/Screenshots

      N/A

       

      More iOS 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.

      Modded Android APKs
      Need modded apps or games for Android? Check out the latest custom APK mods, cheats & more in our Android Section.
      • 1 reply
    • Yarn Fever! Unravel Puzzle v7.1 [ +3 Jailed ] Booster Max
      Modded/Hacked App: Yarn Fever! Unravel Puzzle By GETSMART TECHNOLOGY COMPANY LIMITED
      Bundle ID: puzzle.yarn.fever.unravel.puzzle
      App Store Link: https://apps.apple.com/us/app/yarn-fever-unravel-puzzle/id6747875092?uo=4
      🤩 Hack Features

      - Unlimited Slots
      - Unlimited Booster
      - Lives / 0 Play Unlimited
      • 3 replies
    • Pal Go: Tower Defense TD v0.4.41 [+7 Cheats]
      Modded/Hacked App: Pal Go: Tower Defense TD By Playwind Ltd
      Bundle ID: com.playwindgames.freedefender
      iTunes Store Link: https://apps.apple.com/us/app/pal-go-tower-defense-td/id6479316663?uo=4


       

      🚀 Hack Features

      - [VIP] Freeze Currency (Currency will not decrease when used)

      - [VIP] Currency Always Enough (Buy even when you don't have enough currency)

      - [Free] Higher Recruit Energy (Gives 500 Recruit Energy Every Wave)

      - [Free] Always Can Drag Hero

      - [Free] Skip Ads

      - [Free] No Attack Cooldown

      - [Free] Global Speed Multiplier (Enable Inside Battle)

       

      Warning


      Do not use on main account. There is a chance of ban. Not responsible for any bans.

       


      🍏 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/
      • 69 replies
    • Pal Go: Tower Defense TD v0.4.41 [+7 Jailed Cheats]
      Modded/Hacked App: Pal Go: Tower Defense TD By Playwind Ltd
      Bundle ID: com.playwindgames.freedefender
      iTunes Store Link: https://apps.apple.com/us/app/pal-go-tower-defense-td/id6479316663?uo=4


       

      Hack Features

      - [VIP] Freeze Currency (Currency will not decrease when used)

      - [VIP] Currency Always Enough (Buy even when you don't have enough currency)

      - [Free] Higher Recruit Energy (Gives 500 Recruit Energy Every Wave)

      - [Free] Always Can Drag Hero

      - [Free] Skip Ads

      - [Free] No Attack Cooldown

      - [Free] Global Speed Multiplier (Enable Inside Battle)

       

      Warning


      Do not use on main account. There is a chance of ban. Not responsible for any bans.

       

      Jailbreak required iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APKs: https://iosgods.com/forum/68-android-section/
        • Like
      • 93 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