Function at 0x14005dba0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x140084010]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov rbx, rcx
xor edi, edi
mov dword [rsp + 0x50], edi
mov edx, dword [0x1400849c0]
add rdx, qword [rcx + 0x38]
mov rcx, qword [0x140084ca8]
test rcx, rcx
je 0x14005df2f
cmp dword [0x140084cb0], edi
je 0x14005df2f
mov qword [rsp + 0x20], rdi
lea r9d, [rdi + 4]
lea r8, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14005df2f
mov eax, dword [rsp + 0x50]
cmp eax, 0xffffffff
je 0x14005df2f
shr eax, 9
lea eax, [rax*8 + 0x10]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x34], edi
lea ecx, [rdi + 8]
call fcn.1400661c8
mov qword [rsp + 0x38], rax
lea rdx, [rax + 8]
mov qword [rsp + 0x48], rdx
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
mov qword [rsp + 0x40], rdx
lea r8, [rsp + 0x38]
mov rdx, qword [0x140086028]
call fcn.1400087a0
test rax, rax
je 0x14005df2f
mov qword [rsp + 0x58], rdi
mov ecx, dword [rsp + 0x50]
and ecx, 0x1ff
imul edx, ecx, 0x78
add rdx, rax
mov rcx, qword [0x140084ca8]
test rcx, rcx
je 0x14005df2f
cmp dword [0x140084cb0], edi
je 0x14005df2f
mov qword [rsp + 0x20], rdi
lea r9d, [rdi + 8]
lea r8, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14005df2f
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x70], 0xf
mov byte [rsp + 0x78], dil
mov qword [rbp - 0x68], rdi
vpxor xmm0, xmm0, xmm0
vmovdqu xmmword [rbp - 0x60], xmm0
vpxor xmm1, xmm1, xmm1
vmovdqu xmmword [rbp - 0x50], xmm1
vmovups xmmword [rbp - 0x40], xmm0
vmovups xmmword [rbp - 0x30], xmm1
vxorps xmm2, xmm2, xmm2
vmovss dword [rbp - 0x20], xmm2
vmovss dword [rbp - 0x1c], xmm2
vmovss dword [rbp - 0x18], xmm2
mov qword [rbp - 0x10], rdi
vmovdqu xmm0, xmmword [0x140076ba0]
vmovdqu xmmword [rbp], xmm0
mov byte [rbp - 0x10], dil
vmovss dword [rbp + 0x14], xmm2
vmovss dword [rbp + 0x18], xmm2
vmovss dword [rbp + 0x1c], xmm2
vpxor xmm0, xmm0, xmm0
vmovdqu xmmword [rbp + 0x20], xmm0
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x60]
call fcn.140008d30
test al, al
je 0x14005de9f
cmp byte [0x140084088], dil
je 0x14005dd7f
mov eax, dword [rbp + 0x34]
cmp dword [rbx + 0xd4], eax
je 0x14005de9f
cmp dword [rbp + 0x30], 0
jle 0x14005de9f
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140086198], eax
jle 0x14005de06
lea rcx, [0x140086198]
call fcn.1400660b8
cmp dword [0x140086198], 0xffffffff
jne 0x14005de06
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x14005ddd8
imul rax, rax, 0x64
jmp 0x14005ddf3
cqo
idiv rbx
imul r8, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rax, r8
mov qword [0x1400861a0], rax
lea rcx, [0x140086198]
call fcn.140066058
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x14005de24
imul rbx, rax, 0x64
jmp 0x14005de40
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
lea rbx, [rax + rcx]
mov eax, dword [0x140084044]
imul rcx, rax, 0xf4240
mov rax, rbx
sub rax, qword [0x1400861a0]
cmp rax, rcx
jl 0x14005de9f
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x14005de98
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_mouse_event]
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.USER32.dll_mouse_event]
mov qword [0x1400861a0], rbx
mov rdx, qword [rbp + 8]
cmp rdx, 0x10
jb 0x14005ded6
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005ded1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005df23
call fcn.140066524
vmovdqu xmm0, xmmword [0x140076ba0]
vmovdqu xmmword [rbp], xmm0
mov byte [rbp - 0x10], 0
lea rcx, [rbp - 0x58]
call fcn.140008430
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x14005df2f
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005df2a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005df2a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140066524
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140065f10
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret