Jump to content

36 posts in this topic

Recommended Posts

Updated (edited)

Background

I created a unity project on my computer and wrote simple C# to then convert to Arm through Unity's Il2cpp compiler.  I have more complicated conversions but they would be pretty hard to explain.  If you do want those conversions then make sure to comment below :)

Example Conversions

Force True: C#

    private bool True()
    {
        return true;
    }

Force True: IDA Arm

 MOV             R0, #1
 BX              LR
hex -> 01 00 A0 E3 1E FF 2F E1

 

 

Force False: C#

    private bool False()
    {
        return false;
    }

Force False: IDA Arm

 MOV             R0, #0
 BX              LR
hex -> 00 00 A0 E3 1E FF 2F E1

 

 

Force positive int: C#

    private int pInt()
    {
        return 999;
    }

Force positive int: IDA Arm

 MOV             R0, #999
 BX              LR
hex -> E7 03 00 E3 1E FF 2F E1

 

 

Force Float: C#

    private float pFloat()
    {
        return 999f;
    }

Force Float: IDA Arm

 MOV             R0, #0x447A
 BX              LR
hex -> 7A 04 04 E3 1E FF 2F E1
// 447A <= 447A0000 Float Hexadecimal
// Convert Int to Float here - https://babbage.cs.qc.cuny.edu/IEEE-754.old/Decimal.html
// Convert Float to Int here - https://babbage.cs.qc.cuny.edu/IEEE-754.old/32bit.html

You CANNOT use hexadecimals longer than 4 character long

Working example => Movt r0, #447A (1000 int)

Not-Working Example => Movt r0, #4479C (999 int)

There is a way to use longer hexadecimal floating points with MOV and I plan on adding it in the future.

 

 

Force Int or Float into a field: C#

//float
    private void setFieldF()
    {
        fieldF = 1000F;
    }

    public float fieldF;

//int
    private void setFieldI()
    {
        fieldI = 1000;
    }

    public int fieldI;

Force Int or Float into a field: IDA Arm

Get your field offset from your generated dump.cs from Il2CppDumper by Prefare.

//float field
 MOV             R1, #0x447A
 STR             R1, [R0,#0x10] // replace "0x10" with your field offset inside of dump.cs
 BX              LR
hex -> 7A 14 04 E3 10 10 80 E5 1E FF 2F E1
   
//int field
 MOV             R1, #1000
 STR             R1, [R0,#0x14] // replace "0x14" with your field offset inside of dump.cs
 BX              LR
hex -> FA 1F A0 E3 14 10 80 E5 1E FF 2F E1

 

 

Force Return with Parameters:  C#

// 1 Parameter
	private string Param1(string one)
    {
        return one;
    }

//2 Parameters
	private int Param2(int one, int two)
    {
        return two;
    }

//3 Parameters
	private int Param2(float one, float two, float three)
    {
        return three;
    }

Force Return with Parameters:  IDA Arm

It does not matter if the function is string, int, or float, if the function is the same type as the parameter then it will be the same arm code regardless.

//1 Parameter
 MOV             R0, R1
 BX              LR
hex -> 01 00 A0 E1 1E FF 2F E1
//2 Parameters
 MOV             R0, R2
 BX              LR
hex -> 02 00 A0 E1 1E FF 2F E1
//3 Parameters
 MOV             R0, R3
 BX              LR
hex -> 03 00 A0 E1 1E FF 2F E1
//if the function has more than 3 parameters then reolace the second "R" with said parameter number
Example: 7 Parameters
 MOV             R0, R7
 BX              LR
hex -> 07 00 A0 E1 1E FF 2F E1
Example: 5 Parameters
 MOV             R0, R5
 BX              LR
hex -> 05 00 A0 E1 1E FF 2F E1

 

 

Force end an IEnumertor/IEnumerable: C#

    private IEnumerator setYielEnumerator()
    {
        yield break;
    }

    private IEnumerable setYieldEnumerable()
    {
        yield break;
    }

Force end an IEnumertor/IEnumerable: IDA Arm

Using BX LR to end an IEnumertor or IEnumerable is wrong.  Go to dump.cs and find the IEnumertor or IEnumerable function

Say for example dump.cs says this

private IEnumerator setYielEnumerator(); // 0xOFFSET

or

private IEnumerable setYieldEnumerable(); // 0xOFFSET

Find the "sealed class" that has the function name in the class name

Example

// Namespace: 
private sealed class <setYielEnumerator>c__Iterator0 : IEnumerator, IDisposable, IEnumerator`1<object> // TypeDefIndex: 1446
{
	// Fields
	internal object $current; // 0x8
	internal bool $disposing; // 0xC
	internal int $PC; // 0x10

	// Methods
	public void .ctor(); // 0xOFFSET
	public bool MoveNext(); // 0xOFFSET
	private object System.Collections.Generic.IEnumerator<object>.get_Current(); // 0xOFFSET
	private object System.Collections.IEnumerator.get_Current(); // 0xOFFSET
	public void Dispose(); // 0xOFFSET
	public void Reset(); // 0xOFFSET
}

// Namespace: 
private sealed class <setYieldEnumerable>c__Iterator1 : IEnumerable, IEnumerable`1<object>, IEnumerator, IDisposable, IEnumerator`1<object> // TypeDefIndex: 1447
{
	// Fields
	internal object $current; // 0x8
	internal bool $disposing; // 0xC
	internal int $PC; // 0x10

	// Methods
	public void .ctor(); // 0xOFFSET
	public bool MoveNext(); // 0xOFFSET
	private object System.Collections.Generic.IEnumerator<object>.get_Current(); // 0xOFFSET
	private object System.Collections.IEnumerator.get_Current(); // 0xOFFSET
	public void Dispose(); // 0xOFFSET
	public void Reset(); // 0xOFFSET
	private IEnumerator System.Collections.IEnumerable.GetEnumerator(); // 0xOFFSET
	private IEnumerator`1<object> System.Collections.Generic.IEnumerable<object>.GetEnumerator(); // 0xOFFSET
}

Go to the offset of MoveNext()

public bool MoveNext(); // 0xOFFSET

And write this in hex editor

 MOV             R1, #0xFFFFFFFF
 STR             R1, [R0,#0x10]
 MOV             R0, #0
 BX              LR
hex -> 00 10 E0 E3 10 10 80 E5 00 00 A0 E3 1E FF 2F E1
//same hex for both IEnumertor and IEnumerable

Credits

@Jbro129 for the tutorial

Prefare for Il2CppDumper

- Kienn, @Valeschi ,  @Earthiest and @DiDA for Armconverter.com

Updated by Jbro129
  • Like 3
  • Winner 1
  • Thanks 1
  • Agree 1
  • Informative 2
Posted (edited)
On 2/9/2018 at 5:10 PM, Joka said:

Nice work man. Basic but very helpful! <3

Perhaps we will see an helpful "Advanced" one from you in the near future? <3

 

@Jbro129 I'd appreciate it if you added more conversions.

Updated by CA3LE

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

    • Astra Squad +3 Cheats [ Unlimited Currencies ]
      Mod APK Game Name: Astra Squad By MEGAGIGA GAMES BILISIM A.S.
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.astra.squad

       

      🤩 Hack Features

      - Currency Modifier -> Earn some. 
      - Tool Damage Multiplier
      - No Tool Level Requirement
      • 0 replies
    • Crunchyroll: Asdivine Saga +1 Jailed Cheat [ Full Game Unlocked ]
      Modded/Hacked App: Crunchyroll: Asdivine Saga By Crunchyroll, LLC
      Bundle ID: com.crunchyroll.gv.asdivinesaga
      App Store Link: https://apps.apple.com/us/app/crunchyroll-asdivine-saga/id6762117251?uo=4

       


      🤩 Hack Features

      -- Full Game Unlocked
      • 0 replies
    • Idle Berserker legend of kali +3 Jailed Cheats
      Modded/Hacked App: 버서커 키우기 By A1GAMES Co,. Ltd.
      Bundle ID: com.a1gamesstudio.berserker
      App Store Link: https://apps.apple.com/kr/app/%EB%B2%84%EC%84%9C%EC%BB%A4-%ED%82%A4%EC%9A%B0%EA%B8%B0/id6746774731?uo=4

       

      📌 Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      🤩 Hack Features

      - Damage Multiplier
      - Defense Multiplier
      - Reward Multiplier

       

      ⬇️ iOS Hack Download IPA Link


      Hidden Content

      Download via the iOSGods App







       

      📖 PC Installation Instructions

      STEP 1: Download the pre-hacked .IPA file from the link above to your computer. To download from the iOSGods App, see our iOSGods App IPA Download Tutorial which includes a video example.
      STEP 2: Download Sideloadly and install it on your Windows or Mac.
      STEP 3: Open Sideloadly on your computer, connect your iOS device, and wait until your device name appears in Sideloadly.
      STEP 4: Once your iDevice is recognized, drag the modded .IPA file you downloaded and drop it into the Sideloadly application.
      STEP 5: Enter your Apple Account email, then press “Start.” You’ll then be asked to enter your password. Go ahead and provide the required information.
      STEP 6: Wait for Sideloadly to finish sideloading/installing the hacked IPA. If there are issues during installation, please read the note below.
      STEP 7: Once the installation is complete and you see the app on your Home Screen, you will need to go to Settings -> General -> Profiles / VPN & Device Management. Once there, tap on the email you entered from step 6, and then tap on 'Trust [email protected]'.
      STEP 8: Now go to your Home Screen and open the newly installed app and everything should work fine. You may need to follow further per app instructions inside the hack's popup in-game.

      NOTE: iOS/iPadOS 16 and later, you must enable Developer Mode. For free Apple Developer accounts, you will need to repeat this process every 7 days. If you have any questions or problems, read our Sideloadly FAQ section of the topic and if you don't find a solution, please post your issue below and we'll do our best to help! If the hack does work for you, post your feedback below and help out other fellow members that are encountering issues.

       

      🙌 Credits

      - AlyssaX64

       

      📷 Cheat Video/Screenshots

      N/A
        • Like
      • 14 replies
    • Idle Berserker legend of kali +3 Cheats
      Modded/Hacked App: 버서커 키우기 By A1GAMES Co,. Ltd.
      Bundle ID: com.a1gamesstudio.berserker
      App Store Link: https://apps.apple.com/kr/app/%EB%B2%84%EC%84%9C%EC%BB%A4-%ED%82%A4%EC%9A%B0%EA%B8%B0/id6746774731?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

      - Damage Multiplier
      - Defense Multiplier
      - Reward Multiplier

       

      ⬇️ 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

      - AlyssaX64

       

      📷 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.
      • 0 replies
    • Reactor 2: Nuclear Tycoon v1.0.0 [ +3 APK MOD ] Currency Max
      Mod APK Game Name: Reactor 2: Nuclear Tycoon
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.rsgapps.reactor.two&hl=en

      🤩 Hack Features

      - Radioactive Coins / Freeze
      - Unlimited Cash
      - Bank Capacity / Cash

      Note:- Tut Skip For Cash
        • Agree
      • 0 replies
    • Reactor 2: Nuclear Tycoon v1.0.1 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Reactor 2: Nuclear Tycoon By Robert Grzybek
      Bundle ID: com.rsgapps.reactor.two
      App Store Link: https://apps.apple.com/us/app/reactor-2-nuclear-tycoon/id6761125316?uo=4

      🤩 Hack Features

      - Radioactive Coins / Freeze
      - Unlimited Cash
      - Bank Capacity / Cash
        • Haha
      • 0 replies
    • Reactor 2: Nuclear Tycoon v1.0.1 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Reactor 2: Nuclear Tycoon By Robert Grzybek
      Bundle ID: com.rsgapps.reactor.two
      App Store Link: https://apps.apple.com/us/app/reactor-2-nuclear-tycoon/id6761125316?uo=4

      🤩 Hack Features

      - Radioactive Coins / Freeze
      - Unlimited Cash
      - Bank Capacity / Cash
        • Like
      • 1 reply
    • Meow Knights: Idle RPG (Auto Update) Jailed Cheats +4
      Modded/Hacked App: Meow Knights: Idle RPG By MONSTER PLANET Corp.
      Bundle ID: com.MonsterPlanet.CatIdleRpg
      App Store Link: https://apps.apple.com/us/app/meow-knights-idle-rpg/id6760513582?uo=4

       

      📌 Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      🤩 Hack Features

      - God Mode
      - Multiply Attack
      - Free Store (not iAP)
      - PREMIUM

       

      ⬇️ iOS Hack Download IPA Link: https://iosgods.com/topic/215640-meow-knights-idle-rpg-auto-update-jailed-cheats-4/
        • Informative
        • Winner
        • Like
      • 5 replies
    • Empire Defense: Rome TD v1.0.5 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Empire Defense: Rome TD By Gokraft Games Ltd
      Bundle ID: com.gokraftgames.rome
      App Store Link: https://apps.apple.com/us/app/empire-defense-rome-td/id6760978980?uo=4

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Meat
        • Like
      • 0 replies
    • Empire Defense: Rome TD v1.0.5 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Empire Defense: Rome TD By Gokraft Games Ltd
      Bundle ID: com.gokraftgames.rome
      App Store Link: https://apps.apple.com/us/app/empire-defense-rome-td/id6760978980?uo=4

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Meat
      • 1 reply
    • Ariana and the Elder Codex +1 Jailed Cheat [ Full Game Unlocked ]
      Modded/Hacked App: Ariana and the Elder Codex By Crunchyroll, LLC
      Bundle ID: com.crunchyroll.gv.arianaandtheeldercodex
      App Store Link: https://apps.apple.com/us/app/ariana-and-the-elder-codex/id6760456190?uo=4

       


      🤩 Hack Features

      -- Full Game Unlocked
        • Thanks
        • Winner
      • 2 replies
    • Lost Twins 2 +2 Mods [ Full Game Unlocked ]
      Mod APK Game Name: Lost Twins 2 By Playdew
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.playdew.losttwins2

       

      🤩 Hack Features

      - Unlock Full Game -> Head into Settings, tap on the J icon, then tap on the star icon.
      - Unlock x10 Coins -> Head into Settings, tap on the J icon, then tap on the speech bubble icon.
      • 0 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