def rule(event):
    if all(
        [
            "\\SOFTWARE\\Microsoft\\NetSh" in event.deep_get("TargetObject", default=""),
            ".dll" in event.deep_get("Details", default=""),
            not all(
                [
                    event.deep_get("Image", default="") == "C:\\Windows\\System32\\poqexec.exe",
                    event.deep_get("Details", default="")
                    in ["ipmontr.dll", "iasmontr.dll", "ippromon.dll"],
                ]
            ),
        ]
    ):
        return True
    return False
