[文档]classObfuscations(KnowledgeBasePlugin):""" Store discovered information and artifacts about (string) obfuscation techniques in the project. """
[文档]def__init__(self,kb):super().__init__(kb)self.obfuscated_strings_analyzed:bool=Falseself.type1_deobfuscated_strings={}self.type1_string_loader_candidates=set()self.type2_deobfuscated_strings={}self.type2_string_loader_candidates=set()self.type3_deobfuscated_strings={}# from the address of the call instruction to the actual string (in bytes)self.obfuscated_apis_analyzed:bool=Falseself.type1_deobfuscated_apis:dict[int,tuple[str,str]]={}