- UID
- 26818
注册时间2007-2-13
阅读权限20
最后登录1970-1-1
以武会友
TA的每日心情 | 开心 2018-10-21 14:56 |
---|
签到天数: 1 天 [LV.1]初来乍到
|
发表于 2007-3-2 04:13:09
|
显示全部楼层
飘过,丢个注册机
;
;不懂算法的keygen模版,欢迎随便修改
;
.386
.model flat,stdcall
option casemap:none
include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
include \masm32\include\user32.inc
include \masm32\include\comctl32.inc
includelib \masm32\lib\user32.lib
includelib \masm32\lib\kernel32.lib
includelib \masm32\lib\comctl32.lib
dlgproc proto :DWORD,:DWORD,:DWORD,:DWORD
.const
.data
szName db 020h dup (0)
szSerial db 020h dup (0)
len dd 0
.data?
hInstance dd ?
.code
start:
invoke GetModuleHandle,NULL
mov hInstance,eax
invoke DialogBoxParam,eax,101,NULL,offset dlgproc,0
invoke ExitProcess,NULL
dlgproc proc hWnd:DWORD,wMsg:DWORD,wParam:DWORD,lParam:DWORD
mov eax,wMsg
.if eax == WM_CLOSE
invoke EndDialog,hWnd,NULL
.elseif eax == WM_INITDIALOG
invoke LoadIcon,hInstance,1
invoke SendMessage,hWnd,WM_SETICON,0,eax
.elseif eax == WM_COMMAND
mov eax,wParam
.if eax == 1002
invoke GetDlgItemText,hWnd,1000,addr szName,11h
mov len,eax
xor ecx,ecx
.while ecx<len
movsx edx,byte ptr ds:[szName+ecx]
inc ecx
mov eax,ecx
imul eax,eax,8
xor edx,eax
mov eax,len
sub eax,ecx
mov byte ptr ds:[szSerial+eax],dl
.endw
mov byte ptr ds:[szSerial+ecx],0h
invoke SetDlgItemText,hWnd,1001,addr szSerial
.endif
.else
mov eax,FALSE
ret
.endif
mov eax,TRUE
ret
dlgproc endp
end start |
|