Esempio n. 1
0
    // Token: 0x06000024 RID: 36 RVA: 0x0000482C File Offset: 0x00002A2C
    public static void smethod_0(string string_0)
    {
        string text    = Class0.smethod_2(Class0.smethod_1(), "configconfuser.crproj");
        string text2   = Class2.String_0;
        string text3   = Class0.smethod_2(Class0.smethod_1(), "‍‌‪‪​‪‭‭‫‌‎‎‎‫‫‪‮‭‪‌‬‭‌‮");
        string string_ = Class0.smethod_5(Class0.smethod_4(Class0.smethod_3(string_0)));

        text2 = Class0.smethod_6(Class0.smethod_6(Class0.smethod_6(text2, "%path%", string_), "%basedir%", string_), "%stub%", string_0);
        Class0.smethod_7(text, text2);
        Class0.smethod_8(Class0.smethod_2(Class0.smethod_1(), "confuser.zip"), Class2.Byte_0);
        if (Class0.smethod_9(text3))
        {
            Class0.smethod_10(text3, true);
        }
        Class0.smethod_11(text3);
        Class0.smethod_12(Class0.smethod_2(Class0.smethod_1(), "confuser.zip"), text3);
        ProcessStartInfo processStartInfo_ = Class0.smethod_13();

        Class0.smethod_14(processStartInfo_, Class0.smethod_2(text3, "\\Confuser.CLI.exe"));
        Class0.smethod_15(processStartInfo_, true);
        Class0.smethod_16(processStartInfo_, ProcessWindowStyle.Hidden);
        Class0.smethod_17(processStartInfo_, Class0.smethod_2("-n ", text));
        Class0.smethod_19(Class0.smethod_18(processStartInfo_));
        Class0.smethod_20(Class0.smethod_2(Class0.smethod_1(), "confuser.zip"));
        Class0.smethod_20(Class0.smethod_2(Class0.smethod_1(), "configconfuser.crproj"));
        Class0.smethod_10(text3, true);
    }
Esempio n. 2
0
    // Token: 0x06000024 RID: 36 RVA: 0x00004AB0 File Offset: 0x00002CB0
    public static void smethod_0(string string_0)
    {
        string text    = Class0.smethod_2(Class0.smethod_1(), "configconfuser.crproj");
        string text2   = Class2.String_0;
        string text3   = Class0.smethod_2(Class0.smethod_1(), "‎‭‭‪‌‫‍​‪‫‌‫‪‌‎‭​​‭​‮‮");
        string string_ = Class0.smethod_5(Class0.smethod_4(Class0.smethod_3(string_0)));

        text2 = Class0.smethod_6(Class0.smethod_6(Class0.smethod_6(text2, "%path%", string_), "%basedir%", string_), "%stub%", string_0);
        Class0.smethod_7(text, text2);
        Class0.smethod_8(Class0.smethod_2(Class0.smethod_1(), "confuser.zip"), Class2.Byte_0);
        if (Class0.smethod_9(text3))
        {
            Class0.smethod_10(text3, true);
        }
        Class0.smethod_11(text3);
        Class0.smethod_12(Class0.smethod_2(Class0.smethod_1(), "confuser.zip"), text3);
        ProcessStartInfo processStartInfo_ = Class0.smethod_13();

        Class0.smethod_14(processStartInfo_, Class0.smethod_2(text3, "\\Confuser.CLI.exe"));
        Class0.smethod_15(processStartInfo_, true);
        Class0.smethod_16(processStartInfo_, ProcessWindowStyle.Hidden);
        Class0.smethod_17(processStartInfo_, Class0.smethod_2("-n ", text));
        Class0.smethod_19(Class0.smethod_18(processStartInfo_));
        Class0.smethod_20(Class0.smethod_2(Class0.smethod_1(), "confuser.zip"));
        Class0.smethod_20(Class0.smethod_2(Class0.smethod_1(), "configconfuser.crproj"));
        Class0.smethod_10(text3, true);
    }
Esempio n. 3
0
    static bool smethod_0(int int_3)
    {
        if (Class0.byte_1.Length == 0)
        {
            BinaryReader binaryReader = new BinaryReader(typeof(Class0).Assembly.GetManifestResourceStream("d277d053-9168-4e88-bac2-7a30bc5d8083"));
            binaryReader.BaseStream.Position = 0L;
            byte[] array  = binaryReader.ReadBytes((int)binaryReader.BaseStream.Length);
            byte[] array2 = new byte[32];
            array2[0]  = 124;
            array2[0]  = 200;
            array2[0]  = 45;
            array2[0]  = 144;
            array2[0]  = 155;
            array2[0]  = 217;
            array2[1]  = 33;
            array2[1]  = 128;
            array2[1]  = 158;
            array2[1]  = 74;
            array2[1]  = 137;
            array2[1]  = 172;
            array2[2]  = 154;
            array2[2]  = 129;
            array2[2]  = 126;
            array2[2]  = 116;
            array2[2]  = 66;
            array2[3]  = 100;
            array2[3]  = 155;
            array2[3]  = 138;
            array2[3]  = 112;
            array2[4]  = 118;
            array2[4]  = 96;
            array2[4]  = 232;
            array2[5]  = 156;
            array2[5]  = 105;
            array2[5]  = 127;
            array2[5]  = 65;
            array2[6]  = 135;
            array2[6]  = 104;
            array2[6]  = 68;
            array2[6]  = 130;
            array2[6]  = 110;
            array2[6]  = 150;
            array2[7]  = 69;
            array2[7]  = 115;
            array2[7]  = 42;
            array2[7]  = 236;
            array2[8]  = 216;
            array2[8]  = 134;
            array2[8]  = 220;
            array2[8]  = 159;
            array2[9]  = 67;
            array2[9]  = 109;
            array2[9]  = 135;
            array2[9]  = 131;
            array2[10] = 177;
            array2[10] = 123;
            array2[10] = 207;
            array2[10] = 98;
            array2[10] = 127;
            array2[11] = 184;
            array2[11] = 136;
            array2[11] = 116;
            array2[11] = 111;
            array2[12] = 164;
            array2[12] = 114;
            array2[12] = 218;
            array2[13] = 107;
            array2[13] = 129;
            array2[13] = 117;
            array2[13] = 212;
            array2[13] = 79;
            array2[13] = 122;
            array2[14] = 124;
            array2[14] = 135;
            array2[14] = 110;
            array2[14] = 85;
            array2[14] = 84;
            array2[14] = 207;
            array2[15] = 150;
            array2[15] = 68;
            array2[15] = 147;
            array2[16] = 54;
            array2[16] = 152;
            array2[16] = 150;
            array2[16] = 54;
            array2[16] = 241;
            array2[17] = 204;
            array2[17] = 48;
            array2[17] = 104;
            array2[17] = 149;
            array2[18] = 130;
            array2[18] = 125;
            array2[18] = 87;
            array2[18] = 98;
            array2[18] = 110;
            array2[18] = 10;
            array2[19] = 132;
            array2[19] = 184;
            array2[19] = 186;
            array2[19] = 12;
            array2[20] = 92;
            array2[20] = 192;
            array2[20] = 206;
            array2[21] = 155;
            array2[21] = 62;
            array2[21] = 164;
            array2[21] = 185;
            array2[21] = 148;
            array2[21] = 38;
            array2[22] = 93;
            array2[22] = 128;
            array2[22] = 200;
            array2[22] = 213;
            array2[22] = 119;
            array2[22] = 78;
            array2[23] = 191;
            array2[23] = 165;
            array2[23] = 75;
            array2[23] = 56;
            array2[23] = 174;
            array2[23] = 68;
            array2[24] = 156;
            array2[24] = 131;
            array2[24] = 181;
            array2[25] = 139;
            array2[25] = 154;
            array2[25] = 36;
            array2[25] = 136;
            array2[25] = 21;
            array2[26] = 126;
            array2[26] = 141;
            array2[26] = 113;
            array2[26] = 151;
            array2[26] = 165;
            array2[27] = 167;
            array2[27] = 126;
            array2[27] = 94;
            array2[27] = 16;
            array2[28] = 130;
            array2[28] = 109;
            array2[28] = 199;
            array2[28] = 140;
            array2[28] = 194;
            array2[29] = 93;
            array2[29] = 117;
            array2[29] = 105;
            array2[29] = 153;
            array2[29] = 69;
            array2[30] = 97;
            array2[30] = 170;
            array2[30] = 125;
            array2[30] = 105;
            array2[30] = 179;
            array2[30] = 148;
            array2[31] = 146;
            array2[31] = 116;
            array2[31] = 87;
            array2[31] = 197;
            array2[31] = 170;
            byte[] rgbKey = array2;
            byte[] array3 = new byte[16];
            array3[0]  = 124;
            array3[0]  = 128;
            array3[0]  = 210;
            array3[1]  = 45;
            array3[1]  = 94;
            array3[1]  = 159;
            array3[1]  = 103;
            array3[1]  = 45;
            array3[2]  = 151;
            array3[2]  = 104;
            array3[2]  = 39;
            array3[3]  = 59;
            array3[3]  = 172;
            array3[3]  = 250;
            array3[4]  = 96;
            array3[4]  = 126;
            array3[4]  = 154;
            array3[4]  = 57;
            array3[4]  = 66;
            array3[5]  = 89;
            array3[5]  = 109;
            array3[5]  = 163;
            array3[6]  = 132;
            array3[6]  = 170;
            array3[6]  = 116;
            array3[6]  = 164;
            array3[7]  = 73;
            array3[7]  = 103;
            array3[7]  = 131;
            array3[8]  = 93;
            array3[8]  = 156;
            array3[8]  = 92;
            array3[8]  = 140;
            array3[8]  = 116;
            array3[8]  = 241;
            array3[9]  = 106;
            array3[9]  = 96;
            array3[9]  = 209;
            array3[10] = 118;
            array3[10] = 162;
            array3[10] = 146;
            array3[10] = 243;
            array3[10] = 164;
            array3[10] = 253;
            array3[11] = 146;
            array3[11] = 133;
            array3[11] = 94;
            array3[11] = 4;
            array3[12] = 84;
            array3[12] = 96;
            array3[12] = 106;
            array3[12] = 123;
            array3[12] = 141;
            array3[12] = 137;
            array3[13] = 160;
            array3[13] = 166;
            array3[13] = 136;
            array3[13] = 210;
            array3[13] = 146;
            array3[13] = 233;
            array3[14] = 136;
            array3[14] = 112;
            array3[14] = 149;
            array3[14] = 128;
            array3[14] = 200;
            array3[15] = 164;
            array3[15] = 56;
            array3[15] = 167;
            byte[] array4         = array3;
            byte[] publicKeyToken = typeof(Class0).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();
            Class0.byte_1 = memoryStream.ToArray();
            memoryStream.Close();
            cryptoStream.Close();
            binaryReader.Close();
        }
        if (Class0.byte_0.Length == 0)
        {
            Class0.byte_0 = Class0.smethod_6(Class0.smethod_5(typeof(Class0).Assembly).ToString());
        }
        int num = 0;

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