def rule(event):
    if all(
        [
            any(
                [
                    "~1\\" in event.deep_get("Image", default=""),
                    "~2\\" in event.deep_get("Image", default=""),
                ]
            ),
            not any(
                [
                    event.deep_get("ParentImage", default="")
                    in ["C:\\Windows\\System32\\Dism.exe", "C:\\Windows\\System32\\cleanmgr.exe"],
                    any(
                        [
                            all(
                                [
                                    "\\AppData\\" in event.deep_get("Image", default=""),
                                    "\\Temp\\" in event.deep_get("Image", default=""),
                                ]
                            ),
                            any(
                                [
                                    event.deep_get("Image", default="").endswith("~1\\unzip.exe"),
                                    event.deep_get("Image", default="").endswith("~1\\7zG.exe"),
                                ]
                            ),
                        ]
                    ),
                ]
            ),
            not any(
                [
                    event.deep_get("ParentImage", default="").endswith("\\WebEx\\WebexHost.exe"),
                    event.deep_get("ParentImage", default="").endswith("\\thor\\thor64.exe"),
                    any(
                        [
                            event.deep_get("Product", default="") == "InstallShield (R)",
                            event.deep_get("Description", default="")
                            == "InstallShield (R) Setup Engine",
                            event.deep_get("Company", default="")
                            == "InstallShield Software Corporation",
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
