PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : [ASM] Simpler Crypter



Mr_Psycho
07.01.2009, 18:24
Hi

Habe mich schon vor längerer Zeit mal mit Assembler beschäftigt. Dies ist noch ein Crypter, den ich damals gecodet habe.

Er ist jedoch noch nicht ganz ausgereift.

Probleme:

-Man MUSS 20 Zeichen eingeben...
-Output in ein Textfile


.model tiny
.stack
.data
text db 'Type in your Text (Max. 20 Chars)',10d,13d,'$'
inp db 20 dup (?)
outp db 20 dup (?)
tabs db 10d,13d,10d,13d
.code

Start:
mov ax, @data
mov ds, ax
mov ah, 09h
lea dx, text
int 21h
mov ah, 01h
lea bx, inp
mov cx, 20d
getinput:
int 21h
mov [bx], al
inc bx
loop getinput


mov si, bx
lea di, outp

crypt:
mov cx, 3d
lodsb
neg al
xor al, 40h
or al, 12h
stosb
loop crypt

output:
mov ah, 09h
lea dx, tabs
int 21h
mov ah, 09h
lea dx, outp
int 21h

end Start

kat23
07.01.2009, 18:40
-Man MUSS 20 Zeichen eingeben...
-Output in ein Textfile

1. Problem: Speicherplatz reservieren ODER Filesize über ARGV!

2. Problem: Pipeline!