mike1k / perses Goto Github PK
View Code? Open in Web Editor NEWX86 Mutation Engine with Portable Executable compatibility.
X86 Mutation Engine with Portable Executable compatibility.
- Transforming 0x140002fc2 (0x5f) - [ mov r8b, byte ptr [rbp-0x2C] ]
vvvvvvvvvvvvvvvvvvv
vvvvvvvvvvvvvvvvvvv1111
//
printf("vvvvvvvvvvvvvvvvvvv\n");
/**/
switch (insn.decoded.mnemonic)
{
case ZYDIS_MNEMONIC_PUSH:
handled = handlePush(&insn);
break;
case ZYDIS_MNEMONIC_MOV:
printf("vvvvvvvvvvvvvvvvvvv1111\n");
handled = handleMov(&insn);
printf("vvvvvvvvvvvvvvvvvvv2222\n");
Hi, I have used perses to compile a demo program.
After I started the compiled(obfuscated) program, it just crashed.
Some simple analysis later, I saw the compiled process did not jump over the code snippet of PERSES_MUTATION_START macro.
eg.
If I set eip explicitly so that eip pointed to the instruction following cli, then everything went well.
dude the sdk makes the program crash, what the fuck, do you actual code ?
EXE does not support the compile option /FIXED.
I think the following code should be added when handling relocations.
_peFile.getRelocDir().isPresent()
Heya,
Would be nice if you could add the cmkr topic to the repository (and maybe a few others like x86, obfuscation, etc for better discoverability). I'm using it to make sure new releases stay compatible and to look for possible ways to improve.
Cheers,
Duncan
template
class RelocationDirectory : pepp::msc::NonCopyable
{
private:
//! Setup the directory
void _setup(Image* image) {
m_image = image;
m_base = reinterpret_cast<decltype(m_base)>(
&image->base()[image->getPEHdr().rvaToOffset(
image->getPEHdr().getOptionalHdr().getDataDir(DIRECTORY_ENTRY_BASERELOC).VirtualAddress)]); //this line
m_section =
&image->getSectionHdrFromVa(image->getPEHdr().getOptionalHdr().getDataDir(DIRECTORY_ENTRY_BASERELOC).VirtualAddress);
}
}
In the line of m_base = *, rvaToOffset may return zero like empty relocation table.
If possible, I would like to enhance the support for SEH :)
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.