Disassembler for DEX data.
More...
#include <dex_disassembler.hpp>
|
enum class | disassembly_algorithm { LINEAR_SWEEP_ALGORITHM
, RECURSIVE_TRAVERSAL_ALGORITHM
} |
| enum of the different algorithms implemented for doing disassembly of DEX file
|
|
Disassembler for DEX data.
◆ DexDisassembler()
KUNAI::DEX::DexDisassembler::DexDisassembler |
( |
Parser * |
parser | ) |
|
|
inline |
Constructor of the DexDisassembler, this should be called only if the parsing was correct.
- Parameters
-
parser | parser for the internal disassembler, this is used in some of the instructions |
◆ add_disassembly()
void KUNAI::DEX::DexDisassembler::add_disassembly |
( |
DexDisassembler & |
other | ) |
|
Add the instructions from another disassembler to the current one, this invalidate the previous one.
- Parameters
-
other | other dex disassembler |
◆ correct_disassembly()
bool KUNAI::DEX::DexDisassembler::correct_disassembly |
( |
| ) |
const |
|
inline |
Get if the disassembly process was correct or not.
- Returns
- boolean value that says if disassembly was correct
◆ disassembly_buffer()
std::vector< std::unique_ptr< Instruction > > KUNAI::DEX::DexDisassembler::disassembly_buffer |
( |
std::vector< std::uint8_t > & |
buffer | ) |
|
Disassembly a buffer of bytes, take the buffer of bytes as dalvik instructions.
- Parameters
-
buffer | buffer with possible bytecode for dalvik |
- Returns
- vector with disassembled instructions
◆ get_dex_instructions() [1/2]
Get access to all the instructions from a dex.
- Returns
- reference to instructions
◆ get_dex_instructions() [2/2]
Get access to all the instructions from a dex.
- Returns
- constant reference to instructions
◆ set_disassembly_algorithm()
Set the disassembly algorithm to use in the next calls to the different disassembly methods.
- Parameters
-
algorithm | new algorithm to use |
The documentation for this class was generated from the following file: