def __generate_encrypted_string_candidates()

in nightMARE/src/nightmare/malware/lobshot/configuration.py [0:0]


def __generate_encrypted_string_candidates(section_data: bytes) -> list[bytes]:
    candidates: list[bytes] = list()
    blocks = section_data.split(b"\x00")
    blocks = [x for x in blocks if x != b""]
    for block in blocks:
        if len(block) > 3 and not b"\\" in block:
            candidates.append(block)
    return candidates