Function at 0x521a7c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
mov dword [ebp - 4], eax
mov byte [ebp - 5], 1
xor eax, eax
push ebp
push 0x5221d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x39], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
call fcn.0051f33c
test eax, eax
jle 0x521afa
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
call fcn.0051f33c
mov edx, eax
sub edx, 1
jno 0x521ac5
call fcn.0040391c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
call fcn.0051f358
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
call fcn.005218a0
lea eax, [ebp - 0x10]
push eax
call sub.user32.dll_GetCursorPos
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00521310
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x38]
mov byte [ebp - 6], 1
jmp 0x5221ac
cmp byte [ebp - 6], 0
jne 0x521b0e
call sub.user32.dll_WaitMessage
mov byte [ebp - 6], 0
jmp 0x522188
mov eax, dword [ebp - 0x3d]
sub eax, 0x12
je 0x521c37
add eax, 0xffffff71
sub eax, 9
jb 0x521c37
sub eax, 0x157
jne 0x521c43
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x35]
call fcn.00408e80
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x41]
push eax
call sub.user32.dll_ClientToScreen
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x4c]
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0043e074
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
je 0x521bc6
push dword [ebp - 0xc]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 4]
call fcn.005213fc
lea eax, [ebp - 0x5c]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x521bc6
push 0
push 0xd
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.00446828
push eax
call sub.user32.dll_PostMessageA
jmp 0x521c43
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x25], 0
jmp 0x521c14
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x30]
call fcn.0043e074
push dword [ebp - 0xc]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x5c]
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 0x20]
call fcn.005213fc
lea eax, [ebp - 0x5c]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x521c0b
mov byte [ebp - 0x25], 1
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x521c20
cmp byte [ebp - 0x25], 0
je 0x521bd2
cmp byte [ebp - 0x25], 0
jne 0x521c43
push ebp
call fcn.00521a20
pop ecx
call fcn.0040429c
jmp 0x5221dc
push ebp
call fcn.00521a20
pop ecx
jmp 0x522188
push 3
push 0
push 0
push 0
lea eax, [ebp - 0x41]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x522188
mov eax, dword [ebp - 0x3d]
sub eax, 0x7b
je 0x522188
add eax, 0xffffff7b
sub eax, 9
jb 0x521c98
add eax, 0xffffff09
sub eax, 0xb
jb 0x521f5f
sub eax, 0x264
jne 0x52217f
mov eax, dword [ebp - 4]
call fcn.005217e8
jmp 0x522188
push 1
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x522188
mov eax, dword [ebp - 0x3d]
sub eax, 0x100
je 0x521cce
sub eax, 2
je 0x521f0e
sub eax, 2
je 0x521cce
sub eax, 2
je 0x521f0e
jmp 0x522188
mov eax, dword [ebp - 0x39]
cmp eax, 0x25
jg 0x521d11
je 0x521dcd
cmp eax, 0x12
jg 0x521cfa
je 0x521ef4
sub eax, 9
je 0x522188
sub eax, 4
je 0x521d36
jmp 0x521f00
sub eax, 0x1b
je 0x521da0
sub eax, 5
je 0x522188
jmp 0x521f00
sub eax, 0x26
je 0x521eb7
dec eax
je 0x521e42
dec eax
je 0x521ed1
sub eax, 0x51
je 0x521ef4
jmp 0x521f00
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
je 0x521d4e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov bx, 0xfff0
call fcn.00403c0c
mov eax, dword [ebp - 4]
call fcn.005217e8
test al, al
jne 0x522188
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
je 0x522188
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov eax, dword [eax + 0x24]
mov edx, 0x5221ec
call fcn.00404c4c
je 0x522188
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
cmp byte [eax + 0x29], 0
je 0x522188
push ebp
call fcn.00521a20
pop ecx
jmp 0x522188
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
je 0x521db3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov byte [eax + 0x38], 0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x38]
call fcn.0040429c
jmp 0x5221dc
mov eax, dword [ebp - 4]
cmp byte [eax + 0x28], 0
je 0x521de3
mov eax, dword [ebp - 4]
call fcn.00521960
jmp 0x522188
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
je 0x522188
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
cmp byte [eax + 0x28], 0
je 0x521e23
push 0
push 0x25
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax + 0x30]
call fcn.00446828
push eax
call sub.user32.dll_PostMessageA
call fcn.0040429c
jmp 0x5221dc
push 0
push 0x1b
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.00446828
push eax
call sub.user32.dll_PostMessageA
jmp 0x522188
mov eax, dword [ebp - 4]
cmp byte [eax + 0x28], 0
je 0x521e58
mov eax, dword [ebp - 4]
call fcn.005218a0
jmp 0x522188
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
je 0x522188
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
cmp byte [eax + 0x28], 0
je 0x521e98
push 0
push 0x27
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax + 0x30]
call fcn.00446828
push eax
call sub.user32.dll_PostMessageA
call fcn.0040429c
jmp 0x5221dc
push 0
push 0x1b
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.00446828
push eax
call sub.user32.dll_PostMessageA
jmp 0x522188
mov eax, dword [ebp - 4]
cmp byte [eax + 0x28], 0
jne 0x522188
mov eax, dword [ebp - 4]
call fcn.00521960
jmp 0x522188
mov eax, dword [ebp - 4]
cmp byte [eax + 0x28], 0
jne 0x521ee7
mov eax, dword [ebp - 4]
call fcn.005218a0
jmp 0x522188
mov eax, dword [ebp - 4]
call fcn.005217e8
jmp 0x522188
push ebp
call fcn.00521a20
pop ecx
jmp 0x522188
lea eax, [ebp - 0x41]
push eax
call sub.user32.dll_TranslateMessage
jmp 0x522188
mov edx, dword [ebp - 0x39]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
call fcn.005208cc
test eax, eax
je 0x522188
mov edx, dword [ebp - 0x39]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
call fcn.005208cc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x38]
push 0
push 0xd
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.00446828
push eax
call sub.user32.dll_PostMessageA
jmp 0x522188
mov eax, dword [ebp - 0x3d]
sub eax, 0x200
je 0x521f77
sub eax, 2
je 0x52208c
jmp 0x522188
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x35]
call fcn.00408e80
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x41]
push eax
call sub.user32.dll_ClientToScreen
mov eax, dword [ebp - 0x10]
cmp eax, dword [0x590248]
jne 0x521fa9
mov eax, dword [ebp - 0xc]
cmp eax, dword [0x59024c]
je 0x522188
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
jmp 0x521fba
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x3c], 0
jne 0x521fb1
cmp dword [ebp - 0x20], 0
je 0x522064
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x20]
call fcn.00521310
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x34]
cmp eax, dword [ebp - 0x1c]
je 0x522051
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 4]
je 0x522051
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
je 0x52202d
push 0
push 0x1b
push pe_nt_image_headers32
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x30]
call fcn.00446828
push eax
call sub.user32.dll_PostMessageA
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
jne 0x522002
push 0
push 0
push 0x46f
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x30]
call fcn.00446828
push eax
call sub.user32.dll_PostMessageA
call fcn.0040429c
jmp 0x5221dc
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x40]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x521fcd
mov eax, dword [ebp - 4]
cmp byte [eax + 0x28], 0
jne 0x522075
mov eax, dword [ebp - 4]
call fcn.005217e8
mov eax, dword [ebp - 0x10]
mov dword [0x590248], eax
mov eax, dword [ebp - 0xc]
mov dword [0x59024c], eax
jmp 0x522188
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x35]
call fcn.00408e80
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x41]
push eax
call sub.user32.dll_ClientToScreen
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x4c]
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0043e074
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
je 0x522116
push dword [ebp - 0xc]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 4]
call fcn.005213fc
lea eax, [ebp - 0x5c]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x522116
push 0
push 0xd
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.00446828
push eax
call sub.user32.dll_PostMessageA
jmp 0x522188
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x25], 0
jmp 0x522164
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x30]
call fcn.0043e074
push dword [ebp - 0xc]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x5c]
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 0x20]
call fcn.005213fc
lea eax, [ebp - 0x5c]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x52215b
mov byte [ebp - 0x25], 1
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x522170
cmp byte [ebp - 0x25], 0
je 0x522122
cmp byte [ebp - 0x25], 0
jne 0x522188
push ebp
call fcn.00521a20
pop ecx
jmp 0x522188
lea eax, [ebp - 0x41]
push eax
call sub.user32.dll_DispatchMessageA
push ebp
call fcn.00521a64
pop ecx
test al, al
je 0x5221ac
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x41]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
jne 0x521b17
push ebp
call fcn.00521a64
pop ecx
test al, al
jne 0x521b03
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5221dc
mov eax, dword [ebp - 4]
mov byte [eax + 0x39], 0
call sub.user32.dll_ReleaseCapture
ret
mov al, byte [ebp - 5]
pop ebx
mov esp, ebp
pop ebp
ret