def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith(
                        "\\AI_STUBS\\AiStubX64Elevated.exe"
                    ),
                    event.deep_get("Image", default="").endswith(
                        "\\AI_STUBS\\AiStubX86Elevated.exe"
                    ),
                    event.deep_get("Image", default="").endswith("\\AI_STUBS\\AiStubX64.exe"),
                    event.deep_get("Image", default="").endswith("\\AI_STUBS\\AiStubX86.exe"),
                ]
            ),
            event.deep_get("OriginalFileName", default="") == "popupwrapper.exe",
        ]
    ):
        return True
    return False
