2025-04-24 12:10:15 +08:00
|
|
|
|
using dnlib.DotNet;
|
|
|
|
|
using dnlib.DotNet.Emit;
|
|
|
|
|
using System;
|
2025-04-24 11:58:22 +08:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
2025-05-04 19:55:10 +08:00
|
|
|
|
namespace Obfuz.ObfusPasses.ExprObfus
|
2025-04-24 11:58:22 +08:00
|
|
|
|
{
|
2025-05-10 18:25:43 +08:00
|
|
|
|
public class ExprObfusPass : InstructionObfuscationPassBase
|
2025-04-24 11:58:22 +08:00
|
|
|
|
{
|
2025-05-12 22:01:35 +08:00
|
|
|
|
public override ObfuscationPassType Type => ObfuscationPassType.ExprObfus;
|
2025-04-24 11:58:22 +08:00
|
|
|
|
|
2025-05-04 19:24:14 +08:00
|
|
|
|
public override void Start(ObfuscationPassContext ctx)
|
2025-04-24 11:58:22 +08:00
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2025-05-04 19:24:14 +08:00
|
|
|
|
public override void Stop(ObfuscationPassContext ctx)
|
2025-04-24 11:58:22 +08:00
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
2025-04-24 12:10:15 +08:00
|
|
|
|
|
|
|
|
|
protected override bool NeedObfuscateMethod(MethodDef method)
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override bool TryObfuscateInstruction(MethodDef callingMethod, Instruction inst, IList<Instruction> instructions, int instructionIndex, List<Instruction> outputInstructions, List<Instruction> totalFinalInstructions)
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
2025-04-24 11:58:22 +08:00
|
|
|
|
}
|
|
|
|
|
}
|