Function at 0x50ddc8
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x28], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x50dfd9
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.user32.dll_GetForegroundWindow
cmp eax, dword [ebx + 0x40]
jne 0x50dfbe
mov eax, dword [0x53948c]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x50dfbe
inc eax
mov dword [ebp - 0xc], eax
xor esi, esi
mov eax, dword [0x539958]
push eax
call sub.kernel32.dll_EnterCriticalSection_1
lea eax, [ebp - 8]
push eax
call sub.user32.dll_GetCursorPos
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebx + 0x40]
push eax
call sub.user32.dll_GetWindowRect
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 0x18]
add edx, dword [ebx + 0x48]
mov eax, dword [ebp - 0x1c]
add eax, dword [ebx + 0x44]
call fcn.00407528
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x1c]
call fcn.0040754c
test al, al
jne 0x50de79
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_SetCursorPos
mov eax, dword [0x539958]
push eax
call sub.kernel32.dll_LeaveCriticalSection_1
jmp 0x50dfbe
mov eax, dword [ebp - 0x18]
add eax, dword [ebx + 0x48]
push eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebx + 0x44]
push eax
call sub.user32.dll_SetCursorPos
lea ecx, [ebp - 0x28]
mov eax, dword [0x53948c]
mov eax, dword [eax]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x28]
mov eax, ebx
call fcn.0050dc94
push 0x50dff0
lea ecx, [ebp - 0x30]
mov eax, dword [0x53948c]
mov eax, dword [eax]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x30]
push 0x50e000
call fcn.0043e200
lea edx, [ebp - 0x34]
call fcn.0043dda8
push dword [ebp - 0x34]
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.00405110
mov eax, dword [ebp - 0x2c]
call fcn.00405250
call fcn.0048b108
push 0
push 0
mov eax, dword [ebp - 0x18]
add eax, dword [ebx + 0x48]
push eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebx + 0x44]
push eax
push 2
call sub.user32.dll_mouse_event
push 0
push 0
mov eax, dword [ebp - 0x18]
add eax, dword [ebx + 0x48]
push eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebx + 0x44]
push eax
push 4
call sub.user32.dll_mouse_event
push 0
push 0
push 0
push 0x11
call sub.user32.dll_MapVirtualKeyA
push eax
push 0x11
call sub.user32.dll_keybd_event
push 0
push 0
push 0
push 0x56
call sub.user32.dll_MapVirtualKeyA
push eax
push 0x56
call sub.user32.dll_keybd_event
push 0
push 2
push 0
push 0x56
call sub.user32.dll_MapVirtualKeyA
push eax
push 0x56
call sub.user32.dll_keybd_event
push 0
push 2
push 0
push 0x11
call sub.user32.dll_MapVirtualKeyA
push eax
push 0x11
call sub.user32.dll_keybd_event
push 0
push 0
push 0
push 0xd
call sub.user32.dll_keybd_event
push 0
push 2
push 0
push 0xd
call sub.user32.dll_keybd_event
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_SetCursorPos
mov eax, dword [0x539958]
push eax
call sub.kernel32.dll_LeaveCriticalSection_1
imul eax, dword [ebx + 0x50], 0x3e8
push eax
call sub.kernel32.dll_Sleep_1
inc esi
dec dword [ebp - 0xc]
jne 0x50de18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50dfe0
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.00404db4
ret