def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\rundll32.exe"),
                    event.deep_get("OriginalFileName", default="") == "RUNDLL32.EXE",
                ]
            ),
            "shell32.dll" in event.deep_get("CommandLine", default=""),
            "Control_RunDLL" in event.deep_get("CommandLine", default=""),
            any(
                [
                    "%AppData%" in event.deep_get("CommandLine", default=""),
                    "%LocalAppData%" in event.deep_get("CommandLine", default=""),
                    "%Temp%" in event.deep_get("CommandLine", default=""),
                    "%tmp%" in event.deep_get("CommandLine", default=""),
                    "\\AppData\\" in event.deep_get("CommandLine", default=""),
                    "\\Temp\\" in event.deep_get("CommandLine", default=""),
                    "\\Users\\Public\\" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
