Function at 0x140016650
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
xorps xmm0, xmm0
lea r15, [0x14018ade0]
movups xmmword [0x1408f3060], xmm0
xor esi, esi
mov r14d, 0xffff
movups xmmword [0x1408f3070], xmm0
lea rdi, [0x14015d668]
movups xmmword [0x1408f3080], xmm0
lea r12, [0x1401775d0]
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [0x1408f3630]
lea rcx, [0x1408f3060]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1400166f0
lea rcx, [0x1408f3060]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [0x1408f3060]
call qword [sym.imp.USER32.dll_DispatchMessageW]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, qword [0x1408f2fb8]
cmp rax, rcx
jne 0x140016748
mov edx, 3
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindow]
mov rcx, qword [0x1408f3630]
mov r9d, 2
mov dword [rsp + 0x30], 3
mov r8d, r9d
mov dword [rsp + 0x28], 0xfffffffd
mov rdx, rax
mov dword [rsp + 0x20], 0xfffffffd
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [0x1408f2fb8]
xorps xmm0, xmm0
mov qword [rbp + 0x90], rsi
lea rdx, [0x1408f3148]
movups xmmword [0x1408f3148], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
mov rcx, qword [0x1408f2fb8]
lea rdx, [rbp + 0x90]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [rbp + 0x90]
lea rdx, [rbp - 0x30]
mov rbx, qword [0x1408f31a8]
xorps xmm2, xmm2
mov dword [0x1408f3148], eax
mov eax, dword [rbp + 0x94]
mov dword [0x1408f314c], eax
mov rax, qword [0x1408f2fb8]
mov rcx, qword [rbx + 0x58]
or dword [rbx + 8], 3
movups xmmword [rsp + 0x50], xmm2
mov qword [rbx + 0xd0], rax
xor eax, eax
movups xmmword [rbp - 0x70], xmm2
mov qword [rbp - 0x40], rax
movups xmmword [rsp + 0x40], xmm2
mov byte [rsp + 0x4c], 1
movups xmm0, xmmword [rsp + 0x40]
mov dword [rsp + 0x58], 3
movups xmmword [rbp - 0x80], xmm2
mov dword [rsp + 0x5c], 1
movups xmm1, xmmword [rsp + 0x50]
mov dword [rbp - 0x7c], 0x7f7fffff
movaps xmmword [rbp - 0x30], xmm0
movups xmm0, xmmword [rbp - 0x80]
mov dword [rbp - 0x70], 0x3f800000
movaps xmmword [rbp - 0x20], xmm1
movaps xmmword [rbp + 0x10], xmm0
movsd xmm0, qword [rbp - 0x40]
movaps xmmword [rbp], xmm2
mov word [rbp - 0x6c], r14w
movups xmm1, xmmword [rbp - 0x70]
mov dword [rbx + 0x18], 0x3c888889
movsd qword [rbp + 0x50], xmm0
movaps xmmword [rbp - 0x10], xmm2
movaps xmmword [rbp + 0x20], xmm1
movaps xmmword [rbp + 0x30], xmm2
movaps xmmword [rbp + 0x40], xmm2
mov qword [rbp - 0x30], r15
mov dword [rbp - 0x28], 0x13368
mov dword [rbp - 0x1c], 0x41880000
mov qword [rbp + 8], rdi
call fcn.14004baf0
xorps xmm2, xmm2
xor eax, eax
movups xmmword [rsp + 0x50], xmm2
mov dword [rsp + 0x58], 3
movups xmmword [rbp - 0x70], xmm2
mov dword [rsp + 0x5c], 1
movups xmm1, xmmword [rsp + 0x50]
mov dword [rbp - 0x70], 0x3f800000
movups xmmword [rsp + 0x40], xmm2
mov byte [rsp + 0x4c], 1
movups xmm0, xmmword [rsp + 0x40]
mov word [rbp - 0x6c], r14w
movups xmmword [rbp - 0x80], xmm2
mov dword [rbp - 0x7c], 0x7f7fffff
movaps xmmword [rbp - 0x30], xmm0
movups xmm0, xmmword [rbp - 0x80]
mov qword [rbp - 0x40], rax
movaps xmmword [rbp - 0x20], xmm1
movups xmm1, xmmword [rbp - 0x70]
mov qword [rbp - 0x30], r12
movaps xmmword [rbp + 0x10], xmm0
movsd xmm0, qword [rbp - 0x40]
movsd qword [rbp + 0x50], xmm0
movaps xmmword [rbp - 0x10], xmm2
movaps xmmword [rbp], xmm2
movaps xmmword [rbp + 0x20], xmm1
movaps xmmword [rbp + 0x30], xmm2
movaps xmmword [rbp + 0x40], xmm2
mov dword [rbp - 0x28], 0x13328
mov dword [rbp - 0x1c], 0x41880000
mov rcx, qword [rbx + 0x58]
lea rdx, [rbp - 0x30]
mov qword [rbp + 8], rdi
call fcn.14004baf0
lea rcx, [rbp + 0x98]
mov qword [0x1408f3120], rax
call qword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [rbp + 0x98]
mov ecx, 1
sub eax, dword [rbp + 0x90]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0xdfc], xmm0
mov eax, dword [rbp + 0x9c]
sub eax, dword [rbp + 0x94]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0xe00], xmm0
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x14001696c
mov byte [rbx + 0xe04], 1
mov eax, dword [rbx + 0xe00]
mov dword [rbx + 0x36e8], eax
mov byte [rbx + 0x3738], 1
jmp 0x140016973
mov byte [rbx + 0xe04], sil
mov eax, dword [0x1408f39d8]
cmp dword [0x1408f3148], eax
mov edx, dword [0x1408f3154]
mov ecx, dword [0x1408f3150]
jne 0x1400169ab
cmp ecx, dword [0x1408f39e0]
jne 0x1400169ab
mov eax, dword [0x1408f39dc]
cmp dword [0x1408f314c], eax
jne 0x1400169ab
cmp edx, dword [0x1408f39e4]
je 0x140016a0c
movups xmm0, xmmword [0x1408f3148]
mov r9d, dword [rbp + 0x94]
lea eax, [rdx - 3]
mov r8d, dword [rbp + 0x90]
add r9d, 2
mov dword [0x1408f32a4], ecx
add r8d, 2
mov dword [0x1408f2fe0], ecx
add ecx, 0xfffffffd
mov dword [rsp + 0x30], 8
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov rcx, qword [0x1408f3630]
mov dword [0x1408f3278], edx
mov dword [0x1408f2fe4], edx
xor edx, edx
movups xmmword [0x1408f39d8], xmm0
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rax, qword [0x1408f31a8]
test rax, rax
je 0x140016a21
mov rcx, qword [rax + 0xa0]
jmp 0x140016a24
mov rcx, rsi
cmp qword [rcx + 0x48], rsi
jne 0x140016a2f
call fcn.140052240
call fcn.140053000
call fcn.140028b70
mov ecx, reloc.WLDAP32.dll_Ordinal_46
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140016a5a
cmp byte [reloc.WS2_32.dll_accept], sil
sete al
mov byte [reloc.WS2_32.dll_accept], al
jmp 0x140016a61
movzx eax, byte [reloc.WS2_32.dll_accept]
test al, al
mov rax, qword [0x1408f31a8]
je 0x140016a77
mov byte [rax + 0x78], 1
call fcn.140004590
jmp 0x140016a7b
mov byte [rax + 0x78], sil
call fcn.140011b40
mov rcx, qword [0x1408f2fb0]
lea r8, [0x1408f3158]
xor r9d, r9d
mov rax, qword [rcx]
lea edx, [r9 + 1]
call qword [rax + 0x108]
mov rcx, qword [0x1408f2fb0]
lea r8, [0x1408f3130]
mov rdx, qword [0x1408f3158]
mov rax, qword [rcx]
call qword [rax + 0x190]
call fcn.14002abb0
mov rax, qword [0x1408f31a8]
mov rcx, qword [rax + 0x48a8]
mov rax, qword [rcx]
mov rcx, rsi
add rax, 0x48
cmp byte [rax], cl
cmovne rcx, rax
call fcn.140051810
mov rcx, qword [0x1408f3050]
xor r8d, r8d
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x40]
mov rcx, qword [0x1408f3050]
xor r8d, r8d
cmp byte [0x1408f2fcc], sil
mov rax, qword [rcx]
je 0x140016b12
lea edx, [r8 + 1]
jmp 0x140016b14
xor edx, edx
call qword [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x1408f3068], 0x12
jne 0x1400166b0
mov rdi, qword [0x1408f31a8]
test rdi, rdi
je 0x140016b4a
mov rbx, qword [rdi + 0xa0]
jmp 0x140016b4d
mov rbx, rsi
call fcn.140052720
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140016b61
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbx]
test rcx, rcx
je 0x140016b6f
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140016b7e
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rax, qword [0x1408f31a8]
mov qword [rdi + 0x90], rsi
mov qword [rdi + 0xa0], rsi
test rax, rax
je 0x140016b9e
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x1408f31a8]
test rax, rax
je 0x140016bbc
mov rbx, qword [rax + 0x98]
jmp 0x140016bbf
mov rbx, rsi
mov rcx, qword [rbx + 0x30]
lea rdi, [rax + 8]
test rcx, rcx
je 0x140016bd9
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [0x1408f31a8]
mov qword [rdi + 0x80], rsi
mov qword [rdi + 0x90], rsi
test rax, rax
je 0x140016bf2
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [0x1408f31a8]
mov qword [0x1408f31a8], rbx
call fcn.1400269f0
mov qword [0x1408f31a8], rsi
test rbx, rbx
je 0x140016c3d
mov rcx, rbx
call fcn.14003c420
mov rax, qword [0x1408f31a8]
test rax, rax
je 0x140016c34
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x1408f3630]
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
jmp qword [sym.imp.USER32.dll_DestroyWindow]