Update capa/rules/__init__.py

Co-authored-by: Moritz <mr-tz@users.noreply.github.com>
This commit is contained in:
Aayush Goel
2023-08-30 21:48:48 +05:30
committed by GitHub
parent ab3747e448
commit 24dad6bcc4

View File

@@ -244,7 +244,7 @@ def translate_com_feature(com_name: str, com_type: str) -> ceng.Or:
]
guid_bytes = bytes.fromhex("".join(reordered_hex_pairs))
prefix = VALID_COM_TYPES[com_type]["prefix"]
com_features.append(capa.features.common.StringFactory(guid_string, f"{prefix+com_name} as guid string"))
com_features.append(capa.features.common.StringFactory(guid_string, f"{prefix+com_name} as GUID string"))
com_features.append(capa.features.common.Bytes(guid_bytes, f"{prefix+com_name} as bytes"))
return ceng.Or(com_features)