Function at 0x140004fe0
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 [0x140075040]
xor rax, rsp
mov qword [rbp + 0x1f], rax
xor r13d, r13d
mov dword [rbp - 0x79], r13d
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, 0x10
call fcn.140057230
movups xmm0, xmmword [rbp - 0x69]
movups xmmword [rax], xmm0
mov qword [rbp - 0x31], rax
mov r12d, 2
lea rcx, [rbp + 0x17]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r13d
mov r9, rax
lea r8, [0x1400055d0]
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 0x14000537b
xor r15b, r15b
movss xmm6, dword [0x14006a874]
mov rbx, qword [rbp - 0x31]
mov rdi, qword [rbp - 0x31]
mov ecx, dword [0x14008f5dc]
test ecx, ecx
je 0x1400050c4
sub ecx, 1
je 0x1400050ac
cmp ecx, 1
jne 0x1400050e2
mov byte [0x14008f5e8], cl
jmp 0x1400050e2
mov ecx, dword [0x14008f5d8]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
setne byte [0x14008f5e8]
jmp 0x1400050e2
mov ecx, dword [0x14008f5d8]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1400050e2
cmp byte [0x14008f5e8], 0
sete byte [0x14008f5e8]
mov dword [rbp - 0x79], 0x626f5270
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 0x1400052f4
cmp byte [0x14008f5e8], 0
je 0x1400052c1
cmp byte [0x140101d7d], 0
je 0x1400052c1
test r15b, r15b
jne 0x14000513f
nop dword [rax]
xor ecx, ecx
call qword [sym.imp.USER32.dll_ShowCursor]
test eax, eax
jns 0x140005130
mov r15b, 1
mov qword [rbp - 0x31], r13
mov dword [rbp + 8], r13d
mov word [rbp + 0xc], r13w
mov byte [rbp + 0xe], 0
mov dword [rbp - 0x19], 0x85b3e12
mov rax, qword [0x140101d98]
add rax, 0x118
mov qword [rbp - 0x11], rax
lea rax, [rbp - 0x31]
mov qword [rbp - 9], rax
mov qword [rbp - 1], 8
mov eax, dword [0x140101cc8]
mov dword [rbp - 0x15], eax
mov byte [rbp + 7], 0
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
mov r9d, 0x28
lea r8, [rbp - 0x19]
mov edx, 0x2201c4
mov rcx, qword [0x140101cc0]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp byte [0x140101d7f], 0
je 0x1400051da
test r14b, r14b
je 0x1400051da
test rbx, rbx
je 0x1400051da
mov qword [0x140101d90], rbx
mov rdx, rdi
mov rcx, rbx
mov rax, rbx
jmp 0x1400051f4
lea rcx, [rbp - 0x49]
call fcn.140003ad0
mov rcx, qword [rax + 8]
mov qword [0x140101d90], rcx
mov rdx, qword [rax]
mov rax, rcx
mov qword [0x140101d68], rdx
cmp qword [rbp - 0x31], rcx
je 0x140005090
test rax, rax
je 0x14000522c
lea rdx, [rbp - 0x59]
lea rcx, [0x140101d90]
call fcn.14000dae0
or r12d, 1
movss xmm0, dword [rax + 4]
comiss xmm0, xmm6
jbe 0x14000522c
mov al, 1
jmp 0x14000522e
xor al, al
test r12b, 1
je 0x140005247
and r12d, 0xfffffffe
mov qword [rbp - 0x59], 0
mov dword [rbp - 0x51], 0
test al, al
je 0x1400052e2
lea rcx, [0x1400750a0]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x14000536f
cmp dword [0x1400750ec], 0x7fffffff
je 0x140005359
lea rcx, [0x1400750a0]
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 [0x140101d90]
call fcn.140004360
mov rbx, qword [0x140101d90]
mov rdi, qword [0x140101d68]
mov r14b, 1
lea rcx, [rbp - 0x71]
call fcn.140003780
mov rax, qword [rbp - 0x71]
jmp 0x140005305
test r15b, r15b
je 0x1400052e2
nop word [rax + rax]
mov ecx, 1
call qword [sym.imp.USER32.dll_ShowCursor]
test eax, eax
js 0x1400052d0
xor r15b, r15b
xor r14b, r14b
lea rcx, [rbp - 0x71]
call fcn.140003780
mov rax, qword [rbp - 0x71]
jmp 0x140005305
lea rcx, [rbp - 0x71]
call fcn.140003780
mov rax, qword [rbp - 0x71]
mov qword [rbp - 0x31], rax
movabs rsi, 0x7fffffffffb3b4bf
cmp rax, rsi
je 0x14000533d
mov ecx, 1
mov edx, 0xff
cmovl ecx, edx
test cl, cl
jns 0x14000533d
add rax, 0x4c4b40
mov qword [rbp - 0x31], rax
lea rcx, [rbp - 0x31]
call fcn.1400054c0
jmp 0x140005090
movabs rax, 0x7fffffffffffffff
mov qword [rbp - 0x31], rax
lea rcx, [rbp - 0x31]
call fcn.1400054c0
jmp 0x140005090
mov dword [0x1400750ec], 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], r13d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3