Giter Club home page Giter Club logo

lf2's Introduction

Getting Started

Fork and download this repository by these steps.

Open the function you want to decompile, eg: attack_process

cd lf2
vim attack_process.rb

Push to github to contribute your work if you want.

x86 instructions

Float number comparison

fcom source
  • ST(0) > source, C3: 0, C2: 0, C0: 0
  • ST(0) = source, C3: 1, C2: 0, C0: 0
  • ST(0) < source, C3: 0, C2: 0, C0: 1

Jump if ST(0) < source

fcom source
fstsw ax
test ah,5 (C2 and C0)
jpo short 0042EFB1

Jump if ST(0) <= source

fcom source
fstsw ax
test ah,41 (C3 and C0)
jnz short 0042F008

Jump if ST(0) > source

fcom source
fstsw ax
test ah,41 (C3 and C0)
je short 0042EFC6

or

fcom source
fstsw ax
test ah,41 (C3 and C0)
jpe short 0042F251

Jump if ST(0) >= source

fcomp source
fstsw ax
test ah,5 (C2 and C0)
jpe short 0042EE20

or

fcom source
fstsw ax
test ah,1 (C0)
je short 0042F248

Divide by constant

eqution

Divide by 2

eqution

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.