From e9bb56f3cf88c846289d91abe7854481bc694f1f Mon Sep 17 00:00:00 2001 From: Willi Ballenthin Date: Tue, 5 Apr 2022 14:54:15 -0600 Subject: [PATCH] API: better support A/W functions --- capa/features/extractors/helpers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/capa/features/extractors/helpers.py b/capa/features/extractors/helpers.py index f6d91333..8593a5bb 100644 --- a/capa/features/extractors/helpers.py +++ b/capa/features/extractors/helpers.py @@ -29,8 +29,7 @@ def is_aw_function(symbol: str) -> bool: if symbol[-1] not in ("A", "W"): return False - # second to last character should be lowercase letter - return "a" <= symbol[-2] <= "z" or "0" <= symbol[-2] <= "9" + return True def is_ordinal(symbol: str) -> bool: