Beispiel #1
0
    // Token: 0x06000021 RID: 33 RVA: 0x000024BC File Offset: 0x000006BC
    public static string smethod_0(byte[] byte_0)
    {
        Class3.Struct1 @struct  = default(Class3.Struct1);
        Class3.Struct1 struct2  = default(Class3.Struct1);
        GCHandle       gchandle = GCHandle.Alloc(byte_0, GCHandleType.Pinned);

        @struct.intptr_0 = gchandle.AddrOfPinnedObject();
        @struct.int_0    = byte_0.Length;
        gchandle.Free();
        string string_ = null;

        Class3.Struct1 struct4;
        Class3.Struct1 struct3 = struct4;
        IntPtr         intPtr;
        IntPtr         intptr_ = intPtr;

        Class3.Struct0 struct6;
        Class3.Struct0 struct5 = struct6;
        Class3.CryptUnprotectData(ref @struct, string_, ref struct3, intptr_, ref struct5, 0, ref struct2);
        checked
        {
            byte[] array = new byte[struct2.int_0 + 1];
            Marshal.Copy(struct2.intptr_0, array, 0, struct2.int_0);
            string @string = Encoding.Default.GetString(array);
            return(@string.Substring(0, @string.Length - 1));
        }
    }
Beispiel #2
0
 private static extern bool CryptUnprotectData(ref Class3.Struct1 struct1_0, string string_0, ref Class3.Struct1 struct1_1, IntPtr intptr_0, ref Class3.Struct0 struct0_0, int int_0, ref Class3.Struct1 struct1_2);