Function at 0x140015010
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 [0x140082010]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov r13, r9
mov rbx, rdx
mov r14, qword [rbp + 0xa0]
test edx, edx
jne 0x14001506a
mov rax, rdx
shr rax, 0x20
test eax, eax
jne 0x14001506a
mov rcx, r9
call fcn.14003a220
xor eax, eax
jmp 0x1400157e4
movsxd rax, dword [r14]
xor r12d, r12d
lea r15, [r9 + 8]
mov qword [rsp + 0x60], r15
test eax, eax
jns 0x140015082
mov dword [r14], r12d
jmp 0x14001509c
mov rcx, qword [r15]
sub rcx, qword [r9]
sar rcx, 5
cmp rax, rcx
jb 0x14001509c
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 0x1400150bc
mov eax, dword [r15]
sub eax, dword [r9]
sar rax, 5
mov qword [rsp + 0x68], rax
movdqa xmm0, xmmword [0x14007ba20]
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.14000d200
mov dword [rbp - 0x30], 0xa
mov dword [rbp - 0x2c], 0xa
mov eax, 0x66666667
imul dword [0x140082f84]
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 [0x140082f88]
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 [0x140082f8c]
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 [0x140082fb0]
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 0x1400157d7
mov r15d, r10d
nop dword [rax]
cmp r12w, word [rsp + 0x68]
jge 0x1400157b6
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 [0x140082fb8]
mov r8d, dword [0x140082fc0]
cmp eax, r8d
jl 0x1400152dd
cmp eax, dword [0x140082fc8]
jg 0x1400152dd
mov ecx, dword [0x140082fbc]
mov r9d, dword [0x140082fc4]
cmp ecx, r9d
jl 0x1400152dd
cmp ecx, dword [0x140082fcc]
jg 0x1400152dd
sub eax, r8d
cmp eax, dword [rsp + 0x54]
jl 0x1400152dd
cmp eax, dword [rsp + 0x58]
jg 0x1400152dd
sub ecx, r9d
cmp ecx, edx
jl 0x1400152dd
lea eax, [rdx + 0x14]
cmp ecx, eax
mov edi, 1
jle 0x1400152e0
mov edi, r10d
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, qword [0x140082f98]
jne 0x14001537b
cmp dword [0x140082fd8], 0
jne 0x14001537b
test edi, edi
je 0x14001537b
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x14001532f
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 0x140015355
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 0x14001537b
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 0x140015551
mov dword [rbp - 0x80], 0xf
mov dword [rbp - 0x7c], 0xf
mov eax, 0x2aaaaaab
imul dword [0x140082f84]
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [rsp + 0x70], ecx
mov eax, 0x2aaaaaab
imul dword [0x140082f88]
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 [0x140082f8c]
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 [0x140082fb0]
call qword [sym.imp.MSIMG32.dll_GradientFill]
movdqa xmm0, xmmword [0x14007ba20]
movdqa xmmword [rbp - 0x40], xmm0
shl r15, 5
mov rdi, qword [r13]
add rdi, r15
lea rdx, [0x140082f60]
lea rcx, [rbp - 0x10]
call fcn.140039e20
mov rsi, rax
mov rdx, rdi
lea rcx, [rbp - 0x60]
call fcn.140039e20
mov r9, rax
lea edx, [rbx + 0x42]
mov eax, 0x258
mov word [rsp + 0x38], ax
movzx ecx, word [0x140082f80]
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.14000d2f0
movups xmm0, xmmword [0x140082f84]
movaps xmmword [rbp - 0x40], xmm0
mov rdi, qword [r13]
add rdi, r15
lea rdx, [0x140082f60]
lea rcx, [rbp - 0x60]
call fcn.140039e20
mov rsi, rax
mov rdx, rdi
lea rcx, [rbp - 0x10]
call fcn.140039e20
mov r9, rax
mov eax, 0x258
jmp 0x140015784
test edi, edi
je 0x140015698
mov dword [rbp + 0x10], 0xf
mov dword [rbp + 0x14], 0xf
mov ecx, dword [0x140082f84]
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 [0x140082f88]
add edx, dword [0x140082f88]
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 [0x140082f8c]
add edx, dword [0x140082f8c]
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 [0x140082fb0]
call qword [sym.imp.MSIMG32.dll_GradientFill]
movdqa xmm0, xmmword [0x14007ba20]
movdqa xmmword [rbp - 0x40], xmm0
shl r15, 5
mov rdi, qword [r13]
add rdi, r15
lea rdx, [0x140082f60]
lea rcx, [rbp - 0x60]
call fcn.140039e20
mov rsi, rax
mov rdx, rdi
lea rcx, [rbp - 0x10]
call fcn.140039e20
mov r9, rax
lea edx, [rbx + 0x42]
mov eax, 0x190
mov word [rsp + 0x38], ax
movzx ecx, word [0x140082f80]
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.14000d2f0
mov rdi, qword [r13]
add rdi, r15
mov rax, rdi
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x14001571a
mov rax, qword [rdi]
mov rcx, qword [rdi + 0x10]
cmp rcx, 4
jne 0x14001572c
cmp dword [rax], 0x656e6f4e
je 0x140015746
mov rax, rdi
cmp rdx, 0x10
jb 0x140015738
mov rax, qword [rdi]
cmp rcx, 4
jne 0x140015750
cmp dword [rax], 0x656e6f6e
jne 0x140015750
movdqa xmm0, xmmword [0x14007ba90]
jmp 0x140015758
movdqa xmm0, xmmword [0x14007bad0]
movdqa xmmword [rbp - 0x40], xmm0
lea rdx, [0x140082f60]
lea rcx, [rbp - 0x60]
call fcn.140039e20
mov rsi, rax
mov rdx, rdi
lea rcx, [rbp - 0x10]
call fcn.140039e20
mov r9, rax
mov eax, 0x190
mov word [rsp + 0x38], ax
movzx ecx, word [0x140082f80]
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.14000d2f0
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 0x140015260
mov ebx, dword [r14]
mov rcx, r13
call fcn.14003a220
mov eax, ebx
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140076100
mov rbx, qword [rsp + 0x180]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret