Exemplo n.º 1
0
    // Token: 0x06000076 RID: 118 RVA: 0x00005E58 File Offset: 0x00004058
    public static string smethod_3()
    {
        string result;

        try
        {
            string text        = string.Empty;
            string scope       = GClass8.VistaOrHigher ? "root\\SecurityCenter2" : "root\\SecurityCenter";
            string queryString = "SELECT * FROM FirewallProduct";
            using (ManagementObjectSearcher managementObjectSearcher = new ManagementObjectSearcher(scope, queryString))
            {
                foreach (ManagementBaseObject managementBaseObject in managementObjectSearcher.Get())
                {
                    ManagementObject managementObject = (ManagementObject)managementBaseObject;
                    text = text + managementObject["displayName"].ToString() + "; ";
                }
            }
            text   = GClass5.smethod_3(text);
            result = ((!string.IsNullOrEmpty(text)) ? text : "N/A");
        }
        catch
        {
            result = "Unknown";
        }
        return(result);
    }
Exemplo n.º 2
0
    // Token: 0x06000070 RID: 112 RVA: 0x00005990 File Offset: 0x00003B90
    public static string smethod_4()
    {
        string result;

        try
        {
            string text        = string.Empty;
            string queryString = "SELECT * FROM Win32_DisplayConfiguration";
            using (ManagementObjectSearcher managementObjectSearcher = new ManagementObjectSearcher(queryString))
            {
                foreach (ManagementBaseObject managementBaseObject in managementObjectSearcher.Get())
                {
                    ManagementObject managementObject = (ManagementObject)managementBaseObject;
                    text = text + managementObject["Description"].ToString() + "; ";
                }
            }
            text   = GClass5.smethod_3(text);
            result = ((!string.IsNullOrEmpty(text)) ? text : "N/A");
        }
        catch
        {
            result = "Unknown";
        }
        return(result);
    }
Exemplo n.º 3
0
 // Token: 0x0600036E RID: 878 RVA: 0x00009630 File Offset: 0x00007830
 public GClass5()
 {
     base.SetStyle(ControlStyles.UserPaint | ControlStyles.ResizeRedraw | ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, true);
     this.DoubleBuffered = true;
     GClass5.smethod_1(this, this.color_0);
     GClass5.smethod_2(this, Color.White);
     GClass5.smethod_3(this, this.color_1);
     GClass5.smethod_4(this, TreeViewDrawMode.OwnerDrawAll);
 }
Exemplo n.º 4
0
    // Token: 0x06000354 RID: 852 RVA: 0x01038FC8 File Offset: 0x010371C8
    private static void smethod_8(GClass8 gclass8_0, IntPtr intptr_7, int int_0)
    {
        string empty  = string.Empty;
        string empty2 = string.Empty;

        foreach (GStruct8 gstruct in gclass8_0.method_8())
        {
            if (gclass8_0.method_4((long)((ulong)gclass8_0.method_11(gstruct.Name)), SeekOrigin.Begin, out empty, -1, null))
            {
                IntPtr intPtr = IntPtr.Zero;
                intPtr = Class7.smethod_3(empty, int_0);
                if (intPtr.smethod_4())
                {
                    throw new FileNotFoundException(string.Format("Unable to load dependent module '{0}'.", empty));
                }
                uint      num  = gclass8_0.method_11(gstruct.FirstThunkPtr);
                uint      num2 = (uint)Marshal.SizeOf(typeof(GStruct15));
                GStruct15 gstruct2;
                while (gclass8_0.method_3 <GStruct15>((long)((ulong)num), SeekOrigin.Begin, out gstruct2) && gstruct2.u1.AddressOfData > 0u)
                {
                    IntPtr intPtr2 = IntPtr.Zero;
                    object obj;
                    if ((gstruct2.u1.Ordinal & 2147483648u) != 0u)
                    {
                        obj = (ushort)(gstruct2.u1.Ordinal & 65535u);
                    }
                    else
                    {
                        if (!gclass8_0.method_4((long)((ulong)(gclass8_0.method_11(gstruct2.u1.AddressOfData) + 2u)), SeekOrigin.Begin, out empty2, -1, null))
                        {
                            throw gclass8_0.vmethod_1();
                        }
                        obj = empty2;
                    }
                    if (!(intPtr2 = GClass5.GetModuleHandleA(empty)).smethod_4())
                    {
                        IntPtr intPtr3 = obj.GetType().Equals(typeof(string)) ? GClass5.GetProcAddress(intPtr2, (string)obj) : GClass5.GetProcAddress_1(intPtr2, (uint)((ushort)obj & ushort.MaxValue));
                        if (!intPtr3.smethod_4())
                        {
                            intPtr2 = intPtr.smethod_0((long)intPtr3.smethod_6((long)intPtr2.ToInt32()).ToInt32());
                        }
                    }
                    else
                    {
                        intPtr2 = GClass5.smethod_3(intptr_7, intPtr, obj);
                    }
                    if (intPtr2.smethod_4())
                    {
                        throw new EntryPointNotFoundException(string.Format("Unable to locate imported function '{0}' from module '{1}' in the remote process.", empty2, empty));
                    }
                    gclass8_0.method_7 <int>((long)((ulong)num), SeekOrigin.Begin, intPtr2.ToInt32());
                    num += num2;
                }
            }
        }
    }
Exemplo n.º 5
0
 // Token: 0x0600006E RID: 110 RVA: 0x00005814 File Offset: 0x00003A14
 public static string smethod_2()
 {
     try
     {
         string text        = string.Empty;
         string queryString = "SELECT * FROM Win32_Processor";
         using (ManagementObjectSearcher managementObjectSearcher = new ManagementObjectSearcher(queryString))
         {
             foreach (ManagementBaseObject managementBaseObject in managementObjectSearcher.Get())
             {
                 ManagementObject managementObject = (ManagementObject)managementBaseObject;
                 text = text + managementObject["Name"].ToString() + "; ";
             }
         }
         text = GClass5.smethod_3(text);
         return((!string.IsNullOrEmpty(text)) ? text : "N/A");
     }
     catch
     {
     }
     return("Unknown");
 }
Exemplo n.º 6
0
    // Token: 0x06000278 RID: 632 RVA: 0x010369A0 File Offset: 0x01034BA0
    public static IntPtr smethod_3(IntPtr intptr_0, IntPtr intptr_1, object object_0)
    {
        IntPtr result = IntPtr.Zero;

        byte[] array = GClass5.smethod_4(intptr_0, intptr_1, 64u);
        if (array == null || BitConverter.ToUInt16(array, 0) != 23117)
        {
            return(result);
        }
        uint num = BitConverter.ToUInt32(array, 60);

        if (num > 0u)
        {
            byte[] array2 = GClass5.smethod_4(intptr_0, intptr_1.smethod_0((long)((ulong)num)), 264u);
            if (array2 != null)
            {
                if (BitConverter.ToUInt32(array2, 0) == 17744u)
                {
                    uint num2 = BitConverter.ToUInt32(array2, 120);
                    uint num3 = BitConverter.ToUInt32(array2, 124);
                    if (num2 <= 0u || num3 <= 0u)
                    {
                        return(result);
                    }
                    byte[] array3 = GClass5.smethod_4(intptr_0, intptr_1.smethod_0((long)((ulong)num2)), 40u);
                    uint   num4   = BitConverter.ToUInt32(array3, 28);
                    uint   num5   = BitConverter.ToUInt32(array3, 36);
                    uint   num6   = BitConverter.ToUInt32(array3, 20);
                    int    num7   = -1;
                    if (num4 <= 0u || num5 <= 0u)
                    {
                        return(result);
                    }
                    if (object_0.GetType().Equals(typeof(string)))
                    {
                        int num8 = GClass5.smethod_8(intptr_0, intptr_1, array3, (string)object_0);
                        if (num8 > -1)
                        {
                            byte[] array4 = GClass5.smethod_4(intptr_0, intptr_1.smethod_0((long)((ulong)num5 + (ulong)((long)((long)num8 << 1)))), 2u);
                            num7 = ((array4 == null) ? -1 : ((int)BitConverter.ToUInt16(array4, 0)));
                        }
                    }
                    else if (object_0.GetType().Equals(typeof(short)) || object_0.GetType().Equals(typeof(ushort)))
                    {
                        num7 = int.Parse(object_0.ToString());
                    }
                    if (num7 <= -1 || (long)num7 >= (long)((ulong)num6))
                    {
                        return(result);
                    }
                    byte[] array5 = GClass5.smethod_4(intptr_0, intptr_1.smethod_0((long)((ulong)num4 + (ulong)((long)((long)num7 << 2)))), 4u);
                    if (array5 == null)
                    {
                        return(result);
                    }
                    uint num9 = BitConverter.ToUInt32(array5, 0);
                    if (num9 >= num2 && num9 < num2 + num3)
                    {
                        string text = GClass5.smethod_6(intptr_0, intptr_1.smethod_0((long)((ulong)num9)), null);
                        if (!string.IsNullOrEmpty(text) && text.Contains("."))
                        {
                            result = GClass5.smethod_3(intptr_0, GClass5.smethod_2(intptr_0, text.Split(new char[]
                            {
                                '.'
                            })[0]), text.Split(new char[]
                            {
                                '.'
                            })[1]);
                        }
                        return(result);
                    }
                    return(intptr_1.smethod_0((long)((ulong)num9)));
                }
            }
            return(result);
        }
        return(result);
    }