From 3e52c7de23be6d8b7cf15bed3b1af50b7af0bb0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ana=20Mar=C3=ADa=20Mart=C3=ADnez=20G=C3=B3mez?= Date: Fri, 21 Aug 2020 10:51:34 +0200 Subject: [PATCH] features: store mnemomics lower case miasm extracts mnemonic capitalized while other backends do it lowercase. To ensure capa works with all of them, use lower case in the Mnemomic constructor. --- capa/features/insn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/capa/features/insn.py b/capa/features/insn.py index ca612e56..ed7f1972 100644 --- a/capa/features/insn.py +++ b/capa/features/insn.py @@ -37,4 +37,4 @@ class Offset(Feature): class Mnemonic(Feature): def __init__(self, value, description=None): - super(Mnemonic, self).__init__(value, description=description) + super(Mnemonic, self).__init__(value.lower(), description=description)