Function at 0x140016f90
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
movaps xmmword [rax - 0x78], xmm9
mov rax, qword [0x1401620c0]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov qword [rsp + 0x58], r9
mov rbx, rdx
mov r13, qword [rbp + 0xe0]
test edx, edx
jne 0x140016fff
mov rax, rdx
shr rax, 0x20
test eax, eax
jne 0x140016fff
mov rcx, r9
call fcn.1400516b0
xor eax, eax
jmp 0x1400178aa
movsxd rax, dword [r13]
xor r12d, r12d
lea rdx, [r9 + 8]
mov qword [rsp + 0x60], rdx
test eax, eax
jns 0x140017019
mov dword [r13], r12d
jmp 0x140017034
mov rcx, qword [rdx]
sub rcx, qword [r9]
sar rcx, 5
cmp rax, rcx
jb 0x140017034
lea eax, [rcx - 1]
mov dword [r13], eax
mov qword [rsp + 0x60], rdx
movzx r10d, word [rbp + 0xe8]
mov qword [rsp + 0x68], r10
test r10w, r10w
jne 0x140017056
mov r10d, dword [rdx]
sub r10d, dword [r9]
sar r10, 5
mov qword [rsp + 0x68], r10
mov qword [rbp], r12
movsx eax, r8w
imul r14d, eax, 0x1e
mov dword [rsp + 0x50], r14d
mov r15d, dword [rbp + 0xcc]
lea edi, [r14 + r15]
lea r8d, [rdi - 0xa]
lea ecx, [rbx + 0x35]
mov dword [rbp + 0x1c], r12d
mov dword [rbp + 0x2c], r12d
mov dword [rbp - 0x10], r12d
mov dword [rbp - 0xc], 1
mov rax, r12
shr rax, 0x20
movzx edx, al
shl edx, 8
mov dword [rbp + 0x10], ecx
mov dword [rbp + 0x14], r8d
lea eax, [rcx + 0xea]
mov dword [rbp + 0x20], eax
movsx eax, r10w
imul esi, eax, 0x19
lea eax, [r8 + 5]
add eax, esi
mov dword [rbp + 0x24], eax
movzx eax, dl
shl ax, 8
mov word [rbp + 0x18], ax
mov word [rbp + 0x1a], dx
mov word [rbp + 0x28], ax
mov word [rbp + 0x2a], dx
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 1
lea r9, [rbp - 0x10]
mov r8d, 2
lea rdx, [rbp + 0x10]
mov rcx, qword [0x140163d00]
call qword [sym.imp.MSIMG32.dll_GradientFill]
mov dword [rsp + 0x70], 0xa
mov dword [rsp + 0x74], 0xa
mov eax, 0x66666667
imul dword [0x140163cd4]
mov r10d, edx
sar r10d, 2
mov eax, r10d
shr eax, 0x1f
add r10d, eax
mov dword [rbp], r10d
mov eax, 0x66666667
imul dword [0x140163cd8]
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov dword [rbp + 4], edx
lea r9d, [rdi - 9]
lea r11d, [rbx + 0x36]
mov dword [rbp - 0x10], r11d
mov word [rbp + 0x1e], r12w
mov dword [rbp + 0x2c], 0xa00
mov dword [rbp - 8], r12d
mov dword [rbp - 4], 1
mov eax, 0x66666667
imul dword [0x140163cdc]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx r8d, dl
mov rax, qword [rbp]
shr rax, 0x20
movzx edx, al
shl edx, 8
mov eax, r8d
shl eax, 0x10
or edx, eax
movzx eax, r10b
or edx, eax
mov rax, qword [rsp + 0x70]
shr rax, 0x20
movzx ecx, al
shl ecx, 8
or ecx, 0xa000a
mov dword [rbp + 0x10], r11d
mov dword [rbp + 0x14], r9d
lea eax, [r11 + 0xe8]
mov dword [rbp + 0x20], eax
lea eax, [r9 + 3]
add eax, esi
mov dword [rbp + 0x24], eax
movzx eax, dl
shl ax, 8
mov word [rbp + 0x18], ax
mov r9d, 0xff00
and dx, r9w
mov word [rbp + 0x1a], dx
shl r8w, 8
mov word [rbp + 0x1c], r8w
movzx eax, cl
shl ax, 8
mov word [rbp + 0x28], ax
and cx, r9w
mov word [rbp + 0x2a], cx
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 1
lea r9, [rbp - 8]
mov r8d, 2
lea rdx, [rbp + 0x10]
mov rcx, qword [0x140163d00]
call qword [sym.imp.MSIMG32.dll_GradientFill]
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x58]
sub rax, qword [rcx]
sar rax, 5
test rax, rax
je 0x14001789a
xor r10d, r10d
mov edi, r10d
movdqa xmm9, xmmword [0x14014fee0]
movdqa xmm8, xmmword [0x14014fea0]
movdqa xmm7, xmmword [0x14014fe40]
nop dword [rax + rax]
cmp r12w, word [rsp + 0x68]
jge 0x14001787a
movsx eax, r12w
imul r9d, eax, 0x19
add r9d, 0xfffffffb
add r9d, r14d
add r9d, r15d
mov edx, dword [0x140163d08]
mov eax, dword [0x140163d10]
cmp edx, eax
jl 0x1400172e7
cmp edx, dword [0x140163d18]
jg 0x1400172e7
mov ecx, dword [0x140163d0c]
mov r8d, dword [0x140163d14]
cmp ecx, r8d
jl 0x1400172e7
cmp ecx, dword [0x140163d1c]
jg 0x1400172e7
sub edx, eax
mov eax, dword [rbp - 0x10]
cmp edx, eax
jl 0x1400172e7
add eax, 0xe8
cmp edx, eax
jg 0x1400172e7
sub ecx, r8d
cmp ecx, r9d
jl 0x1400172e7
lea eax, [r9 + 0x14]
cmp ecx, eax
mov esi, 1
jle 0x1400172ea
mov esi, r10d
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, qword [0x140163ce8]
jne 0x14001739a
cmp dword [0x140163d28], 0
jne 0x14001739a
test esi, esi
je 0x14001739a
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x140017348
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 4
call qword [sym.imp.USER32.dll_mouse_event]
movsx eax, r12w
mov dword [r13], eax
mov ecx, Ordinal_41
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x140017371
xor r9d, r9d
xor edx, edx
mov r8d, 2
mov cl, 0x26
call qword [sym.imp.USER32.dll_keybd_event]
dec dword [r13]
mov ecx, Ordinal_41
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x14001739a
xor r9d, r9d
xor edx, edx
mov r8d, 2
mov cl, Ordinal_41
call qword [sym.imp.USER32.dll_keybd_event]
inc dword [r13]
movsx eax, r12w
cmp dword [r13], eax
jne 0x1400175ad
mov dword [rbp - 0x80], reloc.WS2_32.dll_ntohs
mov dword [rbp - 0x7c], reloc.WS2_32.dll_ntohs
mov eax, 0x2aaaaaab
imul dword [0x140163cd4]
mov r10d, edx
shr r10d, 0x1f
add r10d, edx
mov dword [rsp + 0x70], r10d
mov eax, 0x2aaaaaab
imul dword [0x140163cd8]
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rsp + 0x74], edx
movsx r15d, r12w
imul eax, r15d, 0x19
add eax, r14d
mov r9d, dword [rbp + 0xcc]
add r9d, 0xfffffffb
add r9d, eax
xor r11d, r11d
mov word [rbp + 0x1e], r11w
mov word [rbp + 0x2e], r11w
mov dword [rbp - 8], r11d
mov dword [rbp - 4], 1
mov eax, 0x2aaaaaab
imul dword [0x140163cdc]
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx r8d, dl
mov rax, qword [rsp + 0x70]
shr rax, 0x20
movzx ecx, al
shl ecx, 8
mov eax, r8d
shl eax, 0x10
or ecx, eax
movzx eax, r10b
or ecx, eax
mov rax, qword [rbp - 0x80]
shr rax, 0x20
movzx edx, al
shl edx, 8
or edx, 0xf000f
mov eax, dword [rbp - 0x10]
mov dword [rbp + 0x10], eax
mov dword [rbp + 0x14], r9d
add eax, 0xe8
mov dword [rbp + 0x20], eax
lea eax, [r9 + 0x14]
mov dword [rbp + 0x24], eax
movzx eax, cl
shl ax, 8
mov word [rbp + 0x18], ax
mov r9d, 0xff00
and cx, r9w
mov word [rbp + 0x1a], cx
shl r8w, 8
mov word [rbp + 0x1c], r8w
movzx eax, dl
shl ax, 8
mov word [rbp + 0x28], ax
movzx eax, dx
and ax, r9w
mov word [rbp + 0x2a], ax
shr edx, 0x10
shl dx, 8
mov word [rbp + 0x2c], dx
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x20], 1
lea r9, [rbp - 8]
mov r8d, 2
lea rdx, [rbp + 0x10]
mov rcx, qword [0x140163d00]
call qword [sym.imp.MSIMG32.dll_GradientFill]
movzx r14d, word [0x140163cd0]
lea rdx, [0x140163cb0]
lea rcx, [rbp - 0x50]
call fcn.140029420
mov rsi, rax
shl rdi, 5
mov rax, qword [rsp + 0x58]
mov rdx, qword [rax]
add rdx, rdi
lea rcx, [rbp - 0x30]
call fcn.140029420
movdqa xmmword [rbp + 0x10], xmm7
imul r8d, r15d, 0x19
add r8d, dword [rsp + 0x50]
add r8d, dword [rbp + 0xcc]
lea edx, [rbx + 0x42]
mov word [rsp + 0x38], 0x258
mov word [rsp + 0x30], r14w
mov qword [rsp + 0x28], rsi
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x20], rcx
mov r9, rax
call fcn.14000ef50
movzx r14d, word [0x140163cd0]
lea rdx, [0x140163cb0]
lea rcx, [rbp - 0x30]
call fcn.140029420
mov rsi, rax
movups xmm6, xmmword [0x140163cd4]
mov rax, qword [rsp + 0x58]
mov rdx, qword [rax]
add rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.140029420
movaps xmmword [rbp + 0x10], xmm6
imul ecx, r15d, 0x19
add ecx, dword [rsp + 0x50]
mov r15d, dword [rbp + 0xcc]
lea r8d, [r15 - 1]
add r8d, ecx
mov word [rsp + 0x38], 0x258
jmp 0x14001784e
test esi, esi
je 0x140017701
mov dword [rbp - 0x60], reloc.WS2_32.dll_ntohs
mov dword [rbp - 0x5c], reloc.WS2_32.dll_ntohs
mov ecx, dword [0x140163cd4]
mov eax, 0x92492493
imul ecx
lea r10d, [rcx + rdx]
sar r10d, 2
mov eax, r10d
shr eax, 0x1f
add r10d, eax
mov dword [rbp - 0x70], r10d
mov eax, 0x92492493
imul dword [0x140163cd8]
add edx, dword [0x140163cd8]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rbp - 0x6c], edx
movsx eax, r12w
imul r9d, eax, 0x19
add r9d, 0xfffffffb
add r9d, r14d
add r9d, r15d
xor r11d, r11d
mov word [rbp + 0x1e], r11w
mov word [rbp + 0x2e], r11w
mov dword [rbp], r11d
mov dword [rbp + 4], 1
mov eax, 0x92492493
imul dword [0x140163cdc]
add edx, dword [0x140163cdc]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx r8d, dl
mov rax, qword [rbp - 0x70]
shr rax, 0x20
movzx ecx, al
shl ecx, 8
mov eax, r8d
shl eax, 0x10
or ecx, eax
movzx eax, r10b
or ecx, eax
mov rax, qword [rbp - 0x60]
shr rax, 0x20
movzx edx, al
shl edx, 8
or edx, 0xf000f
mov eax, dword [rbp - 0x10]
mov dword [rbp + 0x10], eax
mov dword [rbp + 0x14], r9d
add eax, 0xe8
mov dword [rbp + 0x20], eax
lea eax, [r9 + 0x14]
mov dword [rbp + 0x24], eax
movzx eax, cl
shl ax, 8
mov word [rbp + 0x18], ax
mov r9d, 0xff00
and cx, r9w
mov word [rbp + 0x1a], cx
shl r8w, 8
mov word [rbp + 0x1c], r8w
movzx eax, dl
shl ax, 8
mov word [rbp + 0x28], ax
movzx eax, dx
and ax, r9w
mov word [rbp + 0x2a], ax
shr edx, 0x10
shl dx, 8
mov word [rbp + 0x2c], dx
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x20], 1
lea r9, [rbp]
mov r8d, 2
lea rdx, [rbp + 0x10]
mov rcx, qword [0x140163d00]
call qword [sym.imp.MSIMG32.dll_GradientFill]
movzx r14d, word [0x140163cd0]
lea rdx, [0x140163cb0]
lea rcx, [rbp - 0x30]
call fcn.140029420
mov rsi, rax
mov r15, rdi
shl r15, 5
mov rax, qword [rsp + 0x58]
mov rdx, qword [rax]
add rdx, r15
lea rcx, [rbp - 0x50]
call fcn.140029420
movdqa xmmword [rbp + 0x10], xmm7
movsx ecx, r12w
imul r8d, ecx, 0x19
add r8d, dword [rsp + 0x50]
add r8d, dword [rbp + 0xcc]
lea edx, [rbx + 0x42]
mov word [rsp + 0x38], 0x190
mov word [rsp + 0x30], r14w
mov qword [rsp + 0x28], rsi
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x20], rcx
mov r9, rax
call fcn.14000ef50
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx]
add rcx, r15
mov rdx, qword [rcx + 0x10]
mov rax, rcx
mov r8, qword [rcx + 0x18]
cmp r8, 0xf
jbe 0x140017795
mov rax, qword [rcx]
cmp rdx, 4
jne 0x1400177a3
cmp dword [rax], 0x656e6f4e
je 0x1400177ba
cmp r8, 0xf
jbe 0x1400177ac
mov rcx, qword [rcx]
cmp rdx, 4
jne 0x1400177f5
cmp dword [rcx], 0x656e6f6e
jne 0x1400177f5
movzx r14d, word [0x140163cd0]
lea rdx, [0x140163cb0]
lea rcx, [rbp - 0x30]
call fcn.140029420
mov rsi, rax
shl rdi, 5
mov rax, qword [rsp + 0x58]
add rdi, qword [rax]
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.140029420
movdqa xmmword [rbp + 0x10], xmm8
jmp 0x14001782e
movzx r14d, word [0x140163cd0]
lea rdx, [0x140163cb0]
lea rcx, [rbp - 0x30]
call fcn.140029420
mov rsi, rax
shl rdi, 5
mov rax, qword [rsp + 0x58]
add rdi, qword [rax]
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.140029420
movdqa xmmword [rbp + 0x10], xmm9
movsx ecx, r12w
imul edx, ecx, 0x19
mov r15d, dword [rbp + 0xcc]
add edx, dword [rsp + 0x50]
lea r8d, [r15 - 1]
mov word [rsp + 0x38], 0x190
add r8d, edx
mov word [rsp + 0x30], r14w
mov qword [rsp + 0x28], rsi
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x20], rcx
mov r9, rax
lea edx, [rbx + 0x41]
call fcn.14000ef50
mov rcx, qword [rsp + 0x58]
mov r14d, dword [rsp + 0x50]
xor r10d, r10d
inc r12w
movsx rdi, r12w
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
sub rax, qword [rcx]
sar rax, 5
cmp rdi, rax
jb 0x140017270
mov ebx, dword [r13]
mov rcx, qword [rsp + 0x58]
call fcn.1400516b0
mov eax, ebx
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140134750
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret