Function at 0x14005dc70
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 [0x140111200]
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 [0x14011a3f8], eax
jg 0x14005df3b
mov r8d, edi
mov rdx, qword [0x14011a3e8]
mov rcx, qword [0x14011a3e0]
call fcn.14009e410
cmp rax, qword [0x14011a3e8]
je 0x14005dd11
bts r14d, 8
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x1f0]
call fcn.1400a18d0
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 0x14005deaa
lfence
shl r14d, 0x10
mov r8d, 0x100
lea rdx, [rbp - 0x10]
mov ecx, r14d
call qword [sym.imp.USER32.dll_GetKeyNameTextW]
test eax, eax
jg 0x14005deaa
lea r9, [rsp + 0x7a]
nop
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 0x14005dd80
lea r8, [rsp + 0x7a]
mov rdx, r9
lea rcx, [rbp - 0x30]
call fcn.14000f1c0
nop
lea r8, [rbp - 0x30]
lea rdx, str._Key
lea rcx, [rbp - 0x50]
call fcn.14000e060
nop
lea r8d, [rdi + 1]
lea rdx, str._:__
mov rcx, rax
call fcn.14000d2f0
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], r12
movups xmm0, xmmword [rax]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsi + 0x10], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x14005de52
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005de4d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005e063
call fcn.14009ecd8
movdqa xmm0, xmmword [0x1400f3cd0]
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], r12w
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x14005df07
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005dea3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005df35
call fcn.14009ecd8
jmp 0x14005df07
mov eax, eax
mov word [rbp + rax*2 - 0x10], r12w
cmp eax, 1
jne 0x14005decd
movzx ecx, word [rbp - 0x10]
lea eax, [rcx - 0x61]
cmp ax, 0x19
ja 0x14005decd
call fcn.1400b0288
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
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14005def0
lea rdx, [rbp - 0x10]
mov rcx, rsi
call fcn.140005220
mov rax, rsi
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.14009ea10
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.1400a5cd4
int3
lea rcx, [0x14011a3f8]
call fcn.14009ee98
cmp dword [0x14011a3f8], 0xffffffff
jne 0x14005dced
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 [0x14011a3e0], xmm0
mov qword [0x14011a3f0], r12
lfence
mov ecx, 0x54
call fcn.140006780
mov qword [0x14011a3e0], rax
mov qword [0x14011a3e8], rax
lea rbx, [rax + 0x54]
mov qword [0x14011a3f0], rbx
mov r8d, 0x54
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.1400a11e0
mov qword [0x14011a3e8], rbx
lea rcx, [0x1400d40d0]
call fcn.14009ecb8
nop
lea rcx, [0x14011a3f8]
call fcn.14009ee38
jmp 0x14005dced
call fcn.1400a5cd4
int3