Advertisement
Guest User

Untitled

a guest
Feb 7th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. NexonInc.
  2. KruIn7inc
  3.  
  4. UrktnIcni
  5.  
  6. public static byte[] KEY = Encoding.ASCII.GetBytes("KruIn7inc");
  7.  
  8. static public void Encrypt(byte[] Buffer)
  9. {
  10. byte Incrementor = Buffer[4];
  11.  
  12. int Group = 0;
  13. int GroupCount = 0;
  14. for (int i = 5; i < Buffer.Length; i++)
  15. {
  16. int keyPoint = ((i - 5) % KEY.Length); // First Stage
  17. Buffer[i] ^= KEY[keyPoint];
  18.  
  19. byte KeyVal = (byte)(Group % 256); // Second Stage
  20. if (KeyVal != Incrementor)
  21. {
  22. Buffer[i] ^= KeyVal;
  23. }
  24.  
  25. Buffer[i] ^= Incrementor; // Third Stage
  26.  
  27. GroupCount++;
  28. if (GroupCount == KEY.Length)
  29. {
  30. Group++;
  31. GroupCount = 0;
  32. }
  33. }
  34. }
  35.  
  36. 0000 aa 00 41 0e ad ce ff ce f0 ef e9 a0 f1 f8 9b a2
  37. 0010 fe df f8 e5 9c fb ed b8 a0 f6 f0 ca f7 ae d6 f8
  38. 0020 b4 9c fc e5 eb f7 a4 fb c8 a2 aa d5 f4 e1 cd a8
  39. 0030 e8 ef a2 a0 f8 c4 f1 fd 87 ff e3 c8 c3 e2 99 42
  40. 0040 de 51 ef 2b
  41.  
  42. 0000 aa 00 41 0e ae 9a a8 ca f2 eb bf a3 a1 aa cf f5
  43. 0010 fa dd fc b3 9f ab bf ec f7 f2 f2 ce a1 ad 86 aa
  44. 0020 e0 cb f8 e7 ef a1 a7 ab 9a f6 fd d1 f6 e5 9b ab
  45. 0030 b8 bd f6 f7 fc c6 f5 ab 84 af b1 9c 94 d9 fd 32
  46. 0040 91 07 59 ba
  47.  
  48. 0000 aa 00 41 0e af 9b fe 9a f9 e8 e3 f1 f2 a9 ce a3
  49. 0010 aa d6 ff ef cd f8 bc ed a1 a2 f9 cd fd ff d5 a9
  50. 0020 e1 9d a8 ec ec fd f5 f8 99 f7 ab 81 fd e6 c7 f9
  51. 0030 eb be f7 a1 ac cd f6 f7 d6 fc b2 9d c2 3f 2d 7a
  52. 0040 bd f6 42 d6
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement