Function at 0x140024950
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 [0x1400b2080]
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 [0x1400b8c48], eax
jle 0x140024aec
lea rcx, [0x1400b8c48]
call fcn.140057de4
cmp dword [0x1400b8c48], 0xffffffff
jne 0x140024aec
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 [0x1400b8c30], xmm0
mov qword [0x1400b8c40], r12
lea edx, [r12 + 0x15]
call fcn.140028520
mov qword [0x1400b8c30], rax
mov qword [0x1400b8c38], rax
lea rbx, [rax + 0x54]
mov qword [0x1400b8c40], rbx
lea r8d, [r12 + 0x54]
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.140059cd0
mov qword [0x1400b8c38], rbx
lea rcx, [0x140087ab0]
call fcn.140057bf4
nop
lea rcx, [0x1400b8c48]
call fcn.140057d84
mov r8d, edi
mov rdx, qword [0x1400b8c38]
mov rcx, qword [0x1400b8c30]
call fcn.140057240
cmp rax, qword [0x1400b8c38]
je 0x140024b10
bts r14d, 8
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x1f0]
call fcn.14005a3a0
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 0x140024caa
shl r14d, 0x10
mov r8d, 0x100
lea rdx, [rbp - 0x10]
mov ecx, r14d
call qword [sym.imp.USER32.dll_GetKeyNameTextW]
test eax, eax
jg 0x140024caa
lea r9, [rsp + 0x7a]
nop dword [rax + 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 0x140024b80
lea r8, [rsp + 0x7a]
mov rdx, r9
lea rcx, [rbp - 0x30]
call fcn.140010ef0
nop
lea r8, [rbp - 0x30]
lea rdx, [0x14009c6a0]
lea rcx, [rbp - 0x50]
call fcn.14000f710
nop
lea r8d, [rdi + 1]
lea rdx, str._:__
mov rcx, rax
call fcn.14000e890
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 0x140024c52
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024c4d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024d3b
call fcn.140057c14
movdqa xmm0, xmmword [0x14009f540]
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], r12w
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x140024d07
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024ca3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024d35
call fcn.140057c14
jmp 0x140024d07
mov eax, eax
mov word [rbp + rax*2 - 0x10], r12w
cmp eax, 1
jne 0x140024ccd
movzx ecx, word [rbp - 0x10]
lea eax, [rcx - 0x61]
cmp ax, 0x19
ja 0x140024ccd
call fcn.14005fb88
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 0x140024cf0
lea rdx, [rbp - 0x10]
mov rcx, rsi
call fcn.140003dd0
mov rax, rsi
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.140057960
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.14005e6c4
nop
call fcn.14005e6c4
nop
int3