def rule(event):
    if all(
        [
            event.deep_get("Image", default="").endswith("\\reg.exe"),
            any(
                [
                    "HKEY_CURRENT_USER\\Control Panel\\Desktop"
                    in event.deep_get("CommandLine", default=""),
                    "HKCU\\Control Panel\\Desktop" in event.deep_get("CommandLine", default=""),
                ]
            ),
            any(
                [
                    all(
                        [
                            "/v ScreenSaveActive" in event.deep_get("CommandLine", default=""),
                            "/t REG_SZ" in event.deep_get("CommandLine", default=""),
                            "/d 1" in event.deep_get("CommandLine", default=""),
                            "/f" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    all(
                        [
                            "/v ScreenSaveTimeout" in event.deep_get("CommandLine", default=""),
                            "/t REG_SZ" in event.deep_get("CommandLine", default=""),
                            "/d " in event.deep_get("CommandLine", default=""),
                            "/f" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    all(
                        [
                            "/v ScreenSaverIsSecure" in event.deep_get("CommandLine", default=""),
                            "/t REG_SZ" in event.deep_get("CommandLine", default=""),
                            "/d 0" in event.deep_get("CommandLine", default=""),
                            "/f" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    all(
                        [
                            "/v SCRNSAVE.EXE" in event.deep_get("CommandLine", default=""),
                            "/t REG_SZ" in event.deep_get("CommandLine", default=""),
                            "/d " in event.deep_get("CommandLine", default=""),
                            ".scr" in event.deep_get("CommandLine", default=""),
                            "/f" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
