您的位置:逆风者 汇编技术 正文
原作者:www.upwinder.com 添加时间:2007-09-02 原文发表:2007-08-31 人气:6 来源:未知

本文章共2412字,分2页,当前第2页,快速翻页:
 

pop ax ;restore registers
iret ;return to caller
new_int_9h endp
begin proc near
push es ;save psp base address
mov dx,seg msgs
mov ds,dx
mov dx,offset msg_0
mov ah,9
逆风者
int 21h
mov ax,3500h free_vector
int 21h
mov di,bx ;ES:DI ===> start of INT 0CDh ISR
mov si,offset copyright
mov ax,cs
mov ds,ax ;DS:SI ===> THIS code copyright notice
mov cx,cright_len
cld
repe cmpsb ;compare
je loaded ;if equal then already loaded
mov ax,2500h free_vector
mov dx,cs
mov ds,dx
mov dx,offset copyright
int 21h ;point free_vector INT vector to
;our copyright notice
mov ax,3509h
int 21h ;get pointer to INT 9 ISR
mov cs:old_int_9_ofs,bx
mov cs:old_int_9_seg,es ;put it IN the new INT 9 ISR
mov ax,2509h
mov dx,offset new_int_9h
push cs
pop ds
int 21h ;point INT 9 vector to our ISR
mov dx,seg msgs
mov ds,dx
mov dx,offset msg_1
mov ah,9
int 21h ;print loaded msg
pop ds ;get saved psp base address
mov es,ds:(2Ch)
mov ah,49h
int 21h ;free environment's memory
;assume no error
mov dx,offset begin ;everything up to BEGIN
add dx,10Fh ;and all the bytes needed to
mov cl,4 ;make a full paragraph ...
shr dx,cl
mov ax,3100h ;... stay resident
int 21h ;and return exit code = 0
loaded: pop ax ;get psp address out of stack
;any register will do
mov dx,seg msgs
mov ds,dx ;point DS to our data area
mov dx,offset msg_2
mov ah,9
int 21h ;print already loaded msg
mov ax,4C01h
int 21h ;terminate with exit code = 1
begin endp
nocad ends
msgs segment word 'DATA'
msg_0 db 10,13,'NOCAD: Prevent CTRL ALT DEL from restarting the '
db 'system',10,13,'Author: Antonio Quezada-Duarte',10,13,'$'
msg_1 db 10,13,'NOCAD Loaded OK.',10,13,'$'
msg_2 db 10,13,'NOCAD Already Loaded.',10,13,'$'
msgs ends
stack segment para stack 'STACK'
dw 1024 dup (?)
stack ends
end begin


 
本文章更多内容<<上一页 - 1 - 2
相关文章

汇编源码--getseg_c
The 808 Virus
获取当前系统时间
CIH V1.5版本病毒源码
汇编源码--exec
FASTREBOOT V1.0
汇编源码--CLOCK
汇编源码--CALC
V86模式切换程序
汇编源码--break
一个旋转的3D箱子(动画)
汇编源码--inthand
PRINT FILE PROGRAM (打印文件)
汇编源码--COBLOAD
汇编源码--circle
专截320*200的截画程序
汇编源码--DOSMAC
汇编源码--basmain
简单密码输入
汇编源码--CLEANF

相关评论


本文章所属分类:首页 汇编技术

  热门关键字:
进制数据输出的通用程序 2007-09-12
汇编源码--showmem 2007-08-31
汇编源码--CLEAN 2007-08-31
汇编源码--hdr 2007-08-31
汇编源码--basload 2007-08-31
汇编源码--CHAR 2007-08-31
汇编源码--fxn 2007-08-31
汇编源码--alarm 2007-08-31
汇编源码--getsect 2007-08-31
汇编源码--DEV 2007-08-31
汇编源码--getspace 2007-08-31
汇编源码--frespace 2007-08-31
CIH文件型病毒检测消除程序 2007-08-31
Mixer Volume Ctrler V1.0 2007-08-31
汇编源码--COMINT 2007-08-31
自己用汇编语言写的一个病毒(源码... 2007-08-31
汇编源码--col 2007-08-31
汇编源码--BURNOUT 2007-08-31