Example #1
0
 public string method_44()
 {
     try
     {
         lock (Class15.object_0)
         {
             Class15.smethod_5();
             Class15.Class17 @class = null;
             try
             {
                 string      str         = Class15.Class16.string_0;
                 string      str2        = Class15.string_3 + "\\";
                 RegistryKey registryKey = Registry.CurrentUser;
                 if (Class15.smethod_0())
                 {
                     registryKey = Registry.LocalMachine;
                 }
                 RegistryKey registryKey2 = registryKey.OpenSubKey(str + str2, false);
                 if (registryKey2 != null)
                 {
                     Class15.Class17 class2 = new Class15.Class17();
                     class2.method_0((string)registryKey2.GetValue("1"), Class15.byte_1, Class15.byte_2);
                     if (@class == null)
                     {
                         @class = class2;
                     }
                     if (class2.ulong_0 > @class.ulong_0)
                     {
                         @class = class2;
                     }
                 }
             }
             catch
             {
             }
             try
             {
                 if (Class14.smethod_5(base.GetType().Assembly).ToString().Length > 0 && File.Exists(Class14.smethod_5(base.GetType().Assembly).ToString()))
                 {
                     Class15.Class17 class3 = new Class15.Class17();
                     class3.method_0(Class15.smethod_8(Path.GetDirectoryName(Class14.smethod_5(base.GetType().Assembly).ToString()), Class15.string_2), Class15.byte_1, Class15.byte_2);
                     if (@class == null)
                     {
                         @class = class3;
                     }
                     if (class3.ulong_0 > @class.ulong_0)
                     {
                         @class = class3;
                     }
                 }
             }
             catch
             {
             }
             try
             {
                 if (File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + Class15.Class16.string_2 + Class15.string_2))
                 {
                     Class15.Class17 class4 = new Class15.Class17();
                     class4.method_0(Encoding.Unicode.GetString(Class15.smethod_11(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + Class15.Class16.string_2 + Class15.string_2)), Class15.byte_1, Class15.byte_2);
                     if (@class == null)
                     {
                         @class = class4;
                     }
                     if (class4.ulong_0 > @class.ulong_0)
                     {
                         @class = class4;
                     }
                 }
             }
             catch
             {
             }
             if (@class == null)
             {
                 @class = new Class15.Class17();
             }
             return(@class.string_0);
         }
     }
     catch
     {
     }
     return("");
 }
Example #2
0
 public void method_45(string string_2)
 {
     try
     {
         lock (Class15.object_0)
         {
             Class15.smethod_5();
             Class15.Class17 @class = null;
             try
             {
                 string      str         = Class15.Class16.string_0;
                 string      str2        = Class15.string_3 + "\\";
                 RegistryKey registryKey = Registry.CurrentUser;
                 if (Class15.smethod_0())
                 {
                     registryKey = Registry.LocalMachine;
                 }
                 RegistryKey registryKey2 = registryKey.OpenSubKey(str + str2, false);
                 if (registryKey2 != null)
                 {
                     Class15.Class17 class2 = new Class15.Class17();
                     class2.method_0((string)registryKey2.GetValue("1"), Class15.byte_1, Class15.byte_2);
                     if (@class == null)
                     {
                         @class = class2;
                     }
                     if (class2.ulong_0 > @class.ulong_0)
                     {
                         @class = class2;
                     }
                 }
             }
             catch
             {
             }
             try
             {
                 if (Class14.smethod_5(base.GetType().Assembly).ToString().Length > 0 && File.Exists(Class14.smethod_5(base.GetType().Assembly).ToString()))
                 {
                     Class15.Class17 class3 = new Class15.Class17();
                     class3.method_0(Class15.smethod_8(Path.GetDirectoryName(Class14.smethod_5(base.GetType().Assembly).ToString()), Class15.string_2), Class15.byte_1, Class15.byte_2);
                     if (@class == null)
                     {
                         @class = class3;
                     }
                     if (class3.ulong_0 > @class.ulong_0)
                     {
                         @class = class3;
                     }
                 }
             }
             catch
             {
             }
             try
             {
                 if (File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + Class15.Class16.string_2 + Class15.string_2))
                 {
                     Class15.Class17 class4 = new Class15.Class17();
                     class4.method_0(Encoding.Unicode.GetString(Class15.smethod_11(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + Class15.Class16.string_2 + Class15.string_2)), Class15.byte_1, Class15.byte_2);
                     if (@class == null)
                     {
                         @class = class4;
                     }
                     if (class4.ulong_0 > @class.ulong_0)
                     {
                         @class = class4;
                     }
                 }
             }
             catch
             {
             }
             if (@class == null)
             {
                 @class = new Class15.Class17();
             }
             @class.string_0 = string_2;
             try
             {
                 string      str3         = Class15.Class16.string_0;
                 string      str4         = Class15.string_3 + "\\";
                 RegistryKey registryKey3 = Registry.CurrentUser;
                 if (Class15.smethod_0())
                 {
                     registryKey3 = Registry.LocalMachine;
                 }
                 RegistryKey registryKey4;
                 if (registryKey3.OpenSubKey(str3 + str4, false) == null)
                 {
                     registryKey3 = Registry.CurrentUser;
                     if (Class15.smethod_0())
                     {
                         registryKey3 = Registry.LocalMachine;
                     }
                     registryKey4 = registryKey3.CreateSubKey(str3 + str4);
                 }
                 registryKey3 = Registry.CurrentUser;
                 if (Class15.smethod_0())
                 {
                     registryKey3 = Registry.LocalMachine;
                 }
                 registryKey4 = registryKey3.OpenSubKey(str3 + str4, true);
                 if (registryKey4 != null)
                 {
                     registryKey4.SetValue("1", @class.method_5(Class15.byte_1, Class15.byte_2));
                     registryKey4.Close();
                 }
             }
             catch
             {
             }
             try
             {
                 if (Class14.smethod_5(base.GetType().Assembly).ToString().Length > 0 && File.Exists(Class14.smethod_5(base.GetType().Assembly).ToString()))
                 {
                     Class15.smethod_7(Path.GetDirectoryName(Class14.smethod_5(base.GetType().Assembly).ToString()), Class15.string_2, @class.method_5(Class15.byte_1, Class15.byte_2));
                 }
             }
             catch
             {
             }
             try
             {
                 FileStream fileStream = new FileStream(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + Class15.Class16.string_2 + Class15.string_2, FileMode.Create, FileAccess.ReadWrite);
                 byte[]     bytes      = Encoding.Unicode.GetBytes(@class.method_5(Class15.byte_1, Class15.byte_2));
                 fileStream.Write(bytes, 0, bytes.Length);
                 fileStream.Close();
             }
             catch
             {
             }
         }
     }
     catch
     {
     }
 }
Example #3
0
    static bool smethod_0(int int_3)
    {
        if (Class14.byte_1.Length == 0)
        {
            BinaryReader binaryReader = new BinaryReader(typeof(Class14).Assembly.GetManifestResourceStream("552aa579-b26a-42c6-927d-ada4908113cd"));
            binaryReader.BaseStream.Position = 0L;
            byte[] array  = binaryReader.ReadBytes((int)binaryReader.BaseStream.Length);
            byte[] array2 = new byte[32];
            array2[0]  = 181;
            array2[0]  = 122;
            array2[0]  = 116;
            array2[0]  = 131;
            array2[1]  = 147;
            array2[1]  = 98;
            array2[1]  = 215;
            array2[2]  = 166;
            array2[2]  = 117;
            array2[2]  = 156;
            array2[2]  = 48;
            array2[2]  = 253;
            array2[3]  = 186;
            array2[3]  = 105;
            array2[3]  = 113;
            array2[3]  = 199;
            array2[4]  = 148;
            array2[4]  = 183;
            array2[4]  = 72;
            array2[4]  = 171;
            array2[4]  = 104;
            array2[4]  = 72;
            array2[5]  = 112;
            array2[5]  = 196;
            array2[5]  = 155;
            array2[6]  = 154;
            array2[6]  = 96;
            array2[6]  = 23;
            array2[7]  = 90;
            array2[7]  = 132;
            array2[7]  = 46;
            array2[8]  = 160;
            array2[8]  = 101;
            array2[8]  = 169;
            array2[8]  = 59;
            array2[8]  = 100;
            array2[8]  = 135;
            array2[9]  = 26;
            array2[9]  = 163;
            array2[9]  = 55;
            array2[9]  = 74;
            array2[9]  = 31;
            array2[10] = 116;
            array2[10] = 153;
            array2[10] = 59;
            array2[10] = 147;
            array2[10] = 122;
            array2[10] = 111;
            array2[11] = 81;
            array2[11] = 103;
            array2[11] = 103;
            array2[11] = 228;
            array2[12] = 219;
            array2[12] = 152;
            array2[12] = 53;
            array2[13] = 196;
            array2[13] = 164;
            array2[13] = 116;
            array2[13] = 108;
            array2[13] = 147;
            array2[13] = 138;
            array2[14] = 8;
            array2[14] = 88;
            array2[14] = 139;
            array2[15] = 100;
            array2[15] = 108;
            array2[15] = 165;
            array2[15] = 97;
            array2[15] = 213;
            array2[16] = 134;
            array2[16] = 95;
            array2[16] = 153;
            array2[16] = 134;
            array2[16] = 157;
            array2[16] = 48;
            array2[17] = 140;
            array2[17] = 152;
            array2[17] = 126;
            array2[17] = 96;
            array2[17] = 22;
            array2[18] = 216;
            array2[18] = 120;
            array2[18] = 155;
            array2[18] = 142;
            array2[18] = 217;
            array2[18] = 33;
            array2[19] = 91;
            array2[19] = 116;
            array2[19] = 96;
            array2[19] = 194;
            array2[19] = 4;
            array2[20] = 67;
            array2[20] = 119;
            array2[20] = 214;
            array2[21] = 117;
            array2[21] = 136;
            array2[21] = 90;
            array2[21] = 122;
            array2[21] = 215;
            array2[22] = 79;
            array2[22] = 111;
            array2[22] = 139;
            array2[22] = 177;
            array2[23] = 63;
            array2[23] = 86;
            array2[23] = 130;
            array2[23] = 120;
            array2[23] = 138;
            array2[23] = 175;
            array2[24] = 113;
            array2[24] = 92;
            array2[24] = 173;
            array2[24] = 122;
            array2[24] = 166;
            array2[25] = 129;
            array2[25] = 95;
            array2[25] = 98;
            array2[25] = 162;
            array2[25] = 89;
            array2[25] = 191;
            array2[26] = 124;
            array2[26] = 166;
            array2[26] = 37;
            array2[27] = 84;
            array2[27] = 47;
            array2[27] = 83;
            array2[27] = 135;
            array2[27] = 66;
            array2[27] = 218;
            array2[28] = 121;
            array2[28] = 140;
            array2[28] = 82;
            array2[28] = 149;
            array2[28] = 140;
            array2[28] = 29;
            array2[29] = 171;
            array2[29] = 160;
            array2[29] = 55;
            array2[29] = 77;
            array2[29] = 111;
            array2[29] = 163;
            array2[30] = 152;
            array2[30] = 118;
            array2[30] = 152;
            array2[30] = 153;
            array2[31] = 94;
            array2[31] = 171;
            array2[31] = 89;
            array2[31] = 35;
            byte[] rgbKey = array2;
            byte[] array3 = new byte[16];
            array3[0]  = 126;
            array3[0]  = 161;
            array3[0]  = 104;
            array3[1]  = 31;
            array3[1]  = 126;
            array3[1]  = 148;
            array3[1]  = 110;
            array3[1]  = 173;
            array3[1]  = 154;
            array3[2]  = 122;
            array3[2]  = 99;
            array3[2]  = 86;
            array3[2]  = 88;
            array3[2]  = 88;
            array3[2]  = 51;
            array3[3]  = 168;
            array3[3]  = 121;
            array3[3]  = 39;
            array3[3]  = 183;
            array3[3]  = 148;
            array3[3]  = 253;
            array3[4]  = 102;
            array3[4]  = 100;
            array3[4]  = 100;
            array3[4]  = 158;
            array3[4]  = 21;
            array3[5]  = 154;
            array3[5]  = 204;
            array3[5]  = 155;
            array3[5]  = 168;
            array3[5]  = 161;
            array3[6]  = 160;
            array3[6]  = 92;
            array3[6]  = 203;
            array3[7]  = 162;
            array3[7]  = 157;
            array3[7]  = 90;
            array3[7]  = 20;
            array3[8]  = 147;
            array3[8]  = 127;
            array3[8]  = 43;
            array3[9]  = 98;
            array3[9]  = 177;
            array3[9]  = 127;
            array3[9]  = 117;
            array3[10] = 154;
            array3[10] = 134;
            array3[10] = 205;
            array3[11] = 59;
            array3[11] = 172;
            array3[11] = 103;
            array3[11] = 170;
            array3[11] = 3;
            array3[12] = 134;
            array3[12] = 155;
            array3[12] = 88;
            array3[12] = 149;
            array3[12] = 216;
            array3[13] = 84;
            array3[13] = 138;
            array3[13] = 143;
            array3[13] = 115;
            array3[13] = 98;
            array3[13] = 139;
            array3[14] = 189;
            array3[14] = 88;
            array3[14] = 168;
            array3[14] = 136;
            array3[14] = 171;
            array3[15] = 187;
            array3[15] = 166;
            array3[15] = 209;
            byte[] array4         = array3;
            byte[] publicKeyToken = typeof(Class14).Assembly.GetName().GetPublicKeyToken();
            if (publicKeyToken != null && publicKeyToken.Length > 0)
            {
                array4[1]  = publicKeyToken[0];
                array4[3]  = publicKeyToken[1];
                array4[5]  = publicKeyToken[2];
                array4[7]  = publicKeyToken[3];
                array4[9]  = publicKeyToken[4];
                array4[11] = publicKeyToken[5];
                array4[13] = publicKeyToken[6];
                array4[15] = publicKeyToken[7];
            }
            ICryptoTransform transform = new RijndaelManaged
            {
                Mode = CipherMode.CBC
            }.CreateDecryptor(rgbKey, array4);
            MemoryStream memoryStream = new MemoryStream();
            CryptoStream cryptoStream = new CryptoStream(memoryStream, transform, CryptoStreamMode.Write);
            cryptoStream.Write(array, 0, array.Length);
            cryptoStream.FlushFinalBlock();
            Class14.byte_1 = memoryStream.ToArray();
            memoryStream.Close();
            cryptoStream.Close();
            binaryReader.Close();
        }
        if (Class14.byte_0.Length == 0)
        {
            Class14.byte_0 = Class14.smethod_6(Class14.smethod_5(typeof(Class14).Assembly).ToString());
        }
        int num = 0;

        try
        {
            num = BitConverter.ToInt32(new byte[]
            {
                Class14.byte_1[int_3],
                Class14.byte_1[int_3 + 1],
                Class14.byte_1[int_3 + 2],
                Class14.byte_1[int_3 + 3]
            }, 0);
        }
        catch
        {
        }
        try
        {
            if (Class14.byte_0[num] == 128)
            {
                return(true);
            }
        }
        catch
        {
        }
        return(false);
    }