235 lines
10 KiB
C#
235 lines
10 KiB
C#
using System;
|
|
using System.Diagnostics;
|
|
using Cpp2IlInjected;
|
|
using EasyAntiCheat.Client;
|
|
using EasyAntiCheat.Client.ClientAuth;
|
|
using EasyAntiCheat.Client.Hydra;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.AntiCheat
|
|
{
|
|
// Token: 0x020021AD RID: 8621
|
|
[Token(Token = "0x20021AD")]
|
|
public class EACManager : MonoBehaviour, MKBCBCGJHEK
|
|
{
|
|
// Token: 0x0600DD17 RID: 56599 RVA: 0x00334B00 File Offset: 0x00332D00
|
|
[Token(Token = "0x600DD17")]
|
|
[Address(RVA = "0x9D9FF0", Offset = "0x9D8DF0", VA = "0x1809D9FF0")]
|
|
public static string GenerateChallengeResponse(string DHBEAPFFAMK)
|
|
{
|
|
byte[] array = Convert.FromBase64String(DHBEAPFFAMK);
|
|
byte[] array2 = new byte[128];
|
|
EACManager.PALLBAHEKAP.WriteChallengeResponse(array, array2);
|
|
return Convert.ToBase64String(array2);
|
|
}
|
|
|
|
// Token: 0x0600DD18 RID: 56600 RVA: 0x00334B44 File Offset: 0x00332D44
|
|
[Token(Token = "0x600DD18")]
|
|
[Address(RVA = "0x9DA140", Offset = "0x9D8F40", VA = "0x1809DA140")]
|
|
private static void MANCCEICLJE(MIGIOPECPAG.FOPBFGONPKC AJNGCKJHBMO)
|
|
{
|
|
if (Runtime.IsActive())
|
|
{
|
|
byte[] ngpmadfhhkp = AJNGCKJHBMO.NGPMADFHHKP;
|
|
int length = ngpmadfhhkp.Length;
|
|
Runtime.PushNetworkMessage(ngpmadfhhkp, length);
|
|
return;
|
|
}
|
|
global::UnityEngine.Debug.LogError("EAC runtime inactive");
|
|
}
|
|
|
|
// Token: 0x0600DD19 RID: 56601 RVA: 0x00334B84 File Offset: 0x00332D84
|
|
[Token(Token = "0x600DD19")]
|
|
[Address(RVA = "0x9D9D30", Offset = "0x9D8B30", VA = "0x1809D9D30")]
|
|
private static bool EHNLGOOHNFA()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600DD19)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean RecRoom.AntiCheat.EACManager::EHNLGOOHNFA()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_70:
|
|
call:void(Debug::Log, ldstr:string[exp:object]("EAC runtime inactive"))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x0600DD1A RID: 56602 RVA: 0x00334C10 File Offset: 0x00332E10
|
|
[Token(Token = "0x600DD1A")]
|
|
[Address(RVA = "0x9DA7B0", Offset = "0x9D95B0", VA = "0x1809DA7B0")]
|
|
private static void PBIJEPGHKIB()
|
|
{
|
|
global::UnityEngine.Debug.Log("[EAC] Tearing down and releasing runtime");
|
|
Runtime.Release();
|
|
}
|
|
|
|
// Token: 0x0600DD1B RID: 56603 RVA: 0x00334C30 File Offset: 0x00332E30
|
|
[Token(Token = "0x600DD1B")]
|
|
[Address(RVA = "0x9DA530", Offset = "0x9D9330", VA = "0x1809DA530")]
|
|
private static void OBCKDFPPIFL(object KHLHONFFPMH, LoadProgressEventArgs JCBEOPOJKBD)
|
|
{
|
|
object[] array = new object[1];
|
|
int <Progress>k__BackingField = JCBEOPOJKBD.<Progress>k__BackingField;
|
|
if (array != 0)
|
|
{
|
|
}
|
|
array[0] = array;
|
|
global::UnityEngine.Debug.LogFormat("[EAC] OnLoadProgress() :: {0}%", array);
|
|
}
|
|
|
|
// Token: 0x0600DD1C RID: 56604 RVA: 0x00334C68 File Offset: 0x00332E68
|
|
[Token(Token = "0x600DD1C")]
|
|
[Address(RVA = "0x9DA390", Offset = "0x9D9190", VA = "0x1809DA390")]
|
|
private static void NKGFIJFCCEP(object KHLHONFFPMH, LoadCompletedEventArgs JCBEOPOJKBD)
|
|
{
|
|
if (JCBEOPOJKBD.<Status>k__BackingField <= LoadResult.InitCancelRequested)
|
|
{
|
|
object[] array = new object[1];
|
|
string <Message>k__BackingField = JCBEOPOJKBD.<Message>k__BackingField;
|
|
throw new ArrayTypeMismatchException();
|
|
}
|
|
object[] array2 = new object[1];
|
|
string <Message>k__BackingField2 = JCBEOPOJKBD.<Message>k__BackingField;
|
|
if (<Message>k__BackingField2 != 0)
|
|
{
|
|
}
|
|
array2[0] = <Message>k__BackingField2;
|
|
global::UnityEngine.Debug.LogFormat("[EAC] OnLoadCompleted() :: ERROR: {0}", array2);
|
|
}
|
|
|
|
// Token: 0x0600DD1D RID: 56605 RVA: 0x00334CD8 File Offset: 0x00332ED8
|
|
[Token(Token = "0x600DD1D")]
|
|
[Address(RVA = "0x9DA210", Offset = "0x9D9010", VA = "0x1809DA210")]
|
|
private static void MPNJCGHLGKD(object KHLHONFFPMH, StateChangedEventArgs JCBEOPOJKBD)
|
|
{
|
|
if (JCBEOPOJKBD.<Type>k__BackingField != StateChangeType.Integrity)
|
|
{
|
|
object[] array = new object[2];
|
|
StateChangeType <Type>k__BackingField = JCBEOPOJKBD.<Type>k__BackingField;
|
|
if (array != 0)
|
|
{
|
|
}
|
|
array[0] = array;
|
|
string <Message>k__BackingField = JCBEOPOJKBD.<Message>k__BackingField;
|
|
if (<Message>k__BackingField != 0)
|
|
{
|
|
}
|
|
array[1] = <Message>k__BackingField;
|
|
global::UnityEngine.Debug.LogFormat("[EAC] Unhandled game callback :: {0} {1}", array);
|
|
return;
|
|
}
|
|
Process.GetCurrentProcess().Kill();
|
|
}
|
|
|
|
// Token: 0x0600DD1E RID: 56606 RVA: 0x00334D3C File Offset: 0x00332F3C
|
|
[Token(Token = "0x600DD1E")]
|
|
[Address(RVA = "0x9DA930", Offset = "0x9D9730", VA = "0x1809DA930")]
|
|
protected void Start()
|
|
{
|
|
Runtime.ConnectionReset();
|
|
EACManager.PONKLLODMEN = EACManager.EHNLGOOHNFA();
|
|
OKNNKFGFODL djbdakdckkh = KKPBCOOONNK.DJBDAKDCKKH;
|
|
Action action = new Action(this.GCAIMGAHPFD);
|
|
KKPBCOOONNK.DJBDAKDCKKH = OKNNKFGFODL.BPJDFPACLMK(djbdakdckkh, action);
|
|
KKPBCOOONNK.DODOAGOFDGL = this;
|
|
}
|
|
|
|
// Token: 0x0600DD1F RID: 56607 RVA: 0x00334D84 File Offset: 0x00332F84
|
|
[Token(Token = "0x600DD1F")]
|
|
[Address(RVA = "0x9DAA90", Offset = "0x9D9890", VA = "0x1809DAA90")]
|
|
protected void Update()
|
|
{
|
|
int num = 0;
|
|
if (Runtime.IsActive())
|
|
{
|
|
if (Runtime.PopNetworkMessage(num, num))
|
|
{
|
|
byte[] array = new byte[num];
|
|
Array.Copy(num, array, num);
|
|
KKPBCOOONNK.BFECLLNJKAM(array);
|
|
}
|
|
Runtime.PollStatus();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600DD20 RID: 56608 RVA: 0x00334DC4 File Offset: 0x00332FC4
|
|
[Token(Token = "0x600DD20")]
|
|
[Address(RVA = "0x9DA6D0", Offset = "0x9D94D0", VA = "0x1809DA6D0")]
|
|
protected void OnDestroy()
|
|
{
|
|
OKNNKFGFODL djbdakdckkh = KKPBCOOONNK.DJBDAKDCKKH;
|
|
Action action = new Action(this.GCAIMGAHPFD);
|
|
KKPBCOOONNK.DJBDAKDCKKH = OKNNKFGFODL.GMNMHGMFGOL(djbdakdckkh, action);
|
|
}
|
|
|
|
// Token: 0x0600DD21 RID: 56609 RVA: 0x00334DF0 File Offset: 0x00332FF0
|
|
[Token(Token = "0x600DD21")]
|
|
[Address(RVA = "0x9DA620", Offset = "0x9D9420", VA = "0x1809DA620")]
|
|
protected void OnApplicationQuit()
|
|
{
|
|
global::UnityEngine.Debug.Log("[EAC] Tearing down and releasing runtime");
|
|
Runtime.Release();
|
|
}
|
|
|
|
// Token: 0x0600DD22 RID: 56610 RVA: 0x00334E10 File Offset: 0x00333010
|
|
[Token(Token = "0x600DD22")]
|
|
[Address(RVA = "0x9D9FA0", Offset = "0x9D8DA0", VA = "0x1809D9FA0")]
|
|
private void GCAIMGAHPFD()
|
|
{
|
|
Runtime.ConnectionReset();
|
|
}
|
|
|
|
// Token: 0x0600DD23 RID: 56611 RVA: 0x00334E24 File Offset: 0x00333024
|
|
[Token(Token = "0x600DD23")]
|
|
[Address(RVA = "0x9DA830", Offset = "0x9D9630", VA = "0x1809DA830", Slot = "4")]
|
|
public void PushNetworkMessage(MIGIOPECPAG.FOPBFGONPKC AJNGCKJHBMO)
|
|
{
|
|
if (Runtime.IsActive())
|
|
{
|
|
byte[] ngpmadfhhkp = AJNGCKJHBMO.NGPMADFHHKP;
|
|
int length = ngpmadfhhkp.Length;
|
|
Runtime.PushNetworkMessage(ngpmadfhhkp, length);
|
|
return;
|
|
}
|
|
global::UnityEngine.Debug.LogError("EAC runtime inactive");
|
|
}
|
|
|
|
// Token: 0x0600DD24 RID: 56612 RVA: 0x00334E64 File Offset: 0x00333064
|
|
[Token(Token = "0x600DD24")]
|
|
[Address(RVA = "0x74EA40", Offset = "0x74D840", VA = "0x18074EA40")]
|
|
public EACManager()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0600DD25 RID: 56613 RVA: 0x0000220F File Offset: 0x0000040F
|
|
// Note: this type is marked as 'beforefieldinit'.
|
|
[Token(Token = "0x600DD25")]
|
|
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080")]
|
|
static EACManager()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x04009031 RID: 36913
|
|
[Token(Token = "0x4009031")]
|
|
private static ClientAuth PALLBAHEKAP;
|
|
|
|
// Token: 0x04009032 RID: 36914
|
|
[Token(Token = "0x4009032")]
|
|
private static bool PONKLLODMEN;
|
|
}
|
|
}
|