MalwareSourceCode/MSIL/Virus/Win32/V/Virus.Win32.Virut.ce-c41c86f44216c3054b1e45e53e91cc0e9df01ff509ab0ed824899d4e8d19800d/CD.cs
2022-08-18 06:28:56 -05:00

56 lines
2.0 KiB
C#

// Decompiled with JetBrains decompiler
// Type: CD
// Assembly: 3, Version=830.23.182.254, Culture=neutral, PublicKeyToken=null
// MVID: 3AB55594-508F-4214-AA1C-DD579280B133
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00001-msil\Virus.Win32.Virut.ce-c41c86f44216c3054b1e45e53e91cc0e9df01ff509ab0ed824899d4e8d19800d.exe
using System;
using System.Text;
public class CD
{
public static string format(string input)
{
StringBuilder stringBuilder = new StringBuilder();
string[] strArray = CD.SplitString(input, 50000L);
int num = checked (strArray.Length - 1);
int index = 0;
while (index <= num)
{
if (index == checked (strArray.Length - 1))
stringBuilder.Append("\"" + strArray[index] + "\"");
else
stringBuilder.Append("\"" + strArray[index] + "\" & _\r\n");
checked { ++index; }
}
return stringBuilder.ToString();
}
private static string[] SplitString(string input, long partsize)
{
long num1 = checked ((long) Math.Round(Math.Ceiling(unchecked ((double) input.Length / (double) partsize))));
string[] strArray = new string[checked ((int) (num1 - 1L) + 1)];
long sourceIndex = 0;
int num2 = checked ((int) (num1 - 1L));
int index = 0;
while (index <= num2)
{
if ((long) index == checked (num1 - 1L))
{
char[] destination = new char[checked ((int) ((long) input.Length - sourceIndex - 1L) + 1)];
input.CopyTo(checked ((int) sourceIndex), destination, 0, checked ((int) ((long) input.Length - sourceIndex)));
strArray[index] = Convert.ToString(new string(destination));
}
else
{
char[] destination = new char[checked ((int) (partsize - 1L) + 1)];
input.CopyTo(checked ((int) sourceIndex), destination, 0, checked ((int) partsize));
strArray[index] = Convert.ToString(new string(destination));
checked { sourceIndex += partsize; }
}
checked { ++index; }
}
return strArray;
}
}