def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\rundll32.exe"),
                    event.deep_get("OriginalFileName", default="") == "RUNDLL32.EXE",
                ]
            ),
            any(
                [
                    ":\\ProgramData" in event.deep_get("CommandLine", default=""),
                    "\\AppData\\Local" in event.deep_get("CommandLine", default=""),
                ]
            ),
            any(
                [
                    all(
                        [
                            ".wll" in event.deep_get("CommandLine", default=""),
                            "#1" in event.deep_get("CommandLine", default=""),
                            " -d" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    all(
                        [
                            ".wll" in event.deep_get("CommandLine", default=""),
                            event.deep_get("CommandLine", default="").endswith("#1"),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
