forked from dethunter12/DevPack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Decoder.cs
38 lines (34 loc) · 1.01 KB
/
Decoder.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
// Decompiled with JetBrains decompiler
// Type: LcDevPack_TeamDamonA.Decoder
// Assembly: LcDevPack_TeamDamonA, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 6B9BC8BF-B510-4945-A515-04135CC0F4A4
// Assembly location: C:\Users\NTServer\Desktop\LcDevPack_TeamDamonA\LcDevPack_TeamDamonA\LcDevPack_TeamDamonA.exe
using System;
namespace LcDevPack_TeamDamonA
{
public class Decoder
{
private static byte[] XorCode;
public static uint Decode(uint Code)
{
byte[] numArray = new byte[4];
byte[] bytes = BitConverter.GetBytes(Code);
for (int index = 0; index < 4; ++index)
{
bytes[index] = (byte) ((uint) bytes[index] ^ (uint) Decoder.XorCode[index]);
Decoder.XorCode[index] = (byte) ((uint) Decoder.XorCode[index] + 89U);
}
return BitConverter.ToUInt32(bytes, 0);
}
public static void Reset()
{
Decoder.XorCode = new byte[4]
{
(byte) 101,
(byte) 72,
(byte) 53,
(byte) 30
};
}
}
}