Ejemplo n.º 1
0
 /// <summary>
 /// Update the PE header directories by setting up the exception directory to point to the runtime functions table.
 /// This is needed for RtlLookupFunctionEntry / RtlLookupFunctionTable to work.
 /// </summary>
 /// <param name="builder">PE header directory builder can be used to override RVA's / sizes of any of the directories</param>
 private void UpdateDirectories(PEDirectoriesBuilder builder)
 {
     builder.ExceptionTable = new DirectoryEntry(
         relativeVirtualAddress: _sectionBuilder.GetSymbolRVA(_nodeFactory.RuntimeFunctionsTable),
         size: _nodeFactory.RuntimeFunctionsTable.TableSize);
 }