{
  "id": 284653,
  "title": "Is Anyone Has The Converted Image From This Dataset?",
  "url": "/competitions/malware-classification/discussion/284653",
  "author_name": "",
  "post_date": "2021-11-01T21:59:17.149414Z",
  "votes": 3,
  "comment_count": 10,
  "views": 0,
  "content": "<p>I want to do some research with some algorithm that will take the image as the input, is anyone has the image version from this dataset? Or can refer me a link to get the image version of Microsoft Malware Classification Challenge (BIG 2015)?</p>",
  "messages": [
    {
      "id": "1567439",
      "postDate": "11/01/2021 21:59:17",
      "content": "<p>I want to do some research with some algorithm that will take the image as the input, is anyone has the image version from this dataset? Or can refer me a link to get the image version of Microsoft Malware Classification Challenge (BIG 2015)?</p>",
      "rawMarkdown": "I want to do some research with some algorithm that will take the image as the input, is anyone has the image version from this dataset? Or can refer me a link to get the image version of Microsoft Malware Classification Challenge (BIG 2015)?",
      "votes": null
    },
    {
      "id": "1768322",
      "postDate": "04/26/2022 06:55:44",
      "content": "<p>Anything found brother</p>",
      "rawMarkdown": "Anything found brother",
      "votes": null
    },
    {
      "id": "1795870",
      "postDate": "05/20/2022 07:26:54",
      "content": "<p>Yeah, still not found it yet, but already creating it</p>",
      "rawMarkdown": "Yeah, still not found it yet, but already creating it",
      "votes": null
    },
    {
      "id": "1804744",
      "postDate": "05/29/2022 12:04:38",
      "content": "<p>Hi,<br>\nWhere can i find metadata manifest file ?<br>\nany help would be greatly appreciated.</p>",
      "rawMarkdown": "Hi,\nWhere can i find metadata manifest file ?\nany help would be greatly appreciated.",
      "votes": null
    },
    {
      "id": "1843578",
      "postDate": "07/05/2022 03:06:02",
      "content": "<p>Hi, I'm currently facing the same problem. May you share the converted image please?</p>",
      "rawMarkdown": "Hi, I'm currently facing the same problem. May you share the converted image please?",
      "votes": null
    },
    {
      "id": "1871605",
      "postDate": "07/26/2022 11:07:55",
      "content": "<p>For anyone who need the visualized dataset, I already creating it as part of my research within this link below</p>\n<p><a href=\"https://drive.google.com/file/d/1L2FvNE6VS0Bqkkw__mub01J5SL1c2OqS/view?usp=sharing\" target=\"_blank\">GrayScale Dataset</a></p>\n<p>I still trying to push the research into a conference, I hope it will be accepted and published soon. 🙏</p>",
      "rawMarkdown": "For anyone who need the visualized dataset, I already creating it as part of my research within this link below\n\n[GrayScale Dataset](https://drive.google.com/file/d/1L2FvNE6VS0Bqkkw__mub01J5SL1c2OqS/view?usp=sharing)\n\nI still trying to push the research into a conference, I hope it will be accepted and published soon. 🙏",
      "votes": null
    },
    {
      "id": "1979980",
      "postDate": "10/09/2022 22:13:55",
      "content": "<p>Hey there, I put your data in a dataset, so it is more usable with notebooks. <a href=\"https://www.kaggle.com/datasets/mindtrinket/malwareclassificationdatasetimages/settings\" target=\"_blank\">https://www.kaggle.com/datasets/mindtrinket/malwareclassificationdatasetimages/settings</a></p>\n<p>Looking into the data. What technique did you use to convert from the opcodes to the colors?</p>",
      "rawMarkdown": "Hey there, I put your data in a dataset, so it is more usable with notebooks. https://www.kaggle.com/datasets/mindtrinket/malwareclassificationdatasetimages/settings\n\nLooking into the data. What technique did you use to convert from the opcodes to the colors?",
      "votes": null
    },
    {
      "id": "2066078",
      "postDate": "12/15/2022 11:47:16",
      "content": "<p>For everyone who stuck there, here is my paper publication for this dataset classification</p>\n<p><a href=\"https://ieeexplore.ieee.org/document/9923524/\" target=\"_blank\">https://ieeexplore.ieee.org/document/9923524/</a></p>\n<p>The dataset link could be find in the paper, if you don't have IEEE account, feel free to contact me into my main email (not this) - find it in the IEEE site</p>",
      "rawMarkdown": "For everyone who stuck there, here is my paper publication for this dataset classification\n\nhttps://ieeexplore.ieee.org/document/9923524/\n\nThe dataset link could be find in the paper, if you don't have IEEE account, feel free to contact me into my main email (not this) - find it in the IEEE site",
      "votes": null
    },
    {
      "id": "2216744",
      "postDate": "04/10/2023 09:57:58",
      "content": "<p>Just one small question. when you saved the images as PNG, did you do something to prevent compression? because it modifies the original values. Hence, predicting on a modified program?</p>",
      "rawMarkdown": "Just one small question. when you saved the images as PNG, did you do something to prevent compression? because it modifies the original values. Hence, predicting on a modified program?",
      "votes": null
    },
    {
      "id": "2274582",
      "postDate": "05/26/2023 05:53:14",
      "content": "<p>do anyone convertedthe image from this dataset, please provide the code? i want to do some research work and am not getting how to start  </p>",
      "rawMarkdown": "do anyone convertedthe image from this dataset, please provide the code? i want to do some research work and am not getting how to start",
      "votes": null
    },
    {
      "id": "2294821",
      "postDate": "06/10/2023 11:06:21",
      "content": "<p>Hi. I'The code I used is given below:</p>\n<pre><code>def code_to_image(code_bytes:str,filename:str,check:=):\n    img= np.frombuffer(bytes.fromhex(code_bytes), =)#dtype='uint8'\n    =img.shape[0]\n\n     ==0:\n        # we should  have arrays with length 0\n        raise f\n\n    # the width\n    =int(np.ceil(np.sqrt(length)))\n    =width\n\n    # the length so that sqrt is whole\n    =np.square(width,dtype=int)\n\n     check:(,f)\n     check:(,length)\n     check:(,new_length)\n\n    # all shapes work. So i am padding with 0s at the end\n    #calculate pad  be added\n    =int(new_length-length)\n     check:(,n_pad)\n\n    # pad the sequence length\n    =np.pad(img,(0,n_pad))\n    img = img_padded.reshape((width,-1))\n\n    return img\n</code></pre>\n<p>I want to make a notebook public, but not in the near time. Hope the code snippet helps you.</p>",
      "rawMarkdown": "Hi. I'The code I used is given below:\n\n```\ndef code_to_image(code_bytes:str,filename:str,check:bool=False):\n    img= np.frombuffer(bytes.fromhex(code_bytes), dtype='uint8')#dtype='uint8'\n    length=img.shape[0]\n\n    if length==0:\n        # we should not have arrays with length 0\n        raise f'NO BYTES: {filename} has a length of 0'\n\n    #get the width\n    width=int(np.ceil(np.sqrt(length)))\n    height=width\n\n    #find the length so that sqrt is whole\n    new_length=np.square(width,dtype=int)\n\n    if check:print('width x height:',f'{width}x{height}')\n    if check:print('length:',length)\n    if check:print('new_length:',new_length)\n        \n    #Not all shapes work. So i am padding with 0s at the end\n    #calculate pad to be added\n    n_pad=int(new_length-length)\n    if check:print('n_pad:',n_pad)\n    \n    # pad the sequence length\n    img_padded=np.pad(img,(0,n_pad))\n    img = img_padded.reshape((width,-1))\n    \n    return img\n```\n\nI want to make a notebook public, but not in the near time. Hope the code snippet helps you.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1768322,
      "author_name": "talhaabbasjalvi",
      "author_url": "",
      "post_date": "04/26/2022 06:55:44",
      "content": "<p>Anything found brother</p>",
      "votes": null,
      "replies": [
        {
          "id": 1795870,
          "author_name": "cmglonly",
          "author_url": "",
          "post_date": "05/20/2022 07:26:54",
          "content": "<p>Yeah, still not found it yet, but already creating it</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1804744,
      "author_name": "xdebugger",
      "author_url": "",
      "post_date": "05/29/2022 12:04:38",
      "content": "<p>Hi,<br>\nWhere can i find metadata manifest file ?<br>\nany help would be greatly appreciated.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1843578,
      "author_name": "ffanzzhou",
      "author_url": "",
      "post_date": "07/05/2022 03:06:02",
      "content": "<p>Hi, I'm currently facing the same problem. May you share the converted image please?</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1871605,
      "author_name": "cmglonly",
      "author_url": "",
      "post_date": "07/26/2022 11:07:55",
      "content": "<p>For anyone who need the visualized dataset, I already creating it as part of my research within this link below</p>\n<p><a href=\"https://drive.google.com/file/d/1L2FvNE6VS0Bqkkw__mub01J5SL1c2OqS/view?usp=sharing\" target=\"_blank\">GrayScale Dataset</a></p>\n<p>I still trying to push the research into a conference, I hope it will be accepted and published soon. 🙏</p>",
      "votes": null,
      "replies": [
        {
          "id": 1979980,
          "author_name": "mindtrinket",
          "author_url": "",
          "post_date": "10/09/2022 22:13:55",
          "content": "<p>Hey there, I put your data in a dataset, so it is more usable with notebooks. <a href=\"https://www.kaggle.com/datasets/mindtrinket/malwareclassificationdatasetimages/settings\" target=\"_blank\">https://www.kaggle.com/datasets/mindtrinket/malwareclassificationdatasetimages/settings</a></p>\n<p>Looking into the data. What technique did you use to convert from the opcodes to the colors?</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 2066078,
      "author_name": "cmglonly",
      "author_url": "",
      "post_date": "12/15/2022 11:47:16",
      "content": "<p>For everyone who stuck there, here is my paper publication for this dataset classification</p>\n<p><a href=\"https://ieeexplore.ieee.org/document/9923524/\" target=\"_blank\">https://ieeexplore.ieee.org/document/9923524/</a></p>\n<p>The dataset link could be find in the paper, if you don't have IEEE account, feel free to contact me into my main email (not this) - find it in the IEEE site</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 2216744,
      "author_name": "fmakarem",
      "author_url": "",
      "post_date": "04/10/2023 09:57:58",
      "content": "<p>Just one small question. when you saved the images as PNG, did you do something to prevent compression? because it modifies the original values. Hence, predicting on a modified program?</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 2274582,
      "author_name": "ayushkumarmishra24",
      "author_url": "",
      "post_date": "05/26/2023 05:53:14",
      "content": "<p>do anyone convertedthe image from this dataset, please provide the code? i want to do some research work and am not getting how to start  </p>",
      "votes": null,
      "replies": [
        {
          "id": 2294821,
          "author_name": "fmakarem",
          "author_url": "",
          "post_date": "06/10/2023 11:06:21",
          "content": "<p>Hi. I'The code I used is given below:</p>\n<pre><code>def code_to_image(code_bytes:str,filename:str,check:=):\n    img= np.frombuffer(bytes.fromhex(code_bytes), =)#dtype='uint8'\n    =img.shape[0]\n\n     ==0:\n        # we should  have arrays with length 0\n        raise f\n\n    # the width\n    =int(np.ceil(np.sqrt(length)))\n    =width\n\n    # the length so that sqrt is whole\n    =np.square(width,dtype=int)\n\n     check:(,f)\n     check:(,length)\n     check:(,new_length)\n\n    # all shapes work. So i am padding with 0s at the end\n    #calculate pad  be added\n    =int(new_length-length)\n     check:(,n_pad)\n\n    # pad the sequence length\n    =np.pad(img,(0,n_pad))\n    img = img_padded.reshape((width,-1))\n\n    return img\n</code></pre>\n<p>I want to make a notebook public, but not in the near time. Hope the code snippet helps you.</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "1567439": "I want to do some research with some algorithm that will take the image as the input, is anyone has the image version from this dataset? Or can refer me a link to get the image version of Microsoft Malware Classification Challenge (BIG 2015)?",
    "1768322": "Anything found brother",
    "1795870": "Yeah, still not found it yet, but already creating it",
    "1804744": "Hi,\nWhere can i find metadata manifest file ?\nany help would be greatly appreciated.",
    "1843578": "Hi, I'm currently facing the same problem. May you share the converted image please?",
    "1871605": "For anyone who need the visualized dataset, I already creating it as part of my research within this link below\n\n[GrayScale Dataset](https://drive.google.com/file/d/1L2FvNE6VS0Bqkkw__mub01J5SL1c2OqS/view?usp=sharing)\n\nI still trying to push the research into a conference, I hope it will be accepted and published soon. 🙏",
    "1979980": "Hey there, I put your data in a dataset, so it is more usable with notebooks. https://www.kaggle.com/datasets/mindtrinket/malwareclassificationdatasetimages/settings\n\nLooking into the data. What technique did you use to convert from the opcodes to the colors?",
    "2066078": "For everyone who stuck there, here is my paper publication for this dataset classification\n\nhttps://ieeexplore.ieee.org/document/9923524/\n\nThe dataset link could be find in the paper, if you don't have IEEE account, feel free to contact me into my main email (not this) - find it in the IEEE site",
    "2216744": "Just one small question. when you saved the images as PNG, did you do something to prevent compression? because it modifies the original values. Hence, predicting on a modified program?",
    "2274582": "do anyone convertedthe image from this dataset, please provide the code? i want to do some research work and am not getting how to start",
    "2294821": "Hi. I'The code I used is given below:\n\n```\ndef code_to_image(code_bytes:str,filename:str,check:bool=False):\n    img= np.frombuffer(bytes.fromhex(code_bytes), dtype='uint8')#dtype='uint8'\n    length=img.shape[0]\n\n    if length==0:\n        # we should not have arrays with length 0\n        raise f'NO BYTES: {filename} has a length of 0'\n\n    #get the width\n    width=int(np.ceil(np.sqrt(length)))\n    height=width\n\n    #find the length so that sqrt is whole\n    new_length=np.square(width,dtype=int)\n\n    if check:print('width x height:',f'{width}x{height}')\n    if check:print('length:',length)\n    if check:print('new_length:',new_length)\n        \n    #Not all shapes work. So i am padding with 0s at the end\n    #calculate pad to be added\n    n_pad=int(new_length-length)\n    if check:print('n_pad:',n_pad)\n    \n    # pad the sequence length\n    img_padded=np.pad(img,(0,n_pad))\n    img = img_padded.reshape((width,-1))\n    \n    return img\n```\n\nI want to make a notebook public, but not in the near time. Hope the code snippet helps you."
  },
  "source": "meta"
}