int get_aon_index( vmi_instance_t vmi, const char *symbol, struct export_table *et, const access_context_t *ctx) { int index = get_aon_index_binary(vmi, symbol, et, ctx); if (-1 == index) { dbprint (VMI_DEBUG_PEPARSE, "--PEParse: Falling back to linear search for aon index\n"); // This could be useful for malformed PE headers where the list isn't // in alpha order (e.g., malware) index = get_aon_index_linear(vmi, symbol, et, ctx); } return index; }
int get_aon_index( vmi_instance_t vmi, const char *symbol, struct export_table *et, addr_t base_addr, vmi_pid_t pid) { int index = get_aon_index_binary(vmi, symbol, et, base_addr, pid); if (-1 == index) { dbprint (VMI_DEBUG_MISC, "--PEParse: Falling back to linear search for aon index\n"); // This could be useful for malformed PE headers where the list isn't // in alpha order (e.g., malware) index = get_aon_index_linear(vmi, symbol, et, base_addr, pid); } return index; }