node/lib/metasm/metasm/exe_format/coff_decode.rb
def decode_tls
		if @directory['tls_table'] and sect_at_rva(@directory['tls_table'][0])
			@tls = TLSDirectory.decode(self)
			if s = sect_at_va(@tls.callback_p)
				s.encoded.add_export 'tls_callback_table'
				@tls.callbacks.each_with_index { |cb, i|
					@tls.callbacks[i] = curencoded.add_export "tls_callback_#{i}" if sect_at_rva(cb)
				}
			end
		end
	end
# decode TLS directory, including tls callback table
decode TLS directory, including tls callback table
decode TLS directory including tls callback table
def decode_tls
		if @directory['tls_table'] and sect_at_rva(@directory['tls_table'][0])
			@tls = TLSDirectory.decode(self)
			if s = sect_at_va(@tls.callback_p)
				s.encoded.add_export 'tls_callback_table'
				@tls.callbacks.each_with_index { |cb, i|
					@tls.callbacks[i] = curencoded.add_export "tls_callback_#{i}" if sect_at_rva(cb)
				}
			end
		end
	end
def decode_tls if @directory [ 'tls_table' ] and sect_at_rva ( @directory [ 'tls_table' ] [ 0 ] ) @tls = TLSDirectory . decode ( self ) if s = sect_at_va ( @tls . callback_p ) s . encoded . add_export 'tls_callback_table' @tls . callbacks . each_with_index { | cb , i | @tls . callbacks [ i ] = curencoded . add_export "tls_callback_#{i}" if sect_at_rva ( cb ) } end end end
decode TLS directory, including tls callback table
decode TLS directory including tls callback table