def rule(event):
    if all(
        [
            event.deep_get("Type", default="") == "Image is replaced",
            not any(
                [
                    ":\\Program Files (x86)" in event.deep_get("Image", default=""),
                    ":\\Program Files\\" in event.deep_get("Image", default=""),
                    ":\\Windows\\System32\\wbem\\WMIADAP.exe"
                    in event.deep_get("Image", default=""),
                    ":\\Windows\\SysWOW64\\wbem\\WMIADAP.exe"
                    in event.deep_get("Image", default=""),
                ]
            ),
            not any(
                [
                    all(
                        [
                            "\\AppData\\Local\\Programs\\Opera\\"
                            in event.deep_get("Image", default=""),
                            event.deep_get("Image", default="").endswith("\\opera.exe"),
                        ]
                    ),
                    event.deep_get("Image", default="").endswith(
                        "\\WindowsApps\\MicrosoftEdge.exe"
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
