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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov qword [rsp + 8], rcx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xe0]
sub rsp, 0x1e0
mov rbx, qword [0x140101c38]
xor dil, dil
movzx r15d, r9b
movzx r12d, r8w
movzx esi, dl
mov rax, rcx
mov r14d, 1
test rbx, rbx
je 0x14000a13e
movabs r13, 0xffffffff003c2c17
nop dword [rax]
cmp dword [rbx], r14d
jne 0x14000a131
movzx ecx, byte [rbx + 0x5c]
test cl, cl
je 0x14000a093
mov rdx, qword [rax + 0x10]
lea rax, [rdx + r13]
cmp rax, 0x66
ja 0x14000a093
dec cl
mov eax, 0xffc3d44d
movzx ecx, cl
sub eax, edx
cmp eax, ecx
jle 0x14000a12a
test r15b, r15b
je 0x14000a11e
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x14000a0f9
cmp qword [rax + 0x3a0], 0
je 0x14000a0f9
movzx r8d, sil
movzx eax, r12w
movzx edx, byte [r8 + rbx + 0x74]
movzx ecx, byte [rax + rbx + 0x174]
or cl, dl
test cl, 0x20
jne 0x14000a0d7
cmp byte [rbx + 0x63], 0
je 0x14000a0f9
test dl, 0x40
jne 0x14000a0f9
mov rcx, qword [0x140101c50]
mov edx, 0x41e
movzx eax, r12w
shl eax, 0x10
movsxd r9, eax
or r9, r8
mov r8, rbx
call qword [sym.imp.USER32.dll_PostMessageW]
movzx ecx, r12w
movzx eax, byte [rcx + rbx + 0x174]
test al, al
js 0x14000a21b
movzx ecx, sil
movzx eax, byte [rcx + rbx + 0x74]
test al, al
js 0x14000a20e
cmp byte [rbx + 0x60], 0
movzx edi, dil
cmovne edi, r14d
mov rax, qword [rbp + 0x110]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x14000a060
test r15b, r15b
jne 0x14000a61b
movzx eax, byte [0x140102a9e]
xor ebx, ebx
movzx r15d, r14b
test al, 0xcf
je 0x14000a171
test dil, dil
jne 0x14000a171
test al, 0xc
movzx r15d, r14b
setne cl
test al, 3
setne al
test al, cl
cmove r15d, ebx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r13, rax
mov edi, ebx
test rax, rax
je 0x14000a1b8
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea rdx, [rbp + 0x50]
mov dword [rbp + 0x50], 0x48
mov ecx, eax
mov edi, eax
call qword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x14000a1b8
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x14000a1b8
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
mov ecx, edi
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
cmp qword [0x140107718], r13
mov qword [rsp + 0x48], rax
je 0x14000a22b
mov r8d, 0x1c
mov qword [0x140107718], r13
lea rdx, [rbp + 0xa0]
mov rcx, r13
call qword [sym.imp.USER32.dll_GetClassNameW]
lea rdx, str.ApplicationFrameWindow
lea rcx, [rbp + 0xa0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
sete r8b
mov byte [0x140107715], r8b
jmp 0x14000a233
and al, 0x7f
mov byte [rcx + rbx + 0x74], al
xor al, al
jmp 0x14000a61d
and al, 0x7f
mov byte [rcx + rbx + 0x174], al
xor al, al
jmp 0x14000a61d
movzx r8d, byte [0x140107715]
xor eax, eax
lea rcx, [0x140102aa0]
mov dword [rsp + 0x40], eax
mov edx, 2
mov word [rsp + 0x44], ax
lea rax, [rsp + 0x50]
nop
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub rdx, r14
jne 0x14000a250
movzx edi, byte [0x140107714]
test dil, dil
je 0x14000a359
test r8b, r8b
je 0x14000a359
cmp sil, 0xe7
je 0x14000a359
movzx eax, byte [0x140107712]
neg al
movzx eax, byte [0x140107713]
sbb dl, dl
and dl, 0x20
neg al
sbb cl, cl
and cl, 9
or dl, cl
lea rcx, [rsp + 0x50]
call fcn.140018260
movzx edx, word [0x140107710]
lea r9, [rsp + 0x40]
movzx ecx, dil
lea r8, [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
test eax, eax
jle 0x14000a351
movzx edx, word [0x140107710]
lea r9, [rsp + 0x40]
movzx ecx, byte [0x140107714]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov byte [0x140107714], bl
jmp 0x14000a35e
mov rdi, qword [rsp + 0x48]
movzx edx, byte [0x140102a9e]
lea rcx, [rsp + 0x50]
call fcn.140018260
mov ecx, reloc.OLEAUT32.dll_SafeArrayLock
call qword [sym.imp.USER32.dll_GetKeyState]
test r14b, al
je 0x14000a386
or byte [rsp + 0x64], r14b
jmp 0x14000a38b
and byte [rsp + 0x64], 0xfe
cmp sil, 0xe7
jne 0x14000a3a6
mov rdi, qword [rbp + 0x110]
movzx eax, word [rdi + 4]
mov word [rsp + 0x40], ax
jmp 0x14000a43d
test r15b, r15b
je 0x14000a412
cmp dword [0x140101c00], ebx
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rdi
lea r8, [rsp + 0x50]
mov rdi, qword [rbp + 0x110]
mov eax, ebx
setne al
movzx ecx, sil
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
mov edx, dword [rdi + 4]
call qword [sym.imp.USER32.dll_ToUnicodeEx]
test byte [0x140102a9e], 3
mov r14d, eax
jne 0x14000a41c
cmp word [rsp + 0x40], 0xd
mov eax, 0xa
jne 0x14000a403
mov word [rsp + 0x40], ax
cmp word [rsp + 0x42], 0xd
jne 0x14000a41c
mov word [rsp + 0x42], ax
jmp 0x14000a41c
mov rdi, qword [rbp + 0x110]
mov r14d, ebx
cmp sil, 8
jne 0x14000a43d
test r14d, r14d
je 0x14000a43d
cmp byte [0x140107715], bl
je 0x14000a43a
mov r14d, ebx
mov byte [0x140107714], bl
jmp 0x14000a43d
dec r14d
lea r9, [rsp + 0x40]
mov dword [rsp + 0x20], r14d
movzx r8d, r12w
movzx edx, sil
mov rcx, rdi
call fcn.14000ab20
test al, al
je 0x14000a224
movzx edi, byte [0x140107714]
test dil, dil
je 0x14000a475
test r14d, r14d
jle 0x14000a475
mov r15b, 1
jmp 0x14000a478
xor r15b, r15b
test r14d, r14d
jns 0x14000a4f0
movzx eax, byte [0x140102a9e]
lea r9, [rsp + 0x40]
test al, 0x30
mov byte [0x140107714], sil
lea r8, [rsp + 0x50]
mov word [0x140107710], r12w
setne byte [0x140107712]
test al, 0xc
setne cl
test al, 3
setne al
and cl, al
mov rax, qword [rsp + 0x48]
cmp dword [0x140101c00], ebx
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x110]
setne bl
mov byte [0x140107713], cl
movzx ecx, sil
mov dword [rsp + 0x28], ebx
mov edx, dword [rax + 4]
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
jmp 0x14000a61b
cmp dword [0x140102c14], ebx
je 0x14000a5a5
cmp byte [rbp + 0x130], bl
jne 0x14000a5a5
cmp sil, 8
je 0x14000a52f
sub sil, 0x21
cmp sil, 7
ja 0x14000a556
cmp dword [0x140101eb4], ebx
je 0x14000a556
mov word [0x140101ec0], bx
mov dword [0x140101eb4], ebx
jmp 0x14000a556
cmp byte [0x140102a9e], bl
jne 0x14000a556
mov eax, dword [0x140101eb4]
test eax, eax
je 0x14000a556
dec eax
lea rcx, [0x140101ec0]
mov dword [0x140101eb4], eax
cdqe
mov word [rcx + rax*2], bx
test r14d, r14d
jle 0x14000a5a5
mov rax, qword [rbp + 0x148]
lea rdx, [rsp + 0x40]
mov rcx, qword [rbp + 0x110]
mov r9, r13
mov qword [rsp + 0x30], rax
mov r8d, r14d
mov rax, qword [rbp + 0x140]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x138]
mov qword [rsp + 0x20], rax
call fcn.14000a640
test al, al
je 0x14000a224
movzx edi, byte [0x140107714]
test r15b, r15b
je 0x14000a61b
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
movzx eax, byte [0x140107712]
neg al
movzx eax, byte [0x140107713]
sbb dl, dl
and dl, 0x20
neg al
sbb cl, cl
and cl, 9
or dl, cl
lea rcx, [rsp + 0x50]
call fcn.140018260
mov rax, qword [rsp + 0x48]
lea r9, [rsp + 0x48]
movzx edx, word [0x140107710]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
movzx ecx, dil
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov byte [0x140107714], bl
mov al, 1
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret