Function at 0x140007d90
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 [0x140104d58]
xor sil, sil
movzx r12d, r9b
movzx r15d, r8w
movzx edi, dl
mov rax, rcx
mov r14d, 1
test rbx, rbx
je 0x140007ebe
movabs r13, 0xffffffff003c2c17
nop dword [rax]
cmp dword [rbx], r14d
jne 0x140007eb1
movzx ecx, byte [rbx + 0x5c]
test cl, cl
je 0x140007e23
mov rdx, qword [rax + 0x10]
lea rax, [rdx + r13]
cmp rax, 0x66
ja 0x140007e23
dec cl
mov eax, 0xffc3d44d
movzx ecx, cl
sub eax, edx
cmp eax, ecx
jle 0x140007eaa
test r12b, r12b
je 0x140007e9e
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x140007e85
cmp qword [rax + 0x3a0], 0
je 0x140007e85
movzx r8d, dil
movzx eax, r15w
movzx edx, byte [r8 + rbx + 0x74]
movzx ecx, byte [rax + rbx + 0x174]
or cl, dl
test cl, 0x20
jne 0x140007e63
cmp byte [rbx + 0x62], 0
je 0x140007e85
test dl, 0x40
jne 0x140007e85
mov rcx, qword [0x140104d70]
mov edx, 0x41e
movzx eax, r15w
shl eax, 0x10
movsxd r9, eax
or r9, r8
mov r8, rbx
call qword [sym.imp.USER32.dll_PostMessageW]
movzx eax, r15w
cmp byte [rax + rbx + 0x174], 0
jl 0x140007edc
movzx eax, dil
cmp byte [rax + rbx + 0x74], 0
jl 0x140007ecc
cmp byte [rbx + 0x5f], 0
movzx esi, sil
cmovne esi, r14d
mov rax, qword [rbp + 0x110]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x140007df0
test r12b, r12b
je 0x140007eef
movzx eax, r14b
jmp 0x1400083ae
movzx eax, dil
and byte [rax + rbx + 0x74], 0x7f
xor al, al
jmp 0x1400083ae
movzx eax, r15w
and byte [rax + rbx + 0x174], 0x7f
xor al, al
jmp 0x1400083ae
movzx eax, byte [0x140105b59]
xor ebx, ebx
movzx r12d, r14b
test al, 0xcf
je 0x140007f19
test sil, sil
jne 0x140007f19
test al, 0xc
movzx r12d, r14b
setne cl
test al, 3
setne al
test al, cl
cmove r12d, ebx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r13, rax
mov esi, ebx
test rax, rax
je 0x140007f60
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 esi, eax
call qword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x140007f60
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x140007f60
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
mov ecx, esi
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
cmp qword [0x140108b10], r13
mov qword [rsp + 0x48], rax
je 0x140007fb5
mov r8d, 0x1c
mov qword [0x140108b10], r13
lea rdx, [rbp + 0xa0]
mov rcx, r13
call qword [sym.imp.USER32.dll_GetClassNameW]
lea rdx, [0x1400e1ca8]
lea rcx, [rbp + 0xa0]
call fcn.1400ab8c0
test eax, eax
sete r8b
mov byte [0x140108b0d], r8b
jmp 0x140007fbd
movzx r8d, byte [0x140108b0d]
xor eax, eax
mov word [rsp + 0x40], bx
mov dword [rsp + 0x42], eax
lea rcx, [0x140105b60]
lea rax, [rsp + 0x50]
mov edx, 2
nop dword [rax]
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 0x140007fe0
movzx esi, byte [0x140108b0c]
test sil, sil
je 0x1400080e9
test r8b, r8b
je 0x1400080e9
cmp dil, 0xe7
je 0x1400080e9
movzx eax, byte [0x140108b0a]
neg al
movzx eax, byte [0x140108b0b]
sbb dl, dl
and dl, 0x20
neg al
sbb cl, cl
and cl, 9
or dl, cl
lea rcx, [rsp + 0x50]
call fcn.140015aa0
movzx edx, word [0x140108b08]
lea r9, [rsp + 0x40]
movzx ecx, sil
lea r8, [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
test eax, eax
jle 0x1400080e1
movzx edx, word [0x140108b08]
lea r9, [rsp + 0x40]
movzx ecx, byte [0x140108b0c]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov byte [0x140108b0c], bl
jmp 0x1400080ee
mov rsi, qword [rsp + 0x48]
movzx edx, byte [0x140105b59]
lea rcx, [rsp + 0x50]
call fcn.140015aa0
mov ecx, reloc.OLEAUT32.dll_SafeArrayLock
call qword [sym.imp.USER32.dll_GetKeyState]
test r14b, al
je 0x140008116
or byte [rsp + 0x64], r14b
jmp 0x14000811b
and byte [rsp + 0x64], 0xfe
cmp dil, 0xe7
jne 0x140008136
mov rsi, qword [rbp + 0x110]
movzx eax, word [rsi + 4]
mov word [rsp + 0x40], ax
jmp 0x1400081cd
test r12b, r12b
je 0x1400081a2
cmp dword [0x140104d20], ebx
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x50]
mov rsi, qword [rbp + 0x110]
mov eax, ebx
setne al
movzx ecx, dil
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
mov edx, dword [rsi + 4]
call qword [sym.imp.USER32.dll_ToUnicodeEx]
test byte [0x140105b59], 3
mov r14d, eax
jne 0x1400081ac
cmp word [rsp + 0x40], 0xd
mov eax, 0xa
jne 0x140008193
mov word [rsp + 0x40], ax
cmp word [rsp + 0x42], 0xd
jne 0x1400081ac
mov word [rsp + 0x42], ax
jmp 0x1400081ac
mov rsi, qword [rbp + 0x110]
mov r14d, ebx
cmp dil, 8
jne 0x1400081cd
test r14d, r14d
je 0x1400081cd
cmp byte [0x140108b0d], bl
je 0x1400081ca
mov r14d, ebx
mov byte [0x140108b0c], bl
jmp 0x1400081cd
dec r14d
lea r9, [rsp + 0x40]
mov dword [rsp + 0x20], r14d
movzx r8d, r15w
movzx edx, dil
mov rcx, rsi
call fcn.1400088a0
test al, al
je 0x140007ee8
movzx esi, byte [0x140108b0c]
test sil, sil
je 0x140008205
test r14d, r14d
jle 0x140008205
mov r12b, 1
jmp 0x140008208
xor r12b, r12b
test r14d, r14d
jns 0x140008281
movzx eax, byte [0x140105b59]
lea r9, [rsp + 0x40]
test al, 0x30
mov byte [0x140108b0c], dil
lea r8, [rsp + 0x50]
mov word [0x140108b08], r15w
setne byte [0x140108b0a]
test al, 0xc
setne cl
test al, 3
setne al
test al, cl
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x110]
setne byte [0x140108b0b]
cmp dword [0x140104d20], ebx
movzx ecx, dil
setne bl
mov edx, dword [rax + 4]
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
jmp 0x1400083ac
cmp dword [0x140105cfc], ebx
je 0x140008336
cmp byte [rbp + 0x130], bl
jne 0x140008336
cmp dil, 8
je 0x1400082c0
sub dil, 0x21
cmp dil, 7
ja 0x1400082e7
cmp dword [0x140104f5c], ebx
je 0x1400082e7
mov word [0x140104f70], bx
mov dword [0x140104f5c], ebx
jmp 0x1400082e7
cmp byte [0x140105b59], bl
jne 0x1400082e7
mov eax, dword [0x140104f5c]
test eax, eax
je 0x1400082e7
dec eax
lea rcx, [0x140104f70]
mov dword [0x140104f5c], eax
cdqe
mov word [rcx + rax*2], bx
test r14d, r14d
jle 0x140008336
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.1400083d0
test al, al
je 0x140007ee8
movzx esi, byte [0x140108b0c]
test r12b, r12b
je 0x1400083ac
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x100
call fcn.1400aa420
movzx eax, byte [0x140108b0a]
neg al
movzx eax, byte [0x140108b0b]
sbb dl, dl
and dl, 0x20
neg al
sbb cl, cl
and cl, 9
or dl, cl
lea rcx, [rsp + 0x50]
call fcn.140015aa0
mov rax, qword [rsp + 0x48]
lea r9, [rsp + 0x48]
movzx edx, word [0x140108b08]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
movzx ecx, sil
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov byte [0x140108b0c], 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