def rule(event):
    if all(
        [
            event.deep_get("TargetFilename", default="").endswith(".scr"),
            not any(
                [
                    any(
                        [
                            event.deep_get("Image", default="").endswith("\\Kindle.exe"),
                            event.deep_get("Image", default="").endswith("\\Bin\\ccSvcHst.exe"),
                        ]
                    ),
                    all(
                        [
                            event.deep_get("Image", default="").endswith("\\TiWorker.exe"),
                            event.deep_get("TargetFilename", default="").endswith(
                                "\\uwfservicingscr.scr"
                            ),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
