Function at 0x140056d90
Capabilities:
Log keystrokes via polling

Disassembly:
mov r11, rsp
push rsi
push r14
sub rsp, 0x78
mov rax, qword [0x140115010]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor r14d, r14d
mov qword [r11 + 8], rbx
cmp byte [0x140115170], r14b
mov rsi, rdx
mov rbx, qword [0x1401158f8]
je 0x140056fd7
mov qword [r11 - 0x18], rdi
mov qword [r11 + 0x18], rbp
nop
cmp qword [rsi + 0x18], 0x10
mov rcx, rsi
jb 0x140056ddd
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.USER32.dll_FindWindowA]
mov rdi, rax
test rax, rax
je 0x140056fc3
mov rcx, qword [rbx + 0x50]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], r14d
call qword [sym.imp.USER32.dll_GetWindowDisplayAffinity]
cmp byte [0x1401151d0], r14b
je 0x140056e1c
cmp dword [rsp + 0x40], r14d
jne 0x140056e2f
mov edx, 0x11
jmp 0x140056e25
cmp dword [rsp + 0x40], 0x11
jne 0x140056e2f
xor edx, edx
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.USER32.dll_SetWindowDisplayAffinity]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, qword [rbx + 0x50]
mov edx, 0xffffffec
mov rbp, rax
call qword [sym.imp.USER32.dll_GetWindowLongA]
cmp byte [0x140115171], r14b
je 0x140056e5f
cmp eax, 0x80088
je 0x140056e7b
mov r8d, 0x80088
jmp 0x140056e6c
cmp eax, 0x800a8
je 0x140056e7b
mov r8d, 0x800a8
mov rcx, qword [rbx + 0x50]
mov edx, 0xffffffec
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, dword [0x1401151dc]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
test al, 1
je 0x140056eda
cmp byte [0x140115940], r14b
jne 0x140056eda
cmp byte [0x140115171], r14b
sete al
mov byte [0x140115171], al
test al, al
je 0x140056ec3
mov rcx, qword [rbx + 0x50]
cmp rbp, rcx
je 0x140056ed1
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov byte [0x140115940], 1
jmp 0x140056efd
cmp rbp, rdi
je 0x140056ed1
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov byte [0x140115940], 1
jmp 0x140056efd
mov ecx, dword [0x1401151dc]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
test al, 1
jne 0x140056efd
cmp byte [0x140115940], r14b
je 0x140056efd
mov byte [0x140115940], r14b
xorps xmm0, xmm0
mov qword [rsp + 0x48], r14
lea rdx, [rsp + 0x50]
mov rcx, rdi
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [0x140115180]
mov rcx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x48]
mov r9d, dword [rsp + 0x4c]
cmp dword [rsp + 0x50], eax
jne 0x140056f73
mov eax, dword [0x14011518c]
cmp dword [rsp + 0x5c], eax
jne 0x140056f73
mov eax, dword [0x140115184]
cmp dword [rsp + 0x54], eax
jne 0x140056f73
cmp ecx, dword [0x140115188]
jne 0x140056f73
cmp r8d, dword [0x140115190]
jne 0x140056f73
cmp r9d, dword [0x140115194]
je 0x140056fa9
movups xmm0, xmmword [rsp + 0x50]
mov rax, rcx
mov dword [rsp + 0x30], 8
shr rax, 0x20
xor edx, edx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
movaps xmmword [0x140115180], xmm0
mov qword [0x140115190], r8
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x140115170], r14b
jne 0x140056dd0
jmp 0x140056fca
mov byte [0x140115170], r14b
mov rbp, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x70]
mov rdx, qword [rsi + 0x18]
mov rbx, qword [rsp + 0x90]
cmp rdx, 0x10
jb 0x140057015
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x140057010
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140057039
mov rcx, r8
call fcn.1400c1ecc
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], 0xf
mov byte [rsi], r14b
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400c1e70
add rsp, 0x78
pop r14
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3