forked from ncldavies/CyberAIO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathClass26.cs
88 lines (79 loc) · 2.26 KB
/
Class26.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
using System;
using System.Runtime.InteropServices;
using System.Security;
// Token: 0x02000033 RID: 51
internal sealed class Class26 : Interface0, IDisposable
{
// Token: 0x0600013E RID: 318 RVA: 0x000038E0 File Offset: 0x00001AE0
public int imethod_0()
{
return this.secureString_0.Length;
}
// Token: 0x0600013F RID: 319 RVA: 0x000038ED File Offset: 0x00001AED
public Interface0 imethod_4()
{
return new Class26();
}
// Token: 0x06000140 RID: 320 RVA: 0x0000F3D4 File Offset: 0x0000D5D4
public void imethod_1(int int_0, out byte byte_0)
{
if (int_0 >= 0 && int_0 < this.imethod_0())
{
IntPtr intPtr = IntPtr.Zero;
char char_ = '\0';
try
{
intPtr = Marshal.SecureStringToGlobalAllocUnicode(this.secureString_0);
char_ = (char)Marshal.ReadInt16(intPtr, int_0 * 2);
byte_0 = Class26.smethod_1(char_, int_0);
return;
}
finally
{
Class174.smethod_3(ref char_);
if (intPtr != IntPtr.Zero)
{
Marshal.ZeroFreeGlobalAllocUnicode(intPtr);
}
}
}
throw new ArgumentOutOfRangeException();
}
// Token: 0x06000141 RID: 321 RVA: 0x0000F44C File Offset: 0x0000D64C
public void imethod_2(int int_0, ref byte byte_0)
{
for (int i = this.secureString_0.Length; i <= int_0; i++)
{
if (i == int_0)
{
this.secureString_0.AppendChar(Class26.smethod_0(byte_0, i));
return;
}
this.secureString_0.AppendChar(Class26.smethod_0(0, i));
}
this.secureString_0.SetAt(int_0, Class26.smethod_0(byte_0, int_0));
}
// Token: 0x06000142 RID: 322 RVA: 0x000038F4 File Offset: 0x00001AF4
private static char smethod_0(byte byte_0, int int_0)
{
return (char)(byte_0 + 1);
}
// Token: 0x06000143 RID: 323 RVA: 0x000038FA File Offset: 0x00001AFA
private static byte smethod_1(char char_0, int int_0)
{
return (byte)(char_0 - '\u0001');
}
// Token: 0x06000144 RID: 324 RVA: 0x00003900 File Offset: 0x00001B00
public void imethod_3()
{
this.secureString_0.Clear();
}
// Token: 0x06000145 RID: 325 RVA: 0x0000390D File Offset: 0x00001B0D
public void Dispose()
{
this.secureString_0.Dispose();
this.secureString_0 = null;
}
// Token: 0x040000A4 RID: 164
private SecureString secureString_0 = new SecureString();
}