riscript / laygen Goto Github PK
View Code? Open in Web Editor NEWWIP: C++ struct recovery tool for PE64 (PE x86_64)
WIP: C++ struct recovery tool for PE64 (PE x86_64)
This can help bypass packers.
Cycles
and add_cycle
can be kept in Recontex
.get_jump_destinations
can be located in Recontex
.A naive approach can be implemented by comparing two listings of instructions in-between field access. If they are the same, the field is an array.
For example:
00007FF6AC0F0098 | mov rbx,qword ptr ds:[rdi+B0] |
00007FF6AC0F009F | mov dword ptr ss:[rsp+20],FFFFFFFF | VVV the same instructions
00007FF6AC0F00A7 | xor r9d,r9d |
00007FF6AC0F00AA | lea r8,qword ptr ds:[7FF6AC26E628] | 00007FF6AC26E628:"Basic.MainMenu.Edit.Transform.Rotate90CW"
00007FF6AC0F00B1 | lea rdx,qword ptr ds:[7FF6AC26E3E8] | rdx:WinMainCRTStartup, 00007FF6AC26E3E8:"OBSBasic"
00007FF6AC0F00B8 | lea rcx,qword ptr ss:[rbp+1F0] |
00007FF6AC0F00BF | call qword ptr ds:[<&?translate@QCoreApplication@@SA?AVQStrin |
00007FF6AC0F00C5 | nop |
00007FF6AC0F00C6 | mov rdx,rax | rdx:WinMainCRTStartup, rax:WinMainCRTStartup
00007FF6AC0F00C9 | mov rcx,rbx |
00007FF6AC0F00CC | call qword ptr ds:[<&?setText@QAction@@QEAAXAEBVQString@@@Z>] |
00007FF6AC0F00D2 | nop |
00007FF6AC0F00D3 | lea rcx,qword ptr ss:[rbp+1F0] |
00007FF6AC0F00DA | call qword ptr ds:[<&??1QXmlStreamStringRef@@QEAA@XZ>] | ^^^ the same instructions
00007FF6AC0F00E0 | mov rbx,qword ptr ds:[rdi+B8] |
00007FF6AC0F00E7 | mov dword ptr ss:[rsp+20],FFFFFFFF | VVV the same instructions
00007FF6AC0F00EF | xor r9d,r9d |
00007FF6AC0F00F2 | lea r8,qword ptr ds:[7FF6AC26E658] | 00007FF6AC26E658:"Basic.MainMenu.Edit.Transform.Rotate90CCW"
00007FF6AC0F00F9 | lea rdx,qword ptr ds:[7FF6AC26E3E8] | rdx:WinMainCRTStartup, 00007FF6AC26E3E8:"OBSBasic"
00007FF6AC0F0100 | lea rcx,qword ptr ss:[rbp+1F0] |
00007FF6AC0F0107 | call qword ptr ds:[<&?translate@QCoreApplication@@SA?AVQStrin |
00007FF6AC0F010D | nop |
00007FF6AC0F010E | mov rdx,rax | rdx:WinMainCRTStartup, rax:WinMainCRTStartup
00007FF6AC0F0111 | mov rcx,rbx |
00007FF6AC0F0114 | call qword ptr ds:[<&?setText@QAction@@QEAAXAEBVQString@@@Z>] |
00007FF6AC0F011A | nop |
00007FF6AC0F011B | lea rcx,qword ptr ss:[rbp+1F0] |
00007FF6AC0F0122 | call qword ptr ds:[<&??1QXmlStreamStringRef@@QEAA@XZ>] | ^^^ the same instructions
00007FF6AC0F0128 | mov rbx,qword ptr ds:[rdi+C0] |
; ...
jmp .a
.b:
; ... <- TODO: check whether this place is analyzed
.a:
; ...
jnz .b
For example,
mov rax, [rdi+10] ; rax got assigned some symbolic value
; ... some instructions, where rdi doesn't get changed ...
mov rax, [rdi+10] ; rax must have the same symbolic value as above
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.