KUNAI Static Analyzer
Kunai is a library for doing static binary analysis of Dalvik.
|
RecursiveTraversalDisassembler is one of the DEX disassembly algorithms implemented by Kunai, this algorithm will follow the control flow to disassemble the bytecode. More...
#include <recursive_traversal_disassembler.hpp>
Public Member Functions | |
void | set_internal_disassembler (Disassembler *disassembler) |
void | disassembly (std::vector< std::uint8_t > &buffer_bytes, EncodedMethod *method, 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. | |
RecursiveTraversalDisassembler is one of the DEX disassembly algorithms implemented by Kunai, this algorithm will follow the control flow to disassemble the bytecode.
void KUNAI::DEX::RecursiveTraversalDisassembler::disassembly | ( | std::vector< std::uint8_t > & | buffer_bytes, |
EncodedMethod * | method, | ||
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 |
method | the method to determine the exceptions |
instructions | vector where to store the instructions |