@ Beta public boolean containsEntryPoint ( SectionHeader header ) { long ep = data . getOptionalHeader ( ) . get ( StandardFieldEntryKey . ADDR_OF_ENTRY_POINT ) ; long vStart = header . getAlignedVirtualAddress ( ) ; long vSize = header . getAlignedVirtualSize ( ) ; if ( vSize == 0 ) { vSize = header . getAlignedSizeOfRaw ( ) ; } long vEnd = vSize + vStart ; return ep >= vStart && ep < vEnd ; }
Returns whether the section contains the entry point of the file .