def rule(event):
    if all(
        [
            event.deep_get("TargetFilename", default="").endswith(".scr"),
            not any(
                [
                    ":\\$WINDOWS.~BT\\NewOS\\" in event.deep_get("TargetFilename", default=""),
                    ":\\Windows\\System32\\" in event.deep_get("TargetFilename", default=""),
                    ":\\Windows\\SysWOW64\\" in event.deep_get("TargetFilename", default=""),
                    ":\\Windows\\WinSxS\\" in event.deep_get("TargetFilename", default=""),
                    ":\\WUDownloadCache\\" in event.deep_get("TargetFilename", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
