Function at 0x140015660
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x1400bc010]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov r13, r9
mov rbx, rdx
mov r14, qword [rbp + 0xa0]
test edx, edx
jne 0x1400156ba
mov rax, rdx
shr rax, 0x20
test eax, eax
jne 0x1400156ba
mov rcx, r9
call fcn.14003fa80
xor eax, eax
jmp 0x140015e34
movsxd rax, dword [r14]
xor r12d, r12d
lea r15, [r9 + 8]
mov qword [rsp + 0x60], r15
test eax, eax
jns 0x1400156d2
mov dword [r14], r12d
jmp 0x1400156ec
mov rcx, qword [r15]
sub rcx, qword [r9]
sar rcx, 5
cmp rax, rcx
jb 0x1400156ec
lea eax, [rcx - 1]
mov dword [r14], eax
mov qword [rsp + 0x60], r15
movzx eax, word [rbp + 0xa8]
mov qword [rsp + 0x68], rax
test ax, ax
jne 0x14001570c
mov eax, dword [r15]
sub eax, dword [r9]
sar rax, 5
mov qword [rsp + 0x68], rax
movdqa xmm0, xmmword [0x1400b5350]
movdqa xmmword [rbp + 0x10], xmm0
cwde
imul esi, eax, 0x19
movsx eax, r8w
imul eax, eax, 0x1e
mov dword [rsp + 0x5c], eax
mov edi, dword [rbp + 0x8c]
add edi, eax
lea eax, [rsi + 5]
lea r8d, [rdi - 0xa]
add edx, 0x35
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], eax
mov r9d, 0xea
call fcn.14000d760
mov dword [rbp - 0x30], 0xa
mov dword [rbp - 0x2c], 0xa
mov eax, 0x66666667
imul dword [0x1400bd024]
mov r9d, edx
sar r9d, 2
mov eax, r9d
shr eax, 0x1f
add r9d, eax
mov dword [rbp - 0x20], r9d
mov eax, 0x66666667
imul dword [0x1400bd028]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rbp - 0x1c], edx
add edi, 0xfffffff7
lea r10d, [rbx + 0x36]
mov dword [rsp + 0x54], r10d
mov word [rbp + 0x1e], r12w
mov word [rbp + 0x2e], r12w
mov dword [rbp - 0x40], r12d
mov dword [rbp - 0x3c], 1
mov rcx, qword [rbp - 0x20]
shr rcx, 0x20
movzx r8d, cl
shl r8d, 8
mov eax, 0x66666667
imul dword [0x1400bd02c]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dl
shl eax, 0x10
or r8d, eax
movzx eax, r9b
or r8d, eax
mov rax, qword [rbp - 0x30]
shr rax, 0x20
movzx ecx, al
shl ecx, 8
or ecx, 0xa000a
mov dword [rbp + 0x10], r10d
mov dword [rbp + 0x14], edi
lea eax, [r10 + 0xe8]
mov dword [rsp + 0x58], eax
mov dword [rbp + 0x20], eax
lea eax, [rdi + 3]
add eax, esi
mov dword [rbp + 0x24], eax
movzx eax, r8b
shl ax, 8
mov word [rbp + 0x18], ax
movzx eax, r8w
mov edx, 0xff00
and ax, dx
mov word [rbp + 0x1a], ax
shr r8d, 0x10
shl r8w, 8
mov word [rbp + 0x1c], r8w
movzx eax, cl
shl ax, 8
mov word [rbp + 0x28], ax
movzx eax, cx
and ax, dx
mov word [rbp + 0x2a], ax
shr ecx, 0x10
shl cx, 8
mov word [rbp + 0x2c], cx
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 1
lea r9, [rbp - 0x40]
mov r8d, 2
lea rdx, [rbp + 0x10]
mov rcx, qword [0x1400bd050]
call qword [sym.imp.MSIMG32.dll_GradientFill]
xor r10d, r10d
mov rax, qword [r15]
sub rax, qword [r13]
sar rax, 5
test rax, rax
je 0x140015e27
mov r15d, r10d
nop dword [rax]
cmp r12w, word [rsp + 0x68]
jge 0x140015e06
movsx esi, r12w
imul eax, esi, 0x19
add eax, dword [rsp + 0x5c]
add eax, dword [rbp + 0x8c]
mov dword [rsp + 0x50], eax
lea edx, [rax - 5]
mov dword [rbp - 0x40], edx
mov eax, dword [0x1400bd058]
mov r8d, dword [0x1400bd060]
cmp eax, r8d
jl 0x14001592d
cmp eax, dword [0x1400bd068]
jg 0x14001592d
mov ecx, dword [0x1400bd05c]
mov r9d, dword [0x1400bd064]
cmp ecx, r9d
jl 0x14001592d
cmp ecx, dword [0x1400bd06c]
jg 0x14001592d
sub eax, r8d
cmp eax, dword [rsp + 0x54]
jl 0x14001592d
cmp eax, dword [rsp + 0x58]
jg 0x14001592d
sub ecx, r9d
cmp ecx, edx
jl 0x14001592d
lea eax, [rdx + 0x14]
cmp ecx, eax
mov edi, 1
jle 0x140015930
mov edi, r10d
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, qword [0x1400bd038]
jne 0x1400159cb
cmp dword [0x1400bd078], 0
jne 0x1400159cb
test edi, edi
je 0x1400159cb
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x14001597f
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.USER32.dll_mouse_event]
mov dword [r14], esi
mov ecx, 0x26
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x1400159a5
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
mov cl, 0x26
call qword [sym.imp.USER32.dll_keybd_event]
dec dword [r14]
mov ecx, 0x28
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x1400159cb
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
mov cl, 0x28
call qword [sym.imp.USER32.dll_keybd_event]
inc dword [r14]
cmp dword [r14], esi
jne 0x140015ba1
mov dword [rbp - 0x80], 0xf
mov dword [rbp - 0x7c], 0xf
mov eax, 0x2aaaaaab
imul dword [0x1400bd024]
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [rsp + 0x70], ecx
mov eax, 0x2aaaaaab
imul dword [0x1400bd028]
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rsp + 0x74], edx
xor r9d, r9d
mov word [rbp - 2], r9w
mov word [rbp + 0xe], r9w
mov dword [rbp - 0x30], r9d
mov dword [rbp - 0x2c], 1
mov rax, qword [rsp + 0x70]
shr rax, 0x20
movzx r8d, al
shl r8d, 8
mov eax, 0x2aaaaaab
imul dword [0x1400bd02c]
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dl
shl eax, 0x10
or r8d, eax
movzx eax, cl
or r8d, eax
mov rax, qword [rbp - 0x80]
shr rax, 0x20
movzx ecx, al
shl ecx, 8
or ecx, 0xf000f
mov eax, dword [rsp + 0x54]
mov dword [rbp - 0x10], eax
mov eax, dword [rbp - 0x40]
mov dword [rbp - 0xc], eax
mov edx, dword [rsp + 0x58]
mov dword [rbp], edx
add eax, 0x14
mov dword [rbp + 4], eax
movzx eax, r8b
shl ax, 8
mov word [rbp - 8], ax
movzx eax, r8w
mov edx, 0xff00
and ax, dx
mov word [rbp - 6], ax
shr r8d, 0x10
shl r8w, 8
mov word [rbp - 4], r8w
movzx eax, cl
shl ax, 8
mov word [rbp + 8], ax
movzx eax, cx
and ax, dx
mov word [rbp + 0xa], ax
shr ecx, 0x10
shl cx, 8
mov word [rbp + 0xc], cx
mov dword [rsp + 0x28], r9d
mov dword [rsp + 0x20], 1
lea r9, [rbp - 0x30]
mov r8d, 2
lea rdx, [rbp - 0x10]
mov rcx, qword [0x1400bd050]
call qword [sym.imp.MSIMG32.dll_GradientFill]
movdqa xmm0, xmmword [0x1400b5350]
movdqa xmmword [rbp - 0x40], xmm0
shl r15, 5
mov rdi, qword [r13]
add rdi, r15
lea rdx, [0x1400bd000]
lea rcx, [rbp - 0x10]
call fcn.14003f680
mov rsi, rax
mov rdx, rdi
lea rcx, [rbp - 0x60]
call fcn.14003f680
mov r9, rax
lea edx, [rbx + 0x42]
mov eax, 0x258
mov word [rsp + 0x38], ax
movzx ecx, word [0x1400bd020]
mov word [rsp + 0x30], cx
mov qword [rsp + 0x28], rsi
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r8d, dword [rsp + 0x50]
call fcn.14000d850
movups xmm0, xmmword [0x1400bd024]
movaps xmmword [rbp - 0x40], xmm0
mov rdi, qword [r13]
add rdi, r15
lea rdx, [0x1400bd000]
lea rcx, [rbp - 0x60]
call fcn.14003f680
mov rsi, rax
mov rdx, rdi
lea rcx, [rbp - 0x10]
call fcn.14003f680
mov r9, rax
mov eax, 0x258
jmp 0x140015dd4
test edi, edi
je 0x140015ce8
mov dword [rbp + 0x10], 0xf
mov dword [rbp + 0x14], 0xf
mov ecx, dword [0x1400bd024]
mov eax, 0x92492493
imul ecx
lea r9d, [rcx + rdx]
sar r9d, 2
mov eax, r9d
shr eax, 0x1f
add r9d, eax
mov dword [rbp - 0x70], r9d
mov eax, 0x92492493
imul dword [0x1400bd028]
add edx, dword [0x1400bd028]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rbp - 0x6c], edx
xor r10d, r10d
mov word [rbp - 2], r10w
mov word [rbp + 0xe], r10w
mov dword [rbp - 0x20], r10d
mov dword [rbp - 0x1c], 1
mov rax, qword [rbp - 0x70]
shr rax, 0x20
movzx r8d, al
shl r8d, 8
mov eax, 0x92492493
imul dword [0x1400bd02c]
add edx, dword [0x1400bd02c]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dl
shl eax, 0x10
or r8d, eax
movzx eax, r9b
or r8d, eax
mov rax, qword [rbp + 0x10]
shr rax, 0x20
movzx ecx, al
shl ecx, 8
or ecx, 0xf000f
mov eax, dword [rsp + 0x54]
mov dword [rbp - 0x10], eax
mov eax, dword [rbp - 0x40]
mov dword [rbp - 0xc], eax
mov edx, dword [rsp + 0x58]
mov dword [rbp], edx
add eax, 0x14
mov dword [rbp + 4], eax
movzx eax, r8b
shl ax, 8
mov word [rbp - 8], ax
movzx eax, r8w
mov edx, 0xff00
and ax, dx
mov word [rbp - 6], ax
shr r8d, 0x10
shl r8w, 8
mov word [rbp - 4], r8w
movzx eax, cl
shl ax, 8
mov word [rbp + 8], ax
movzx eax, cx
and ax, dx
mov word [rbp + 0xa], ax
shr ecx, 0x10
shl cx, 8
mov word [rbp + 0xc], cx
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], 1
lea r9, [rbp - 0x20]
lea r8d, [r10 + 2]
lea rdx, [rbp - 0x10]
mov rcx, qword [0x1400bd050]
call qword [sym.imp.MSIMG32.dll_GradientFill]
movdqa xmm0, xmmword [0x1400b5350]
movdqa xmmword [rbp - 0x40], xmm0
shl r15, 5
mov rdi, qword [r13]
add rdi, r15
lea rdx, [0x1400bd000]
lea rcx, [rbp - 0x60]
call fcn.14003f680
mov rsi, rax
mov rdx, rdi
lea rcx, [rbp - 0x10]
call fcn.14003f680
mov r9, rax
lea edx, [rbx + 0x42]
mov eax, 0x190
mov word [rsp + 0x38], ax
movzx ecx, word [0x1400bd020]
mov word [rsp + 0x30], cx
mov qword [rsp + 0x28], rsi
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r8d, dword [rsp + 0x50]
call fcn.14000d850
mov rdi, qword [r13]
add rdi, r15
mov rax, rdi
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140015d6a
mov rax, qword [rdi]
mov rcx, qword [rdi + 0x10]
cmp rcx, 4
jne 0x140015d7c
cmp dword [rax], 0x656e6f4e
je 0x140015d96
mov rax, rdi
cmp rdx, 0x10
jb 0x140015d88
mov rax, qword [rdi]
cmp rcx, 4
jne 0x140015da0
cmp dword [rax], 0x656e6f6e
jne 0x140015da0
movdqa xmm0, xmmword [0x1400b53c0]
jmp 0x140015da8
movdqa xmm0, xmmword [0x1400b5400]
movdqa xmmword [rbp - 0x40], xmm0
lea rdx, [0x1400bd000]
lea rcx, [rbp - 0x60]
call fcn.14003f680
mov rsi, rax
mov rdx, rdi
lea rcx, [rbp - 0x10]
call fcn.14003f680
mov r9, rax
mov eax, 0x190
mov word [rsp + 0x38], ax
movzx ecx, word [0x1400bd020]
mov word [rsp + 0x30], cx
mov qword [rsp + 0x28], rsi
lea rax, [rbp - 0x40]
mov r8d, dword [rsp + 0x50]
mov qword [rsp + 0x20], rax
dec r8d
lea edx, [rbx + 0x41]
call fcn.14000d850
xor r10d, r10d
inc r12w
movsx r15, r12w
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
sub rax, qword [r13]
sar rax, 5
cmp r15, rax
jb 0x1400158b0
mov ebx, dword [r14]
mov rcx, r13
call fcn.14003fa80
mov eax, ebx
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.1400aeb60
mov rbx, qword [rsp + 0x180]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret