def rule(event):
    if all(
        [
            "\\" in event.deep_get("path", default=""),
            "ADMIN$" in event.deep_get("path", default=""),
            "SYSTEM32\\" in event.deep_get("name", default=""),
            event.deep_get("name", default="").endswith(".tmp"),
        ]
    ):
        return True
    return False
