Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _DATA SEGMENT
- COMM hInstance:QWORD
- _DATA ENDS
- _DATA SEGMENT
- szClassName DQ FLAT:$SG96290
- _DATA ENDS
- $SG96332 DB 01H DUP (?)
- $SG96333 DB 01H DUP (?)
- _DATA SEGMENT
- $SG96331 DB 'Error', 00H
- _DATA ENDS
- hwnd$ = 96
- wnd$ = 112
- msg$ = 192
- hInst$ = 256
- hPrevInstance$ = 264
- szCmdLine$ = 272
- iCmdShow$ = 280
- WinMain PROC
- $LN6:
- mov DWORD PTR [rsp+32], r9d
- mov QWORD PTR [rsp+24], r8
- mov QWORD PTR [rsp+16], rdx
- mov QWORD PTR [rsp+8], rcx
- sub rsp, 248 ; 000000f8H
- mov rax, QWORD PTR hInst$[rsp]
- mov QWORD PTR hInstance, rax
- mov DWORD PTR wnd$[rsp], 3
- lea rax, OFFSET FLAT:MyWndProc
- mov QWORD PTR wnd$[rsp+8], rax
- mov DWORD PTR wnd$[rsp+16], 0
- mov DWORD PTR wnd$[rsp+20], 0
- mov rax, QWORD PTR hInstance
- mov QWORD PTR wnd$[rsp+24], rax
- mov edx, 32512 ; 00007f00H
- xor ecx, ecx
- call QWORD PTR __imp_LoadIconA
- mov QWORD PTR wnd$[rsp+32], rax
- mov edx, 32512 ; 00007f00H
- xor ecx, ecx
- call QWORD PTR __imp_LoadCursorA
- mov QWORD PTR wnd$[rsp+40], rax
- mov QWORD PTR wnd$[rsp+48], 2
- mov QWORD PTR wnd$[rsp+56], 0
- mov rax, QWORD PTR szClassName
- mov QWORD PTR wnd$[rsp+64], rax
- lea rcx, QWORD PTR wnd$[rsp]
- call QWORD PTR __imp_RegisterClassA
- movzx eax, ax
- test eax, eax
- jne SHORT $LN4@WinMain
- xor r9d, r9d
- lea r8, OFFSET FLAT:$SG96331
- lea rdx, OFFSET FLAT:$SG96332
- xor ecx, ecx
- call QWORD PTR __imp_MessageBoxA
- xor eax, eax
- jmp $LN1@WinMain
- $LN4@WinMain:
- mov QWORD PTR [rsp+88], 0
- mov rax, QWORD PTR hInstance
- mov QWORD PTR [rsp+80], rax
- mov QWORD PTR [rsp+72], 0
- mov QWORD PTR [rsp+64], 0
- mov DWORD PTR [rsp+56], -2147483648 ; ffffffff80000000H
- mov DWORD PTR [rsp+48], -2147483648 ; ffffffff80000000H
- mov DWORD PTR [rsp+40], -2147483648 ; ffffffff80000000H
- mov DWORD PTR [rsp+32], -2147483648 ; ffffffff80000000H
- mov r9d, 13565952 ; 00cf0000H
- lea r8, OFFSET FLAT:$SG96333
- mov rdx, QWORD PTR szClassName
- xor ecx, ecx
- call QWORD PTR __imp_CreateWindowExA
- mov QWORD PTR hwnd$[rsp], rax
- mov edx, DWORD PTR iCmdShow$[rsp]
- mov rcx, QWORD PTR hwnd$[rsp]
- call QWORD PTR __imp_ShowWindow
- mov rcx, QWORD PTR hwnd$[rsp]
- call QWORD PTR __imp_UpdateWindow
- $LN2@WinMain:
- xor r9d, r9d
- xor r8d, r8d
- xor edx, edx
- lea rcx, QWORD PTR msg$[rsp]
- call QWORD PTR __imp_GetMessageA
- test eax, eax
- je SHORT $LN3@WinMain
- lea rcx, QWORD PTR msg$[rsp]
- call QWORD PTR __imp_TranslateMessage
- lea rcx, QWORD PTR msg$[rsp]
- call QWORD PTR __imp_DispatchMessageA
- jmp SHORT $LN2@WinMain
- $LN3@WinMain:
- mov eax, DWORD PTR msg$[rsp+16]
- $LN1@WinMain:
- add rsp, 248 ; 000000f8H
- ret 0
- WinMain ENDP
- hwnd$ = 48
- msg$ = 56
- wParam$ = 64
- lParam$ = 72
- MyWndProc PROC
- $LN4:
- mov DWORD PTR [rsp+32], r9d
- mov DWORD PTR [rsp+24], r8d
- mov DWORD PTR [rsp+16], edx
- mov QWORD PTR [rsp+8], rcx
- sub rsp, 40 ; 00000028H
- cmp DWORD PTR msg$[rsp], 2
- jne SHORT $LN2@MyWndProc
- xor ecx, ecx
- call QWORD PTR __imp_PostQuitMessage
- xor eax, eax
- jmp SHORT $LN1@MyWndProc
- $LN2@MyWndProc:
- movsxd rax, DWORD PTR lParam$[rsp]
- mov ecx, DWORD PTR wParam$[rsp]
- mov r9, rax
- mov r8d, ecx
- mov edx, DWORD PTR msg$[rsp]
- mov rcx, QWORD PTR hwnd$[rsp]
- call QWORD PTR __imp_DefWindowProcA
- $LN1@MyWndProc:
- add rsp, 40 ; 00000028H
- ret 0
- MyWndProc ENDP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement