Dim LastAddress As Long
'Dim AddressOfPE As Long
AddressOfPE = NTHEADER.OptionalHeader.ImageBase
LastAddress = AddressOfPE
For u = 0 To UBound(SECTIONSHEADER)
LastAddressAddressStart = LastAddressAddressOfPE + SECTIONSHEADER(u).VirtualAddress
Debug.Print "(" & u & ") " & SECTIONSHEADER(u).nameSec & "_
Last Address " AddressStart = " & Hex(LastAddressAddressStart) & _
" VirtualAddress = " & Hex(SECTIONSHEADER(u).VirtualAddress) & _
" VirtualSize = " & Hex(SECTIONSHEADER(u).VirtualSize)
& _
" SizeOfRawData = 'Hunt" for& stringsHex(SECTIONSHEADER(u).SizeOfRawData)
'Hunt for strings
If SECTIONSHEADER(u).nameSec = ".rdata" Or SECTIONSHEADER(u).nameSec = ".data" Then
MsgBox "a"
End If
LastAddressAddressEnd = LastAddressAddressStart + SECTIONSHEADER(u).VirtualSizeSizeOfRawData
Debug.Print "(" & u & ") " & SECTIONSHEADER(u).nameSec & "_
Last Address = " & HexAddressEnd(LastAddress?) & " VirtualAddress = " & Hex(SECTIONSHEADER(u).VirtualAddressAddressEnd) & _
" VirtualSizeOllyAddressEnd(?) = " & Hex(SECTIONSHEADER(u).VirtualSizeSizeOfRawData)
Next u
(0) .text Last AddressAddressStart = 401000 VirtualAddress = 1000 VirtualSize = 1FAB3AD SizeOfRawData = 1FAB400
(0) .text Last Address = 23AC3AD VirtualAddressAddressEnd(?) = 100023AC400 VirtualSizeOllyAddressEnd(?) = 1FAB3AD1FAB400
(1) .rdata Last AddressAddressStart = 43593AD23AD000 VirtualAddress = 1FAD000 VirtualSize = 855586 SizeOfRawData = 855600
(1) .rdata Last Address = 4BAE933 VirtualAddressAddressEnd(?) = 1FAD0002C02600 VirtualSizeOllyAddressEnd(?) = 855586855600
(2) .data Last AddressAddressStart = 73B19332C03000 VirtualAddress = 2803000 VirtualSize = 2D045C4 SizeOfRawData = 1DF000
(2) .data Last Address = A0B5EF7 VirtualAddressAddressEnd(?) = 28030002DE2000 VirtualSizeOllyAddressEnd(?) = 2D045C41DF000
(3) .rsrc Last AddressAddressStart = F5BDEF75908000 VirtualAddress = 5508000 VirtualSize = 105CC SizeOfRawData = 10600
(3) .rsrc Last Address = F5CE4C3 VirtualAddressAddressEnd(?) = 55080005918600 VirtualSizeOllyAddressEnd(?) = 105CC10600
Looking at this image seems I got it all right? but the size addresses are still off? .