Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NexonInc.
- KruIn7inc
- UrktnIcni
- public static byte[] KEY = Encoding.ASCII.GetBytes("KruIn7inc");
- static public void Encrypt(byte[] Buffer)
- {
- byte Incrementor = Buffer[4];
- int Group = 0;
- int GroupCount = 0;
- for (int i = 5; i < Buffer.Length; i++)
- {
- int keyPoint = ((i - 5) % KEY.Length); // First Stage
- Buffer[i] ^= KEY[keyPoint];
- byte KeyVal = (byte)(Group % 256); // Second Stage
- if (KeyVal != Incrementor)
- {
- Buffer[i] ^= KeyVal;
- }
- Buffer[i] ^= Incrementor; // Third Stage
- GroupCount++;
- if (GroupCount == KEY.Length)
- {
- Group++;
- GroupCount = 0;
- }
- }
- }
- 0000 aa 00 41 0e ad ce ff ce f0 ef e9 a0 f1 f8 9b a2
- 0010 fe df f8 e5 9c fb ed b8 a0 f6 f0 ca f7 ae d6 f8
- 0020 b4 9c fc e5 eb f7 a4 fb c8 a2 aa d5 f4 e1 cd a8
- 0030 e8 ef a2 a0 f8 c4 f1 fd 87 ff e3 c8 c3 e2 99 42
- 0040 de 51 ef 2b
- 0000 aa 00 41 0e ae 9a a8 ca f2 eb bf a3 a1 aa cf f5
- 0010 fa dd fc b3 9f ab bf ec f7 f2 f2 ce a1 ad 86 aa
- 0020 e0 cb f8 e7 ef a1 a7 ab 9a f6 fd d1 f6 e5 9b ab
- 0030 b8 bd f6 f7 fc c6 f5 ab 84 af b1 9c 94 d9 fd 32
- 0040 91 07 59 ba
- 0000 aa 00 41 0e af 9b fe 9a f9 e8 e3 f1 f2 a9 ce a3
- 0010 aa d6 ff ef cd f8 bc ed a1 a2 f9 cd fd ff d5 a9
- 0020 e1 9d a8 ec ec fd f5 f8 99 f7 ab 81 fd e6 c7 f9
- 0030 eb be f7 a1 ac cd f6 f7 d6 fc b2 9d c2 3f 2d 7a
- 0040 bd f6 42 d6
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement