code: def trim(self):
          
  
          overlay_data_offset = self.get_overlay_data_start_offset()
  
          if overlay_data_offset is not None:
              return self.__data__[ : overlay_data_offset ]
  
          return self.__data__[:]
docs: Return the just data defined by the PE headers, removing any overlayed data.