mirror of
https://github.com/mandiant/capa.git
synced 2026-02-04 11:07:53 -08:00
Update capa/main.py
Co-authored-by: Willi Ballenthin <willi.ballenthin@gmail.com>
This commit is contained in:
@@ -121,7 +121,7 @@ def find_capabilities(ruleset, extractor, disable_progress=None):
|
||||
# to disable progress completely
|
||||
pbar = lambda s, *args, **kwargs: s
|
||||
|
||||
for f in pbar(list(extractor.get_functions()), disable=disable_progress, desc="matching", unit=" functions"):
|
||||
for f in pbar(list(extractor.get_functions()), desc="matching", unit=" functions"):
|
||||
function_matches, bb_matches, feature_count = find_function_capabilities(ruleset, extractor, f)
|
||||
meta["feature_counts"]["functions"][f.__int__()] = feature_count
|
||||
logger.debug("analyzed function 0x%x and extracted %d features", f.__int__(), feature_count)
|
||||
|
||||
Reference in New Issue
Block a user