mirror of
https://github.com/vxunderground/MalwareSourceCode.git
synced 2026-06-21 02:09:25 +00:00
auto-decompiled msil via petikvx
add
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
[assembly: ComVisible(false)]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyProduct("HexConverter")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: Guid("881db35c-f058-4d44-9c11-2645a440c120")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2008")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyTitle("HexConverter")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
+132
@@ -0,0 +1,132 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: HexConverter.DialogBox
|
||||
// Assembly: HexConverter, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 69C743DF-5670-4BA1-B9C9-0F7A066F699A
|
||||
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00000-msil\Virus.Win32.Otwycal.a-e8185cfeb5eed43452d4fc000bc9dad88c82a7d405e4cc7e61131d390a782aa2.exe
|
||||
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace HexConverter
|
||||
{
|
||||
public class DialogBox : Form
|
||||
{
|
||||
private int count;
|
||||
private IContainer components;
|
||||
private PictureBox pictureBox1;
|
||||
private Button button1;
|
||||
private Label label1;
|
||||
private RichTextBox richTextBox1;
|
||||
private Timer timer1;
|
||||
private Label label2;
|
||||
|
||||
public DialogBox() => this.InitializeComponent();
|
||||
|
||||
private void button1_Click(object sender, EventArgs e) => this.Close();
|
||||
|
||||
private void DialogBox_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.count = 0;
|
||||
this.timer1.Enabled = true;
|
||||
}
|
||||
|
||||
private void timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
if (this.count == 0)
|
||||
this.label2.Text = "Made by Axdx";
|
||||
else if (this.count == 1)
|
||||
this.label2.Text = "Made by aXdx";
|
||||
else if (this.count == 2)
|
||||
this.label2.Text = "Made by axDx";
|
||||
else if (this.count == 3)
|
||||
{
|
||||
this.label2.Text = "Made by axdX";
|
||||
}
|
||||
else
|
||||
{
|
||||
this.label2.Text = "Made by axdx";
|
||||
this.count = -1;
|
||||
}
|
||||
++this.count;
|
||||
}
|
||||
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && this.components != null)
|
||||
this.components.Dispose();
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = (IContainer) new Container();
|
||||
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (DialogBox));
|
||||
this.pictureBox1 = new PictureBox();
|
||||
this.button1 = new Button();
|
||||
this.label1 = new Label();
|
||||
this.richTextBox1 = new RichTextBox();
|
||||
this.timer1 = new Timer(this.components);
|
||||
this.label2 = new Label();
|
||||
((ISupportInitialize) this.pictureBox1).BeginInit();
|
||||
this.SuspendLayout();
|
||||
this.pictureBox1.Image = (Image) componentResourceManager.GetObject("pictureBox1.Image");
|
||||
this.pictureBox1.Location = new Point(12, 12);
|
||||
this.pictureBox1.Name = "pictureBox1";
|
||||
this.pictureBox1.Size = new Size(48, 48);
|
||||
this.pictureBox1.SizeMode = PictureBoxSizeMode.AutoSize;
|
||||
this.pictureBox1.TabIndex = 0;
|
||||
this.pictureBox1.TabStop = false;
|
||||
this.button1.Location = new Point(353, 35);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new Size(75, 25);
|
||||
this.button1.TabIndex = 1;
|
||||
this.button1.Text = "OK";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new EventHandler(this.button1_Click);
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new Point(92, 12);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new Size(111, 13);
|
||||
this.label1.TabIndex = 2;
|
||||
this.label1.Text = "Hex Converter ver 1.5";
|
||||
this.richTextBox1.BackColor = SystemColors.Control;
|
||||
this.richTextBox1.Dock = DockStyle.Bottom;
|
||||
this.richTextBox1.Font = new Font("Microsoft Sans Serif", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.richTextBox1.Location = new Point(0, 66);
|
||||
this.richTextBox1.Name = "richTextBox1";
|
||||
this.richTextBox1.ReadOnly = true;
|
||||
this.richTextBox1.Size = new Size(440, 398);
|
||||
this.richTextBox1.TabIndex = 4;
|
||||
this.richTextBox1.Text = componentResourceManager.GetString("richTextBox1.Text");
|
||||
this.richTextBox1.WordWrap = false;
|
||||
this.timer1.Interval = 500;
|
||||
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new Point(222, 41);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new Size(73, 13);
|
||||
this.label2.TabIndex = 5;
|
||||
this.label2.Text = "Made by axdx";
|
||||
this.AutoScaleDimensions = new SizeF(6f, 13f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(440, 464);
|
||||
this.Controls.Add((Control) this.label2);
|
||||
this.Controls.Add((Control) this.richTextBox1);
|
||||
this.Controls.Add((Control) this.label1);
|
||||
this.Controls.Add((Control) this.button1);
|
||||
this.Controls.Add((Control) this.pictureBox1);
|
||||
this.FormBorderStyle = FormBorderStyle.FixedDialog;
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = nameof (DialogBox);
|
||||
this.StartPosition = FormStartPosition.CenterParent;
|
||||
this.Text = "About";
|
||||
this.Load += new EventHandler(this.DialogBox_Load);
|
||||
((ISupportInitialize) this.pictureBox1).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
}
|
||||
}
|
||||
}
|
||||
+149
File diff suppressed because one or more lines are too long
+544
@@ -0,0 +1,544 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: HexConverter.Form1
|
||||
// Assembly: HexConverter, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 69C743DF-5670-4BA1-B9C9-0F7A066F699A
|
||||
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00000-msil\Virus.Win32.Otwycal.a-e8185cfeb5eed43452d4fc000bc9dad88c82a7d405e4cc7e61131d390a782aa2.exe
|
||||
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace HexConverter
|
||||
{
|
||||
public class Form1 : Form
|
||||
{
|
||||
private IContainer components;
|
||||
private TextBox tBoxBytes;
|
||||
private TextBox tBoxHex;
|
||||
private TextBox tBoxDecimal;
|
||||
private TextBox tBoxBin;
|
||||
private Label label1;
|
||||
private Label label2;
|
||||
private Label label3;
|
||||
private Label label4;
|
||||
private ComboBox cbBoxType;
|
||||
private Button butExit;
|
||||
private Label label5;
|
||||
private Button butAbout;
|
||||
private bool IsUserInput;
|
||||
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && this.components != null)
|
||||
this.components.Dispose();
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
private void InitializeComponent()
|
||||
{
|
||||
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (Form1));
|
||||
this.tBoxBytes = new TextBox();
|
||||
this.tBoxHex = new TextBox();
|
||||
this.tBoxDecimal = new TextBox();
|
||||
this.tBoxBin = new TextBox();
|
||||
this.label1 = new Label();
|
||||
this.label2 = new Label();
|
||||
this.label3 = new Label();
|
||||
this.label4 = new Label();
|
||||
this.cbBoxType = new ComboBox();
|
||||
this.butExit = new Button();
|
||||
this.label5 = new Label();
|
||||
this.butAbout = new Button();
|
||||
this.SuspendLayout();
|
||||
this.tBoxBytes.Location = new Point(155, 60);
|
||||
this.tBoxBytes.Name = "tBoxBytes";
|
||||
this.tBoxBytes.ReadOnly = true;
|
||||
this.tBoxBytes.Size = new Size(150, 20);
|
||||
this.tBoxBytes.TabIndex = 4;
|
||||
this.tBoxHex.Location = new Point(10, 60);
|
||||
this.tBoxHex.MaxLength = 16;
|
||||
this.tBoxHex.Name = "tBoxHex";
|
||||
this.tBoxHex.Size = new Size(135, 20);
|
||||
this.tBoxHex.TabIndex = 3;
|
||||
this.tBoxHex.TextChanged += new EventHandler(this.tBoxHex_TextChanged);
|
||||
this.tBoxDecimal.Location = new Point(10, 20);
|
||||
this.tBoxDecimal.MaxLength = 20;
|
||||
this.tBoxDecimal.Name = "tBoxDecimal";
|
||||
this.tBoxDecimal.Size = new Size(135, 20);
|
||||
this.tBoxDecimal.TabIndex = 0;
|
||||
this.tBoxDecimal.TextChanged += new EventHandler(this.tBoxDecimal_TextChanged);
|
||||
this.tBoxBin.Font = new Font("Microsoft Sans Serif", 7f, FontStyle.Regular, GraphicsUnit.Point, (byte) 136);
|
||||
this.tBoxBin.Location = new Point(10, 100);
|
||||
this.tBoxBin.Name = "tBoxBin";
|
||||
this.tBoxBin.ReadOnly = true;
|
||||
this.tBoxBin.Size = new Size(330, 18);
|
||||
this.tBoxBin.TabIndex = 6;
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new Point(155, 45);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new Size(72, 13);
|
||||
this.label1.TabIndex = 4;
|
||||
this.label1.Text = "位元組 Bytes";
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new Point(10, 45);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new Size(65, 13);
|
||||
this.label2.TabIndex = 5;
|
||||
this.label2.Text = "16進位 Hex";
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new Point(10, 5);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new Size(84, 13);
|
||||
this.label3.TabIndex = 6;
|
||||
this.label3.Text = "10進位 Decimal";
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new Point(10, 85);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new Size(69, 13);
|
||||
this.label4.TabIndex = 7;
|
||||
this.label4.Text = "2進位 Binary";
|
||||
this.cbBoxType.DropDownStyle = ComboBoxStyle.DropDownList;
|
||||
this.cbBoxType.FormattingEnabled = true;
|
||||
this.cbBoxType.Items.AddRange(new object[10]
|
||||
{
|
||||
(object) "Byte",
|
||||
(object) "Byte (signed)",
|
||||
(object) "2 Bytes",
|
||||
(object) "2 Bytes (signed)",
|
||||
(object) "4 Bytes",
|
||||
(object) "4 Bytes (signed)",
|
||||
(object) "8 Bytes",
|
||||
(object) "8 Bytes (signed)",
|
||||
(object) "Float",
|
||||
(object) "Double"
|
||||
});
|
||||
this.cbBoxType.Location = new Point(155, 20);
|
||||
this.cbBoxType.Name = "cbBoxType";
|
||||
this.cbBoxType.Size = new Size(120, 21);
|
||||
this.cbBoxType.TabIndex = 1;
|
||||
this.cbBoxType.SelectedIndexChanged += new EventHandler(this.comboBox1_SelectedIndexChanged);
|
||||
this.butExit.Location = new Point(280, 20);
|
||||
this.butExit.Name = "butExit";
|
||||
this.butExit.Size = new Size(60, 20);
|
||||
this.butExit.TabIndex = 5;
|
||||
this.butExit.Text = "Exit";
|
||||
this.butExit.UseVisualStyleBackColor = true;
|
||||
this.butExit.Click += new EventHandler(this.button1_Click);
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new Point(155, 5);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new Size(58, 13);
|
||||
this.label5.TabIndex = 10;
|
||||
this.label5.Text = "類型 Type";
|
||||
this.butAbout.Location = new Point(310, 60);
|
||||
this.butAbout.Name = "butAbout";
|
||||
this.butAbout.Size = new Size(30, 20);
|
||||
this.butAbout.TabIndex = 2;
|
||||
this.butAbout.Text = "?";
|
||||
this.butAbout.UseVisualStyleBackColor = true;
|
||||
this.butAbout.Click += new EventHandler(this.button2_Click);
|
||||
this.AutoScaleDimensions = new SizeF(6f, 13f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.ClientSize = new Size(349, 128);
|
||||
this.Controls.Add((Control) this.butAbout);
|
||||
this.Controls.Add((Control) this.label5);
|
||||
this.Controls.Add((Control) this.butExit);
|
||||
this.Controls.Add((Control) this.cbBoxType);
|
||||
this.Controls.Add((Control) this.label4);
|
||||
this.Controls.Add((Control) this.label3);
|
||||
this.Controls.Add((Control) this.label2);
|
||||
this.Controls.Add((Control) this.label1);
|
||||
this.Controls.Add((Control) this.tBoxBin);
|
||||
this.Controls.Add((Control) this.tBoxDecimal);
|
||||
this.Controls.Add((Control) this.tBoxHex);
|
||||
this.Controls.Add((Control) this.tBoxBytes);
|
||||
this.FormBorderStyle = FormBorderStyle.FixedSingle;
|
||||
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
||||
this.MaximizeBox = false;
|
||||
this.Name = nameof (Form1);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = "Hex Converter";
|
||||
this.Load += new EventHandler(this.Form1_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
}
|
||||
|
||||
public Form1() => this.InitializeComponent();
|
||||
|
||||
private void button1_Click(object sender, EventArgs e) => Application.Exit();
|
||||
|
||||
private void Form1_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.cbBoxType.SelectedIndex = 4;
|
||||
this.IsUserInput = true;
|
||||
}
|
||||
|
||||
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.tBoxBytes.Text = "";
|
||||
this.tBoxHex.Text = "";
|
||||
this.tBoxDecimal.Text = "";
|
||||
this.tBoxBin.Text = "";
|
||||
}
|
||||
|
||||
private void tBoxDecimal_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (!this.IsUserInput)
|
||||
return;
|
||||
this.IsUserInput = false;
|
||||
int num1 = this.tBoxDecimal.SelectionStart;
|
||||
string text = this.tBoxDecimal.Text;
|
||||
byte[] b = (byte[]) null;
|
||||
int num2 = 1;
|
||||
if (text.Length != 0 && text[0] == '-')
|
||||
num2 = -1;
|
||||
string s;
|
||||
if (this.cbBoxType.SelectedIndex == 0)
|
||||
{
|
||||
s = Regex.Replace(text, "[^0-9]", "");
|
||||
if (s.Length == 0)
|
||||
{
|
||||
b = (byte[]) null;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (s.Length > 3)
|
||||
s = s.Substring(0, 3);
|
||||
if (s.Length == 3 && s.CompareTo("255") > 0)
|
||||
s = "255";
|
||||
b = new byte[1]{ (byte) Convert.ToUInt16(s) };
|
||||
}
|
||||
}
|
||||
else if (this.cbBoxType.SelectedIndex == 1)
|
||||
{
|
||||
s = Regex.Replace(text, "[^0-9]", "");
|
||||
if (num2 < 0)
|
||||
s = '-'.ToString() + s;
|
||||
if (s.Length == 0 || s.Equals("-"))
|
||||
b = (byte[]) null;
|
||||
else if (num2 > 0)
|
||||
{
|
||||
if (s.Length > 3)
|
||||
s = s.Substring(0, 3);
|
||||
if (s.Length == 3 && s.CompareTo("127") > 0)
|
||||
s = "127";
|
||||
b = new byte[1]{ (byte) Convert.ToInt16(s) };
|
||||
}
|
||||
else
|
||||
{
|
||||
if (s.Length > 4)
|
||||
s = s.Substring(0, 4);
|
||||
if (s.Length == 4 && s.CompareTo("-128") > 0)
|
||||
s = "-128";
|
||||
b = new byte[1]{ (byte) Convert.ToInt16(s) };
|
||||
}
|
||||
}
|
||||
else if (this.cbBoxType.SelectedIndex == 2)
|
||||
{
|
||||
s = Regex.Replace(text, "[^0-9]", "");
|
||||
if (s.Length == 0)
|
||||
{
|
||||
b = (byte[]) null;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (s.Length > 5)
|
||||
s = s.Substring(0, 5);
|
||||
if (s.Length == 5 && s.CompareTo("65535") > 0)
|
||||
s = "65535";
|
||||
b = BitConverter.GetBytes(Convert.ToUInt16(s));
|
||||
}
|
||||
}
|
||||
else if (this.cbBoxType.SelectedIndex == 3)
|
||||
{
|
||||
s = Regex.Replace(text, "[^0-9]", "");
|
||||
if (num2 < 0)
|
||||
s = '-'.ToString() + s;
|
||||
if (s.Length == 0 || s.Equals("-"))
|
||||
b = (byte[]) null;
|
||||
else if (num2 > 0)
|
||||
{
|
||||
if (s.Length > 5)
|
||||
s = s.Substring(0, 5);
|
||||
if (s.Length == 5 && s.CompareTo("32767") > 0)
|
||||
s = "32767";
|
||||
b = BitConverter.GetBytes(Convert.ToInt16(s));
|
||||
}
|
||||
else
|
||||
{
|
||||
if (s.Length > 6)
|
||||
s = s.Substring(0, 6);
|
||||
if (s.Length == 6 && s.CompareTo("-32768") > 0)
|
||||
s = "-32768";
|
||||
b = BitConverter.GetBytes(Convert.ToInt16(s));
|
||||
}
|
||||
}
|
||||
else if (this.cbBoxType.SelectedIndex == 4)
|
||||
{
|
||||
s = Regex.Replace(text, "[^0-9]", "");
|
||||
if (s.Length == 0)
|
||||
{
|
||||
b = (byte[]) null;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (s.Length > 10)
|
||||
s = s.Substring(0, 10);
|
||||
if (s.Length == 10 && s.CompareTo("4294967295") > 0)
|
||||
s = "4294967295";
|
||||
b = BitConverter.GetBytes(Convert.ToUInt32(s));
|
||||
}
|
||||
}
|
||||
else if (this.cbBoxType.SelectedIndex == 5)
|
||||
{
|
||||
s = Regex.Replace(text, "[^0-9]", "");
|
||||
if (num2 < 0)
|
||||
s = '-'.ToString() + s;
|
||||
if (s.Length == 0 || s.Equals("-"))
|
||||
b = (byte[]) null;
|
||||
else if (num2 > 0)
|
||||
{
|
||||
if (s.Length > 10)
|
||||
s = s.Substring(0, 10);
|
||||
if (s.Length == 10 && s.CompareTo("2147483647") > 0)
|
||||
s = "2147483647";
|
||||
b = BitConverter.GetBytes(Convert.ToInt32(s));
|
||||
}
|
||||
else
|
||||
{
|
||||
if (s.Length > 11)
|
||||
s = s.Substring(0, 11);
|
||||
if (s.Length == 11 && s.CompareTo("-2147483648") > 0)
|
||||
s = "-2147483648";
|
||||
b = BitConverter.GetBytes(Convert.ToInt32(s));
|
||||
}
|
||||
}
|
||||
else if (this.cbBoxType.SelectedIndex == 6)
|
||||
{
|
||||
s = Regex.Replace(text, "[^0-9]", "");
|
||||
if (s.Length == 0)
|
||||
{
|
||||
b = (byte[]) null;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (s.Length > 19 && s.CompareTo("18446744073709551615") > 0)
|
||||
s = "18446744073709551615";
|
||||
b = BitConverter.GetBytes(Convert.ToUInt64(s));
|
||||
}
|
||||
}
|
||||
else if (this.cbBoxType.SelectedIndex == 7)
|
||||
{
|
||||
s = Regex.Replace(text, "[^0-9]", "");
|
||||
if (num2 < 0)
|
||||
s = '-'.ToString() + s;
|
||||
if (s.Length == 0 || s.Equals("-"))
|
||||
b = (byte[]) null;
|
||||
else if (num2 > 0)
|
||||
{
|
||||
if (s.Length > 19 && s.CompareTo("9223372036854775807") > 0)
|
||||
s = "9223372036854775807";
|
||||
b = BitConverter.GetBytes(Convert.ToInt64(s));
|
||||
}
|
||||
else
|
||||
{
|
||||
if (s.Length > 19 && s.CompareTo("-9223372036854775808") > 0)
|
||||
s = "-9223372036854775808";
|
||||
b = BitConverter.GetBytes(Convert.ToInt64(s));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
s = Regex.Replace(text, "[^.0-9]", "");
|
||||
int index1 = 0;
|
||||
while (index1 < s.Length && s[index1] != '.')
|
||||
++index1;
|
||||
for (int index2 = index1 + 1; index2 < s.Length; ++index2)
|
||||
{
|
||||
if (s[index2] == '.')
|
||||
s = s.Remove(index2--, 1);
|
||||
}
|
||||
if (num2 < 0)
|
||||
s = '-'.ToString() + s;
|
||||
if (s.Length > 20)
|
||||
s = s.Substring(0, 20);
|
||||
if (s.Length == 0 || s.Equals(".") || s.Equals("-") || s.Equals("-."))
|
||||
b = (byte[]) null;
|
||||
else if (this.cbBoxType.SelectedIndex == 8)
|
||||
b = BitConverter.GetBytes(float.Parse(s));
|
||||
else if (this.cbBoxType.SelectedIndex == 9)
|
||||
b = BitConverter.GetBytes(double.Parse(s));
|
||||
}
|
||||
this.tBoxHex.Text = this.ToHex(b);
|
||||
this.tBoxBin.Text = this.ToBin(b);
|
||||
this.tBoxBytes.Text = this.ToRevHex(b);
|
||||
this.tBoxDecimal.Text = s;
|
||||
if (num1 < 0)
|
||||
num1 = 0;
|
||||
this.tBoxDecimal.SelectionStart = num1;
|
||||
this.IsUserInput = true;
|
||||
}
|
||||
|
||||
private void tBoxHex_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (!this.IsUserInput)
|
||||
return;
|
||||
this.IsUserInput = false;
|
||||
int num = this.tBoxHex.SelectionStart;
|
||||
byte[] b = (byte[]) null;
|
||||
string s = Regex.Replace(this.tBoxHex.Text.ToUpper(), "[^0-9A-F]", "");
|
||||
if (s.Length == 0)
|
||||
{
|
||||
b = (byte[]) null;
|
||||
this.tBoxDecimal.Text = "";
|
||||
}
|
||||
else if (this.cbBoxType.SelectedIndex == 0)
|
||||
{
|
||||
if (s.Length > 2)
|
||||
s = s.Substring(0, 2);
|
||||
b = this.HexToByteArray(s, 1);
|
||||
this.tBoxDecimal.Text = b[0].ToString();
|
||||
}
|
||||
else if (this.cbBoxType.SelectedIndex == 1)
|
||||
{
|
||||
if (s.Length > 2)
|
||||
s = s.Substring(0, 2);
|
||||
b = this.HexToByteArray(s, 1);
|
||||
this.tBoxDecimal.Text = ((sbyte) b[0]).ToString();
|
||||
}
|
||||
else if (this.cbBoxType.SelectedIndex == 2)
|
||||
{
|
||||
if (s.Length > 4)
|
||||
s = s.Substring(0, 4);
|
||||
b = this.HexToByteArray(s, 2);
|
||||
this.tBoxDecimal.Text = BitConverter.ToUInt16(b, 0).ToString();
|
||||
}
|
||||
else if (this.cbBoxType.SelectedIndex == 3)
|
||||
{
|
||||
if (s.Length > 4)
|
||||
s = s.Substring(0, 4);
|
||||
b = this.HexToByteArray(s, 2);
|
||||
this.tBoxDecimal.Text = BitConverter.ToInt16(b, 0).ToString();
|
||||
}
|
||||
else if (this.cbBoxType.SelectedIndex == 4)
|
||||
{
|
||||
if (s.Length > 8)
|
||||
s = s.Substring(0, 8);
|
||||
b = this.HexToByteArray(s, 4);
|
||||
this.tBoxDecimal.Text = BitConverter.ToUInt32(b, 0).ToString();
|
||||
}
|
||||
else if (this.cbBoxType.SelectedIndex == 5)
|
||||
{
|
||||
if (s.Length > 8)
|
||||
s = s.Substring(0, 8);
|
||||
b = this.HexToByteArray(s, 4);
|
||||
this.tBoxDecimal.Text = BitConverter.ToInt32(b, 0).ToString();
|
||||
}
|
||||
else if (this.cbBoxType.SelectedIndex == 6)
|
||||
{
|
||||
if (s.Length > 16)
|
||||
s = s.Substring(0, 16);
|
||||
b = this.HexToByteArray(s, 8);
|
||||
this.tBoxDecimal.Text = BitConverter.ToUInt64(b, 0).ToString();
|
||||
}
|
||||
else if (this.cbBoxType.SelectedIndex == 7)
|
||||
{
|
||||
if (s.Length > 16)
|
||||
s = s.Substring(0, 16);
|
||||
b = this.HexToByteArray(s, 8);
|
||||
this.tBoxDecimal.Text = BitConverter.ToInt64(b, 0).ToString();
|
||||
}
|
||||
else if (this.cbBoxType.SelectedIndex == 8)
|
||||
{
|
||||
if (s.Length > 8)
|
||||
s = s.Substring(0, 8);
|
||||
b = this.HexToByteArray(s, 4);
|
||||
this.tBoxDecimal.Text = BitConverter.ToSingle(b, 0).ToString();
|
||||
}
|
||||
else if (this.cbBoxType.SelectedIndex == 9)
|
||||
{
|
||||
if (s.Length > 16)
|
||||
s = s.Substring(0, 16);
|
||||
b = this.HexToByteArray(s, 8);
|
||||
this.tBoxDecimal.Text = BitConverter.ToDouble(b, 0).ToString();
|
||||
}
|
||||
this.tBoxBin.Text = this.ToBin(b);
|
||||
this.tBoxBytes.Text = this.ToRevHex(b);
|
||||
this.tBoxHex.Text = s;
|
||||
if (num < 0)
|
||||
num = 0;
|
||||
this.tBoxHex.SelectionStart = num;
|
||||
this.IsUserInput = true;
|
||||
}
|
||||
|
||||
private byte[] HexToByteArray(string s, int size)
|
||||
{
|
||||
byte[] byteArray = new byte[size];
|
||||
int num1 = 0;
|
||||
for (int index = s.Length - 1; index >= 0; --index)
|
||||
{
|
||||
byte num2 = (byte) s[index];
|
||||
byte num3 = num2 >= (byte) 58 ? (byte) ((uint) num2 - 55U) : (byte) ((uint) num2 - 48U);
|
||||
if (num1 % 2 == 1)
|
||||
num3 *= (byte) 16;
|
||||
byteArray[num1 / 2] += num3;
|
||||
++num1;
|
||||
}
|
||||
return byteArray;
|
||||
}
|
||||
|
||||
private string ToRevHex(byte[] b)
|
||||
{
|
||||
if (b == null)
|
||||
return "";
|
||||
string str = "0123456789ABCDEF";
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
for (int index = 0; index < b.Length; ++index)
|
||||
{
|
||||
stringBuilder.Append(str[(int) b[index] >> 4]);
|
||||
stringBuilder.Append(str[(int) b[index] & 15]);
|
||||
stringBuilder.Append(' ');
|
||||
}
|
||||
return stringBuilder.ToString();
|
||||
}
|
||||
|
||||
private string ToHex(byte[] b)
|
||||
{
|
||||
if (b == null)
|
||||
return "";
|
||||
string str = "0123456789ABCDEF";
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
for (int index = b.Length - 1; index >= 0; --index)
|
||||
{
|
||||
stringBuilder.Append(str[(int) b[index] >> 4]);
|
||||
stringBuilder.Append(str[(int) b[index] & 15]);
|
||||
}
|
||||
return stringBuilder.ToString();
|
||||
}
|
||||
|
||||
private string ToBin(byte[] b)
|
||||
{
|
||||
if (b == null)
|
||||
return "";
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
for (int index1 = 0; index1 < b.Length; ++index1)
|
||||
{
|
||||
byte num = b[index1];
|
||||
for (int index2 = 0; index2 < 8; ++index2)
|
||||
{
|
||||
stringBuilder.Insert(0, (int) num & 1);
|
||||
num >>= 1;
|
||||
}
|
||||
}
|
||||
return stringBuilder.ToString();
|
||||
}
|
||||
|
||||
private void button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
int num = (int) new DialogBox().ShowDialog();
|
||||
}
|
||||
}
|
||||
}
|
||||
+123
@@ -0,0 +1,123 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="$this.Icon" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>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</value>
|
||||
</data>
|
||||
</root>
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: HexConverter.Program
|
||||
// Assembly: HexConverter, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 69C743DF-5670-4BA1-B9C9-0F7A066F699A
|
||||
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00000-msil\Virus.Win32.Otwycal.a-e8185cfeb5eed43452d4fc000bc9dad88c82a7d405e4cc7e61131d390a782aa2.exe
|
||||
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace HexConverter
|
||||
{
|
||||
internal static class Program
|
||||
{
|
||||
[STAThread]
|
||||
private static void Main()
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run((Form) new Form1());
|
||||
}
|
||||
}
|
||||
}
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: HexConverter.Properties.Resources
|
||||
// Assembly: HexConverter, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 69C743DF-5670-4BA1-B9C9-0F7A066F699A
|
||||
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00000-msil\Virus.Win32.Otwycal.a-e8185cfeb5eed43452d4fc000bc9dad88c82a7d405e4cc7e61131d390a782aa2.exe
|
||||
|
||||
using System.CodeDom.Compiler;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
using System.Resources;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace HexConverter.Properties
|
||||
{
|
||||
[CompilerGenerated]
|
||||
[GeneratedCode("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
|
||||
[DebuggerNonUserCode]
|
||||
internal class Resources
|
||||
{
|
||||
private static ResourceManager resourceMan;
|
||||
private static CultureInfo resourceCulture;
|
||||
|
||||
internal Resources()
|
||||
{
|
||||
}
|
||||
|
||||
[EditorBrowsable(EditorBrowsableState.Advanced)]
|
||||
internal static ResourceManager ResourceManager
|
||||
{
|
||||
get
|
||||
{
|
||||
if (HexConverter.Properties.Resources.resourceMan == null)
|
||||
HexConverter.Properties.Resources.resourceMan = new ResourceManager("HexConverter.Properties.Resources", typeof (HexConverter.Properties.Resources).Assembly);
|
||||
return HexConverter.Properties.Resources.resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
[EditorBrowsable(EditorBrowsableState.Advanced)]
|
||||
internal static CultureInfo Culture
|
||||
{
|
||||
get => HexConverter.Properties.Resources.resourceCulture;
|
||||
set => HexConverter.Properties.Resources.resourceCulture = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
+120
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: HexConverter.Properties.Settings
|
||||
// Assembly: HexConverter, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 69C743DF-5670-4BA1-B9C9-0F7A066F699A
|
||||
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00000-msil\Virus.Win32.Otwycal.a-e8185cfeb5eed43452d4fc000bc9dad88c82a7d405e4cc7e61131d390a782aa2.exe
|
||||
|
||||
using System.CodeDom.Compiler;
|
||||
using System.Configuration;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace HexConverter.Properties
|
||||
{
|
||||
[GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "8.0.0.0")]
|
||||
[CompilerGenerated]
|
||||
internal sealed class Settings : ApplicationSettingsBase
|
||||
{
|
||||
private static Settings defaultInstance = (Settings) SettingsBase.Synchronized((SettingsBase) new Settings());
|
||||
|
||||
public static Settings Default => Settings.defaultInstance;
|
||||
}
|
||||
}
|
||||
+51
@@ -0,0 +1,51 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<!--Project was exported from assembly: C:\Users\Administrateur\Downloads\Virusshare-00000-msil\Virus.Win32.Otwycal.a-e8185cfeb5eed43452d4fc000bc9dad88c82a7d405e4cc7e61131d390a782aa2.exe-->
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{CBF57740-2DFC-46DC-895E-D93C735D3BB8}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<AssemblyName>HexConverter</AssemblyName>
|
||||
<ApplicationVersion>1.0.0.0</ApplicationVersion>
|
||||
<RootNamespace>HexConverter</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Form1.cs" />
|
||||
<Compile Include="DialogBox.cs" />
|
||||
<Compile Include="Properties\Settings.cs" />
|
||||
<Compile Include="Properties\Resources.cs" />
|
||||
<Compile Include="AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="DialogBox.resx" />
|
||||
<EmbeddedResource Include="Form1.resx" />
|
||||
<EmbeddedResource Include="Properties\Resources.resx" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 9.00
|
||||
# Visual Studio 2005
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HexConverter", "Virus.Win32.Otwycal.a-e8185cfeb5eed43452d4fc000bc9dad88c82a7d405e4cc7e61131d390a782aa2.csproj", "{CBF57740-2DFC-46DC-895E-D93C735D3BB8}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{CBF57740-2DFC-46DC-895E-D93C735D3BB8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{CBF57740-2DFC-46DC-895E-D93C735D3BB8}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{CBF57740-2DFC-46DC-895E-D93C735D3BB8}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{CBF57740-2DFC-46DC-895E-D93C735D3BB8}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
Reference in New Issue
Block a user