def rule(event):
    if all(
        [
            event.deep_get("ImageLoaded", default="").endswith("\\appverifUI.dll"),
            not all(
                [
                    event.deep_get("Image", default="")
                    in [
                        "C:\\Windows\\SysWOW64\\appverif.exe",
                        "C:\\Windows\\System32\\appverif.exe",
                    ],
                    any(
                        [
                            event.deep_get("ImageLoaded", default="").startswith(
                                "C:\\Windows\\System32\\"
                            ),
                            event.deep_get("ImageLoaded", default="").startswith(
                                "C:\\Windows\\SysWOW64\\"
                            ),
                            event.deep_get("ImageLoaded", default="").startswith(
                                "C:\\Windows\\WinSxS\\"
                            ),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
