Jump to content

Dump decrypted DLL file with IDA Pro


ThePianoGuy

5 posts in this topic

Recommended Posts

Note: This tutorial was created by xiaobaiyey and written in chinese. This tutorial is poorly translated from Google Translation but i have fixed some grammar to make it easier to understand.

 
reviously I read an article by hook decrypting the encrypted dll Unity3D, recently new to dynamic, so they can try the next through IDA, the same as the shelling, dump the decrypted dll file, try the next, it really can, in here to share under
 
Requirements:
Tools: ida6.6 millet 2s
Game: Monthly Dragon knife (just find a game)
Enable USB-debugging in Developer Options
 
Open lib in IDA:
Unzip lib folder from the APK, drag the file libmono.so to IDA
Several functions mainly in the upper and lower breakpoint (refer mono source )

mono_image_open_from_data_full
mono_image_open_from_data
mono_image_open_from_data_with_name

 
In a decryption process can about these function
 
View the final in front of a function call or mono_image_open_from_data_with_name,
 
Enable Developer Options:
If Developer Option does not show in settings, follow the steps below.
1. Open Settings > About
2. Then tap “Build number” seven times to enable Developer options....
3. Go back to Settings menu and now you'll be able to see “Developer options” there.
4. Tap it and turn on USB Debugging
 
Dynamic debugging:
If the app has anti-debugging, you need to skip meals to debug, the following brief dynamic debugging Preparations (there are many online tutorials dynamic debugging)
 
Get android_server file from IDA PRO 6.6\ida66\dbgsrv or download the file HERE!
 
Push android_server file to the phone
 
1:

adb push android_server /data/local/tmp/ 

2:

adb shell

3:

cd /data/data/tmp/ 

4:

chmod 777 android_server

5:

./android_server 

Port Forwarding:
 

adb forward tcp:23946 tcp:23946

 
Debug startup app:
 

adb shell am start -D -n com.huiguan.qinglong.taiqi.dl/com.huiguan.qlyyd.UnityPlayerNativeActivity

 
Check the app's PID:
 
1.

adb shell 

2.

ps | grep dl

 
Record the PID and Forwarding (pid can be seen in the ida)

adb forward tcp:8700 jdwp:PID

Setting ida (the main settings hostname: 127.0.0.1) and open the attach process (wait for the program to automatically break live, live off later)
 
Run app (in the f9 at ifa)
This time in the cmd window run jdb debugger:
 

jdb -connect com.sun.jdi.SocketAttach:hostname=127.0.0.1,port=8700 

This time can be debugged
Run app will break on the linker
 
NQa1Qvs.png
 
Then if the app is no anti-molestation: running directly f9
This window appears: same point
 
LJ0ND9m.png
 
Wait a moment, will end on Linker , directly connected to f9 op row
If this window appears, select "yes (pass to app)" without waiting
 
O32G2yG.png
 
Many may appear behind all this window select yes and then run f9
Finally broken in the mono_image_open_from_data_with_name, method
Loading is not the first time we want to skip dll
 
9UOufTB.png
 
If you can not read f5 look at the source code, source code demonstrate this direct f5, where he rewrote momo source

int __fastcall mono_image_open_from_data_with_name (int a1, char * haystack, int a3, int a4, char a5, char * haystacka)

 
Several key parameters

// NT A1 read dll file offset address
// Char * haystack, DLL file size
// Char * haystacka , file name

 
9MBWsmY.png
 
This time following the R1 register to see the encrypted DLL file address, indicating the DLL has not yet begun to decrypt, decryption may later. And laid down the road to change a single note of each register after a simple loop
 
The dll decrypted
This time it decrypted DLL in memory,
 
sJ21pCZ.png
 
This time it can have a dump,
 
Check Register Window: Find R6 and R11
The entire file offset start R6 = 7B95304C
End offset address R6 = R11 7B95304C + 3AF200 = 7BD0224C
 
Use; dump dex scripts
 

auto fp, dexAddress;
fp = fopen ( "D:\\Test.dll", "wb");
for (dexAddress = 0x7B95304C; dexAddress < 0x7BD0224C; dexAddress ++)
fputc (Byte(dexAddress), FP);

 
Under run on ok
Decryption out the effect,
 
Attach the original dll and decrypted dll
 
Credit:
xiaobaiyey

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Our picks

    • 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/
      • 204 replies
    • Grim Soul: Survival v6.7.0 +19 Jailed Cheats [Free Crafting + More]
      Modded/Hacked App: Grim Soul: Survival By Andrey Pryakhin
      Bundle ID: fantasy.survival.game.rpg
      iTunes Store Link: https://itunes.apple.com/us/app/grim-soul-survival/id1366215798


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


      Hack Features:
      - Unlimited Storage Items - Taking storage items will increase them.
      - Free Crafting - Will allow you to craft items without the required materials.
      - No Crafting Level Requirement
      - Free Construction
      - Items Duplicate When Split
      - Unlimited Item Durability
        • Agree
        • Like
      • 4,069 replies
    • Grim Soul: Survival v6.7.0 +19 Cheats [Unlimited Currencies + More]
      Modded/Hacked App: Grim Soul: Survival By Andrey Pryakhin
      Bundle ID: fantasy.survival.game.rpg
      iTunes Store Link: https://itunes.apple.com/us/app/grim-soul-survival/id1366215798


      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:
      - Unlimited Thalers/Coins & Crafting Points - Once enabled, purchase something using coins & use a craft point so the currencies stick, then disable this feature.
      - Unlimited Storage Items - Taking storage items will increase them.
      - Unlimited Energy / Instant Energy Refills - Will refill your energy once you run to another location.
      - Godmode - Unlinked. Health will still decrease but you won't die.
      - One-Hit Kill - Linked to the enemy. Would recommend enabling 'Godmode'.
      - Increased Attack Range - Allows you to kill enemies from some distance away.
      - Free Crafting - Will allow you to craft items without the required materials.
      - No Crafting Level Requirement
      - Free Construction
      - Items Duplicate When Split
      - Unlimited Item Durability
      - x2 Player Speed
      - x3 Player Speed
        • Like
      • 4,978 replies
    • [iOSGods Exclusive] Transformers: Earth Wars v25.0 +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
      • 1,171 replies
    • Angry Birds 2 Cheats v3.26.1 +1 [ Infinite Currencies ]
      Modded/Hacked App: Angry Birds 2 By Rovio Entertainment Oyj
      Bundle ID: com.rovio.baba
      iTunes Store Link: https://apps.apple.com/us/app/angry-birds-2/id880047117?uo=4


      Hack Features:
      - Infinite Currencies ( Spend some/ Get some )


      Non-Jailbroken & No Jailbreak required hack(s):  https://iosgods.com/topic/70081-angry-birds-2-v2600-jailed-cheats-2/


      Hack Download Link: https://iosgods.com/topic/72039-angry-birds-2-cheats-v2600-1-infinite-currencies/
        • Informative
        • Like
      • 1,924 replies
    • Among Us! Cheats v2024.11.26 +10
      Modded/Hacked App: Among Us! by InnerSloth LLC
      Bundle ID: com.innersloth.amongus
      iTunes Store Link: https://apps.apple.com/us/app/among-us/id1351168404?uo=4&at=1010lce4


      Hack Features:
      - All Skins Unlocked
      - All Pets Unlocked
      - All Hats Unlocked
      - No Ads
      - Custom Move Speed
      - Display Who is Impostor by faking them
      - No ban when quitting too much
      - Increase Light FOV
      - Destroy Room (Turn on the turn it off)
      - Instant Kill


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/132854-arm64-among-us-v202091-jailed-cheats-4/


      iOS Hack Download Link: https://iosgods.com/topic/132860-arm64-among-us-cheats-v202091-7/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 16,955 replies
    • Cats & Soup Cheats v2.57.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


      Hack Features:
      - Infinite Currencies


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/157486-cats-soup-v196-jailed-cheats-1/


      iOS Hack Download Link: https://iosgods.com/topic/157484-cats-soup-cheats-v196-1/
      • 275 replies
    • [ Devil Summoners Idle ] 데빌 서머너 : 소환사 키우기 Cheats v1.4.6 +4
      Modded/Hacked App: 데빌 서머너 : 소환사 키우기 By LUNA GAMES Inc.
      Bundle ID: com.LunaGames.Summoner
      iTunes Store Link: https://apps.apple.com/kr/app/%EB%8D%B0%EB%B9%8C-%EC%84%9C%EB%A8%B8%EB%84%88-%EC%86%8C%ED%99%98%EC%82%AC-%ED%82%A4%EC%9A%B0%EA%B8%B0/id6468970223?uo=4


      Hack Features:
      - God Mode
      - Multiply Attack
      - Freeze Currencies (Some may not work, but most does. Cannot fully tested due to it's Korean)
      - Multiply 10x Currencies


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
       


      iOS Hack Download Link: https://iosgods.com/topic/186434-devil-summoners-idle-%EB%8D%B0%EB%B9%8C-%EC%84%9C%EB%A8%B8%EB%84%88-%EC%86%8C%ED%99%98%EC%82%AC-%ED%82%A4%EC%9A%B0%EA%B8%B0-cheats-v116-4/
      • 34 replies
    • Cafeland - World Kitchen v2.35.3 Jailed Cheats +1
      Modded/Hacked App: Cafeland - World Kitchen by Gamegos Internet Teknolojileri Ltd Sti.
      Bundle ID: com.gamegos.mobile.cafeland
      iTunes Store Link: https://apps.apple.com/us/app/cafeland-world-kitchen/id1147665432?uo=4&at=1010lce4


      Hack Features:
      - Freeze Currencies

      iOS Hack Download Link: https://iosgods.com/topic/100703-arm64-cafeland-world-kitchen-v2182-jailed-cheats-1/
      • 535 replies
    • Sniper 3D: Gun Shooting Games v4.59.0 Jailed Cheats +5
      Modded/Hacked App: Sniper 3D Assassin: FPS Battle By Fun Games For Free
      Bundle ID: com.fungames.sniper3d
      iTunes Store Link: https://itunes.apple.com/us/app/sniper-3d-assassin-fps-battle/id930574573?mt=8&uo=4&at=1010lce4



      Hack Features:
      - Infinite Coins
      - Infinite Gems
      - Infinite Energy
      - Infinite Ammo / No Reload
      - No Spread


      Jailbreak required hack(s):  https://iosgods.com/topic/74123-arm64-sniper-3d-fps-battle-shoot-to-kill-2018-v2180-jailed-cheats-5/
        • Agree
        • Like
      • 2,192 replies
    • MWT: Tank Battles v1.2.1 Jailed Cheats +5
      Modded/Hacked App: MWT: Tank Battles By ARTSTORM FZE
      Bundle ID: com.Shooter.ModernWarfront
      iTunes Store Link: https://apps.apple.com/us/app/mwt-tank-battles/id6469805187?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - God Mode
      - Freeze Boosters
      - Free Subscription?
      + 10% EXP
      + 50% Cash / Gold


      iOS Hack Download IPA Link: https://iosgods.com/topic/188441-mwt-tank-battles-v121-jailed-cheats-5/
      • 34 replies
    • CSR 2 Drag Racing Car Games v5.4.0 - [ Gold, Cash, Keys & More ]
      Modded/Hacked App: CSR Racing 2 by NaturalMotion Games Limited
      Bundle ID: com.naturalmotion.customstreetracer2
      iTunes Store Link: https://apps.apple.com/us/app/csr-racing-2/id887947640


      Hack Features:
      - Custom Gold Amount -> Enter the amount of gold you want inside the iOSGods Mod Menu!
      - Custom Cash Amount -> Enter the amount of cash you want inside the iOSGods Mod Menu!
      - Custom Keys Amount -> Enter the amount of keys you want inside the iOSGods Mod Menu!
      - Anti-Ban -> Also unbans previously banned accounts and lets you play online according to feedback.
      - No Fuel Consumption
      - Instant Part Delivery
      - Instant Car Delivery
      - Gold Increase
      - Cash Increase
      - Keys Increase
      - Buy Anything For 1 Gold
      - Buy Anything For 1 Cash
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 5,658 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