def extract_basic_block_features(f, bb): features = set({}) for insn in bb.instructions: for feature, _ in capa.features.extractors.viv.insn.extract_features( f, bb, insn): features.add(feature) for feature, _ in capa.features.extractors.viv.basicblock.extract_features( f, bb): features.add(feature) return features
def extract_file_features(vw, path): features = set([]) for feature, va in capa.features.extractors.viv.file.extract_features( vw, path): features.add(feature) return features
def extract_file_features(): extractor = get_extractor() features = set([]) for feature, va in extractor.extract_file_features(): features.add(feature) return features