├── README-en.md
├── README.md
└── source
├── back.png
├── backcode.png
├── ida.png
├── ida1.png
├── ida2.png
├── ori.png
└── ori_cs.png
/README-en.md:
--------------------------------------------------------------------------------
1 | # UnityReverseEngine
2 | Decompile APK/IPA to UnityProject
3 |
4 | **UnityReverseEngine** is currently under development...
5 |
6 | ## About UREngine
7 | UREngine is a decompiling engine designed to restore Unity-packaged **APK/IPA** projects, converting them back into Unity projects. This allows for direct re-development in the **Unity Editor**, and the projects can even run without modifications. UREngine has achieved significant progress in parsing most assembly instructions and linking with Il2Cpp, generating .CS files that closely resemble the original source code. **(UREngine's semantic parser removes initialization code and junk code from the engine)**
8 |
9 | ## Platform Support
10 |
11 | - Android (Arm64)
12 | - iOS (Arm64)
13 | - PC (To be determined)
14 |
15 | ### Cpp2CS Conversion Example
16 | **Original Code**:
17 | 
18 |
19 | **IDA**:
20 | 
21 |
22 | **Il2Cpp Reversed to C#**:
23 | 
24 |
25 | ## Pending Developments
26 | ### Unfinished Parts of Cpp2CS Instruction Parsing:
27 |
28 | - VTable parsing;
29 | - Parsing of Struct type parameters;
30 | - Removal of junk code through reference counting;
31 | - Generic parsing;
32 | - Unknown.
33 |
34 | ### Resource Section:
35 |
36 | - Association of components and scripts;
37 | - Unknown.
38 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | 咳咳.给自己打个广告
2 | ## [Android U3D手游安全中级篇]
3 | ## [https://github.com/IIIImmmyyy/u3dCourse](https://github.com/IIIImmmyyy/U3DGameCourse)
4 |
5 | - [README 中文](./README.md)
6 | - [README English](./README-en.md)
7 | # UnityReverseEngine
8 | Decompile APK/IPA To UnityProject
9 |
10 |
11 | **UnityReverseEngine**目前正处于开发阶段...(重构中...)
12 |
13 | ## 介绍
14 | UREngine是一个反编译引擎。用于还原Unity打包后的**APK/IPA**工程,可将打包后的文件**逆转为Unity工程**,可直接在**Unity编辑器上二次开发,甚至无需改动即可运行**。
15 | 目前UREngine已经实现了对绝大部分汇编指令的解析以及和Il2Cpp的关联,可将Arm64指令完整的并且最贴近源码的形式直接生成.CS文件。**(UREngine的语义解析器会去除引擎的初始化代码和垃圾代码)**
16 |
17 |
18 | ## 平台支持
19 |
20 | - Android APK (Arm64)
21 | - IOS IPA
22 | - PC(待定)
23 |
24 |
25 | ### Cpp2CS效果图
26 |
27 | **原dumpCS文件**:
28 |
29 |
30 |
31 | **IDA**:
32 |
33 |
34 |
35 |
36 |
37 | **Il2Cpp逆转为C#**:
38 |
39 |
40 | 你没看错!以上是机器转译的结果。得益于强悍的语义解析器和内置的反汇编AI 目前转译C#模块可以完整的解析协程、闭包类。并且基本与源码一致。同时对类进行注释
41 |
42 | ## 等待开发
43 | ### Cpp2CS指令解析未完成部分:
44 |
45 | - ~~VTable解析~~;( :smile: 简单,基本结束)
46 |
47 | - ~~引用计数去除垃圾代码~~ (Done );
48 | - 泛型解析 ( :cold_sweat: ...有点复杂,处理中 );
49 | - ~~for循环处理~~ (Done)
50 | - 引入向量寄存器解决Struct声明问题
51 | - delegate 解析更贴近源码
52 | - 协成解析
53 | - 未知.
54 | ### 资源部分;
55 |
56 | - 组件与脚本的绑定关系关联;
57 | - 未知.
58 |
59 |
--------------------------------------------------------------------------------
/source/back.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IIIImmmyyy/UnityReverseEngine/a3f6a2ffe53ea8c0cdf951224dbf6861fd87693b/source/back.png
--------------------------------------------------------------------------------
/source/backcode.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IIIImmmyyy/UnityReverseEngine/a3f6a2ffe53ea8c0cdf951224dbf6861fd87693b/source/backcode.png
--------------------------------------------------------------------------------
/source/ida.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IIIImmmyyy/UnityReverseEngine/a3f6a2ffe53ea8c0cdf951224dbf6861fd87693b/source/ida.png
--------------------------------------------------------------------------------
/source/ida1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IIIImmmyyy/UnityReverseEngine/a3f6a2ffe53ea8c0cdf951224dbf6861fd87693b/source/ida1.png
--------------------------------------------------------------------------------
/source/ida2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IIIImmmyyy/UnityReverseEngine/a3f6a2ffe53ea8c0cdf951224dbf6861fd87693b/source/ida2.png
--------------------------------------------------------------------------------
/source/ori.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IIIImmmyyy/UnityReverseEngine/a3f6a2ffe53ea8c0cdf951224dbf6861fd87693b/source/ori.png
--------------------------------------------------------------------------------
/source/ori_cs.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IIIImmmyyy/UnityReverseEngine/a3f6a2ffe53ea8c0cdf951224dbf6861fd87693b/source/ori_cs.png
--------------------------------------------------------------------------------