Commit Graph

4 Commits

Author SHA1 Message Date
Ivan Gotovchits 222d6da4f0 Add BAP as backend.
This PR introduces bap as a backend for QIRA.
The backend is made optional, but is enabled by default.

This backend allows one to disassemble instructions for all platforms,
supported by LLVM (at the time of writing it is about 25 targets).

Also, to some platforms BAP will provide BIL and/or target specific
instructions, lifted to first class python values, as opposed to
strings.

A new instruction class is introduces, that will use BIL if available to
infer destinations, as well as to infer registers touched or modified by
the instruction. Using, BIL allows us to determine instructions like
`pop {r0, pc}` as calls, that, as a consequence, allows us to build a
more correct CFG. As a drawback on ARM platform the built CFG is so big,
that it takes a considerable amount of time just to draw it.

Since BAP can provide a reasonable analysis for all platforms, including
those that at the time of writing still doesn't have a BIL support, the
static analysis in QIRA will be always turned on.

BAP is installed using opam, and BAP Python bindings a downloaded
directly from the git repository using pip.

As a free bonus, this PR will also fix Travis CI issue.
2015-01-29 09:21:05 -05:00
George Hotz 26eee09b75 make flat bigger 2014-11-23 08:15:31 +00:00
George Hotz 4671570b02 phantomjs tests yay 2014-11-23 01:43:08 +00:00
George Hotz 3392bd55fd in a virtualenv 2014-11-23 01:14:20 +00:00