node/lib/metasm/samples/dump_upx.rb
def debugloop
		# set up a oneshot breakpoint on oep
		@dbg.hwbp(@oep, :x, 1, true) { breakpoint_callback }
		@dbg.run_forever
		puts 'done'
	end
# loads the file
# find the oep by disassembling
# run it until the oep
# dump the memory image
loads the file
find the oep by disassembling
run it until the oep
dump the memory image
loads the file find the oep by disassembling run it until the oep dump the memory image
def debugloop
		@dbg.hwbp(@oep, :x, 1, true) { breakpoint_callback }
		@dbg.run_forever
		puts 'done'
	end
def debugloop @dbg . hwbp ( @oep , :x , 1 , true ) { breakpoint_callback } @dbg . run_forever puts 'done' end
loads the file
find the oep by disassembling
run it until the oep
dump the memory image
loads the file find the oep by disassembling run it until the oep dump the memory image
# set up a oneshot breakpoint on oep