Giter Club home page Giter Club logo

libdasm's People

Contributors

angea avatar vuonghv avatar

Stargazers

 avatar

Watchers

 avatar

libdasm's Issues

libdasm misinterprets JLE

From @GoogleCodeExporter on December 17, 2015 11:11

This is regarding a bug in libdasm library. I've noticed that libdasm 
misinterprets a specific instruction.(JLE)

Sample Opcode :

'\x39\x56\x38\x0F\x8E\x1E\x01\x00\x00\x8B\xBD\xE4\xEB\xFF\xFF'

Actual dis-assembly of above opcodes :

00433441  |. 3956 38                    CMP DWORD PTR DS:[ESI+38],EDX
00433444  |. 0F8E 1E010000     JLE 0x00433568
0043344A  |> 8BBD E4EBFFFF MOV EDI,DWORD PTR SS:[EBP-141C]


libdasm output:

debasish@debasish ~/Downloads/libdasm-beta/examples $ hexdump test.bin 
0000000 5639 0f38 1e8e 0001 8b00 e4bd ffeb 00ff
000000f
debasish@debasish ~/Downloads/libdasm-beta/examples $ ./das test.bin 
00000000  395638                  cmp [esi+0x38],edx
00000003  0f8e1e010000      jng 0x127
00000009  8bbde4ebffff         mov edi,[ebp-0x141c]
debasish@debasish ~/Downloads/libdasm-beta/examples $

You can see, in third line libdasm misinterprets the jle (Jump if less or equal 
) instruction to jng (Jump if not greater).

cheers,
Debasish

Original issue reported on code.google.com by [email protected] on 23 Jan 2014 at 1:57

Attachments:

Copied from original issue: axcheron#1

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.