def rule(event):
    if any(
        [
            all(
                [
                    event.deep_get("EventType", default="") == "RenameKey",
                    "\\CLSID\\{645FF040-5081-101B-9F08-00AA002F954E}\\shell\\open"
                    in event.deep_get("NewName", default=""),
                ]
            ),
            all(
                [
                    event.deep_get("EventType", default="") == "SetValue",
                    "\\CLSID\\{645FF040-5081-101B-9F08-00AA002F954E}\\shell\\open\\command\\(Default)"
                    in event.deep_get("TargetObject", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
