forked from aly/qstbak
muffin v7.5.11
This commit is contained in:
parent
addf2d530f
commit
3102923ce2
522 changed files with 41082 additions and 211592 deletions
|
|
@ -3,8 +3,6 @@ using System.Collections.Generic;
|
|||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Security.Cryptography;
|
||||
using System.Threading;
|
||||
using Questionable.Model.Gathering;
|
||||
|
|
@ -18,129 +16,26 @@ internal static class AssemblyGatheringLocationLoader
|
|||
|
||||
internal static TimeSpan? DecodeDuration { get; private set; }
|
||||
|
||||
internal static Stream GatheringSchema
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
return _202D_200C_200E_200F_202A_200B_206C_202B_200D_200D_202D_202D_200B_200D_202A_202A_200B_206E_200B_202D_202D_200D_202A_206A_206E_202C_200F_206C_200F_206E_206C_200D_206B_206A_202C_206D_206C_202E_200F_200C_202E(_202A_202D_206A_206D_206A_200D_200F_200D_206E_202D_200C_200D_202A_202C_206F_200C_200C_200B_200D_200F_206F_202A_206A_200F_206E_200B_200E_206C_200E_200D_202C_200B_202D_202C_206C_206E_202A_206E_206D_206B_202E(_200E_202C_200C_200B_206D_206E_202A_206F_206B_202A_202C_200F_206B_202E_206D_206F_202E_202D_200F_206B_206D_206E_206B_206D_206C_200C_200F_202A_202B_200E_206E_202B_200B_202A_202E_202C_200C_202E_206D_202C_202E(typeof(AssemblyGatheringLocationLoader).TypeHandle)), global::_003CModule_003E._202B_200D_206E_200E_206C_206E_206B_200F_202C_202C_202C_206F_202E_202A_202C_206B_206A_200F_206B_206F_202C_206C_202A_202E_202D_206D_202B_200D_200B_202A_206E_200B_206A_206D_202B_206D_206A_202D_206E_206B_202E<string>(657022072));
|
||||
}
|
||||
}
|
||||
internal static Stream GatheringSchema => typeof(AssemblyGatheringLocationLoader).Assembly.GetManifestResourceStream("Questionable.GatheringPaths.GatheringLocationSchema");
|
||||
|
||||
internal static IReadOnlyDictionary<ushort, GatheringRoot> GetLocations()
|
||||
{
|
||||
return Locations.Value;
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
private static IReadOnlyDictionary<ushort, GatheringRoot> LoadLocations()
|
||||
{
|
||||
Stopwatch stopwatch = _202A_202A_202D_206C_206F_200F_206B_200C_200B_202E_206D_200E_206C_206A_200D_202B_202B_206D_200B_200C_200E_202E_202A_206F_206A_206D_206F_202B_206F_200C_206A_202B_206A_202D_206F_206D_202D_206D_202B_202A_202E();
|
||||
Stream stream = _202D_200C_200E_200F_202A_200B_206C_202B_200D_200D_202D_202D_200B_200D_202A_202A_200B_206E_200B_202D_202D_200D_202A_206A_206E_202C_200F_206C_200F_206E_206C_200D_206B_206A_202C_206D_206C_202E_200F_200C_202E(_202A_202D_206A_206D_206A_200D_200F_200D_206E_202D_200C_200D_202A_202C_206F_200C_200C_200B_200D_200F_206F_202A_206A_200F_206E_200B_200E_206C_200E_200D_202C_200B_202D_202C_206C_206E_202A_206E_206D_206B_202E(_200E_202C_200C_200B_206D_206E_202A_206F_206B_202A_202C_200F_206B_202E_206D_206F_202E_202D_200F_206B_206D_206E_206B_206D_206C_200C_200F_202A_202B_200E_206E_202B_200B_202A_202E_202C_200C_202E_206D_202C_202E(typeof(AssemblyGatheringLocationLoader).TypeHandle)), global::_003CModule_003E._206C_202D_202B_202A_206F_206F_202A_202E_206E_206C_200B_202C_206B_202A_206A_202E_206C_200B_202E_200C_200D_202A_206D_206D_206F_206D_202E_206C_202C_200F_206F_202A_200E_200F_206B_200B_200D_206E_206F_206F_202E<string>(-1881698));
|
||||
try
|
||||
Stopwatch stopwatch = Stopwatch.StartNew();
|
||||
using Stream stream = typeof(AssemblyGatheringLocationLoader).Assembly.GetManifestResourceStream("Questionable.GatheringPaths.GatheringBundle");
|
||||
byte[] array = PathBundleSecret.Key();
|
||||
List<KeyValuePair<string, GatheringRoot>> list = PathBundle.Deserialize<GatheringRoot>(stream, array);
|
||||
CryptographicOperations.ZeroMemory(array);
|
||||
Dictionary<ushort, GatheringRoot> dictionary = new Dictionary<ushort, GatheringRoot>(list.Count);
|
||||
foreach (var (s, value) in list)
|
||||
{
|
||||
byte[] array = PathBundleSecret.Key();
|
||||
List<KeyValuePair<string, GatheringRoot>> list = PathBundle.Deserialize<GatheringRoot>(stream, array);
|
||||
_206E_200D_206E_200B_202D_202E_202D_206C_206B_206F_200E_200E_206D_200D_206F_200C_206B_202B_206B_202D_202C_206B_200B_200B_200C_202C_200E_206F_200D_200C_200F_206E_202C_206E_206E_206F_206C_202A_206A_202E_202E((Span<byte>)array);
|
||||
Dictionary<ushort, GatheringRoot> dictionary = new Dictionary<ushort, GatheringRoot>(list.Count);
|
||||
using (List<KeyValuePair<string, GatheringRoot>>.Enumerator enumerator = list.GetEnumerator())
|
||||
{
|
||||
int num = 2495585;
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 2495585;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 2:
|
||||
num = 2495585;
|
||||
break;
|
||||
case 3:
|
||||
var (s, value) = (KeyValuePair<string, GatheringRoot>)(ref enumerator.Current);
|
||||
dictionary[ushort.Parse(s, _206B_202B_200D_200E_202E_202D_202D_206E_206D_206A_200E_206D_202B_206D_200C_202D_206B_200F_200D_202B_202E_202E_206C_202B_200F_206F_206C_200D_200F_200B_206E_200C_202E_206B_202D_206E_200B_200D_200B_206E_202E())] = value;
|
||||
num = 2495585;
|
||||
break;
|
||||
case 0:
|
||||
num = (enumerator.MoveNext() ? 2495586 : 2495584);
|
||||
break;
|
||||
case 1:
|
||||
goto end_IL_005c;
|
||||
}
|
||||
continue;
|
||||
end_IL_005c:
|
||||
break;
|
||||
}
|
||||
}
|
||||
DecodeDuration = _200C_206E_202D_202A_206D_202C_200B_202E_200C_200F_202D_206B_200B_206A_200C_202B_206F_202C_202E_202A_206F_200C_206D_202A_200F_206C_202D_202A_206C_206A_206A_202D_206E_206C_206E_206A_206A_206E_206F_202B_202E(stopwatch);
|
||||
return dictionary;
|
||||
dictionary[ushort.Parse(s, CultureInfo.InvariantCulture)] = value;
|
||||
}
|
||||
finally
|
||||
{
|
||||
int num = ((stream == null) ? (-1196840161) : (-1196840164));
|
||||
while (true)
|
||||
{
|
||||
int num7 = num;
|
||||
int num3 = -1196840163;
|
||||
int num4 = num7;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 0:
|
||||
num = -1196840164;
|
||||
break;
|
||||
case 1:
|
||||
_202B_202A_200B_200F_206F_206C_206E_200E_206D_202C_202C_202C_206B_206D_202C_206D_202D_200D_200F_202C_206C_202A_202E_202B_206A_200C_202E_202C_202A_206D_206C_202B_206E_206A_202C_206A_202D_202C_202E_200F_202E((IDisposable)stream);
|
||||
num = -1196840161;
|
||||
break;
|
||||
case 2:
|
||||
goto end_IL_0143;
|
||||
}
|
||||
continue;
|
||||
end_IL_0143:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static Type _200E_202C_200C_200B_206D_206E_202A_206F_206B_202A_202C_200F_206B_202E_206D_206F_202E_202D_200F_206B_206D_206E_206B_206D_206C_200C_200F_202A_202B_200E_206E_202B_200B_202A_202E_202C_200C_202E_206D_202C_202E(RuntimeTypeHandle P_0)
|
||||
{
|
||||
return Type.GetTypeFromHandle(P_0);
|
||||
}
|
||||
|
||||
static Assembly _202A_202D_206A_206D_206A_200D_200F_200D_206E_202D_200C_200D_202A_202C_206F_200C_200C_200B_200D_200F_206F_202A_206A_200F_206E_200B_200E_206C_200E_200D_202C_200B_202D_202C_206C_206E_202A_206E_206D_206B_202E(Type P_0)
|
||||
{
|
||||
return P_0.Assembly;
|
||||
}
|
||||
|
||||
static Stream _202D_200C_200E_200F_202A_200B_206C_202B_200D_200D_202D_202D_200B_200D_202A_202A_200B_206E_200B_202D_202D_200D_202A_206A_206E_202C_200F_206C_200F_206E_206C_200D_206B_206A_202C_206D_206C_202E_200F_200C_202E(Assembly P_0, string P_1)
|
||||
{
|
||||
return P_0.GetManifestResourceStream(P_1);
|
||||
}
|
||||
|
||||
static Stopwatch _202A_202A_202D_206C_206F_200F_206B_200C_200B_202E_206D_200E_206C_206A_200D_202B_202B_206D_200B_200C_200E_202E_202A_206F_206A_206D_206F_202B_206F_200C_206A_202B_206A_202D_206F_206D_202D_206D_202B_202A_202E()
|
||||
{
|
||||
return Stopwatch.StartNew();
|
||||
}
|
||||
|
||||
static void _206E_200D_206E_200B_202D_202E_202D_206C_206B_206F_200E_200E_206D_200D_206F_200C_206B_202B_206B_202D_202C_206B_200B_200B_200C_202C_200E_206F_200D_200C_200F_206E_202C_206E_206E_206F_206C_202A_206A_202E_202E(Span<byte> P_0)
|
||||
{
|
||||
CryptographicOperations.ZeroMemory(P_0);
|
||||
}
|
||||
|
||||
static CultureInfo _206B_202B_200D_200E_202E_202D_202D_206E_206D_206A_200E_206D_202B_206D_200C_202D_206B_200F_200D_202B_202E_202E_206C_202B_200F_206F_206C_200D_200F_200B_206E_200C_202E_206B_202D_206E_200B_200D_200B_206E_202E()
|
||||
{
|
||||
return CultureInfo.InvariantCulture;
|
||||
}
|
||||
|
||||
static TimeSpan _200C_206E_202D_202A_206D_202C_200B_202E_200C_200F_202D_206B_200B_206A_200C_202B_206F_202C_202E_202A_206F_200C_206D_202A_200F_206C_202D_202A_206C_206A_206A_202D_206E_206C_206E_206A_206A_206E_206F_202B_202E(Stopwatch P_0)
|
||||
{
|
||||
return P_0.Elapsed;
|
||||
}
|
||||
|
||||
static void _202B_202A_200B_200F_206F_206C_206E_200E_206D_202C_202C_202C_206B_206D_202C_206D_202D_200D_200F_202C_206C_202A_202E_202B_206A_200C_202E_202C_202A_206D_206C_202B_206E_206A_202C_206A_202D_202C_202E_200F_202E(IDisposable P_0)
|
||||
{
|
||||
P_0.Dispose();
|
||||
DecodeDuration = stopwatch.Elapsed;
|
||||
return dictionary;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,64 +1,30 @@
|
|||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Questionable.GatheringPaths;
|
||||
|
||||
internal static class PathBundleSecret
|
||||
{
|
||||
private static readonly byte[] A;
|
||||
private static readonly byte[] A = new byte[32]
|
||||
{
|
||||
145, 72, 249, 36, 189, 185, 130, 238, 193, 10,
|
||||
202, 232, 4, 205, 253, 37, 116, 120, 105, 80,
|
||||
155, 225, 237, 122, 124, 183, 185, 180, 222, 128,
|
||||
163, 58
|
||||
};
|
||||
|
||||
private static readonly byte[] B;
|
||||
private static readonly byte[] B = new byte[32]
|
||||
{
|
||||
38, 241, 153, 134, 236, 129, 153, 181, 53, 177,
|
||||
92, 29, 47, 248, 180, 1, 80, 8, 68, 19,
|
||||
82, 214, 85, 67, 101, 195, 46, 138, 196, 69,
|
||||
206, 117
|
||||
};
|
||||
|
||||
internal static byte[] Key()
|
||||
{
|
||||
byte[] array = new byte[A.Length];
|
||||
int num = 0;
|
||||
int num2 = -1653942217;
|
||||
while (true)
|
||||
for (int i = 0; i < array.Length; i++)
|
||||
{
|
||||
int num3 = num2;
|
||||
int num4 = -1653942219;
|
||||
int num5 = num3;
|
||||
switch ((num5 | num4) - (num5 & num4))
|
||||
{
|
||||
case 3:
|
||||
num2 = -1653942217;
|
||||
break;
|
||||
case 2:
|
||||
num2 = ((num < array.Length) ? (-1653942220) : (-1653942219));
|
||||
break;
|
||||
case 0:
|
||||
return array;
|
||||
case 1:
|
||||
{
|
||||
int num6 = num;
|
||||
byte num7 = A[num];
|
||||
num4 = B[num];
|
||||
num5 = num7;
|
||||
array[num6] = (byte)((num5 | num4) - (num5 & num4));
|
||||
int num8 = num;
|
||||
num4 = 1;
|
||||
num5 = num8;
|
||||
num = (num5 | num4) + (num5 & num4);
|
||||
num2 = -1653942217;
|
||||
break;
|
||||
}
|
||||
}
|
||||
array[i] = (byte)(A[i] ^ B[i]);
|
||||
}
|
||||
}
|
||||
|
||||
static PathBundleSecret()
|
||||
{
|
||||
byte[] array = new byte[32];
|
||||
_200C_200B_206F_200D_202D_200C_200D_202D_206E_206B_202D_206A_206A_206E_206E_200F_200C_202B_206E_202A_200E_200D_202C_202D_202E_202B_200C_206F_206D_206F_202A_206A_206D_200C_206C_202B_206F_200E_202C_206F_202E((Array)array, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/);
|
||||
A = array;
|
||||
byte[] array2 = new byte[32];
|
||||
_200C_200B_206F_200D_202D_200C_200D_202D_206E_206B_202D_206A_206A_206E_206E_200F_200C_202B_206E_202A_200E_200D_202C_202D_202E_202B_200C_206F_206D_206F_202A_206A_206D_200C_206C_202B_206F_200E_202C_206F_202E((Array)array2, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/);
|
||||
B = array2;
|
||||
}
|
||||
|
||||
static void _200C_200B_206F_200D_202D_200C_200D_202D_206E_206B_202D_206A_206A_206E_206E_200F_200C_202B_206E_202A_200E_200D_202C_202D_202E_202B_200C_206F_206D_206F_202A_206A_206D_200C_206C_202B_206F_200E_202C_206F_202E(Array P_0, RuntimeFieldHandle P_1)
|
||||
{
|
||||
RuntimeHelpers.InitializeArray(P_0, P_1);
|
||||
return array;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue