home *** CD-ROM | disk | FTP | other *** search
- .DATA
- ;---───────════════════════════════════════════════════════════════───────----
- ; The Data you'll have to change
- RGBcolor dd 0080ff10h ;0x00RRGGBB
- Crked_P_Name db 12 dup (' '),"-> CrAcK mE #4 <-",12 dup (' '),0
- Crk_Title db "cRACK-Me #4 by THE_q/PC",0
- Info_title db "cRACK-Me #4 - cODE by THE_q/PC -",0
- Info_txt db " -- tHE fILE cHELLANGE 2 --",10,13,10,13
- db "My e-MAIL : Phrozen_q@CyberDude.com"
- db 10,13,10,13,"EnJoY! =)",10,13
- db " THE_q",10,13
- db " [ PhRoZeN cReW ]",0
-
- ; The Data you'll have to change
-
- Slen dd (OFFSET Crk_Title - OFFSET Crked_P_Name - 1)
- Button_Cls DB "BUTTON",0
- Button_txt DB "CONTiNUE",0
- Button_txt2 DB "EXiT",0
- Info_ClassName DB "CracK Info",0
- ID_Button1 DW 0
- Bmp_Name DB "LogoPIC",0
-
- .CODE
- ;---───────════════════════════════════════════════════════════════───────----
- Display_Info_window PROC
- USES eax,ebx,ecx,edx,esi,edi,ebp ; Just in Case ..
- mov s1.w_style, CS_HREDRAW + CS_VREDRAW + CS_DBLCLKS
- mov s1.w_lpfnWndProc, offset Inf_WndPROC
- mov s1.w_cbClsExtra, 0
- mov s1.w_cbWndExtra, 0
- mov eax, hInst
- mov s1.w_hInstance, eax
- call LoadIcon, hInst, OFFSET sziconname
- mov s1.w_hIcon, eax
- call LoadCursor,NULL, IDC_ARROW
- mov s1.w_hCursor, eax
- mov s1.w_hbrBackground, 4
- mov s1.w_lpszMenuName, OFFSET Nada
- mov s1.w_lpszClassName, OFFSET Info_ClassName
-
- call RegisterClass, OFFSET s1
-
- Call Create_window_Items1 ; Look Below
-
- Call SetTextAlign , hDC , TA_CENTER
-
- call ShowWindow, mainhwnd,SW_SHOWNORMAL
- call UpdateWindow, mainhwnd
-
- msg_loop1:
- call GetMessage, OFFSET s2, 0,0,0
- cmp ax, 0
- je end_loop1
- call TranslateMessage, OFFSET s2
- call DispatchMessage, OFFSET s2
- jmp msg_loop1
-
- end_loop1:
- RET ; Continue with kEYGEN
-
-
- ;---───────════════════════════════════════════════════════════════───────----
- ;Create all the items in the INFO window
- Create_window_Items1 PROC
- call CreateWindowEx, 0,OFFSET Info_ClassName,OFFSET Info_title, \
- WS_CAPTION+WS_SYSMENU+WS_THICKFRAME, \
- 150,160,500,200, 0, 0, hInst, 0
- mov mainhwnd, eax
-
- Call CreateWindowEx, NULL,OFFSET Button_Cls,OFFSET Button_txt, \
- WS_VISIBLE+WS_CHILD+BS_PUSHLIKE+BS_TEXT, \
- 175,130,90,30, mainhwnd, 0 ,hInst,0
- mov ID_Button1,ax
-
- Call CreateWindowEx, NULL,OFFSET Static_cls,OFFSET Info_txt, \
- WS_VISIBLE+WS_CHILD+SS_LEFT, \
- 175,5,305,120, mainhwnd, 0 ,hInst,0
-
- Call CreateWindowEx, NULL,OFFSET Static_cls,OFFSET Bmp_Name, \
- WS_VISIBLE+WS_CHILD+SS_BITMAP, \
- 5,5,150,151, mainhwnd, 0 ,hInst,0
- RET
- Create_window_Items1 ENDP
-
-
- ;---───────════════════════════════════════════════════════════════───────----
- PUBLIC Inf_WndPROC
- Inf_WndPROC proc STDCALL, hwnd:DWORD, wmsg:DWORD, wparam:DWORD, lparam:DWORD
- USES ebx, edi, esi
- LOCAL hDC:DWORD
-
- mov eax,hwnd ;useful to make these static.
- mov g_hwnd,eax
- mov eax,wmsg
- mov g_message,eax
- mov eax,wparam
- mov g_wparam,eax
- mov eax,lparam
- mov g_lparam,eax
-
- xor eax,eax
- mov ax,WORD PTR g_message
- .IF ax==WM_DESTROY
- call wmdestroy1 ; Look Below
- .ELSEIF ax==WM_PAINT
- call wmpaint1 ; Look Below
- .ELSEIF ax==WM_COMMAND
- call wmcommand1 ; Look Below
- .ELSE
- call DefWindowProc, hwnd,wmsg,wparam,lparam
- ret
- .ENDIF
- xor eax,eax
- ret
- Inf_WndPROC ENDP
-
- ;---───────════════════════════════════════════════════════════════───────----
-
- wmpaint1 PROC
- call BeginPaint, hwnd,OFFSET s3
- mov hDC, eax
-
- Call SetTextColor , hDC , RGBcolor
- Call SetBkColor , hDC , 0
- Call TextOut , hDC ,271 , 135 , OFFSET Crked_P_Name , Slen
-
- call EndPaint, hwnd,OFFSET s3
- ret
- wmpaint1 ENDP
-
- wmdestroy1 PROC
- xor eax,eax
- mov ax,ID_Button1
- mov RGBcolor , 00ffffffh
- Call SendMessage,eax , WM_SETTEXT, 0, OFFSET Button_txt2
- call ShowWindow, mainhwnd,SW_SHOWMINNOACTIVE
- call PostQuitMessage,0
- ret
- wmdestroy1 ENDP
-
- wmcommand1 PROC
- mov ax,WORD PTR g_lparam
- .IF ax==ID_Button1 ;Button pressed
- Call wmdestroy1
- .ENDIF
- ret
- wmcommand1 ENDP
-
- ;---───────════════════════════════════════════════════════════════───────----
- Display_Info_window ENDP
-