import json


def rule(event):
    if any(
        [
            any(
                [
                    "wevtutil cl Application & fsutil usn deletejournal /D C:"
                    in event.deep_get("CommandLine", default=""),
                    "dllhost.dat %WINDIR%\\ransoms" in event.deep_get("CommandLine", default=""),
                ]
            ),
            all(
                [
                    event.deep_get("Image", default="").endswith("\\rundll32.exe"),
                    any(
                        [
                            event.deep_get("CommandLine", default="").endswith(".dat,#1"),
                            event.deep_get("CommandLine", default="").endswith(".dat #1"),
                            event.deep_get("CommandLine", default="").endswith('.zip.dll",#1'),
                        ]
                    ),
                ]
            ),
            "\\perfc.dat" in json.dumps(event.to_dict()),
        ]
    ):
        return True
    return False
