Rizin
unix-like reverse engineering framework and cli tools
|
#include <stddef.h>
#include "rz_core.h"
#include "rz_io.h"
#include "rz_list.h"
#include "rz_types_base.h"
Go to the source code of this file.
Macros | |
#define | FREE_ROP |
Functions | |
static RzList * | parse_list (const char *str) |
static RzList * | get_constants (const char *str) |
static bool | isFlag (RzRegItem *reg) |
static bool | simulate_op (const char *op, ut64 src1, ut64 src2, ut64 old_src1, ut64 old_src2, ut64 *result, int size) |
static void | fillRegisterValues (RzCore *core) |
static void | esil_split_flg (char *esil_str, char **esil_main, char **esil_flg) |
static char * | rop_classify_constant (RzCore *core, RzList *ropList) |
static char * | rop_classify_mov (RzCore *core, RzList *ropList) |
static char * | rop_classify_arithmetic (RzCore *core, RzList *ropList) |
static char * | rop_classify_arithmetic_const (RzCore *core, RzList *ropList) |
static int | rop_classify_nops (RzCore *core, RzList *ropList) |
static void | rop_classify (RzCore *core, Sdb *db, RzList *ropList, const char *key, unsigned int size) |
#define FREE_ROP |
Definition at line 193 of file cmd_search_rop.c.
|
static |
Definition at line 176 of file cmd_search_rop.c.
References rz_str_ndup(), and strdup().
Referenced by rop_classify_arithmetic(), rop_classify_arithmetic_const(), rop_classify_constant(), and rop_classify_mov().
|
static |
Definition at line 156 of file cmd_search_rop.c.
References rz_core_t::analysis, rz_analysis_t::reg, regs, rz_reg_arena_pop(), rz_reg_arena_push(), rz_reg_get_list(), rz_reg_set_value(), and RZ_REG_TYPE_GPR.
Referenced by rop_classify_arithmetic(), rop_classify_arithmetic_const(), rop_classify_constant(), rop_classify_mov(), and rop_classify_nops().
Definition at line 27 of file cmd_search_rop.c.
References free(), list(), NULL, p, rz_list_append(), rz_list_newf(), cmd_descs_generate::str, and strdup().
Referenced by rop_classify_arithmetic_const(), and rop_classify_constant().
Definition at line 47 of file cmd_search_rop.c.
References reg, rz_reg_get_type(), and type.
Referenced by rop_classify_arithmetic(), rop_classify_arithmetic_const(), and rop_classify_mov().
Definition at line 11 of file cmd_search_rop.c.
References free(), setup::line, list(), NULL, rz_str_split_duplist(), cmd_descs_generate::str, and strdup().
Referenced by rop_classify_arithmetic(), rop_classify_arithmetic_const(), rop_classify_constant(), and rop_classify_mov().
|
static |
Definition at line 676 of file cmd_search_rop.c.
References eprintf, free(), key, mov(), rop_classify_arithmetic(), rop_classify_arithmetic_const(), rop_classify_constant(), rop_classify_mov(), rop_classify_nops(), rz_str_newf(), sdb_ns(), sdb_set(), and cmd_descs_generate::str.
Referenced by print_rop().
Definition at line 394 of file cmd_search_rop.c.
References rz_core_t::analysis, arithmetic(), cmd_analysis_esil(), rz_core_t::config, rz_analysis_t::esil, esil_split_flg(), fillRegisterValues(), free(), FREE_ROP, test-lz4-versions::head, isFlag(), mem_read(), mem_write(), rz_reg_item_t::name, NULL, op, out, parse_list(), rz_analysis_t::reg, rz_config_get_i(), rz_list_find(), RZ_NEW0, rz_reg_arena_swap(), rz_reg_get_list(), rz_reg_get_value(), RZ_REG_TYPE_GPR, rz_str_append(), rz_str_newf(), sdb_querys(), simulate_op(), rz_reg_item_t::size, rz_analysis_esil_t::stats, autogen_x86imm::tmp, and ut64().
Referenced by rop_classify().
Definition at line 522 of file cmd_search_rop.c.
References rz_core_t::analysis, arithmetic(), cmd_analysis_esil(), rz_core_t::config, rz_analysis_t::esil, esil_split_flg(), fillRegisterValues(), free(), FREE_ROP, get_constants(), test-lz4-versions::head, isFlag(), mem_read(), mem_write(), rz_reg_item_t::name, NULL, op, out, parse_list(), rz_analysis_t::reg, rz_config_get_i(), RZ_FREE, rz_list_find(), rz_list_free(), RZ_NEW0, rz_num_get(), rz_reg_arena_swap(), rz_reg_get_list(), rz_reg_get_value(), RZ_REG_TYPE_GPR, rz_str_append(), rz_str_newf(), sdb_querys(), simulate_op(), rz_reg_item_t::size, rz_analysis_esil_t::stats, autogen_x86imm::tmp, and ut64().
Referenced by rop_classify().
Definition at line 214 of file cmd_search_rop.c.
References rz_core_t::analysis, cmd_analysis_esil(), rz_core_t::config, rz_analysis_t::esil, esil_split_flg(), fillRegisterValues(), FREE_ROP, get_constants(), test-lz4-versions::head, mem_read(), mem_write(), rz_reg_item_t::name, NULL, out, parse_list(), PFMT64x, rz_analysis_t::reg, rz_config_get_i(), rz_list_find(), rz_list_free(), rz_num_get(), rz_reg_arena_swap(), rz_reg_get_list(), rz_reg_get_value(), rz_reg_set_value(), RZ_REG_TYPE_GPR, rz_str_appendf(), sdb_querys(), rz_analysis_esil_t::stats, and ut64().
Referenced by rop_classify().
Definition at line 300 of file cmd_search_rop.c.
References rz_core_t::analysis, cmd_analysis_esil(), rz_core_t::config, rz_analysis_t::esil, esil_split_flg(), fillRegisterValues(), FREE_ROP, test-lz4-versions::head, isFlag(), mem_read(), mem_write(), mov(), rz_reg_item_t::name, NULL, out, parse_list(), rz_analysis_t::reg, rz_config_get_i(), rz_list_find(), rz_reg_arena_swap(), rz_reg_get_list(), rz_reg_get_value(), rz_reg_set_value(), RZ_REG_TYPE_GPR, rz_str_appendf(), sdb_querys(), rz_analysis_esil_t::stats, and ut64().
Referenced by rop_classify().
Definition at line 646 of file cmd_search_rop.c.
References rz_core_t::analysis, cmd_analysis_esil(), rz_core_t::config, rz_analysis_t::esil, fillRegisterValues(), free(), NULL, out, rz_config_get_i(), sdb_querys(), and rz_analysis_esil_t::stats.
Referenced by rop_classify().
|
static |
Definition at line 56 of file cmd_search_rop.c.
References limit, ut64(), and UT64_MAX.
Referenced by rop_classify_arithmetic(), and rop_classify_arithmetic_const().