import re


def rule(event):
    if all(
        [
            event.deep_get("ParentImage", default="").endswith("\\explorer.exe"),
            any(
                [
                    event.deep_get("Image", default="").endswith("\\rundll32.exe"),
                    event.deep_get("OriginalFileName", default="") == "RUNDLL32.EXE",
                ]
            ),
            "oledb32.dll" in event.deep_get("CommandLine", default=""),
            ",OpenDSLFile " in event.deep_get("CommandLine", default=""),
            re.match(r"^.*\\Users\\.*\\Downloads\\.*$", event.deep_get("CommandLine", default="")),
            event.deep_get("CommandLine", default="").endswith(".udl"),
        ]
    ):
        return True
    return False
