Function at 0x1400388c0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x60
cmp byte [0x1400cc0d7], 0
mov rbx, rcx
jne 0x140038c00
cmp dword [rcx + 0x1c], 0
je 0x140038c00
mov edx, dword [0x1401396f0]
add rdx, qword [rcx + 0x68]
mov rcx, qword [0x140139478]
test rcx, rcx
je 0x140038c00
cmp dword [0x140139480], 0
je 0x140038c00
mov qword [rsp + 0x70], rdi
lea r8, [0x1401392d4]
xor edi, edi
mov r9d, 1
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140038bfb
mov edx, dword [0x1401396d8]
add rdx, qword [rbx + 0x68]
mov rcx, qword [0x140139478]
test rcx, rcx
je 0x140038bfb
cmp dword [0x140139480], edi
je 0x140038bfb
mov r9d, 4
mov qword [rsp + 0x20], rdi
lea r8, [0x140139308]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140038bfb
mov eax, dword [0x140139308]
cmp eax, 0xffffffff
je 0x140038bfb
shr eax, 9
xorps xmm0, xmm0
mov ecx, 8
mov dword [rsp + 0x7c], edi
movdqu xmmword [rsp + 0x30], xmm0
lea eax, [rax*8 + 0x10]
mov dword [rsp + 0x78], eax
call fcn.1400a5580
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x30]
lea rcx, [rax + 8]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0x78]
mov qword [rax], rcx
add rax, 8
mov rdx, qword [0x1401394d0]
mov qword [rsp + 0x38], rax
call fcn.140038680
mov qword [0x140139300], rax
test rax, rax
je 0x140038bfb
mov ecx, dword [0x140139308]
and ecx, 0x1ff
imul edx, ecx, 0x78
mov rcx, qword [0x140139478]
add rdx, rax
test rcx, rcx
je 0x140038bfb
cmp dword [0x140139480], edi
je 0x140038bfb
mov r9d, 8
mov qword [rsp + 0x20], rdi
lea r8, [0x140139310]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140038bfb
lea rdx, [0x140139310]
lea rcx, [0x140101ee0]
call fcn.140039630
test al, al
je 0x140038bfb
mov rcx, rbx
call fcn.140038f30
test al, al
je 0x140038bfb
cmp byte [0x140139050], dil
jne 0x140038a7e
movss xmm1, dword [rbx + 0x124]
xorps xmm0, xmm0
comiss xmm1, xmm0
ja 0x140038bfb
cmp byte [0x1400cc0b8], dil
je 0x140038ad2
mov rcx, qword [0x140139478]
test rcx, rcx
je 0x140038abb
cmp dword [0x140139480], edi
je 0x140038abb
mov edx, dword [0x14013969c]
lea r8, [rsp + 0x78]
add rdx, qword [rbx + 0x68]
mov r9d, 1
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp byte [rsp + 0x78], dil
jne 0x140038ad2
mov rcx, rbx
call fcn.140038c10
test al, al
jne 0x140038bfb
cmp byte [0x1400cc0d8], dil
je 0x140038af9
mov eax, dword [0x140101ff0]
cmp dword [rbx + 0x110], eax
je 0x140038af5
cmp dword [0x140101fe0], edi
jle 0x140038af5
mov al, 1
jmp 0x140038b02
xor al, al
jmp 0x140038b02
cmp dword [0x140101fe0], edi
setg al
mov byte [0x1401392d5], al
test al, al
je 0x140038bfb
movaps xmmword [rsp + 0x50], xmm6
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
xorps xmm6, xmm6
mov rcx, rax
sub rcx, qword [0x140139768]
mov rbx, rax
cmp byte [0x14013940d], dil
cvtsi2sd xmm6, rcx
divsd xmm6, qword [0x1400b9568]
jne 0x140038b67
movd xmm0, dword [0x1400cc0c0]
cvtdq2pd xmm0, xmm0
comisd xmm6, xmm0
jb 0x140038b67
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov qword [0x140139770], rax
mov byte [0x14013940d], 1
sub rbx, qword [0x140139770]
xorps xmm1, xmm1
movd xmm0, dword [0x1400cc0c0]
cvtdq2pd xmm0, xmm0
cvtsi2sd xmm1, rbx
comisd xmm6, xmm0
movaps xmm6, xmmword [rsp + 0x50]
jb 0x140038bfb
divsd xmm1, qword [0x1400b9568]
movd xmm0, dword [0x1400cc0b4]
cvtdq2pd xmm0, xmm0
comisd xmm1, xmm0
jb 0x140038bfb
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x140038bfb
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor edx, edx
mov ecx, 2
call qword [sym.imp.USER32.dll_mouse_event]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor edx, edx
mov ecx, 4
call qword [sym.imp.USER32.dll_mouse_event]
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov qword [0x140139768], rax
mov byte [0x14013940d], dil
mov rdi, qword [rsp + 0x70]
add rsp, 0x60
pop rbx
ret