def rule(event):
    if all(
        [
            event.deep_get("Image", default="").endswith("\\regsvr32.exe"),
            event.deep_get("CommandLine", default="").startswith("regsvr32 /s"),
            "\\contextMenu\\NppShell.dll" in event.deep_get("CommandLine", default=""),
            not event.deep_get("Image", default="")
            in ["C:\\Windows\\System32\\regsvr32.exe", "C:\\Windows\\SysWOW64\\regsvr32.exe"],
        ]
    ):
        return True
    return False
