def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\regsvr32.exe"),
                    event.deep_get("OriginalFileName", default="") == "REGSVR32.EXE",
                ]
            ),
            any(
                [
                    event.deep_get("CommandLine", default="").endswith(".bin"),
                    event.deep_get("CommandLine", default="").endswith(".bmp"),
                    event.deep_get("CommandLine", default="").endswith(".cr2"),
                    event.deep_get("CommandLine", default="").endswith(".dat"),
                    event.deep_get("CommandLine", default="").endswith(".eps"),
                    event.deep_get("CommandLine", default="").endswith(".gif"),
                    event.deep_get("CommandLine", default="").endswith(".ico"),
                    event.deep_get("CommandLine", default="").endswith(".jpeg"),
                    event.deep_get("CommandLine", default="").endswith(".jpg"),
                    event.deep_get("CommandLine", default="").endswith(".log"),
                    event.deep_get("CommandLine", default="").endswith(".nef"),
                    event.deep_get("CommandLine", default="").endswith(".orf"),
                    event.deep_get("CommandLine", default="").endswith(".png"),
                    event.deep_get("CommandLine", default="").endswith(".raw"),
                    event.deep_get("CommandLine", default="").endswith(".rtf"),
                    event.deep_get("CommandLine", default="").endswith(".sr2"),
                    event.deep_get("CommandLine", default="").endswith(".temp"),
                    event.deep_get("CommandLine", default="").endswith(".tif"),
                    event.deep_get("CommandLine", default="").endswith(".tiff"),
                    event.deep_get("CommandLine", default="").endswith(".tmp"),
                    event.deep_get("CommandLine", default="").endswith(".txt"),
                ]
            ),
        ]
    ):
        return True
    return False
