def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\print.exe"),
                    event.deep_get("OriginalFileName", default="") == "Print.EXE",
                ]
            ),
            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=""),
                ]
            ),
            any(
                [
                    "\\config\\SAM" in event.deep_get("CommandLine", default=""),
                    "\\config\\SECURITY" in event.deep_get("CommandLine", default=""),
                    "\\config\\SYSTEM" in event.deep_get("CommandLine", default=""),
                    "\\windows\\ntds\\ntds.dit" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
