home *** CD-ROM | disk | FTP | other *** search
- ;oh, reversing reversing reversing.. how much phun..NOT.. my brain hurts..
-
- ;tasm32 /ml hmm
- ;tlink32 -x /Tpe /aa /c hmm,hmm
-
- ; DONT RUN THE COMPILED EXE, JUST COPY&PASTE THE CODE FROM IT INTO D4CRACKME.EXE
-
-
- .386P
- Locals
-
-
- .Model Flat ,StdCall
-
- .Data
-
-
- data db "R!SC is BaCK!!!",0
-
-
- .Code
-
- main:
- lo011: db 'sometext' ; just so i can find the code easily in the compiled 'exe and in the
- dd 90909090h ; exe i paste it into, when i search its memory..
- db 90h,90h,90h,0cch
- blood:
- push esi
- mov esi, 00405514h ; address of 8 character string to brute
- jmp brute_loop
- itsok:
- pop esi
- mycall: db 90h,90h,90h,90h,90h,90h ; put call to code and whatever else in this space
- test eax,eax
- je blood
-
- int 03
-
-
-
-
- brute_loop:
- inc byte ptr [esi]
- cmp byte ptr [esi], 3ah ; 39h=9 ascii, 3ah=goto 'A'
- jl itsok
- cmp byte ptr [esi], 40h ; lower than 40h? need to be letters now..
- jl skipjunk
- cmp byte ptr [esi], 47h ; 46h=F ascii
- jl itsok
- mov byte ptr [esi], 30h ; reset to 0 and increase next value
-
- inc byte ptr [esi+1]
- cmp byte ptr [esi+1], 3ah
- jl itsok
- cmp byte ptr [esi+1], 40h
- jl skipjunk1
- cmp byte ptr [esi+1], 47h
- jl itsok
- mov byte ptr [esi+1], 30h
-
- inc byte ptr [esi+2]
- cmp byte ptr [esi+2], 3ah
- jl itsok
- cmp byte ptr [esi+2], 40h
- jl skipjunk2
- cmp byte ptr [esi+2], 47h
- jl itsok
- mov byte ptr [esi+2], 30h
-
- inc byte ptr [esi+3]
- cmp byte ptr [esi+3], 3ah
- jl itsok
- cmp byte ptr [esi+3], 40h
- jl skipjunk3
- cmp byte ptr [esi+3], 47h
- jl itsok
- mov byte ptr [esi+3], 30h
-
- inc byte ptr [esi+4]
- cmp byte ptr [esi+4], 3ah
- jl itsok
- cmp byte ptr [esi+4], 40h
- jl skipjunk4
- cmp byte ptr [esi+4], 47h
- jl itsok
- mov byte ptr [esi+4], 30h
-
- inc byte ptr [esi+5]
- cmp byte ptr [esi+5], 3ah
- jl itsok
- cmp byte ptr [esi+5], 40h
- jl skipjunk5
- cmp byte ptr [esi+5], 47h
- jl itsok
- mov byte ptr [esi+5], 30h
-
- inc byte ptr [esi+6]
- cmp byte ptr [esi+6], 3ah
- jl itsok
- cmp byte ptr [esi+6], 40h
- jl skipjunk6
- cmp byte ptr [esi+6], 47h
- jl itsok
- mov byte ptr [esi+6], 30h
-
- inc byte ptr [esi+7]
- cmp byte ptr [esi+7], 3ah
- jl itsok
- cmp byte ptr [esi+7], 40h
- jl skipjunk7
- cmp byte ptr [esi+7], 47h
- jl itsok
- int 03
-
- skipjunk:
- mov byte ptr [esi], 41h ; just to skip values 3ah-40h, junk values..
- jmp itsok
-
- skipjunk1:
- mov byte ptr [esi+1], 41h
- jmp itsok
-
- skipjunk2:
- mov byte ptr [esi+2], 41h
- jmp itsok
-
- skipjunk3:
- mov byte ptr [esi+3], 41h
- jmp itsok
-
- skipjunk4:
- mov byte ptr [esi+4], 41h
- jmp itsok
-
- skipjunk5:
- mov byte ptr [esi+5], 41h
- jmp itsok
-
- skipjunk6:
- mov byte ptr [esi+6], 41h
- jmp itsok
-
- skipjunk7:
- mov byte ptr [esi+7], 41h
- jmp itsok
-
-
- End main