Function at 0x4daa38
Capabilities:
Hide graphical window
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov ebx, 0x521340
mov esi, 0x521348
cmp dword [0x4fccb4], 0
je 0x4daee7
cmp dword [0x4fccd8], 0
je 0x4daee7
movzx eax, word [ebp + 8]
mov dword [esi], eax
mov edx, dword [ebp + 8]
shr edx, 0x10
and dx, 0xffff
movzx ecx, dx
mov dword [esi + 4], ecx
mov eax, dword [0x4fd9e4]
mov dword [ebx], eax
jmp 0x4dad51
push esi
lea esi, [eax + 0x6a4]
mov edi, 0x521350
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop esi
inc dword [0x521358]
add dword [0x52135c], 2
mov eax, dword [ebx]
cmp dword [eax + 0x6b4], 0
je 0x4dad47
push dword [esi + 4]
push dword [esi]
push 0x521350
call sub.USER32.dll_PtInRect
test eax, eax
je 0x4dad47
cmp dword [ebp + 0xc], 1
jne 0x4dab94
push 0
mov ecx, dword [ebx]
mov eax, dword [ecx]
push eax
call sub.USER32.dll_GetSystemMenu
mov edi, eax
mov dword [0x521344], edi
test edi, edi
jne 0x4daafd
push 0
call sub.USER32.dll_MessageBeep
jmp 0x4dad5b
cmp dword [0x4fccd4], 0
je 0x4dab12
mov eax, dword [ebx]
mov edx, dword [eax + 0x6a4]
mov dword [esi], edx
jmp 0x4dab23
sub dword [esi], 0x4b
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x6a4]
cmp eax, dword [esi]
jle 0x4dab23
mov dword [esi], eax
cmp dword [0x4fcccc], 1
jg 0x4dab39
mov edx, dword [ebx]
mov ecx, dword [edx + 0x6a8]
mov dword [esi + 4], ecx
jmp 0x4dab48
sub dword [esi + 4], 0x41
cmp dword [esi + 4], 0
jge 0x4dab48
xor eax, eax
mov dword [esi + 4], eax
push esi
mov edx, dword [0x4fccd8]
push edx
call sub.USER32.dll_ClientToScreen
mov dword [0x4fcce4], 1
push 0
mov ecx, dword [ebx]
mov eax, dword [ecx]
push eax
push 0
mov edx, dword [esi + 4]
push edx
mov ecx, dword [esi]
push ecx
push 0
mov eax, dword [0x521344]
push eax
call sub.USER32.dll_TrackPopupMenu
test eax, eax
jne 0x4dab87
push 0
call sub.USER32.dll_MessageBeep
xor edx, edx
mov dword [0x4fcce4], edx
jmp 0x4dad5b
cmp dword [0x4fd9f8], 0
je 0x4dac44
push 0x10
call sub.USER32.dll_GetKeyState
test ax, ax
jge 0x4dabc2
push 0
push 0
push 0x10
mov ecx, dword [ebx]
mov eax, dword [ecx]
push eax
call sub.USER32.dll_PostMessageA
jmp 0x4dad5b
push 0x11
call sub.USER32.dll_GetKeyState
test ax, ax
jge 0x4dac03
mov edx, dword [ebx]
mov ecx, dword [edx]
push ecx
call sub.USER32.dll_IsIconic
test eax, eax
jne 0x4dad5b
mov eax, dword [ebx]
mov edx, dword [eax]
push edx
call sub.USER32.dll_IsWindowVisible
test eax, eax
je 0x4dad5b
push 1
mov ecx, dword [ebx]
mov eax, dword [ecx]
push eax
call fcn.004da87c
jmp 0x4dad5b
mov edx, dword [ebx]
mov ecx, dword [edx]
cmp ecx, dword [0x4fd9f8]
jne 0x4daca6
mov eax, dword [ebx]
mov edx, dword [eax]
push edx
call sub.USER32.dll_IsIconic
test eax, eax
jne 0x4daca6
mov ecx, dword [ebx]
mov eax, dword [ecx]
push eax
call sub.USER32.dll_IsWindowVisible
test eax, eax
je 0x4daca6
push 1
mov edx, dword [ebx]
mov ecx, dword [edx]
push ecx
call fcn.004da87c
jmp 0x4dad5b
push 0x10
call sub.USER32.dll_GetKeyState
test ax, ax
jge 0x4dac65
push 0
push 0
push 0x10
mov eax, dword [ebx]
mov edx, dword [eax]
push edx
call sub.USER32.dll_PostMessageA
jmp 0x4dad5b
push 0x11
call sub.USER32.dll_GetKeyState
test ax, ax
jge 0x4daca6
mov ecx, dword [ebx]
mov eax, dword [ecx]
push eax
call sub.USER32.dll_IsIconic
test eax, eax
jne 0x4dad5b
mov edx, dword [ebx]
mov ecx, dword [edx]
push ecx
call sub.USER32.dll_IsWindowVisible
test eax, eax
je 0x4dad5b
push 1
mov eax, dword [ebx]
mov edx, dword [eax]
push edx
call fcn.004da87c
jmp 0x4dad5b
mov ecx, dword [ebx]
mov eax, dword [ecx]
push eax
call sub.USER32.dll_IsIconic
test eax, eax
jne 0x4dacc2
mov edx, dword [ebx]
mov ecx, dword [edx]
push ecx
call sub.USER32.dll_IsWindowVisible
test eax, eax
jne 0x4dad0b
push 4
mov eax, dword [ebx]
mov edx, dword [eax]
push edx
call sub.USER32.dll_ShowWindow
cmp dword [0x4fa69c], 0
je 0x4dacee
push 0
push 0x7a
push 0x111
mov ecx, dword [0x4fd9ec]
push ecx
call sub.USER32.dll_PostMessageA
jmp 0x4dad0b
cmp dword [0x4fa6a0], 0
je 0x4dad0b
push 0
push 0x7b
push 0x111
mov eax, dword [0x4fd9ec]
push eax
call sub.USER32.dll_PostMessageA
mov edx, dword [ebx]
mov ecx, dword [edx]
push ecx
call sub.USER32.dll_BringWindowToTop
mov eax, dword [ebx]
mov edx, dword [eax]
push edx
call sub.USER32.dll_SetActiveWindow
mov ecx, dword [ebx]
mov eax, dword [ecx]
push eax
call sub.USER32.dll_SetForegroundWindow
mov edx, dword [ebx]
mov ecx, dword [edx]
push ecx
call sub.USER32.dll_UpdateWindow
mov eax, dword [ebx]
mov edx, dword [eax]
push edx
call fcn.004da758
mov ecx, dword [ebx]
push ecx
call fcn.004d9d04
jmp 0x4dad5b
mov eax, dword [ebx]
mov edx, dword [eax + 0x828]
mov dword [ebx], edx
mov eax, dword [ebx]
test eax, eax
jne 0x4daa88
cmp dword [ebx], 0
jne 0x4daee7
cmp dword [ebp + 0xc], 0
jne 0x4daed8
mov edx, dword [0x4fd9f0]
push edx
call sub.USER32.dll_UpdateWindow
mov ecx, dword [0x4fd9ec]
push ecx
call sub.USER32.dll_UpdateWindow
call fcn.004d99e0
xor eax, eax
mov dword [0x4fcce8], eax
mov dword [0x4fcce0], 1
push 1
push esi
mov edx, dword [0x4fd9ec]
push edx
mov ecx, dword [0x4fccd8]
push ecx
call sub.USER32.dll_MapWindowPoints
jmp 0x4daeac
call sub.USER32.dll_GetActiveWindow
cmp eax, dword [0x4fd9ec]
je 0x4dadf1
mov eax, dword [0x4fcce8]
test eax, eax
jle 0x4dade5
push eax
movzx edx, word [esi]
movzx ecx, word [esi + 4]
shl ecx, 0x10
or edx, ecx
push edx
call fcn.004d8240
jmp 0x4daeac
xor eax, eax
mov dword [0x4fcce0], eax
jmp 0x4daeac
push 0x209
push pe_nt_image_headers32
mov edx, dword [0x4fd9ec]
push edx
lea ecx, [ebp - 0x1c]
push ecx
call sub.USER32.dll_GetMessageA
test eax, eax
je 0x4daeac
cmp dword [ebp - 0x18], 0x200
jne 0x4dae4e
inc dword [0x4fcce8]
cmp dword [0x4fcce8], 1
jne 0x4dae41
push 0
movzx eax, word [esi]
movzx edx, word [esi + 4]
shl edx, 0x10
or eax, edx
push eax
call fcn.004d8240
jmp 0x4daeac
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004d8240
jmp 0x4daeac
cmp dword [ebp - 0x18], 0x202
jne 0x4dae76
mov eax, dword [0x4fcce8]
test eax, eax
jle 0x4dae6c
push eax
mov edx, dword [ebp - 0x10]
push edx
call fcn.004d8240
jmp 0x4daeac
xor ecx, ecx
mov dword [0x4fcce0], ecx
jmp 0x4daeac
mov eax, dword [ebp - 0x18]
cmp eax, 0x100
jb 0x4daeac
cmp eax, 0x108
ja 0x4daeac
mov eax, dword [0x4fcce8]
test eax, eax
jle 0x4daea5
push eax
movzx edx, word [esi]
movzx ecx, word [esi + 4]
shl ecx, 0x10
or edx, ecx
push edx
call fcn.004d8240
jmp 0x4daeac
xor eax, eax
mov dword [0x4fcce0], eax
cmp dword [0x4fcce0], 0
jne 0x4dadb7
mov edx, dword [0x4fd9f0]
push edx
call sub.USER32.dll_UpdateWindow
mov ecx, dword [0x4fd9ec]
push ecx
call sub.USER32.dll_UpdateWindow
call fcn.004d99e0
jmp 0x4daee7
cmp dword [ebp + 0xc], 1
jne 0x4daee7
mov eax, dword [ebp + 8]
push eax
call fcn.0049ee58
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8