Giter VIP home page Giter VIP logo

perses's Issues

This instruction will cause the program to crash

  • 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");

The compiled program would crash.

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.

image

If I set eip explicitly so that eip pointed to the instruction following cli, then everything went well.

Consider adding `cmkr` topic to the repo

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

Relocation table: improper initialization

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.