private string getStringFromRVA(byte[] array, ulong RVA, PEStructs.Section_Data_Header section) { StringBuilder sb = new StringBuilder(); for (ulong i = getFileoffsetFromRVA(RVA, section); array[i] != 0; i++) { sb.Append((char)array[i]); } return(sb.ToString()); }
private ulong getFileoffsetFromRVA(ulong RVA, PEStructs.Section_Data_Header section) { return(RVA - section.VirtualAddress + section.PointerToRawData); }