Comments (1)
Hi, thank you for your interest in MeanDiff.
Adding architectures without modifying current MeanDiff code is not supported yet, so if you want to test BAP and pyVEX for ARM, you need to fix MeanDiff.
- StreamGen Modification
You should modify StreamGen module, because current module only generates x86 or x64 instructions. Functions need to be fixed are, blackListGen, whiteListGen, and allGen. Former one is generating instructions based on black list, and the latter is based on white list. You can generate ARM instructions on your own systematic way, or just random instruction generation. You might need a module to check generated instructions are valid or not.
Very simple (and dumb) implementation of blackListGen will look like:
let blackListGen arch path =
let target = readLinesToList path
match arch with
| X86 ->
// existing code
...
| X64 ->
// existing code
...
| ARM -> // to support ARM, you need to add another type for indicating ARM in CmdOpt.fs
[ "00000000" ] // this only generates an instruction, "andeq r0, r0, r0"
- Lifter Modification
Another modules you need to fix are MeanDiff-LifterPyVEX and MeanDiff-LifterBAP written in Python, and OCaml, respectively. You'll only need a small modification like giving an address of image base, or something else.
Please let me know if you have any further questions.
Thank you.
from meandiff.
Related Issues (20)
- Invalid CF calculation - `sbb`
- Invalid OF calculation - `xadd`, `sbb`
- Invalid stack operation - `pop`
- Invalid padding - `mov`
- Operand address changed - `xchg`, `xadd`, `cmpsb`, `cmpsd`
- No memory alignment - `movaps`, `movdqa`
- Invalid store/load AF behaviour - `sahf`, `lahf`
- Invalid order of calculation - `cmpxchg`
- Not taking part of value - `bt`, `bts`, `sbb`
- Invalid AF calculation - `scasb`, `scasd`, `add`, `adc`, `sbb`, `sub`, `cmp`, `inc`, `dec`
- Confusion of source and destination operands - `palingr`, `cmpxchg`
- Unable to recognize prefix - `mov`, `lea`
- Invalid pushad behaviour - `pushad`
- Missing arithmetic operation - `xadd` HOT 4
- Not storing segment register - `mov` [x64] HOT 2
- Webpage improvement HOT 3
- Test Remill semantics HOT 1
- TODOs before the final release HOT 1
- Maintenance Issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from meandiff.