I have an idea about optimizing the Cython pseudo-code through IDAPython. So firstly lets learn about it and the IDA microcode as well.
IDAPython Development Study 0
IDA microcode intro
IDA插件开发1 - Hex-Rays SDK - 知乎 (zhihu.com)
Microcode in pictures – Hex Rays (hex-rays.com)
us-18-Guilfanov-Decompiler-Internals-Microcode-wp.pdf (blackhat.com)
7 Days to Lift: A Mission in Microcode | RET2 Systems Blog
Some notes about the IDA Microcode (intermediate language). (github.com)
https://panda0s.top/2021/08/19/Microcode-%E6%8F%92%E4%BB%B6%E5%AD%A6%E4%B9%A0
IDA Ctree
Notes on CTREE usage with IDAPython (github.com)
[原创]Hex-Rays 反编译插件编写简介-软件逆向-看雪论坛-安全社区|安全招聘|bbs.pediy.com (kanxue.com)
finding ctype_t constants
1 | import ida_hexrays |
1 | cit_asm (82) |
Deobfuscating OLLVM through microcode
使用IDA microcode去除ollvm混淆(上) - 先知社区 (aliyun.com)
Useful plugins
HexRaysDeob
HexRaysCodeXplorer
REhints/HexRaysCodeXplorer: Hex-Rays Decompiler plugin for better code navigation (github.com)
IDABeautify
P4nda0s/IDABeautify: An IDA plugin for making pseudocode better. (github.com)
Lucid - An Interactive Hex-Rays Microcode Explorer
gaasedelen/lucid: An Interactive Hex-Rays Microcode Explorer (github.com)
HRDevHelper
How to use microcode for optimizations?
How to achieve?
- New Bing can easily understand my code snippets,so I guess we can use GPT to do the same. But it involves a large amount of money.
- Intermediate language
Obstacles
- A large sum of compiler optimizations can be witnessed in Cython.
PyImport_AddModule
Intermediate Language
1 | __Pyx_PrintOne |
1 | tup_pack arg_tuple, 1, _pyx_kp_s_Hello_Cython |
Compiling IDA SDK
vs2019 编译ida7.4插件_大帅锅1的博客-CSDN博客
VS2010 + IDA SDK 搭建IDA Plugin开发环境_weixin_30795127的博客-CSDN博客
VS2010 + IDASDK6.2搭建IDA Plugin开发环境 | obaby@mars (h4ck.org.cn)
References
idapython/ImportExportViewer.py at master · EiNSTeiN-/idapython · GitHub
GDATAAdvancedAnalytics/IDA-Python (github.com)
7 Days to Lift: A Mission in Microcode | RET2 Systems Blog
us-18-Guilfanov-Decompiler-Internals-Microcode-wp.pdf (blackhat.com)
Some notes about the IDA Microcode (intermediate language). (github.com)
idapython/vds3.py at master · zachriggle/idapython · GitHub
【IDAPython CTree】反编译代码操作练习 - 求索 (gentlecp.com)
https://blog.gentlecp.com/article/12309.html
对一批二进制文件执行IDA Python脚本 - go2sleep - 博客园 (cnblogs.com)
Code Snippet 2 - IDAPython script renaming the dword variables. (github.com)
flare-ida/stack_strings_helper.py at master · mandiant/flare-ida (github.com)
FLARE IDA Pro Script Series: Simplifying Graphs in IDA | Mandiant
Using IDAPython to Make Your Life Easier: Part 4 (paloaltonetworks.com)
Using IDA Python to analyze Trickbot – cyber.wtf
使用IDA microcode去除ollvm混淆(上) - 先知社区 (aliyun.com)
Solving Ad-hoc Problems with Hex-Rays API - REAL security (real-sec.com)
flare-ida/find_get_proc_address.py at master · mandiant/flare-ida · GitHub
IDA插件开发1 - Hex-Rays SDK - 知乎 (zhihu.com)
- 本文作者: Taardis
- 本文链接: https://taardisaa.github.io/2023/04/24/IDAPython-Development-Study-0/
- 版权声明: 本博客所有文章除特别声明外,均采用 Apache License 2.0 许可协议。转载请注明出处!