Function at 0x140017060
Capabilities:
Log keystrokes via polling

Disassembly:
push rsi
push rdi
sub rsp, 0x98
mov rax, qword [0x140102040]
xor rax, rsp
mov qword [rsp + 0x88], rax
cmp byte [0x140102499], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov rsi, r8
mov rdi, rdx
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x38], r9
movups xmmword [rsp + 0x68], xmm0
je 0x1400172df
mov qword [rsp + 0x90], rbx
nop
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x48]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140017113
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x48]
call qword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [rsp + 0x50], 0x12
jne 0x1400170f4
mov byte [0x140102499], 0
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x48]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x1400170d0
cmp byte [0x140102499], 0
je 0x1400172d7
mov rax, qword [0x140106210]
test rax, rax
je 0x140017135
mov rcx, qword [rax + 0xa0]
jmp 0x140017137
xor ecx, ecx
cmp qword [rcx + 0x48], 0
jne 0x140017143
call fcn.140064880
call fcn.140065ab0
call fcn.14003a020
cmp dword [0x1401065d8], 0
jbe 0x14001725f
call fcn.1400045c0
lea rcx, [0x140106390]
call fcn.14000bf20
mov ecx, 0x70
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140017188
cmp byte [0x140106378], 0
sete byte [0x140106378]
mov ecx, 0x71
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1400171a5
cmp byte [0x140106371], 0
sete byte [0x140106371]
mov ecx, 0x72
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1400171d0
cmp byte [0x140102497], 0
sete byte [0x140102497]
cmp byte [0x14010249b], 0
sete byte [0x14010249b]
mov ecx, 0x56
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1400171ed
cmp byte [0x140106370], 0
sete byte [0x140106370]
call fcn.1400163e0
call fcn.140011cd0
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], 1
call fcn.140021e80
mov r8d, dword [0x1401065d8]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140017258
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, rbx
test eax, eax
je 0x140017252
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x40], 0x103
sete al
test al, al
jne 0x14001725f
jmp 0x140017258
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [0x140102499], 0
call fcn.14003c0a0
mov rax, qword [rdi]
lea r8, [rsp + 0x38]
xor r9d, r9d
xorps xmm0, xmm0
mov rcx, rdi
movups xmmword [rsp + 0x78], xmm0
lea edx, [r9 + 1]
call qword [rax + 0x108]
mov rax, qword [rdi]
lea r8, [rsp + 0x78]
mov rdx, qword [rsp + 0x38]
mov rcx, rdi
call qword [rax + 0x190]
mov rax, qword [0x140106210]
mov rcx, qword [rax + 0x4bd8]
mov rax, qword [rcx]
xor ecx, ecx
add rax, 0x50
cmp byte [rax], cl
cmovne rcx, rax
call fcn.140063df0
mov rax, qword [rsi]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [rax + 0x40]
cmp byte [0x140102499], 0
jne 0x1400170b0
mov rbx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14008a030
add rsp, 0x98
pop rdi
pop rsi
ret