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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x78]
sub rsp, 0x150
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1804ca010]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov rsi, rdx
mov r14, rcx
mov qword [rsp + 0x40], rdx
xor r12d, r12d
mov dword [rsp + 0x30], r12d
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
movdqa xmm1, xmmword [0x1803e6740]
movdqu xmmword [rsp + 0x58], xmm1
mov word [rsp + 0x48], r12w
cmp byte [rcx + 1], r12b
je 0x180073f06
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
mov rax, rdx
sub rax, rcx
cmp rax, 5
jb 0x180073ee5
lea rdi, [rcx + 5]
mov qword [rsp + 0x58], rdi
lea rbx, [rsp + 0x48]
cmp rdx, 8
cmovae rbx, qword [rsp + 0x48]
lea rcx, [rbx + rcx*2]
lea r8d, [r12 + 0xa]
lea rdx, [0x1803c34b8]
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r12w
jmp 0x180073f06
mov qword [rsp + 0x20], 5
lea r9, [0x1803c34b8]
xor r8d, r8d
lea edx, [r8 + 5]
lea rcx, [rsp + 0x48]
call fcn.180009e00
cmp byte [r14 + 2], 0
je 0x180073f79
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
mov rax, rdx
sub rax, rcx
cmp rax, 6
jb 0x180073f58
lea rdi, [rcx + 6]
mov qword [rsp + 0x58], rdi
lea rbx, [rsp + 0x48]
cmp rdx, 8
cmovae rbx, qword [rsp + 0x48]
lea rcx, [rbx + rcx*2]
mov r8d, 0xc
lea rdx, [0x1803c34a8]
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r12w
jmp 0x180073f79
mov qword [rsp + 0x20], 6
lea r9, [0x1803c34a8]
xor r8d, r8d
lea edx, [r8 + 6]
lea rcx, [rsp + 0x48]
call fcn.180009e00
cmp byte [r14], 0
je 0x180073feb
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
mov rax, rdx
sub rax, rcx
cmp rax, 4
jb 0x180073fca
lea rdi, [rcx + 4]
mov qword [rsp + 0x58], rdi
lea rbx, [rsp + 0x48]
cmp rdx, 8
cmovae rbx, qword [rsp + 0x48]
lea rcx, [rbx + rcx*2]
mov r8d, 8
lea rdx, [0x1803c3498]
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r12w
jmp 0x180073feb
mov qword [rsp + 0x20], 4
lea r9, [0x1803c3498]
xor r8d, r8d
lea edx, [r8 + 4]
lea rcx, [rsp + 0x48]
call fcn.180009e00
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov r8, rax
movzx ecx, byte [r14 + 3]
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov ebx, eax
xor edx, edx
mov r8d, 0xa2
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
movzx eax, byte [r14 + 3]
cmp al, 0x21
jb 0x180074187
cmp al, 0x28
jbe 0x1800740ee
cmp al, 0x2c
jbe 0x180074187
cmp al, 0x2e
jbe 0x1800740ee
cmp al, 0xbb
jne 0x180074187
lea r8, [0x1803c3490]
mov edx, 0x51
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
movdqa xmm1, xmmword [0x1803e6740]
movdqu xmmword [rsp + 0x78], xmm1
mov word [rsp + 0x68], r12w
lea rax, [rbp - 0x70]
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp word [rax + r8*2], 0
jne 0x180074084
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x68]
call fcn.180004e70
nop
mov rdi, qword [rsp + 0x78]
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x18007421b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180074216
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180074216
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
bts ebx, 8
shl ebx, 0x10
mov r8d, 0x50
lea rdx, [rbp - 0x70]
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyNameTextW]
test eax, eax
jne 0x180074059
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], 7
mov word [rsi], r12w
xor r8d, r8d
lea rdx, [0x1803be558]
mov rcx, rsi
call fcn.180004e70
mov dword [rsp + 0x30], 1
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x180074438
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18007417d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18007417d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
jmp 0x180074438
shl ebx, 0x10
mov r8d, 0x50
lea rdx, [rbp - 0x70]
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyNameTextW]
test eax, eax
jne 0x180074059
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], 7
mov word [rsi], r12w
xor r8d, r8d
lea rdx, [0x1803be558]
mov rcx, rsi
call fcn.180004e70
mov dword [rsp + 0x30], 1
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x180074438
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18007417d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18007417d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.180385c70
movdqa xmm0, xmmword [0x1803e6740]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], r12w
cmp rdi, 1
jbe 0x180074302
lea rcx, [rbp - 0x70]
call qword [sym.imp.USER32.dll_CharNextW]
mov rdi, rax
test rax, rax
je 0x180074302
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
movdqa xmm1, xmmword [0x1803e6740]
movdqu xmmword [rsp + 0x78], xmm1
mov word [rsp + 0x68], r12w
lea rax, [rbp - 0x70]
mov r8, rbx
inc r8
cmp word [rax + r8*2], 0
jne 0x180074273
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x68]
call fcn.180004e70
nop
lea rcx, [rbp - 0x70]
mov rax, rdi
sub rax, rcx
sar rax, 1
mov edx, dword [rsp + 0x78]
sub edx, eax
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharLowerBuffW]
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x1800742ee
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800742e9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800742e9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
movdqa xmm0, xmmword [0x1803e6740]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], r12w
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
movdqa xmm1, xmmword [0x1803e6740]
movdqu xmmword [rsp + 0x78], xmm1
mov word [rsp + 0x68], r12w
lea rax, [rbp - 0x70]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180074323
mov r8, rbx
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x68]
call fcn.180004e70
nop
lea r9, [rsp + 0x68]
mov r14, qword [rsp + 0x68]
mov r15, qword [rbp - 0x80]
cmp r15, 8
cmovae r9, r14
mov rcx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x60]
mov rax, r8
sub rax, rcx
mov rdx, qword [rsp + 0x78]
cmp rdx, rax
ja 0x18007439e
lea rdi, [rdx + rcx]
mov qword [rsp + 0x58], rdi
lea rbx, [rsp + 0x48]
cmp r8, 8
cmovae rbx, qword [rsp + 0x48]
lea r8, [rdx + rdx]
lea rcx, [rbx + rcx*2]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r12w
jmp 0x1800743b9
mov qword [rsp + 0x20], rdx
xor r8d, r8d
lea rcx, [rsp + 0x48]
call fcn.180009e00
mov r15, qword [rbp - 0x80]
mov r14, qword [rsp + 0x68]
cmp r15, 8
jb 0x1800743f7
lea rdx, [r15*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x1800743ef
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800743ef
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.180385c70
movdqa xmm0, xmmword [0x1803e6740]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], r12w
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rsi + 0x10], xmm1
movdqa xmm0, xmmword [0x1803e6740]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], r12w
mov dword [rsp + 0x30], 1
movdqa xmm0, xmmword [0x1803e6740]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], r12w
mov rax, rsi
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.180385c10
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret