def rule(event):
    if any(
        [
            all(
                [
                    event.deep_get("EventType", default="") == "SetValue",
                    event.deep_get("TargetObject", default="").endswith(
                        "Classes\\ms-settings\\shell\\open\\command\\SymbolicLinkValue"
                    ),
                    "\\Software\\Classes\\{" in event.deep_get("Details", default=""),
                ]
            ),
            event.deep_get("TargetObject", default="").endswith(
                "Classes\\ms-settings\\shell\\open\\command\\DelegateExecute"
            ),
            all(
                [
                    event.deep_get("EventType", default="") == "SetValue",
                    any(
                        [
                            event.deep_get("TargetObject", default="").endswith(
                                "Classes\\ms-settings\\shell\\open\\command\\(Default)"
                            ),
                            event.deep_get("TargetObject", default="").endswith(
                                "Classes\\exefile\\shell\\open\\command\\(Default)"
                            ),
                        ]
                    ),
                    not event.deep_get("Details", default="") == "(Empty)",
                ]
            ),
        ]
    ):
        return True
    return False
