def rule(event):
    if all(
        [
            "DllRegisterServer" in event.deep_get("CommandLine", default=""),
            not event.deep_get("Image", default="").endswith("\\rundll32.exe"),
        ]
    ):
        return True
    return False
