mirror of
https://github.com/bitdefender/bddisasm.git
synced 2025-03-20 14:36:05 +00:00
![]() - Add support for AVX512-FP16 instructions, as per https://software.intel.com/content/www/us/en/develop/download/intel-avx512-fp16-architecture-specification.html - Bug fix: zeroing with no masking is not supported, so return an error if we encounter such encodings - Bug fix: ignore VEX/EVEX.W field outside 64 bit mode for some instructions - Several other minor fixes and improvements |
||
---|---|---|
.. | ||
_pybddisasm | ||
pybddisasm | ||
LICENSE | ||
MANIFEST.in | ||
README.md | ||
setup.cfg | ||
setup.py |
The Bitdefender disassembler Python wrapper
Build
Building and installing is easy:
python3 setup.py build
python3 setup.py install
Usage
Use it by importing the pybddisasm.disasm module:
from pybddisasm.bddisasm import *
instr = nd_decode_ex2(buff, arch, arch, arch, vendor, current_rip)
Example
from pybddisasm.bddisasm import *
from sys import *
buff = b"\x55\x48\x8b\x05\xb8\x13\x00\x00"
offset = 0
while offset < getsizeof(buff):
instr = nd_decode_ex2(buff[offset:], 64, 64, 64)
if instr is None:
break
print(instr.Text)
offset += instr.Length
Pip
Use pip to install the package:
pip install pybddisasm