def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\rundll32.exe"),
                    event.deep_get("OriginalFileName", default="") == "RUNDLL32.exe",
                ]
            ),
            any(
                [
                    ".bmp" in event.deep_get("CommandLine", default=""),
                    ".cr2" in event.deep_get("CommandLine", default=""),
                    ".eps" in event.deep_get("CommandLine", default=""),
                    ".gif" in event.deep_get("CommandLine", default=""),
                    ".ico" in event.deep_get("CommandLine", default=""),
                    ".jpeg" in event.deep_get("CommandLine", default=""),
                    ".jpg" in event.deep_get("CommandLine", default=""),
                    ".nef" in event.deep_get("CommandLine", default=""),
                    ".orf" in event.deep_get("CommandLine", default=""),
                    ".png" in event.deep_get("CommandLine", default=""),
                    ".raw" in event.deep_get("CommandLine", default=""),
                    ".sr2" in event.deep_get("CommandLine", default=""),
                    ".tif" in event.deep_get("CommandLine", default=""),
                    ".tiff" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
