Function at 0x14000d290
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x300]
sub rsp, 0x400
mov rax, qword [0x140104200]
xor rax, rsp
mov qword [rbp + 0x2f0], rax
mov edi, edx
mov rsi, rcx
mov qword [rsp + 0x48], rcx
xor r12d, r12d
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov r15, rax
mov r8, rax
lea edx, [r12 + 4]
mov ecx, edi
call qword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov r14d, eax
mov edx, 8
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1401103c8], eax
jg 0x14000d59d
mov r8d, edi
mov rdx, qword [0x1401103f8]
mov rcx, qword [0x1401103f0]
call fcn.14007e670
cmp rax, qword [0x1401103f8]
je 0x14000d331
bts r14d, 8
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x1f0]
call fcn.140084310
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0xff
lea r9, [rbp - 0x10]
lea r8, [rbp + 0x1f0]
mov edx, r14d
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicodeEx]
test eax, eax
jg 0x14000d516
shl r14d, 0x10
mov r8d, 0x100
lea rdx, [rbp - 0x10]
mov ecx, r14d
call qword [sym.imp.USER32.dll_GetKeyNameTextW]
test eax, eax
jg 0x14000d516
lea r9, [rsp + 0x7a]
nop dword [rax]
sub r9, 2
mov eax, 0xcccccccd
mul edi
shr edx, 3
movzx eax, dx
shl ax, 2
lea ecx, [rax + rdx]
add cx, cx
sub di, cx
add di, 0x30
mov word [r9], di
mov edi, edx
test edx, edx
jne 0x14000d3a0
lea r8, [rsp + 0x7a]
mov rdx, r9
lea rcx, [rbp - 0x30]
call fcn.14000eeb0
nop
lea r8, [rbp - 0x30]
lea rdx, [0x1400dc0b0]
lea rcx, [rbp - 0x50]
call fcn.14000e720
mov rcx, rax
mov rdx, qword [rax + 0x10]
mov r9, qword [rax + 0x18]
mov rax, r9
sub rax, rdx
cmp rax, 1
jb 0x14000d42f
lea r8, [rdx + 1]
mov qword [rcx + 0x10], r8
mov rax, rcx
cmp r9, 8
jb 0x14000d41d
mov rax, qword [rcx]
mov r9d, 0x29
mov word [rax + rdx*2], r9w
mov word [rax + r8*2], r12w
jmp 0x14000d452
mov qword [rsp + 0x20], 1
lea r9, [0x1400dc0ac]
movzx r8d, byte [rsp + 0x40]
mov edx, 1
call fcn.14000be20
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], r12
movups xmm0, xmmword [rcx]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rsi + 0x10], xmm1
mov qword [rcx + 0x10], r12
mov qword [rcx + 0x18], 7
mov word [rcx], r12w
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x14000d4be
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d4b9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d6c2
call fcn.1400816f4
movdqa xmm0, xmmword [0x1400eaaa0]
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], r12w
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x14000d569
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d50f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d597
call fcn.1400816f4
jmp 0x14000d569
mov eax, eax
mov word [rbp + rax*2 - 0x10], r12w
cmp eax, 1
jne 0x14000d539
movzx ecx, word [rbp - 0x10]
lea eax, [rcx - 0x61]
cmp ax, 0x19
ja 0x14000d539
call fcn.14008e0fc
mov word [rbp - 0x10], ax
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], r12
lea rax, [rbp - 0x10]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x14000d552
lea rdx, [rbp - 0x10]
mov rcx, rsi
call fcn.1400086a0
mov rax, rsi
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.140081690
lea r11, [rsp + 0x400]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.140088774
int3
lea rcx, [0x1401103c8]
call fcn.140081b58
cmp dword [0x1401103c8], 0xffffffff
jne 0x14000d30d
mov dword [rsp + 0x50], 0x5d
mov dword [rsp + 0x54], 3
mov dword [rsp + 0x58], 0x2c
mov dword [rsp + 0x5c], 0x6f
mov dword [rsp + 0x60], 0x90
mov dword [rsp + 0x64], 0x5b
mov dword [rsp + 0x68], 0x5c
mov dword [rsp + 0x6c], 0xa5
mov dword [rsp + 0x70], 0xa3
mov dword [rsp + 0x74], 0xa1
mov dword [rsp + 0x78], 0xd
mov dword [rsp + 0x7c], 0x2d
mov dword [rbp - 0x80], 0x2e
mov dword [rbp - 0x7c], 0x21
mov dword [rbp - 0x78], 0x22
mov dword [rbp - 0x74], 0x24
mov dword [rbp - 0x70], 0x23
mov dword [rbp - 0x6c], 0x26
mov dword [rbp - 0x68], 0x28
mov dword [rbp - 0x64], 0x25
mov dword [rbp - 0x60], 0x27
xorps xmm0, xmm0
movdqu xmmword [0x1401103f0], xmm0
mov qword [0x140110400], r12
mov edx, 0x15
call fcn.14000e3b0
mov qword [0x1401103f0], rax
mov qword [0x1401103f8], rax
lea rbx, [rax + 0x54]
mov qword [0x140110400], rbx
mov r8d, 0x54
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.140083ba0
mov qword [0x1401103f8], rbx
lea rcx, [0x1400bce50]
call fcn.140081ea0
nop
lea rcx, [0x1401103c8]
call fcn.140081af8
jmp 0x14000d30d
call fcn.140088774
int3