mirror of
https://github.com/mandiant/capa.git
synced 2025-12-12 15:49:46 -08:00
return the target's address for the function-name feature
This commit is contained in:
@@ -138,7 +138,7 @@ def extract_insn_api_features(fh: FunctionHandle, bb, ih: InsnHandle) -> Iterato
|
||||
STT_FUNC = 0x2
|
||||
if sym_value == target and sym_info & STT_FUNC != 0:
|
||||
yield API(sym_name), ih.address
|
||||
yield FunctionName(sym_name), ih.address
|
||||
yield FunctionName(sym_name), target
|
||||
|
||||
if viv_utils.flirt.is_library_function(f.vw, target):
|
||||
name = viv_utils.get_function_name(f.vw, target)
|
||||
|
||||
Reference in New Issue
Block a user