def rule(event):
    if all(
        [
            event.deep_get("Image", default="").endswith("\\dism.exe"),
            event.deep_get("ImageLoaded", default="").endswith("\\dismcore.dll"),
            not event.deep_get("ImageLoaded", default="")
            == "C:\\Windows\\System32\\Dism\\dismcore.dll",
        ]
    ):
        return True
    return False
