Esempio n. 1
0
        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());
        }
Esempio n. 2
0
 private ulong getFileoffsetFromRVA(ulong RVA, PEStructs.Section_Data_Header section)
 {
     return(RVA - section.VirtualAddress + section.PointerToRawData);
 }