def rule(event):
    if any(
        [
            all(
                [
                    "rundll32" in event.deep_get("CommandLine", default=""),
                    "apphelp.dll" in event.deep_get("CommandLine", default=""),
                    any(
                        [
                            "ShimFlushCache" in event.deep_get("CommandLine", default=""),
                            "#250" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                ]
            ),
            all(
                [
                    "rundll32" in event.deep_get("CommandLine", default=""),
                    "kernel32.dll" in event.deep_get("CommandLine", default=""),
                    any(
                        [
                            "BaseFlushAppcompatCache" in event.deep_get("CommandLine", default=""),
                            "#46" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
