Function at 0x140009850
Capabilities:
Create thread
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x1401a50c0]
xor rax, rsp
mov qword [rbp + 0x1f], rax
xor ebx, ebx
mov dword [rbp - 0x79], ebx
xor r14b, r14b
mov byte [rbp - 0x39], r14b
lea rax, [rbp - 0x39]
mov qword [rbp - 0x69], rax
lea rax, [rbp - 0x29]
mov qword [rbp - 0x61], rax
mov ecx, reloc.WS2_32.dll_recv
call fcn.140145b10
movups xmm0, xmmword [rbp - 0x69]
movups xmmword [rax], xmm0
mov qword [rbp - 0x31], rax
mov r13d, 2
lea rcx, [rbp + 0x17]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebx
mov r9, rax
lea r8, [0x14000a090]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 0xf], rax
test rax, rax
je 0x140009b9b
xor r15b, r15b
movss xmm6, dword [0x1401887d4]
mov rbx, qword [rbp - 0x31]
mov rdi, qword [rbp - 0x31]
nop dword [rax]
mov ecx, dword [0x1402df070]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx r12d, ax
mov dword [rbp - 0x79], 0x626f524b
mov dword [rbp - 0x75], 0x786f6c
lea rdx, [rbp - 0x78]
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
mov rsi, rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, rsi
jne 0x140009b14
test r12w, r12w
je 0x140009ae6
cmp byte [0x1402defbc], 0
je 0x140009ae6
test r15b, r15b
jne 0x140009967
xor ecx, ecx
call qword [sym.imp.USER32.dll_ShowCursor]
test eax, eax
jns 0x140009958
mov r15b, 1
xor ecx, ecx
mov qword [rbp - 0x31], rcx
mov dword [rbp + 8], ecx
mov word [rbp + 0xc], cx
mov byte [rbp + 0xe], cl
mov dword [rbp - 0x19], 0x85b3e12
mov rax, qword [0x1402df078]
add rax, 0x110
mov qword [rbp - 0x11], rax
lea rax, [rbp - 0x31]
mov qword [rbp - 9], rax
mov qword [rbp - 1], 8
mov eax, dword [0x1402defb8]
mov dword [rbp - 0x15], eax
mov byte [rbp + 7], cl
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rcx
mov r9d, Ordinal_41
lea r8, [rbp - 0x19]
mov edx, 0x2201c4
mov rcx, qword [0x1402defb0]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp byte [0x1402defac], 0
je 0x1400099ff
test r14b, r14b
je 0x1400099ff
test rbx, rbx
je 0x1400099ff
mov qword [0x1402df090], rbx
mov rdx, rdi
mov rcx, rbx
mov rax, rbx
jmp 0x140009a19
lea rcx, [rbp - 0x49]
call fcn.1400081e0
mov rcx, qword [rax + 8]
mov qword [0x1402df090], rcx
mov rdx, qword [rax]
mov rax, rcx
mov qword [0x1402df088], rdx
cmp qword [rbp - 0x31], rcx
je 0x140009900
test rax, rax
je 0x140009a51
lea rdx, [rbp - 0x59]
lea rcx, [0x1402df090]
call fcn.1400148d0
or r13d, 1
movss xmm0, dword [rax + 4]
comiss xmm0, xmm6
jbe 0x140009a51
mov al, 1
jmp 0x140009a53
xor al, al
test r13b, 1
je 0x140009a6c
and r13d, 0xfffffffe
mov qword [rbp - 0x59], 0
mov dword [rbp - 0x51], 0
test al, al
je 0x140009b02
lea rcx, reloc.WS2_32.dll_bind
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x140009b8f
cmp dword [0x1401a519c], 0x7fffffff
je 0x140009b79
lea rcx, reloc.WS2_32.dll_bind
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
movsd xmm0, qword [rbp - 0x29]
movsd qword [rbp - 0x69], xmm0
mov eax, dword [rbp - 0x21]
mov dword [rbp - 0x61], eax
lea rdx, [rbp - 0x69]
mov rcx, qword [0x1402df090]
call fcn.140008be0
mov rbx, qword [0x1402df090]
mov rdi, qword [0x1402df088]
mov r14b, 1
lea rcx, [rbp - 0x71]
call fcn.140003fa0
mov rax, qword [rbp - 0x71]
jmp 0x140009b25
test r15b, r15b
je 0x140009b02
nop dword [rax + rax]
mov ecx, 1
call qword [sym.imp.USER32.dll_ShowCursor]
test eax, eax
js 0x140009af0
xor r15b, r15b
xor r14b, r14b
lea rcx, [rbp - 0x71]
call fcn.140003fa0
mov rax, qword [rbp - 0x71]
jmp 0x140009b25
lea rcx, [rbp - 0x71]
call fcn.140003fa0
mov rax, qword [rbp - 0x71]
mov qword [rbp - 0x31], rax
movabs rdx, 0x7fffffffffb3b4bf
cmp rax, rdx
je 0x140009b5d
mov ecx, 1
mov edx, 0xff
cmovl ecx, edx
test cl, cl
jns 0x140009b5d
add rax, 0x4c4b40
mov qword [rbp - 0x31], rax
lea rcx, [rbp - 0x31]
call fcn.140009fa0
jmp 0x140009900
movabs rax, 0x7fffffffffffffff
mov qword [rbp - 0x31], rax
lea rcx, [rbp - 0x31]
call fcn.140009fa0
jmp 0x140009900
mov dword [0x1401a519c], 0x7ffffffe
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp + 0x17], ebx
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3