Function at 0x140001000
Capabilities:
Log keystrokes via polling

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
movabs rdi, 0xaaaaaaaaaaaaaaaa
xorps xmm0, xmm0
lea rbp, [rsp + 0x40]
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp - 0x18], rdi
movups xmm0, xmmword [0x140002018]
movups xmmword [rbp], xmm0
xor ecx, ecx
lea rax, [0x140005008]
cmp rcx, 0x1a
je 0x140001052
lea edx, [rcx + 0x41]
mov byte [rcx + rax], dl
inc rcx
jmp 0x140001041
mov ecx, 0x1a
cmp rcx, 0x24
je 0x140001068
lea edx, [rcx + 0x16]
mov byte [rcx + rax], dl
inc rcx
jmp 0x140001057
mov byte [0x14000502c], 0x20
lea r15, [0x14000502d]
mov rsi, 0xffffffffffffffff
mov rax, qword [0x140005025]
mov qword [rsp + 0xcd], rax
movups xmm0, xmmword [0x140005018]
movaps xmmword [rsp + 0xc0], xmm0
movups xmm0, xmmword [0x140005008]
movaps xmmword [rsp + 0xb0], xmm0
xor r13d, r13d
cmp r13, 0x25
je 0x140001347
mov r12b, byte [rsp + r13 + 0xb0]
movzx ebx, r12b
mov ecx, ebx
call sub.USER32.dll_GetAsyncKeyState
test ax, ax
je 0x1400010d7
cmp byte [r13 + r15], 0
je 0x1400010fe
mov ecx, ebx
call sub.USER32.dll_GetAsyncKeyState
test ax, ax
jne 0x14000133f
cmp byte [r13 + r15], 0
je 0x14000133f
mov byte [r13 + r15], 0
jmp 0x14000133f
mov byte [r13 + r15], 1
mov rbx, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
cmp r15, rbx
ja 0x1400011ad
mov r14, r15
mov rax, r14
shr rax, 1
add rax, 8
add r14, rax
cmovb r14, rsi
cmp r14, rbx
jbe 0x14000111a
cmp r15, r14
jae 0x1400011ad
mov rcx, rbp
mov rdx, rdi
mov r8, r15
mov r9, r14
call fcn.14000156c
test al, 1
jne 0x14000119f
lea rcx, [rsp + 0x50]
mov rdx, rbp
mov r8, r14
call fcn.14000159e
movzx r14d, word [rsp + 0x60]
test r14w, r14w
jne 0x14000135b
mov rbp, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
mov rcx, rbp
mov rdx, rdi
mov r8, rbx
call fcn.140001b3a
lea rcx, [rsp + 0x40]
mov rdx, rdi
mov r8, r15
call fcn.140001531
mov qword [rsp + 0x28], rbp
mov rdi, rbp
lea rbp, [rsp + 0x40]
lea r15, [0x14000502d]
mov qword [rsp + 0x38], r14
jmp 0x1400011b4
lea r15, [0x14000502d]
lea rax, [rbx + 1]
mov qword [rsp + 0x30], rax
mov byte [rdi + rbx], r12b
cmp rbx, 0x40
jb 0x1400011da
xor eax, eax
cmp rbx, rax
je 0x1400011e4
mov cl, byte [rdi + rax + 1]
mov byte [rdi + rax], cl
inc rax
jmp 0x1400011c9
mov rbx, qword [rsp + 0x30]
jmp 0x1400012a8
mov qword [rsp + 0x30], rbx
mov r14, qword [rsp + 0x38]
movups xmm0, xmmword [rbp]
movaps xmmword [rsp + 0xa0], xmm0
mov ebx, 0x40
mov r9d, 0x40
lea rcx, [rsp + 0xa0]
mov rdx, rdi
mov r8, r14
call fcn.14000156c
test al, 1
je 0x140001224
mov r14d, 0x40
jmp 0x140001299
movups xmm0, xmmword [rbp]
movaps xmmword [rsp + 0x90], xmm0
mov ebx, 0x40
mov r8d, 0x40
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x90]
call fcn.14000159e
cmp word [rsp + 0x60], 0
jne 0x140001299
mov r15, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rcx, r15
mov rdx, rdi
mov r8, rbx
call fcn.140001b3a
movups xmm0, xmmword [rbp]
movaps xmmword [rsp + 0x80], xmm0
lea rcx, [rsp + 0x80]
mov rdx, rdi
mov r8, r14
call fcn.140001531
mov r14, rbx
mov rdi, r15
lea r15, [0x14000502d]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], r14
lea rcx, [0x140005058]
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x20]
mov r14, qword [rax + 0x30]
mov qword [rsp + 0x90], r14
mov qword [rsp + 0x80], r14
mov r8d, 0xd
lea rcx, [rsp + 0x80]
lea rdx, str.Buffer_is____s_n
call fcn.140001605
test ax, ax
jne 0x140001333
mov rcx, rdi
mov rdx, rbx
lea r8, [0x140002060]
lea r9, [rsp + 0x90]
call fcn.1400016c4
test ax, ax
jne 0x140001333
mov qword [rsp + 0x50], r14
mov r8d, 1
lea rcx, [rsp + 0x50]
lea rdx, [0x140002038]
call fcn.140001605
lea rcx, [0x140005058]
call fcn.140001b90
inc r13
jmp 0x1400010ad
mov ecx, 1
call sub.KERNEL32.dll_Sleep
mov rdi, qword [rsp + 0x28]
jmp 0x14000107d
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rsp + 0x28]
movups xmm1, xmmword [rsp + 0x38]
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x50], xmm0
mov rax, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x80]
mov qword [rcx], rax
mov qword [rcx + 8], rdx
mov rdx, qword [rsp + 0x28]
mov r8, r15
call fcn.140001531
mov eax, r14d
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret