Function at 0x140079140
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x50
mov rax, qword [0x14015e040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r8d, dword [0x14015ff34]
mov r9, qword [0x14015e238]
mov rcx, qword [0x14015e240]
sub rcx, r9
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 5
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, r8
jbe 0x1400794bf
lea rdi, [r8 + r8*4]
shl rdi, 4
add rdi, 0x10
add rdi, r9
jne 0x1400791ba
xor ebx, ebx
jmp 0x1400791db
mov rcx, qword [rdi + 0x38]
xor ebx, ebx
and rcx, 0xfffffffffffffffc
je 0x1400791db
add rcx, 8
lea rdx, [0x14015e8c0]
call qword [sym.imp.VCRUNTIME140.dll___std_type_info_compare]
test eax, eax
je 0x1400791de
mov rdi, rbx
mov ecx, dword [rdi]
test ecx, ecx
je 0x140079208
mov eax, dword [rdi + 4]
test eax, eax
jne 0x1400791f3
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
jmp 0x1400791fe
cmp eax, 1
jne 0x140079244
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setne al
test al, al
jne 0x140079249
lea rcx, [rsp + 0x38]
call fcn.140049ec0
mov rcx, qword [rax]
mov qword [0x14015e258], rcx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400f8640
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
cmp eax, 2
jne 0x140079208
mov ecx, dword [0x14015ff38]
call fcn.1400794d0
mov ecx, dword [rax]
mov dword [0x14015e250], ecx
lea rcx, [rsp + 0x38]
call fcn.140049ec0
mov rcx, qword [rax]
sub rcx, qword [0x14015e258]
movabs rax, 0x431bde82d7b634db
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
movsxd rax, dword [0x14015e250]
cmp rdx, rax
jl 0x14007921c
mov rsi, qword [0x14015fb60]
mov edi, 4
mov rax, qword gs:[0x58]
add rdi, qword [rax]
mov eax, dword [rdi]
cmp dword [0x14015fb74], eax
jle 0x1400792f0
lea rcx, [0x14015fb74]
call fcn.1400f8a1c
cmp dword [0x14015fb74], 0xffffffff
jne 0x1400792f0
movabs rcx, 0x7434adc5050d372d
call fcn.14008c9e0
mov qword [0x14015fb88], rax
lea rcx, [0x14015fb74]
call fcn.1400f89b0
mov rdx, qword [0x14015fb88]
add rdx, rsi
mov dword [rsp + 0x34], ebx
mov qword [rsp + 0x20], rbx
mov r9d, 4
lea r8, [rsp + 0x34]
mov rcx, qword [0x14015e3a0]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
nop
mov ecx, dword [rsp + 0x34]
call fcn.140079090
mov rsi, rax
mov ecx, dword [rdi]
cmp dword [0x14015fb70], ecx
jle 0x140079369
lea rcx, [0x14015fb70]
call fcn.1400f8a1c
cmp dword [0x14015fb70], 0xffffffff
jne 0x140079369
movabs rcx, 0x9320aed4f2ddf04b
call fcn.14008c9e0
mov qword [0x14015fb90], rax
lea rcx, [0x14015fb70]
call fcn.1400f89b0
mov rdx, qword [0x14015fb90]
add rdx, rsi
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x20], rbx
mov r9d, 4
lea r8, [rsp + 0x38]
mov rcx, qword [0x14015e3a0]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
nop
cmp dword [rsp + 0x38], 0
jle 0x14007921c
movabs rbp, 0x396bd442165e47e8
mov eax, dword [rdi]
cmp dword [0x14015fb78], eax
jle 0x1400793e4
lea rcx, [0x14015fb78]
call fcn.1400f8a1c
cmp dword [0x14015fb78], 0xffffffff
jne 0x1400793e4
mov rcx, rbp
call fcn.14008c9e0
mov qword [0x14015fb80], rax
lea rcx, [0x14015fb78]
call fcn.1400f89b0
mov rdx, qword [0x14015fb80]
add rdx, rsi
mov byte [rsp + 0x30], 0
mov qword [rsp + 0x20], rbx
mov r9d, 1
lea r8, [rsp + 0x30]
mov rcx, qword [0x14015e3a0]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
movzx esi, byte [rsp + 0x30]
mov r14, qword [0x14015fb60]
mov eax, dword [rdi]
cmp dword [0x14015fb78], eax
jle 0x140079456
lea rcx, [0x14015fb78]
call fcn.1400f8a1c
cmp dword [0x14015fb78], 0xffffffff
jne 0x140079456
mov rcx, rbp
call fcn.14008c9e0
mov qword [0x14015fb80], rax
lea rcx, [0x14015fb78]
call fcn.1400f89b0
mov rdx, qword [0x14015fb80]
add rdx, r14
mov byte [rsp + 0x31], 0
mov qword [rsp + 0x20], rbx
mov r9d, 1
lea r8, [rsp + 0x31]
mov rcx, qword [0x14015e3a0]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
nop
cmp sil, byte [rsp + 0x31]
je 0x14007921c
mov qword [rsp + 0x20], rbx
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], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.USER32.dll_mouse_event]
jmp 0x14007921c
call fcn.140057190
int3