Could use section.contains_rva?(pe.hdr.opt.AddressOfEntryPoint) as well