node/lib/metasm/metasm/exe_format/pe.rb
def encode_header(*a)
		encode_default_mz_header if @mz.encoded.empty?

		@encoded << @mz.encoded.dup

		# append the PE signature
		@signature ||= MAGIC
		@encoded << @signature

		super(*a)
	end
# encodes the PE header before the COFF header, uses a default mz header if none defined
# the MZ header must have 0x3c pointing just past its last byte which should be 8bytes aligned
# the 2 1st bytes of the MZ header should be 'MZ'
encodes the PE header before the COFF header, uses a default mz header if none defined
the MZ header must have 0x3c pointing just past its last byte which should be 8bytes aligned
the 2 1st bytes of the MZ header should be 'MZ'
encodes the PE header before the COFF header uses a default mz header if none defined the MZ header must have 0x3c pointing just past its last byte which should be 8bytes aligned the 2 1st bytes of the MZ header should be ' MZ '
def encode_header(*a)
		encode_default_mz_header if @mz.encoded.empty?
		@encoded << @mz.encoded.dup
		@signature ||= MAGIC
		@encoded << @signature
		super(*a)
	end
def encode_header ( * a ) encode_default_mz_header if @mz . encoded . empty? @encoded << @mz . encoded . dup @signature ||= MAGIC @encoded << @signature super ( * a ) end
encodes the PE header before the COFF header, uses a default mz header if none defined
the MZ header must have 0x3c pointing just past its last byte which should be 8bytes aligned
the 2 1st bytes of the MZ header should be 'MZ'
encodes the PE header before the COFF header uses a default mz header if none defined the MZ header must have 0x3c pointing just past its last byte which should be 8bytes aligned the 2 1st bytes of the MZ header should be ' MZ '
# append the PE signature
a