def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\reg.exe"),
                    event.deep_get("OriginalFileName", default="") == "reg.exe",
                ]
            ),
            any(
                [
                    " save " in event.deep_get("CommandLine", default=""),
                    " export " in event.deep_get("CommandLine", default=""),
                    " ˢave " in event.deep_get("CommandLine", default=""),
                    " eˣport " in event.deep_get("CommandLine", default=""),
                ]
            ),
            any(
                [
                    "hklm" in event.deep_get("CommandLine", default=""),
                    "hk˪m" in event.deep_get("CommandLine", default=""),
                    "hkey_local_machine" in event.deep_get("CommandLine", default=""),
                    "hkey_˪ocal_machine" in event.deep_get("CommandLine", default=""),
                    "hkey_loca˪_machine" in event.deep_get("CommandLine", default=""),
                    "hkey_˪oca˪_machine" in event.deep_get("CommandLine", default=""),
                ]
            ),
            any(
                [
                    "\\system" in event.deep_get("CommandLine", default=""),
                    "\\sam" in event.deep_get("CommandLine", default=""),
                    "\\security" in event.deep_get("CommandLine", default=""),
                    "\\ˢystem" in event.deep_get("CommandLine", default=""),
                    "\\syˢtem" in event.deep_get("CommandLine", default=""),
                    "\\ˢyˢtem" in event.deep_get("CommandLine", default=""),
                    "\\ˢam" in event.deep_get("CommandLine", default=""),
                    "\\ˢecurity" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
