Regasm.exe

type: OSBinaries
Part of .NET

Full path

C:\Windows\Microsoft.NET\Framework\v2.0.50727\regasm.exe
C:\Windows\Microsoft.NET\Framework64\v2.0.50727\regasm.exe
C:\Windows\Microsoft.NET\Framework\v4.0.30319\regasm.exe
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\regasm.exe

Commands

  1. AWL BypassLocal Admin T1218.009

    Execute code and bypass Application whitelisting

    regasm.exe {PATH:.dll}

    Loads the target .NET DLL file and executes the RegisterClass function.

    os: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11

    Execute: DLL (.NET)

  2. ExecuteUser T1218.009

    Execute code and bypass Application whitelisting

    regasm.exe /U {PATH:.dll}

    Loads the target .DLL file and executes the UnRegisterClass function.

    os: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11

    Execute: DLL (.NET)

Detection

Resources

acknowledgement: Casey Smith @subtee