def rule(event):
    if all(
        [
            event.deep_get("TargetFilename", default="").startswith("C:\\PerfLogs\\"),
            any(
                [
                    event.deep_get("TargetFilename", default="").endswith(".7z"),
                    event.deep_get("TargetFilename", default="").endswith(".bat"),
                    event.deep_get("TargetFilename", default="").endswith(".bin"),
                    event.deep_get("TargetFilename", default="").endswith(".chm"),
                    event.deep_get("TargetFilename", default="").endswith(".dll"),
                    event.deep_get("TargetFilename", default="").endswith(".exe"),
                    event.deep_get("TargetFilename", default="").endswith(".hta"),
                    event.deep_get("TargetFilename", default="").endswith(".lnk"),
                    event.deep_get("TargetFilename", default="").endswith(".ps1"),
                    event.deep_get("TargetFilename", default="").endswith(".psm1"),
                    event.deep_get("TargetFilename", default="").endswith(".py"),
                    event.deep_get("TargetFilename", default="").endswith(".scr"),
                    event.deep_get("TargetFilename", default="").endswith(".sys"),
                    event.deep_get("TargetFilename", default="").endswith(".vbe"),
                    event.deep_get("TargetFilename", default="").endswith(".vbs"),
                    event.deep_get("TargetFilename", default="").endswith(".zip"),
                ]
            ),
        ]
    ):
        return True
    return False
