def rule(event):
    if all(
        [
            event.deep_get("Image", default="").endswith("\\reg.exe"),
            "add " in event.deep_get("CommandLine", default=""),
            "SYSTEM\\CurrentControlSet\\Services\\" in event.deep_get("CommandLine", default=""),
            " ImagePath " in event.deep_get("CommandLine", default=""),
            any(
                [
                    " -d " in event.deep_get("CommandLine", default=""),
                    " /d " in event.deep_get("CommandLine", default=""),
                    " –d " in event.deep_get("CommandLine", default=""),
                    " —d " in event.deep_get("CommandLine", default=""),
                    " ―d " in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
