KUNAI Static Analyzer
Kunai is a library for doing static binary analysis of Dalvik.
|
LinearSweepDisassembler is one of the DEX disassembly algorithms implemented by Kunai, this algorithm will go from the first byte of a buffer to the last one disassemblying all the found instructions. More...
#include <linear_sweep_disassembler.hpp>
Public Member Functions | |
void | set_internal_disassembler (Disassembler *disassembler) |
void | disassembly (std::vector< std::uint8_t > &buffer_bytes, std::vector< std::unique_ptr< Instruction > > &instructions) |
This function implements the algorithm of disassembly of linear sweep, the function receives a buffer of bytes and the buffer is traversed in a linear way disassembling each byte. | |
LinearSweepDisassembler is one of the DEX disassembly algorithms implemented by Kunai, this algorithm will go from the first byte of a buffer to the last one disassemblying all the found instructions.
void KUNAI::DEX::LinearSweepDisassembler::disassembly | ( | std::vector< std::uint8_t > & | buffer_bytes, |
std::vector< std::unique_ptr< Instruction > > & | instructions | ||
) |
This function implements the algorithm of disassembly of linear sweep, the function receives a buffer of bytes and the buffer is traversed in a linear way disassembling each byte.
buffer_bytes | bytes to disassembly |
instructions | vector where to store the instructions |