From 910b229ac23787a74cdd24046ec42f4d913a7f84 Mon Sep 17 00:00:00 2001 From: Melissa Eckardt Date: Mon, 5 Oct 2026 16:08:20 +0200 Subject: [PATCH] Agile .NET: Fix exception during detection (closes #42) --- de4dot.code/deobfuscators/Agile_NET/ProxyCallFixer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/de4dot.code/deobfuscators/Agile_NET/ProxyCallFixer.cs b/de4dot.code/deobfuscators/Agile_NET/ProxyCallFixer.cs index 930c3420b..c86606188 100644 --- a/de4dot.code/deobfuscators/Agile_NET/ProxyCallFixer.cs +++ b/de4dot.code/deobfuscators/Agile_NET/ProxyCallFixer.cs @@ -43,7 +43,7 @@ public void FindDelegateCreator() { return; } // Sometimes, the method name is different. - if (method.IsStatic && !method.IsStaticConstructor && DotNetUtils.IsMethod(method, "System.Void", "(System.Int32)")) { + if (method.IsStatic && method.HasBody && !method.IsStaticConstructor && DotNetUtils.IsMethod(method, "System.Void", "(System.Int32)")) { var instrs = DotNetUtils.GetInstructions(method.Body.Instructions, 0, OpCodes.Ldsflda, OpCodes.Ldc_I4, OpCodes.Ldarg_0, OpCodes.Add, OpCodes.Call, OpCodes.Call); if (instrs != null && instrs[1].GetLdcI4Value() == 0x2000001