Jump to content

[IDA tutorial] How to mod x86 lib .so file (Updated)


ThePianoGuy

13 posts in this topic

Recommended Posts

Hello dear community,

Today, i will teach you how to mod x86 libs. x86 is not that hard to understand because the instruction are almost the same as ARM. In this tutorial, i mod the game called The Sandbox 2.

You don't really need to mod x86 at all since I never heard any problem with ARM translating to x86, and it's too hard to change instruction without code caving. Just wanna make tutorial lol

Now let's start modding.

In this tutorial, I'll show you how to mod The Sandbox Evolution very easy in x86.

First of all, you need IDA PRO and Hex Workshop installed on your computer. If you already have them installed, go to next step

Open the APK file with WinRar and extract the lib folder (In case you want to mod both x86 and ARM)
Open the x86 .so file in IDA. You will see the dialog box similar to the following:

ktDNoNu.png

In x86, you don't need to change anything. MetaPC is fine. Click OK to disassemble the lib file, and let it fully load. After that, press CTRL + F,  search "isElementUnlocked" and double click on the function to open it

95o7chQ.png

Remember the offset (9869E0) of first instruction. we need to use it later.

Note: The offset will change each update.

Mf1y3sf.png

Open Hex Workshop or other hex editing program, and search the offset. I'm using Hex Workshop

wC2186M.png

89a0Dqm.png

Here is the offset of isElementUnlocked

U9UTx2C.png

The function isElementUnlocked is a boolean function, which means it can return true or false. If you want unlock everything, replace it with b8 01 00 00 00 c3, which will return true.

True is:

b8 01 00 00 00 (mov eax, 1)

False is:

b8 00 00 00 00 (mov eax, 0)

And return is:

c3 (retn)

y91Vjh6.png

When you open the modded .so file in IDA, your modded instruction will look like:

iL4oLV5.png

Isn't that easy?

You can also do the same on hasBoughtPromoPack to unlock premium

If you want to hack mana like 9999999, search getManaBalance and giveMana, and replace it with any values you want

b8 7f 96 98 00 (mov eax, 9999999)
c3 (ret)

You can use online x86 Assembly to get raw hex
https://defuse.ca/online-x86-assembler.htm#disassembly

Open the APK with WinRAR and replace the modded .so file. Re-sign the APK, install it and run the game.

H5oHmVM.png[/IMG]

Credits:
AndnixSH#

Tutorial updated (May 2018)

Updated by AndnixSH
  • Like 1
  • Thanks 1
Link to comment
Share on other sites

So what is MOV R0, R7 in x86 ??

 

there is no limitation of value in x86 so you don't have to think about MOV R0, R7 thing

 

99,999,999 value is

mov eax, 0x5f5e0ff = b8 ff e0 f5 05

max value is 0xffffffff = 4,294,967,295 , but it if max value is 2,147,384,687 for some games, the value will go negative or the game will crash

mov eax, 0xffffffff = b8 ff ff ff ff

i'm unsure if it works

Updated by evildog1
Link to comment
Share on other sites

there is no limitation of value in x86 so you don't have to think about MOV R0, R7 thing

 

99,999,999 value is

 

mov eax, 0x5f5e0ff = b8 ff e0 f5 05
max value is 0xffffffff = 4,294,967,295 , but it if max value is 2,147,384,687 for some games, the value will go negative or the game will crash

mov eax, 0xffffffff = b8 ff ff ff ff
i'm unsure if it works
aight dude thanks ill let you know if this works ;))

@@evildog1

Do we need a x86 to hex converter?

I found one dude

https://defuse.ca/online-x86-assembler.htm#disassembly

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below. For more information, please read our Posting Guidelines.
Reply to this topic... Posting Guidelines

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Our picks

    • The King of Fighters ALLSTAR Cheats v1.17.0 +5 [ Multiply Attack & More ]
      Modded/Hacked App: The King of Fighters ALLSTAR by Netmarble Corporation
      Bundle ID: com.netmarble.kofg
      iTunes Store Link: https://apps.apple.com/us/app/the-king-of-fighters-allstar/id1444835826?uo=4&at=1010lce4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Switch Always Active
      - Super Attack Always Active
      - No Skills CoolDown


      iOS Hack Download Link: https://iosgods.com/topic/112743-arm64-the-king-of-fighters-allstar-cheats-v169-5/
      • 1,402 replies
    • WAR OF THE VISIONS FFBE Cheats v10.2.0 +3 [ Multiply Damage & Defense ]
      Modded/Hacked App: FINAL FANTASY BE:WOTV By SQUARE ENIX Co., Ltd.
      Bundle ID: com.square-enix.WOTVffbeww
      iTunes Store Link: https://apps.apple.com/us/app/final-fantasy-be-wotv/id1484937345?uo=4


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


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/173485-final-fantasy-bewotv-v730-jailed-cheats-3/


      iOS Hack Download Link: https://iosgods.com/topic/173483-war-of-the-visions-ffbe-cheats-v740-3-multiply-damage-defense/
      • 160 replies
    • Monster Hunter Puzzles v2.01.00 +6 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Monster Hunter Puzzles By CAPCOM Co., Ltd
      Bundle ID: jp.co.capcom.mhpuzzle
      iTunes Store Link: https://apps.apple.com/us/app/monster-hunter-puzzles/id1591864714?uo=4


      Hack Features:
      - Unlimited Acorns -> Earn or spend some.
      - Unlimited Gems -> Earn or spend some.
      - Unlimited Tickets -> Earn or spend some.
      - Unlimited Lives -> Will not decrease.
      - Unlimited Boosters -> Will not decrease.
      - Unlimited Moves -> Will not decrease.


      Jailbreak required hack(s): [Mod Menu Hack] Monster Hunter Puzzles v2.00.03 +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/
      • 3 replies
    • Monster Hunter Puzzles v2.01.00 +7 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Monster Hunter Puzzles By CAPCOM Co., Ltd
      Bundle ID: jp.co.capcom.mhpuzzle
      iTunes Store Link: https://apps.apple.com/us/app/monster-hunter-puzzles/id1591864714?uo=4


      Hack Features:
      - Unlimited Acorns -> Earn or spend some.
      - Unlimited Gems -> Earn or spend some.
      - Unlimited Tickets -> Earn or spend some.
      - Unlimited Lives -> Will not decrease.
      - Unlimited Boosters -> Will not decrease.
      - Unlimited Moves -> Will not decrease.
      - Auto Win


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Monster Hunter Puzzles v2.00.03 +6 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/
      • 4 replies
    • Dragon BUURRP! v1.0.8 +2 Jailed Cheats [ God & O-HK]
      Modded/Hacked App: Dragon BUURRP! By Wemade Max Co., Ltd.
      Bundle ID: com.wemademax.projectsb
      iTunes Store Link: https://apps.apple.com/us/app/dragon-buurrp/id6467609946?uo=4


      Hack Features:
      - God Mode
      - One-Hit Kill


      Jailbreak required hack(s): [Mod Menu Hack] Dragon BUURRP! v1.0.6 +2 Cheats [ Damage & Defence ] - 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/
      • 3 replies
    • Dragon BUURRP! v1.0.8 +2 Cheats [ Damage & Defence ]
      Modded/Hacked App: Dragon BUURRP! By Wemade Max Co., Ltd.
      Bundle ID: com.wemademax.projectsb
      iTunes Store Link: https://apps.apple.com/us/app/dragon-buurrp/id6467609946?uo=4


      Hack Features:
      - Damage Multiplier
      - Defence Multiplier


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Dragon BUURRP! v1.0.6 +2 Jailed Cheats [ God & O-HK] - 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/
      • 10 replies
    • Autogun Heroes: Run and Gun v1.9.0 +4 Jailed Cheats [ God Mode ]
      Modded/Hacked App: Autogun Heroes: Run and Gun By Nitro Games Oyj
      Bundle ID: com.nitrogames.autoblaster
      iTunes Store Link: https://apps.apple.com/us/app/autogun-heroes-run-and-gun/id6443807581
       

      Hack Features:
      - God Mode
      - Unlimited Ammo
      - Increased Bullet Speed
      - 65k Coin Bonus -> Gain an extra 65k coins after a game.


      Jailbreak required hack(s): [Mod Menu Hack] Autogun Heroes: Run and Gun v1.1.1 +8 Cheats [ Damage & Defence ] - 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/
      • 39 replies
    • Survivor Base - Zombie Siege v1.6 +1++ Jailed Cheats [ Unlimited Resources ]
      Modded/Hacked App: Survivor Base - Zombie Siege By Longames TEC Co.,Ltd
      Bundle ID: com.jlyt.deadrising
      iTunes Store Link: https://apps.apple.com/us/app/survivor-base-zombie-siege/id6479394876?uo=4


      Hack Features:
      - Unlimited Resources


      Jailbreak required hack(s): [Mod Menu Hack] Survivor Base - Zombie Siege v1.3 +1++ Cheats [ Unlimited Resources ] - 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/
      • 17 replies
    • Survivor Base - Zombie Siege v1.6 +1++ Cheats [ Unlimited Resources ]
      Modded/Hacked App: Survivor Base - Zombie Siege By Longames TEC Co.,Ltd
      Bundle ID: com.jlyt.deadrising
      iTunes Store Link: https://apps.apple.com/us/app/survivor-base-zombie-siege/id6479394876?uo=4


      Hack Features:
      - Unlimited Resources


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Survivor Base - Zombie Siege v1.3 +1++ Jailed Cheats [ Unlimited Resources ] - 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/
      • 24 replies
    • Autogun Heroes: Run and Gun v1.9.0 +8 Cheats [ Damage & Defence ]
      Modded/Hacked App: Autogun Heroes: Run and Gun By Nitro Games Oyj
      Bundle ID: com.nitrogames.autoblaster
      iTunes Store Link: https://apps.apple.com/us/app/autogun-heroes-run-and-gun/id6443807581
       

      Hack Features:
      - Damage Multiplier
      - Defence Multiplier
      - Custom Move Speed
      - Custom Fire Rate
      - Unlimited Ammo
      - Increased Bullet Speed
      - 65k Coin Bonus -> Gain an extra 65k coins after a game.
      - 65k XP Bonus -> Gain an extra 65k XP after a game.


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 107 replies
    • NERF: Superblast Online FPS v1.13.0 +2 Jailed Cheats [ Unlimited Ammo ]
      Modded/Hacked App: NERF: Superblast Online FPS By Nitro Games Oyj
      Bundle ID: com.nitrogames.newdawn
      iTunes Store Link: https://apps.apple.com/us/app/nerf-superblast-online-fps/id1557212962
       

      Hack Features:
      - Unlimited Ammo -> Will not decrease.
      - No Weapon Spread


      Jailbreak required hack(s): [Mod Menu Hack] NERF: Superblast v1.0.5 +4 Cheats [ Unlimited Ammo ] - 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/
      • 62 replies
    • NERF: Superblast Online FPS v1.13.0 +4 Cheats [ Unlimited Ammo ]
      Modded/Hacked App: NERF: Superblast Online FPS By Nitro Games Oyj
      Bundle ID: com.nitrogames.newdawn
      iTunes Store Link: https://apps.apple.com/us/app/nerf-superblast-online-fps/id1557212962
       

      Hack Features:
      - Unlimited Ammo -> Will not decrease.
      - High Damage -> Shoots out a lot of bullets per bullet. Best to use with Unlimited Ammo.
      - No Weapon Spread
      - High Fire Rate


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] NERF: Superblast v1.0.5 +3 Cheats [ Unlimited Ammo ] - 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/
      • 139 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