예제 #1
0
        public static bool ValidateLicense(License localLicense)
        {
            bool flag;

            try
            {
                HttpClient httpClient = LicenseHelper.\u202A‭‌​‎‏‍‌‌‮‬‍‮‌‮‎‫‬‌‍​‪‮();
label_2:
                int num1 = -1801571015;
                while (true)
                {
                    int    num2 = -1698105259;
                    uint   num3;
                    string str;
                    HttpResponseMessage result1;
                    License             result2;
                    int num4;
                    switch ((num3 = (uint)(num1 ^ num2)) % 18U)
                    {
                    case 0:
                        flag = true;
                        num1 = -87800919;
                        continue;

                    case 1:
                        num1 = (int)num3 * 2008935587 ^ 1948716983;
                        continue;

                    case 2:
                        if (result2.DateExpires == localLicense.DateExpires)
                        {
                            num1 = (int)num3 * -928711233 ^ 126615497;
                            continue;
                        }
                        break;

                    case 3:
                        num4 = LicenseHelper.\u206A‬‭‌‭‪‪‪‭‪‭‬‍‍‪​‍‏‮‮‪‮(result2.RequestToken, localLicense.RequestToken) ? 1 : 0;
                        goto label_7;

                    case 4:
                        flag = false;
                        num1 = (int)num3 * 2103174008 ^ 200965616;
                        continue;

                    case 5:
                        str  = LicenseHelper.\u200E‮‫‮‮‍‮‎‍‎‮‭‫‬‭‍‪‫‍​‭‫‭‫‬‮‏‮(\u003CModule\u003E.\u202A​‬‫‪‫‪‮‪‫‎‭‪‏‮‎‭‍‌‎‫‍​‎‎‮ <string>(1955892746U), localLicense.Node);
                        num1 = (int)num3 * -926792795 ^ -593743430;
                        continue;

                    case 6:
                        result1 = LicenseHelper.\u200B‏‌‭‎‬‫‍‍‫‏‪‫‮‏‏‎‭‌‫‍‏‌‫‫‪‭‍‮(httpClient, str).get_Result();
                        int num5 = LicenseHelper.\u202B‬‭‍‬‬‪‏‮‍‎‫‫‍​‎‪‬​‭‏‪​‎‮(result1) ? -909136120 : (num5 = -856464655);
                        int num6 = (int)num3 * 572922087;
                        num1 = num5 ^ num6;
                        continue;

                    case 7:
                        result2 = ((Task <License>)HttpContentExtensions.ReadAsAsync <License>(LicenseHelper.\u202A​‭‏‌‌‌‍‎‏‍‬‎​‫‎‍‎‫‫‌‪‍‎‏‮(result1))).get_Result();
                        num1    = (int)num3 * -521139299 ^ -760603430;
                        continue;

                    case 8:
                        goto label_2;

                    case 9:
                        goto label_14;

                    case 11:
                        if (LicenseHelper.\u206A‬‭‌‭‪‪‪‭‪‭‬‍‍‪​‍‏‮‮‪‮(result2.Node, localLicense.Node))
                        {
                            num1 = (int)num3 * -643669904 ^ 2014759194;
                            continue;
                        }
                        break;

                    case 12:
                        if (LicenseHelper.\u206A‬‭‌‭‪‪‪‭‪‭‬‍‍‪​‍‏‮‮‪‮(result2.Licensee, localLicense.Licensee))
                        {
                            num1 = (int)num3 * -885431901 ^ 123726838;
                            continue;
                        }
                        break;

                    case 13:
                        LicenseHelper.\u206B‌‭‌‬‭‪‏‪‬‭‭‎‏‍‭‬‮‭‍​‫‏‮​‮(LicenseHelper.\u202D‎‫‬‏‌‎‫‫‏‮‪‬‏‭‍‎‫‎‫‬‏‏​‮(httpClient)).Add(LicenseHelper.\u200D‫‫‭‌‍‮​‏‫‌‏‎‫‌‍‍‌​‫‎‍‮(\u003CModule\u003E.\u206A‪‫‬‫‎‭‬‌‫‏‭‭‏‍‫‌​‬‪‎‬‏‬‮ <string>(1434096782U)));
                        num1 = (int)num3 * 662115125 ^ -1550653239;
                        continue;

                    case 14:
                        LicenseHelper.\u206D‬‍‫‮‫‬‪‬‪‫‬‫​‮‮‮‏​‮‫‫‬‎‎‌‫‌‬‮(httpClient, LicenseHelper.\u206E‪‫‬‮‮‏‏‬‬‭‍​‍‍‪‪‌‎‪‍‮(LicenseHelper.LicenseServer));
                        num1 = (int)num3 * 1048253767 ^ 370377906;
                        continue;

                    case 15:
                        num1 = -300986361;
                        continue;

                    case 16:
                        num1 = (int)num3 * -751233102 ^ 1134372088;
                        continue;

                    default:
                        goto label_25;
                    }
                    num4 = 0;
label_7:
                    int num7;
                    num1 = num7 = num4 != 0 ? -761930627 : (num7 = -1727432170);
                }
label_14:
                flag = true;
            }
            catch (Exception ex)
            {
                throw;
            }
label_25:
            return(flag);
        }
예제 #2
0
        public static License Load(string fileName)
        {
            License license = (License)null;

            try
            {
label_2:
                int num1 = 44338411;
                while (true)
                {
                    int           num2 = 371792680;
                    uint          num3;
                    TextReader    textReader;
                    XmlSerializer xmlSerializer;
                    switch ((num3 = (uint)(num1 ^ num2)) % 7U)
                    {
                    case 0:
                        LicenseHelper.\u206D‪‏‭‮‎‪‌‎‌‮‪‫‍‏‍‎​‎​‭‬‭‮‌‪‫‪‮(textReader);
                        num1 = (int)num3 * 1259755027 ^ -684059904;
                        continue;

                    case 2:
                        // ISSUE: type reference
                        xmlSerializer = LicenseHelper.\u200F‌‭‫‮‮‎​‏‭‍‌‮‭‍‭‍‏‫‪‭‫‪‌‍‎‮(LicenseHelper.\u206D‎‍​‏‌‌​‫‌‎‍‏‬‮‏‪‬‮‍‎‏‎​‮‍‮(__typeref(License)));
                        num1          = (int)num3 * -1415869284 ^ 1058800764;
                        continue;

                    case 3:
                        goto label_2;

                    case 4:
                        license = (License)LicenseHelper.\u206E‮‫‫‪‭‏‫‌‌‏​‫‌‬‭‍‏‫‮‏‮‪‮(xmlSerializer, textReader);
                        num1    = (int)num3 * 1027082432 ^ -1187014021;
                        continue;

                    case 5:
                        textReader    = (TextReader)null;
                        xmlSerializer = (XmlSerializer)null;
                        num1          = (int)num3 * 1901401305 ^ -1698070874;
                        continue;

                    case 6:
                        textReader = (TextReader)LicenseHelper.\u202A‎‭‬‮​‎‬‪‮‬‬‌‫‭‏‪‭‮‮‌‏‌​‮‎‏‌‮(fileName);
                        num1       = (int)num3 * -32846662 ^ 408048567;
                        continue;

                    default:
                        goto label_16;
                    }
                }
            }
            catch (Exception ex)
            {
label_10:
                int num1 = 321483533;
                while (true)
                {
                    int  num2 = 371792680;
                    uint num3;
                    switch ((num3 = (uint)(num1 ^ num2)) % 6U)
                    {
                    case 0:
                        LicenseHelper.\u200F‫‏‌‍‍‮​‬‎‫‬‭‬‍‫‫‭​‏‌‮‍‮(LicenseHelper.\u200E‮‫‮‮‍‮‎‍‎‮‭‫‬‭‍‪‫‍​‭‫‭‫‬‮‏‮(\u003CModule\u003E.\u206A‪‫‬‫‎‭‬‌‫‏‭‭‏‍‫‌​‬‪‎‬‏‬‮ <string>(1588592788U), LicenseHelper.\u202B‭‮‪‬‎‪‬‭‮‫‎‌​‏‍‮‫‍​‎‍‏‌‮(ex)));
                        num1 = (int)num3 * 610477975 ^ -2073624651;
                        continue;

                    case 1:
                        num1 = (int)num3 * -776737556 ^ -505458164;
                        continue;

                    case 2:
                        goto label_10;

                    case 4:
                        num1 = (int)num3 * -1126050596 ^ -336645759;
                        continue;

                    case 5:
                        num1 = (int)num3 * -1522604402 ^ 108854222;
                        continue;

                    default:
                        goto label_16;
                    }
                }
            }
label_16:
            return(license);
        }