Example #1
0
 // Token: 0x06000011 RID: 17 RVA: 0x00002B7C File Offset: 0x00000D7C
 public static string MouseGame3(string str)
 {
     byte[] array = CatAndMouseGame.MouseHomeMain(Convert.FromBase64String(str), CatAndMouseGame.stageData, CatAndMouseGame.stageTop, true);
     if (array == null)
     {
         return(null);
     }
     for (int i = 0; i < array.Length; i++)
     {
         array[i] = (byte)~array[i];
     }
     return(Encoding.UTF8.GetString(array).TrimEnd(new char[1]));
 }
Example #2
0
        // Token: 0x06000012 RID: 18 RVA: 0x00002BD4 File Offset: 0x00000DD4
        public static byte[] MouseGame4(byte[] data)
        {
            byte[] array = CatAndMouseGame.MouseHomeMain(data, CatAndMouseGame.baseData, CatAndMouseGame.baseTop, false);
            if (array == null)
            {
                return(null);
            }
            int num = 0;

            while (num < array.Length && num + 1 < data.Length)
            {
                byte b  = array[num];
                byte b2 = array[num + 1];
                array[num]     = (byte)(b2 ^ 210);
                array[num + 1] = (byte)(b ^ 206);
                num           += 2;
            }
            return(array);
        }