def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\reg.exe"),
                    event.deep_get("OriginalFileName", default="") == "reg.exe",
                ]
            ),
            "\\SOFTWARE\\Policies\\Microsoft\\Windows\\System"
            in event.deep_get("CommandLine", default=""),
            any(
                [
                    "GroupPolicyRefreshTimeDC" in event.deep_get("CommandLine", default=""),
                    "GroupPolicyRefreshTimeOffsetDC" in event.deep_get("CommandLine", default=""),
                    "GroupPolicyRefreshTime" in event.deep_get("CommandLine", default=""),
                    "GroupPolicyRefreshTimeOffset" in event.deep_get("CommandLine", default=""),
                    "EnableSmartScreen" in event.deep_get("CommandLine", default=""),
                    "ShellSmartScreenLevel" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
