def rule(event):
    if all(
        [
            any(
                [
                    any(
                        [
                            event.deep_get("Image", default="").endswith("\\ADExp.exe"),
                            event.deep_get("Image", default="").endswith("\\ADExplorer.exe"),
                            event.deep_get("Image", default="").endswith("\\ADExplorer64.exe"),
                            event.deep_get("Image", default="").endswith("\\ADExplorer64a.exe"),
                        ]
                    ),
                    event.deep_get("OriginalFileName", default="") == "AdExp",
                    event.deep_get("Description", default="") == "Active Directory Editor",
                    event.deep_get("Product", default="") == "Sysinternals ADExplorer",
                ]
            ),
            "snapshot" in event.deep_get("CommandLine", default=""),
            any(
                [
                    "\\Downloads\\" in event.deep_get("CommandLine", default=""),
                    "\\Users\\Public\\" in event.deep_get("CommandLine", default=""),
                    "\\AppData\\" in event.deep_get("CommandLine", default=""),
                    "\\Windows\\Temp\\" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
