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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x250
mov rax, qword [0x1401620c0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov ebx, ecx
mov ebp, r8d
mov rsi, rdx
shr ebx, 0x10
mov r12d, ecx
mov byte [rsp + 0x130], 0
test bl, 2
je 0x1400b89ce
xor edx, edx
lea ecx, [rdx + 0x11]
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
lea rdx, [rsp + 0x20]
mov r8d, 0x104
bts eax, 9
mov byte [rsp + 0x20], 0
shl eax, 0x10
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyNameTextA]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x130]
repne scasb al, byte [rdi]
cmp byte [rsp + 0x20], al
je 0x1400b89a2
lea rdx, [rsp + 0x20]
xor ecx, ecx
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x1400b8990
jmp 0x1400b89b5
mov eax, dword [str.Ctrl]
mov dword [rdi - 1], eax
movzx eax, byte [0x14011a0a8]
mov byte [rdi + 3], al
xor eax, eax
lea rdi, [rsp + 0x130]
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov eax, dword [0x1400f65f0]
mov dword [rdi - 1], eax
test bl, 4
je 0x1400b8a54
xor edx, edx
lea ecx, [rdx + 0x12]
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
lea rdx, [rsp + 0x20]
mov r8d, 0x104
bts eax, 9
mov byte [rsp + 0x20], 0
shl eax, 0x10
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyNameTextA]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x130]
repne scasb al, byte [rdi]
cmp byte [rsp + 0x20], al
je 0x1400b8a32
lea rdx, [rsp + 0x20]
xor ecx, ecx
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x1400b8a20
jmp 0x1400b8a3b
mov eax, dword [0x14011a0a0]
mov dword [rdi - 1], eax
xor eax, eax
lea rdi, [rsp + 0x130]
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov eax, dword [0x1400f65f0]
mov dword [rdi - 1], eax
test bl, 1
je 0x1400b8aef
xor edx, edx
lea ecx, [rdx + 0x10]
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
lea rdx, [rsp + 0x20]
mov r8d, 0x104
bts eax, 9
mov byte [rsp + 0x20], 0
shl eax, 0x10
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyNameTextA]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x130]
repne scasb al, byte [rdi]
cmp byte [rsp + 0x20], al
je 0x1400b8ac2
lea rdx, [rsp + 0x20]
xor ecx, ecx
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x1400b8ab0
jmp 0x1400b8ad6
mov eax, dword [str.Shift]
mov dword [rdi - 1], eax
movzx eax, word [0x14011a09c]
mov word [rdi + 3], ax
xor eax, eax
lea rdi, [rsp + 0x130]
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov eax, dword [0x1400f65f0]
mov dword [rdi - 1], eax
test bl, 8
je 0x1400b8b74
xor edx, edx
lea ecx, [rdx + 0x5b]
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
lea rdx, [rsp + 0x20]
mov r8d, 0x104
bts eax, 9
mov byte [rsp + 0x20], 0
shl eax, 0x10
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyNameTextA]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x130]
repne scasb al, byte [rdi]
cmp byte [rsp + 0x20], al
je 0x1400b8b52
lea rdx, [rsp + 0x20]
xor ecx, ecx
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x1400b8b40
jmp 0x1400b8b5b
mov eax, dword [0x1400fde7c]
mov dword [rdi - 1], eax
xor eax, eax
lea rdi, [rsp + 0x130]
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov eax, dword [0x1400f65f0]
mov dword [rdi - 1], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx ecx, r12w
xor edx, edx
mov r8, rax
call qword [sym.imp.USER32.dll_MapVirtualKeyExA]
lea rdx, [rsp + 0x20]
mov r8d, 0x104
bts eax, 9
shl eax, 0x10
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyNameTextA]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x130]
repne scasb al, byte [rdi]
lea rcx, [rsp + 0x20]
xor edx, edx
nop
movzx eax, byte [rcx + rdx]
add rdx, 1
test al, al
mov byte [rdi + rdx - 2], al
jne 0x1400b8bc0
lea rdx, [rsp + 0x130]
mov r8, rbp
mov rcx, rsi
call fcn.1400b85c0
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400c2a20
add rsp, 0x250
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret