def __init__(self, verbose=False):
        ''' Init method '''

        # Dense feature list: this only functions to ensure that all of these
        #               features get extracted with a sanity check at the end.
        self._dense_feature_list = None
        self._dense_features = None

        # Okay now the sparse fields
        self._sparse_feature_list = None
        self._sparse_features = None

        # Verbose
        self._verbose = verbose

        # Warnings handle
        self._warnings = []

        # Set the features that I'm expected PE File to extract, note this is just
        # for sanity checking, meaning that if you don't get some of these features
        # the processing will spit out warnings for each feature not extracted.
        self.set_dense_features(['check_sum', 'generated_check_sum', 'compile_date', 'debug_size', 'export_size',
                                 'iat_rva', 'major_version', 'minor_version', 'number_of_bound_import_symbols',
                                 'number_of_bound_imports', 'number_of_export_symbols', 'number_of_import_symbols',
                                 'number_of_imports', 'number_of_rva_and_sizes', 'number_of_sections', 'pe_warnings',
                                 'std_section_names', 'total_size_pe', 'virtual_address', 'virtual_size',
                                 'virtual_size_2', 'datadir_IMAGE_DIRECTORY_ENTRY_BASERELOC_size',
                                 'datadir_IMAGE_DIRECTORY_ENTRY_RESOURCE_size',
                                 'datadir_IMAGE_DIRECTORY_ENTRY_IAT_size', 'datadir_IMAGE_DIRECTORY_ENTRY_IMPORT_size',
                                 'pe_char', 'pe_dll', 'pe_driver', 'pe_exe', 'pe_i386', 'pe_majorlink', 
                                 'pe_minorlink', 'sec_entropy_data', 'sec_entropy_rdata',
                                 'sec_entropy_reloc', 'sec_entropy_text', 'sec_entropy_rsrc', 'sec_rawptr_rsrc',
                                 'sec_rawsize_rsrc', 'sec_vasize_rsrc', 'sec_raw_execsize', 'sec_rawptr_data',
                                 'sec_rawptr_text', 'sec_rawsize_data', 'sec_rawsize_text', 'sec_va_execsize',
                                 'sec_vasize_data', 'sec_vasize_text', 'size_code', 'size_image', 'size_initdata',
                                 'size_uninit'])

        self.set_sparse_features(['imported_symbols', 'section_names', 'pe_warning_strings'])
def __init__ ( self , verbose = False ) : self . _dense_feature_list = None self . _dense_features = None self . _sparse_feature_list = None self . _sparse_features = None self . _verbose = verbose self . _warnings = [ ] self . set_dense_features ( [ 'check_sum' , 'generated_check_sum' , 'compile_date' , 'debug_size' , 'export_size' , 'iat_rva' , 'major_version' , 'minor_version' , 'number_of_bound_import_symbols' , 'number_of_bound_imports' , 'number_of_export_symbols' , 'number_of_import_symbols' , 'number_of_imports' , 'number_of_rva_and_sizes' , 'number_of_sections' , 'pe_warnings' , 'std_section_names' , 'total_size_pe' , 'virtual_address' , 'virtual_size' , 'virtual_size_2' , 'datadir_IMAGE_DIRECTORY_ENTRY_BASERELOC_size' , 'datadir_IMAGE_DIRECTORY_ENTRY_RESOURCE_size' , 'datadir_IMAGE_DIRECTORY_ENTRY_IAT_size' , 'datadir_IMAGE_DIRECTORY_ENTRY_IMPORT_size' , 'pe_char' , 'pe_dll' , 'pe_driver' , 'pe_exe' , 'pe_i386' , 'pe_majorlink' , 'pe_minorlink' , 'sec_entropy_data' , 'sec_entropy_rdata' , 'sec_entropy_reloc' , 'sec_entropy_text' , 'sec_entropy_rsrc' , 'sec_rawptr_rsrc' , 'sec_rawsize_rsrc' , 'sec_vasize_rsrc' , 'sec_raw_execsize' , 'sec_rawptr_data' , 'sec_rawptr_text' , 'sec_rawsize_data' , 'sec_rawsize_text' , 'sec_va_execsize' , 'sec_vasize_data' , 'sec_vasize_text' , 'size_code' , 'size_image' , 'size_initdata' , 'size_uninit' ] ) self . set_sparse_features ( [ 'imported_symbols' , 'section_names' , 'pe_warning_strings' ] )
Init method