def rule(event):
    if all(
        [
            event.deep_get("Image", default="").endswith("\\rundll32.exe"),
            any(
                [
                    "%LOCALAPPDATA%" in event.deep_get("CommandLine", default=""),
                    "\\AppData\\Local\\" in event.deep_get("CommandLine", default=""),
                ]
            ),
            any(
                [
                    '.dat",' in event.deep_get("CommandLine", default=""),
                    any(
                        [
                            event.deep_get("CommandLine", default="").endswith(".dll #1"),
                            event.deep_get("CommandLine", default="").endswith('.dll" #1'),
                            event.deep_get("CommandLine", default="").endswith('.dll",#1'),
                        ]
                    ),
                ]
            ),
            not "\\AppData\\Local\\Temp\\" in event.deep_get("CommandLine", default=""),
        ]
    ):
        return True
    return False
