Function at 0x4088c7
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x20], ecx
push str.mouse_event
push 0x41863c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
push str.keybd_event
push str.USER32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, 0x1c
div ecx
test edx, edx
je 0x408919
jmp 0x408b56
call fcn.0040c08e
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, 0x1c
div ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
jmp 0x40893f
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jge 0x408b56
mov ecx, dword [ebp - 8]
imul ecx, ecx, 0x1c
mov edx, dword [ebp + 8]
add edx, ecx
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0x200
jb 0x4089be
cmp dword [ebp - 0x24], 0x208
jbe 0x408976
jmp 0x4089be
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0xc]
and eax, 0xffff
and eax, 0xffff
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xc]
shr edx, 0x10
and edx, 0xffff
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.USER32.dll_SetCursorPos]
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_WindowFromPoint]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 0x203
ja 0x408a36
cmp dword [ebp - 0x28], 0x203
je 0x408a9d
cmp dword [ebp - 0x28], 0x105
ja 0x408a1f
cmp dword [ebp - 0x28], 0x105
je 0x408b33
cmp dword [ebp - 0x28], 0x100
je 0x408b13
cmp dword [ebp - 0x28], 0x101
je 0x408b33
cmp dword [ebp - 0x28], 0x104
je 0x408b13
jmp case.0x408a4e.5
cmp dword [ebp - 0x28], 0x201
je 0x408a55
cmp dword [ebp - 0x28], 0x202
je 0x408a67
jmp case.0x408a4e.5
mov eax, dword [ebp - 0x28]
sub eax, 0x204
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 6
ja case.0x408a4e.5
mov ecx, dword [ebp - 0x28]
jmp dword [ecx*4 + 0x408b5c]
push 0
push 0
push 0
push 0
push 2
call dword [ebp - 0x10]
jmp case.0x408a4e.5
push 0
push 0
push 0
push 0
push 4
call dword [ebp - 0x10]
jmp case.0x408a4e.5
push 0
push 0
push 0
push 0
push 8
call dword [ebp - 0x10]
jmp case.0x408a4e.5
push 0
push 0
push 0
push 0
push 0x10
call dword [ebp - 0x10]
jmp case.0x408a4e.5
push 0
push 0
push 0
push 0
push 6
call dword [ebp - 0x10]
push 0
push 0
push 0
push 0
push 6
call dword [ebp - 0x10]
jmp case.0x408a4e.5
push 0
push 0
push 0
push 0
push 0x18
call dword [ebp - 0x10]
push 0
push 0
push 0
push 0
push 0x18
call dword [ebp - 0x10]
jmp case.0x408a4e.5
push 0
push 0
push 0
push 0
push 0x20
call dword [ebp - 0x10]
jmp case.0x408a4e.5
push 0
push 0
push 0
push 0
push 0x40
call dword [ebp - 0x10]
jmp case.0x408a4e.5
push 0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 8]
shr eax, 0x10
movsx ecx, ax
push ecx
push 0
push 0
push 0x800
call dword [ebp - 0x10]
jmp case.0x408a4e.5
push 0
push 0
push 0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
mov ecx, dword [ebp - 0x14]
mov dl, byte [ecx + 8]
push edx
call dword [ebp - 4]
jmp case.0x408a4e.5
push 0
push 2
push 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
mov edx, dword [ebp - 0x14]
mov al, byte [edx + 8]
push eax
call dword [ebp - 4]
jmp 0x408936
mov esp, ebp
pop ebp
ret 8