def rule(event):
    if all(
        [
            any(
                [
                    "~1.bat" in event.deep_get("Image", default=""),
                    "~1.dll" in event.deep_get("Image", default=""),
                    "~1.exe" in event.deep_get("Image", default=""),
                    "~1.hta" in event.deep_get("Image", default=""),
                    "~1.js" in event.deep_get("Image", default=""),
                    "~1.msi" in event.deep_get("Image", default=""),
                    "~1.ps1" in event.deep_get("Image", default=""),
                    "~1.tmp" in event.deep_get("Image", default=""),
                    "~1.vbe" in event.deep_get("Image", default=""),
                    "~1.vbs" in event.deep_get("Image", default=""),
                    "~2.bat" in event.deep_get("Image", default=""),
                    "~2.dll" in event.deep_get("Image", default=""),
                    "~2.exe" in event.deep_get("Image", default=""),
                    "~2.hta" in event.deep_get("Image", default=""),
                    "~2.js" in event.deep_get("Image", default=""),
                    "~2.msi" in event.deep_get("Image", default=""),
                    "~2.ps1" in event.deep_get("Image", default=""),
                    "~2.tmp" in event.deep_get("Image", default=""),
                    "~2.vbe" in event.deep_get("Image", default=""),
                    "~2.vbs" in event.deep_get("Image", default=""),
                ]
            ),
            not event.deep_get("ParentImage", default="") == "C:\\Windows\\explorer.exe",
            not any(
                [
                    event.deep_get("ParentImage", default="").endswith("\\WebEx\\WebexHost.exe"),
                    event.deep_get("ParentImage", default="").endswith("\\thor\\thor64.exe"),
                    event.deep_get("Image", default="") == "C:\\PROGRA~1\\WinZip\\WZPREL~1.EXE",
                    event.deep_get("Image", default="").endswith("\\VCREDI~1.EXE"),
                ]
            ),
        ]
    ):
        return True
    return False
