Git Product home page Git Product logo

Comments (2)

JonathanSalwan avatar JonathanSalwan commented on June 1, 2024

You should probably first post your snippet of code and a short description of the issue in this thread.

from triton.

imliuxin avatar imliuxin commented on June 1, 2024

the code of before simple:

or eax,FFFFFFFF
xor edx,edx
div dword ptr ss:[ebp+14]
mov esi,dword ptr ds:[ecx+C8]
mov dword ptr ss:[ebp-8],edx
movzx ecx,bl
movzx ecx,word ptr ds:[esi+ecx*2]
mov edx,ecx

the code of after simple:

or eax,FFFFFFFF
xor edx,edx
div dword ptr ss:[ebp+14]

the content of poc file:

from triton import *

if name == 'main':
# Set the architecture
ctx = TritonContext(ARCH.X86)
# Set a symbolic optimization mode
ctx.setMode(MODE.ALIGNED_MEMORY, True)

block = BasicBlock([Instruction(b"\x83\xc8\xff"),
    Instruction(b"\x33\xd2"),
    Instruction(b"\xf7\x75\x14"),
    Instruction(b"\x8b\xb1\xc8\x00\x00\x00"),
    Instruction(b"\x89\x55\xf8"),
    Instruction(b"\x0f\xb6\xcb"),
    Instruction(b"\x0f\xb7\x0c\x4e"),
    Instruction(b"\x8b\xd1")
    ])

ctx.disassembly(block, 0x40149f)
print(block)
print('-------------')
sblock = ctx.simplify(block)
ctx.disassembly(sblock, 0x40149f)
print(sblock)  

from triton.

Related Issues (20)

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.