Home - Forums-.NET - Spices.Net - Obfuscating Portable Library - Error 32 (0x20)


NET code security, tools to protect, obfuscate, tamper defense, code and data safety, recover, convert, optimize, explore, browse and analyze .Net software.

This forum related to following products: Spices.Net Suite, Spices.Net Obfuscator, Spices.Net Decompiler

Obfuscating Portable Library - Error 32 (0x20)
Link Posted: 04-Jun-2015 09:45

I am trying to obfuscate a single portable library using the following command

NRObfuscator.exe NTLIRAUVCSEP#4 /SRC= /OUT= /PATHS="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETPortable\v4.5\Profile\Profile78\\" /KEY= file.

  Can't find reference to mscorlib assembly
  Assembly: NineRays.ILOMD, Type: VH.h[0x02000120], Method: Int32 W(L.L, b.0, System.String)[0x0600078b], ILOffset:0x00000058
  Assembly: NineRays.ILOMD, Type: VH.h[0x02000120], Method: Int32 W(L.L, b.0, \u16s.\u17, System.String, System.String)[0x0600078a], ILOffset:0x000000ff
  Assembly: NineRays.ILOMD, Type: VH.h[0x02000120], Method: Int32 \u16(L.L, \u16s.\u17, b.0, System.String, System.String, System.String, Byte[])[0x06000786], ILOffset:0x00000159
  Assembly: NineRays.ILOMD, Type: VH.h[0x02000120], Method: Void W(L.L, \u16s.\u17, b.0, System.Collections.Hashtable, Boolean, Boolean)[0x0600076e], ILOffset:0x00000699
  Assembly: NineRays.ILOMD, Type: VH.h[0x02000120], Method: 6 W(L.L, \u16s.\u17, Boolean, V5.E)[0x0600078f], ILOffset:0x000000ac
  Assembly: NineRays.ILOMD, Type: VH.h[0x02000120], Method: Void \u16(V5.E, L.L, \u16s.\u17)[0x060007a6], ILOffset:0x00000067
  Assembly: NineRays.ILOMD, Type: VH.h[0x02000120], Method: System.String W(System.String, L.L, \u16s.\u17, Boolean, Boolean)[0x0600079c], ILOffset:0x00000050
  Assembly: NineRays.Obfuscator, Type: NineRays.ILOMD.ILOMDProvider[0x02000007], Method: Boolean Obfuscate(NineRays.ILOMD.Options.Project)[0x06000049], ILOffset:0x0000063e
  Stack trace digest:
  NineRays.ILOMD; 0x0600078b; 0x00000058
  NineRays.ILOMD; 0x0600078a; 0x000000ff
  NineRays.ILOMD; 0x06000786; 0x00000159
  NineRays.ILOMD; 0x0600076e; 0x00000699
  NineRays.ILOMD; 0x0600078f; 0x000000ac
  NineRays.ILOMD; 0x060007a6; 0x00000067
  NineRays.ILOMD; 0x0600079c; 0x00000050
  NineRays.Obfuscator; 0x06000049; 0x0000063e

The mscorlib assembly is indeed in the folder specified in the Paths argument.  A Resolver window is displayed:

Following assembly cannot be resolved:
[System.Object, System.Runtime, Version=, Culture=neutral,PublicKeyToken=b03f5f7f11d50a30]]. System.Collections, Version=,Culture=neutral, PublicKeyToken=b03f5f7f11d50a30

[Note: This is *exactly* what the window displays].  Clicking Browse searches for a file named "[System.Object.dll"?  I have selected mscorlib from the Paths folder - but nothing seems to get me past this error?

Please help.
Kind Regards
Link Posted: 04-Jun-2015 09:54
mscorlib on this path just stub (size 30kb)
Try to use following path instead yours: C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5
This path contains "real" mscorlib
Link Posted: 04-Jun-2015 23:11
Changed paths:

/PATHS="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETPortable\v4.5\Profile\Profile78\;C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\"

Swopped these paths around, and removed the Portable path - exactly the same result - still looking for some System.Object.dll?

P.S. 9Rays.Spices.obfuscator.Net Console
Link Posted: 05-Jun-2015 05:39
System.Object, System.Runtime, Version=

Spices.Obfuscator couldn't find System.Runtime.dll (from .Net 4.0)
This assembly can be found here, for example:

or here:
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETCore\v4.5\System.Runtime.dll
Link Posted: 05-Jun-2015 06:29
Still the same issue, cannot find mscorlib.dll.  I am happy to send you the assembly?
Link Posted: 05-Jun-2015 07:20
You're trying to apply just one path, but just combine both paths in command line.
Yes, you can send us your assembly, we'll recommend you right paths to obfuscate this assembly.