示例#1
0
    static string smethod_2(int int_3)
    {
        if (Class14.byte_3.Length == 0)
        {
            BinaryReader binaryReader = new BinaryReader(typeof(Class14).Assembly.GetManifestResourceStream("15b96398-9597-4145-8e52-82e25906b4b2"));
            binaryReader.BaseStream.Position = 0L;
            byte[] array  = binaryReader.ReadBytes((int)binaryReader.BaseStream.Length);
            byte[] array2 = new byte[32];
            array2[0]  = 126;
            array2[0]  = 124;
            array2[0]  = 146;
            array2[0]  = 48;
            array2[1]  = 152;
            array2[1]  = 88;
            array2[1]  = 254;
            array2[2]  = 96;
            array2[2]  = 27;
            array2[2]  = 244;
            array2[3]  = 102;
            array2[3]  = 110;
            array2[3]  = 124;
            array2[3]  = 140;
            array2[4]  = 98;
            array2[4]  = 152;
            array2[4]  = 174;
            array2[4]  = 128;
            array2[5]  = 185;
            array2[5]  = 85;
            array2[5]  = 173;
            array2[6]  = 69;
            array2[6]  = 147;
            array2[6]  = 87;
            array2[6]  = 86;
            array2[7]  = 130;
            array2[7]  = 124;
            array2[7]  = 101;
            array2[8]  = 109;
            array2[8]  = 134;
            array2[8]  = 157;
            array2[8]  = 243;
            array2[9]  = 132;
            array2[9]  = 86;
            array2[9]  = 47;
            array2[9]  = 101;
            array2[9]  = 197;
            array2[10] = 106;
            array2[10] = 135;
            array2[10] = 138;
            array2[10] = 182;
            array2[10] = 84;
            array2[10] = 214;
            array2[11] = 95;
            array2[11] = 140;
            array2[11] = 95;
            array2[11] = 92;
            array2[11] = 248;
            array2[12] = 157;
            array2[12] = 142;
            array2[12] = 11;
            array2[13] = 120;
            array2[13] = 62;
            array2[13] = 115;
            array2[13] = 138;
            array2[13] = 156;
            array2[13] = 145;
            array2[14] = 134;
            array2[14] = 138;
            array2[14] = 88;
            array2[14] = 164;
            array2[14] = 120;
            array2[14] = 105;
            array2[15] = 123;
            array2[15] = 112;
            array2[15] = 80;
            array2[15] = 122;
            array2[15] = 46;
            array2[16] = 165;
            array2[16] = 84;
            array2[16] = 132;
            array2[16] = 108;
            array2[16] = 108;
            array2[17] = 160;
            array2[17] = 143;
            array2[17] = 105;
            array2[17] = 94;
            array2[17] = 150;
            array2[17] = 166;
            array2[18] = 138;
            array2[18] = 90;
            array2[18] = 202;
            array2[19] = 162;
            array2[19] = 107;
            array2[19] = 186;
            array2[20] = 130;
            array2[20] = 128;
            array2[20] = 113;
            array2[20] = 148;
            array2[20] = 132;
            array2[20] = 165;
            array2[21] = 66;
            array2[21] = 171;
            array2[21] = 94;
            array2[21] = 194;
            array2[22] = 166;
            array2[22] = 155;
            array2[22] = 126;
            array2[22] = 121;
            array2[22] = 133;
            array2[22] = 14;
            array2[23] = 163;
            array2[23] = 106;
            array2[23] = 84;
            array2[23] = 195;
            array2[23] = 232;
            array2[24] = 154;
            array2[24] = 129;
            array2[24] = 142;
            array2[25] = 168;
            array2[25] = 153;
            array2[25] = 136;
            array2[25] = 94;
            array2[25] = 118;
            array2[25] = 131;
            array2[26] = 136;
            array2[26] = 102;
            array2[26] = 121;
            array2[27] = 150;
            array2[27] = 84;
            array2[27] = 102;
            array2[27] = 10;
            array2[28] = 141;
            array2[28] = 104;
            array2[28] = 120;
            array2[28] = 117;
            array2[29] = 145;
            array2[29] = 144;
            array2[29] = 85;
            array2[29] = 7;
            array2[30] = 84;
            array2[30] = 178;
            array2[30] = 157;
            array2[30] = 173;
            array2[30] = 88;
            array2[30] = 212;
            array2[31] = 75;
            array2[31] = 153;
            array2[31] = 139;
            byte[] rgbKey = array2;
            byte[] array3 = new byte[16];
            array3[0]  = 126;
            array3[0]  = 121;
            array3[0]  = 222;
            array3[1]  = 29;
            array3[1]  = 163;
            array3[1]  = 167;
            array3[1]  = 120;
            array3[1]  = 234;
            array3[2]  = 31;
            array3[2]  = 60;
            array3[2]  = 72;
            array3[3]  = 145;
            array3[3]  = 150;
            array3[3]  = 247;
            array3[4]  = 74;
            array3[4]  = 165;
            array3[4]  = 164;
            array3[5]  = 117;
            array3[5]  = 104;
            array3[5]  = 113;
            array3[5]  = 136;
            array3[5]  = 224;
            array3[6]  = 227;
            array3[6]  = 157;
            array3[6]  = 222;
            array3[6]  = 166;
            array3[6]  = 45;
            array3[7]  = 129;
            array3[7]  = 93;
            array3[7]  = 118;
            array3[7]  = 175;
            array3[7]  = 89;
            array3[7]  = 24;
            array3[8]  = 103;
            array3[8]  = 136;
            array3[8]  = 170;
            array3[8]  = 142;
            array3[9]  = 156;
            array3[9]  = 85;
            array3[9]  = 55;
            array3[9]  = 167;
            array3[9]  = 196;
            array3[9]  = 179;
            array3[10] = 104;
            array3[10] = 92;
            array3[10] = 147;
            array3[10] = 85;
            array3[10] = 219;
            array3[11] = 170;
            array3[11] = 192;
            array3[11] = 121;
            array3[11] = 140;
            array3[11] = 27;
            array3[12] = 122;
            array3[12] = 94;
            array3[12] = 108;
            array3[12] = 155;
            array3[13] = 75;
            array3[13] = 122;
            array3[13] = 49;
            array3[13] = 86;
            array3[13] = 120;
            array3[13] = 112;
            array3[14] = 156;
            array3[14] = 126;
            array3[14] = 90;
            array3[14] = 153;
            array3[14] = 170;
            array3[14] = 100;
            array3[15] = 205;
            array3[15] = 156;
            array3[15] = 212;
            array3[15] = 112;
            array3[15] = 136;
            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_3 = memoryStream.ToArray();
            if (Class14.byte_3.Length > 0)
            {
                Class14.string_0 = new string[Class14.byte_3.Length / 4 + 1];
                Class14.int_0    = new int[Class14.byte_3.Length / 4 + 1];
            }
            memoryStream.Close();
            cryptoStream.Close();
            binaryReader.Close();
            Assembly assembly = typeof(Class14).Assembly;
            Class14.int_2  = Marshal.GetHINSTANCE(assembly.GetModules()[0]).ToInt32();
            Class14.long_0 = Marshal.GetHINSTANCE(assembly.GetModules()[0]).ToInt64();
        }
        int num = int_3 / 4;

        if (Class14.int_0[num] > 0)
        {
            return(((string[])Class14.string_0)[Class14.int_0[num]]);
        }
        int num2 = BitConverter.ToInt32(Class14.byte_3, int_3);

        if (Class14.intptr_0 == IntPtr.Zero)
        {
            Class14.intptr_0 = Class14.OpenProcess(16u, 1, (uint)Process.GetCurrentProcess().Id);
        }
        byte[] array5 = new byte[4];
        if (IntPtr.Size == 4)
        {
            Class14.ReadProcessMemory(Class14.intptr_0, new IntPtr(Class14.int_2 + num2), array5, 4u, out Class14.intptr_1);
        }
        else
        {
            Class14.ReadProcessMemory(Class14.intptr_0, new IntPtr(Class14.long_0 + (long)num2), array5, 4u, out Class14.intptr_1);
        }
        int num3 = BitConverter.ToInt32(array5, 0);

        array5 = new byte[num3];
        if (IntPtr.Size == 4)
        {
            Class14.ReadProcessMemory(Class14.intptr_0, new IntPtr(Class14.int_2 + num2 + 4), array5, Convert.ToUInt32(num3), out Class14.intptr_1);
        }
        else
        {
            Class14.ReadProcessMemory(Class14.intptr_0, new IntPtr(Class14.long_0 + (long)num2 + 4L), array5, Convert.ToUInt32(num3), out Class14.intptr_1);
        }
        byte[] array6  = Class14.smethod_7(array5);
        string @string = Encoding.Unicode.GetString(array6, 0, array6.Length);

        Class14.int_0[num] = Class14.int_1;
        ((string[])Class14.string_0)[Class14.int_1] = @string;
        Class14.int_1++;
        return(@string);
    }