KUNAI Static Analyzer
Kunai is a library for doing static binary analysis of Dalvik.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
KUNAI::DEX::RecursiveTraversalDisassembler Class Reference

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.
 

Detailed Description

RecursiveTraversalDisassembler is one of the DEX disassembly algorithms implemented by Kunai, this algorithm will follow the control flow to disassemble the bytecode.

Member Function Documentation

◆ disassembly()

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.

Parameters
buffer_bytesbytes to disassembly
methodthe method to determine the exceptions
instructionsvector where to store the instructions

The documentation for this class was generated from the following file: