Function at 0x140015720
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 - 0x60]
sub rsp, 0x160
mov rax, qword [0x1400d3010]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov r13, r9
mov qword [rsp + 0x70], r9
mov rbx, rdx
mov r14, qword [rbp + 0xc0]
test edx, edx
jne 0x14001577f
mov rax, rdx
shr rax, 0x20
test eax, eax
jne 0x14001577f
mov rcx, r9
call fcn.14004c680
xor eax, eax
jmp 0x140015f3f
movsxd rax, dword [r14]
xor r12d, r12d
lea r15, [r9 + 8]
mov qword [rsp + 0x60], r15
test eax, eax
jns 0x140015797
mov dword [r14], r12d
jmp 0x1400157b1
mov rcx, qword [r15]
sub rcx, qword [r9]
sar rcx, 5
cmp rax, rcx
jb 0x1400157b1
lea eax, [rcx - 1]
mov dword [r14], eax
mov qword [rsp + 0x60], r15
movzx eax, word [rbp + 0xc8]
mov qword [rsp + 0x68], rax
test ax, ax
jne 0x1400157d1
mov eax, dword [r15]
sub eax, dword [r9]
sar rax, 5
mov qword [rsp + 0x68], rax
movdqa xmm0, xmmword [0x1400cb440]
movdqa xmmword [rbp - 0x80], xmm0
cwde
imul esi, eax, 0x19
movsx eax, r8w
imul eax, eax, 0x1e
mov dword [rsp + 0x58], eax
mov edi, dword [rbp + 0xac]
add edi, eax
lea eax, [rsi + 5]
lea r8d, [rdi - 0xa]
add edx, 0x35
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], eax
mov r9d, 0xea
call fcn.14000d710
mov dword [rbp + 8], 0xa
mov dword [rbp + 0xc], 0xa
mov eax, 0x66666667
imul dword [0x1400d4034]
mov r9d, edx
sar r9d, 2
mov eax, r9d
shr eax, 0x1f
add r9d, eax
mov dword [rbp + 0x18], r9d
mov eax, 0x66666667
imul dword [0x1400d4038]
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 + 0x50], r10d
mov word [rbp + 0x3e], r12w
mov word [rbp + 0x4e], r12w
mov dword [rbp], r12d
mov dword [rbp + 4], 1
mov rcx, qword [rbp + 0x18]
shr rcx, 0x20
movzx r8d, cl
shl r8d, 8
mov eax, 0x66666667
imul dword [0x1400d403c]
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 + 8]
shr rax, 0x20
movzx ecx, al
shl ecx, 8
or ecx, 0xa000a
mov dword [rbp + 0x30], r10d
mov dword [rbp + 0x34], edi
lea eax, [r10 + 0xe8]
mov dword [rsp + 0x54], eax
mov dword [rbp + 0x40], eax
lea eax, [rdi + 3]
add eax, esi
mov dword [rbp + 0x44], eax
movzx eax, r8b
shl ax, 8
mov word [rbp + 0x38], ax
movzx eax, r8w
mov edx, 0xff00
and ax, dx
mov word [rbp + 0x3a], ax
shr r8d, 0x10
shl r8w, 8
mov word [rbp + 0x3c], r8w
movzx eax, cl
shl ax, 8
mov word [rbp + 0x48], ax
movzx eax, cx
and ax, dx
mov word [rbp + 0x4a], ax
shr ecx, 0x10
shl cx, 8
mov word [rbp + 0x4c], cx
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 1
lea r9, [rbp]
mov r8d, 2
lea rdx, [rbp + 0x30]
mov rcx, qword [0x1400d4060]
call qword [sym.imp.MSIMG32.dll_GradientFill]
xor r9d, r9d
mov rax, qword [r15]
sub rax, qword [r13]
sar rax, 5
test rax, rax
je 0x140015f32
mov r15d, r9d
cmp r12w, word [rsp + 0x68]
jge 0x140015f11
movsx esi, r12w
imul eax, esi, 0x19
add eax, dword [rsp + 0x58]
add eax, dword [rbp + 0xac]
mov dword [rbp], eax
lea r13d, [rax - 5]
mov eax, dword [0x1400d4068]
mov edx, dword [0x1400d4070]
cmp eax, edx
jl 0x1400159eb
cmp eax, dword [0x1400d4078]
jg 0x1400159eb
mov ecx, dword [0x1400d406c]
mov r8d, dword [0x1400d4074]
cmp ecx, r8d
jl 0x1400159eb
cmp ecx, dword [0x1400d407c]
jg 0x1400159eb
sub eax, edx
cmp eax, dword [rsp + 0x50]
jl 0x1400159eb
cmp eax, dword [rsp + 0x54]
jg 0x1400159eb
sub ecx, r8d
cmp ecx, r13d
jl 0x1400159eb
lea eax, [r13 + 0x14]
cmp ecx, eax
mov edi, 1
jle 0x1400159ee
mov edi, r9d
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, qword [0x1400d4048]
jne 0x140015aa0
cmp dword [0x1400d4088], 0
jne 0x140015aa0
cmp dword [0x1400d408c], 0
jne 0x140015aa0
test edi, edi
je 0x140015aa0
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x140015a52
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 0x140015a7a
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
mov cl, 0x26
call qword [sym.imp.USER32.dll_keybd_event]
dec dword [r14]
jmp 0x140015aa0
mov ecx, 0x28
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x140015aa0
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 0x140015c76
mov dword [rbp - 0x60], 0xf
mov dword [rbp - 0x5c], 0xf
mov eax, 0x2aaaaaab
imul dword [0x1400d4034]
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [rbp - 0x70], ecx
mov eax, 0x2aaaaaab
imul dword [0x1400d4038]
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rbp - 0x6c], edx
xor r9d, r9d
mov word [rbp + 0x3e], r9w
mov word [rbp + 0x4e], r9w
mov dword [rbp + 8], r9d
mov dword [rbp + 0xc], 1
mov rax, qword [rbp - 0x70]
shr rax, 0x20
movzx r8d, al
shl r8d, 8
mov eax, 0x2aaaaaab
imul dword [0x1400d403c]
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 - 0x60]
shr rax, 0x20
movzx ecx, al
shl ecx, 8
or ecx, 0xf000f
mov eax, dword [rsp + 0x50]
mov dword [rbp + 0x30], eax
mov dword [rbp + 0x34], r13d
mov eax, dword [rsp + 0x54]
mov dword [rbp + 0x40], eax
lea eax, [r13 + 0x14]
mov dword [rbp + 0x44], eax
movzx eax, r8b
shl ax, 8
mov word [rbp + 0x38], ax
movzx eax, r8w
mov edx, 0xff00
and ax, dx
mov word [rbp + 0x3a], ax
shr r8d, 0x10
shl r8w, 8
mov word [rbp + 0x3c], r8w
movzx eax, cl
shl ax, 8
mov word [rbp + 0x48], ax
movzx eax, cx
and ax, dx
mov word [rbp + 0x4a], ax
shr ecx, 0x10
shl cx, 8
mov word [rbp + 0x4c], cx
mov dword [rsp + 0x28], r9d
mov dword [rsp + 0x20], 1
lea r9, [rbp + 8]
mov r8d, 2
lea rdx, [rbp + 0x30]
mov rcx, qword [0x1400d4060]
call qword [sym.imp.MSIMG32.dll_GradientFill]
movdqa xmm0, xmmword [0x1400cb440]
movdqa xmmword [rbp + 0x30], xmm0
shl r15, 5
mov r13, qword [rsp + 0x70]
mov rdi, qword [r13]
add rdi, r15
lea rdx, [0x1400d4010]
lea rcx, [rbp - 0x40]
call fcn.14004c200
mov rsi, rax
mov rdx, rdi
lea rcx, [rbp - 0x20]
call fcn.14004c200
mov r9, rax
lea edx, [rbx + 0x42]
mov eax, 0x258
mov word [rsp + 0x38], ax
movzx ecx, word [0x1400d4030]
mov word [rsp + 0x30], cx
mov qword [rsp + 0x28], rsi
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
mov r8d, dword [rbp]
call fcn.14000d800
movups xmm0, xmmword [0x1400d4034]
movaps xmmword [rbp + 0x30], xmm0
mov rdi, qword [r13]
add rdi, r15
lea rdx, [0x1400d4010]
lea rcx, [rbp - 0x20]
call fcn.14004c200
mov rsi, rax
mov rdx, rdi
lea rcx, [rbp - 0x40]
call fcn.14004c200
mov r9, rax
mov eax, 0x258
jmp 0x140015ee0
test edi, edi
je 0x140015dbc
mov dword [rbp - 0x80], 0xf
mov dword [rbp - 0x7c], 0xf
mov ecx, dword [0x1400d4034]
mov eax, 0x92492493
imul ecx
lea r9d, [rcx + rdx]
sar r9d, 2
mov eax, r9d
shr eax, 0x1f
add r9d, eax
mov dword [rbp - 0x50], r9d
mov eax, 0x92492493
imul dword [0x1400d4038]
add edx, dword [0x1400d4038]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rbp - 0x4c], edx
xor r10d, r10d
mov word [rbp + 0x3e], r10w
mov word [rbp + 0x4e], r10w
mov dword [rbp + 0x18], r10d
mov dword [rbp + 0x1c], 1
mov rax, qword [rbp - 0x50]
shr rax, 0x20
movzx r8d, al
shl r8d, 8
mov eax, 0x92492493
imul dword [0x1400d403c]
add edx, dword [0x1400d403c]
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 - 0x80]
shr rax, 0x20
movzx ecx, al
shl ecx, 8
or ecx, 0xf000f
mov eax, dword [rsp + 0x50]
mov dword [rbp + 0x30], eax
mov dword [rbp + 0x34], r13d
mov eax, dword [rsp + 0x54]
mov dword [rbp + 0x40], eax
lea eax, [r13 + 0x14]
mov dword [rbp + 0x44], eax
movzx eax, r8b
shl ax, 8
mov word [rbp + 0x38], ax
movzx eax, r8w
mov edx, 0xff00
and ax, dx
mov word [rbp + 0x3a], ax
shr r8d, 0x10
shl r8w, 8
mov word [rbp + 0x3c], r8w
movzx eax, cl
shl ax, 8
mov word [rbp + 0x48], ax
movzx eax, cx
and ax, dx
mov word [rbp + 0x4a], ax
shr ecx, 0x10
shl cx, 8
mov word [rbp + 0x4c], cx
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], 1
lea r9, [rbp + 0x18]
lea r8d, [r10 + 2]
lea rdx, [rbp + 0x30]
mov rcx, qword [0x1400d4060]
call qword [sym.imp.MSIMG32.dll_GradientFill]
movdqa xmm0, xmmword [0x1400cb440]
movdqa xmmword [rbp + 0x30], xmm0
shl r15, 5
mov r13, qword [rsp + 0x70]
mov rdi, qword [r13]
add rdi, r15
lea rdx, [0x1400d4010]
lea rcx, [rbp - 0x20]
call fcn.14004c200
mov rsi, rax
mov rdx, rdi
lea rcx, [rbp - 0x40]
call fcn.14004c200
mov r9, rax
lea edx, [rbx + 0x42]
mov eax, 0x190
mov word [rsp + 0x38], ax
movzx ecx, word [0x1400d4030]
mov word [rsp + 0x30], cx
mov qword [rsp + 0x28], rsi
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
mov r8d, dword [rbp]
call fcn.14000d800
mov rdi, qword [r13]
add rdi, r15
mov rdx, rdi
mov rcx, qword [rdi + 0x18]
cmp rcx, 0x10
jb 0x140015e42
mov rdx, qword [rdi]
mov rax, qword [rdi + 0x10]
cmp rax, 4
jne 0x140015e54
cmp dword [rdx], 0x656e6f4e
je 0x140015ea2
mov rdx, rdi
cmp rcx, 0x10
jb 0x140015e60
mov rdx, qword [rdi]
cmp rax, 4
jne 0x140015e6e
cmp dword [rdx], 0x656e6f6e
je 0x140015ea2
mov rdx, rdi
cmp rcx, 0x10
jb 0x140015e7a
mov rdx, qword [rdi]
cmp rax, 4
jne 0x140015e88
cmp dword [rdx], 0x454e4f4e
je 0x140015ea2
mov rdx, rdi
cmp rcx, 0x10
jb 0x140015e94
mov rdx, qword [rdi]
cmp rax, 4
jne 0x140015eac
cmp dword [rdx], 0x4c4c554e
jne 0x140015eac
movdqa xmm0, xmmword [0x1400cb4b0]
jmp 0x140015eb4
movdqa xmm0, xmmword [0x1400cb4f0]
movdqa xmmword [rbp + 0x30], xmm0
lea rdx, [0x1400d4010]
lea rcx, [rbp - 0x20]
call fcn.14004c200
mov rsi, rax
mov rdx, rdi
lea rcx, [rbp - 0x40]
call fcn.14004c200
mov r9, rax
mov eax, 0x190
mov word [rsp + 0x38], ax
movzx ecx, word [0x1400d4030]
mov word [rsp + 0x30], cx
mov qword [rsp + 0x28], rsi
lea rax, [rbp + 0x30]
mov r8d, dword [rbp]
mov qword [rsp + 0x20], rax
dec r8d
lea edx, [rbx + 0x41]
call fcn.14000d800
xor r9d, r9d
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 0x140015972
mov ebx, dword [r14]
mov rcx, r13
call fcn.14004c680
mov eax, ebx
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.1400c2060
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x160
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret