Function at 0x14005ca00
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x70
mov rax, qword [0x140071010]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rdx + 0x18], 0x10
mov rdi, rcx
mov rcx, rdx
mov rbx, rdx
jb 0x14005ca2a
mov rcx, qword [rdx]
xor edx, edx
call qword [sym.imp.USER32.dll_FindWindowA]
mov rbp, rax
test rax, rax
jne 0x14005caa2
mov byte [0x140071170], al
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14005ca7a
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14005ca75
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14005cc73
mov rcx, r8
call fcn.14005d91c
mov byte [rbx], 0
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], 0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14005d8c0
add rsp, 0x70
pop rdi
pop rbp
pop rbx
ret
mov rcx, qword [rdi + 0x50]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0xa0], r14
mov dword [rsp + 0x40], 0
call qword [sym.imp.USER32.dll_GetWindowDisplayAffinity]
cmp byte [0x1400711d0], 0
je 0x14005cad8
cmp dword [rsp + 0x40], 0
jne 0x14005caeb
mov edx, 0x11
jmp 0x14005cae1
cmp dword [rsp + 0x40], 0x11
jne 0x14005caeb
xor edx, edx
mov rcx, qword [rdi + 0x50]
call qword [sym.imp.USER32.dll_SetWindowDisplayAffinity]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, qword [rdi + 0x50]
mov edx, 0xffffffec
mov r14, rax
call qword [sym.imp.USER32.dll_GetWindowLongA]
cmp byte [0x140071171], 0
je 0x14005cb1b
cmp eax, 0x80088
je 0x14005cb37
mov r8d, 0x80088
jmp 0x14005cb28
cmp eax, 0x800a8
je 0x14005cb37
mov r8d, 0x800a8
mov rcx, qword [rdi + 0x50]
mov edx, 0xffffffec
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, dword [0x1400711dc]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
test al, 1
je 0x14005cb96
cmp byte [0x140071978], 0
jne 0x14005cb96
cmp byte [0x140071171], 0
sete al
mov byte [0x140071171], al
test al, al
je 0x14005cb7f
mov rcx, qword [rdi + 0x50]
cmp r14, rcx
je 0x14005cb8d
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov byte [0x140071978], 1
jmp 0x14005cbb0
cmp r14, rbp
je 0x14005cb8d
mov rcx, rbp
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov byte [0x140071978], 1
jmp 0x14005cbb0
mov ecx, dword [0x1400711dc]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
test al, 1
jne 0x14005cbb0
mov byte [0x140071978], 0
xorps xmm0, xmm0
mov qword [rsp + 0x48], 0
lea rdx, [rsp + 0x50]
mov rcx, rbp
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
lea rdx, [rsp + 0x48]
mov rcx, rbp
call qword [sym.imp.USER32.dll_ClientToScreen]
mov ecx, dword [0x140071180]
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x48]
mov r9d, dword [rsp + 0x4c]
mov r14, qword [rsp + 0xa0]
cmp dword [rsp + 0x50], ecx
jne 0x14005cc35
mov ecx, dword [0x14007118c]
cmp dword [rsp + 0x5c], ecx
jne 0x14005cc35
mov ecx, dword [0x140071184]
cmp dword [rsp + 0x54], ecx
jne 0x14005cc35
cmp edx, dword [0x140071188]
jne 0x14005cc35
cmp eax, dword [0x140071190]
jne 0x14005cc35
cmp r9d, dword [0x140071194]
je 0x14005ca40
movups xmm0, xmmword [rsp + 0x50]
mov rcx, rdx
mov dword [rsp + 0x30], 8
shr rcx, 0x20
mov r8d, eax
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
xor edx, edx
movaps xmmword [0x140071180], xmm0
mov qword [0x140071190], rax
mov rcx, qword [rdi + 0x50]
call qword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x14005ca40
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3