Function at 0x140013290
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 [0x14006f010]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov r13, r9
mov rbx, rdx
mov r14, qword [rbp + 0xa0]
test edx, edx
jne 0x1400132ea
mov rax, rdx
shr rax, 0x20
test eax, eax
jne 0x1400132ea
mov rcx, r9
call fcn.140032130
xor eax, eax
jmp 0x140013a54
movsxd rax, dword [r14]
xor r12d, r12d
lea r15, [r9 + 8]
mov qword [rsp + 0x60], r15
test eax, eax
jns 0x140013302
mov dword [r14], r12d
jmp 0x14001331c
mov rcx, qword [r15]
sub rcx, qword [r9]
sar rcx, 5
cmp rax, rcx
jb 0x14001331c
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 0x14001333c
mov eax, dword [r15]
sub eax, dword [r9]
sar rax, 5
mov qword [rsp + 0x68], rax
movdqa xmm0, xmmword [0x140069220]
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.14000b570
mov dword [rbp - 0x30], 0xa
mov dword [rbp - 0x2c], 0xa
mov eax, dword [0x14006ff14]
cdq
and edx, 7
lea r8d, [rdx + rax]
sar r8d, 3
mov dword [rbp - 0x20], r8d
mov eax, dword [0x14006ff18]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [rbp - 0x1c], eax
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 rax, qword [rbp - 0x20]
shr rax, 0x20
movzx r9d, al
shl r9d, 8
mov eax, dword [0x14006ff1c]
cdq
and edx, 7
add eax, edx
sar eax, 3
movzx ecx, al
shl ecx, 0x10
or r9d, ecx
movzx eax, r8b
or r9d, 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, r9b
shl ax, 8
mov word [rbp + 0x18], ax
movzx eax, r9w
mov edx, 0xff00
and ax, dx
mov word [rbp + 0x1a], ax
shr r9d, 0x10
shl r9w, 8
mov word [rbp + 0x1c], r9w
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 [0x14006ff40]
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 0x140013a47
mov r15d, r10d
nop dword [rax + rax]
cmp r12w, word [rsp + 0x68]
jge 0x140013a26
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 [0x14006ff48]
mov r8d, dword [0x14006ff50]
cmp eax, r8d
jl 0x14001354d
cmp eax, dword [0x14006ff58]
jg 0x14001354d
mov ecx, dword [0x14006ff4c]
mov r9d, dword [0x14006ff54]
cmp ecx, r9d
jl 0x14001354d
cmp ecx, dword [0x14006ff5c]
jg 0x14001354d
sub eax, r8d
cmp eax, dword [rsp + 0x54]
jl 0x14001354d
cmp eax, dword [rsp + 0x58]
jg 0x14001354d
sub ecx, r9d
cmp ecx, edx
jl 0x14001354d
lea eax, [rdx + 0x14]
cmp ecx, eax
mov edi, 1
jle 0x140013550
mov edi, r10d
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, qword [0x14006ff28]
jne 0x1400135eb
cmp dword [0x14006ff68], 0
jne 0x1400135eb
test edi, edi
je 0x1400135eb
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x14001359f
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 0x1400135c5
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 0x1400135eb
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 0x1400137c1
mov dword [rbp - 0x80], 0xf
mov dword [rbp - 0x7c], 0xf
mov eax, 0x2aaaaaab
imul dword [0x14006ff14]
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [rsp + 0x70], ecx
mov eax, 0x2aaaaaab
imul dword [0x14006ff18]
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 [0x14006ff1c]
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 [0x14006ff40]
call qword [sym.imp.MSIMG32.dll_GradientFill]
movdqa xmm0, xmmword [0x140069220]
movdqa xmmword [rbp - 0x40], xmm0
shl r15, 5
mov rdi, qword [r13]
add rdi, r15
lea rdx, [0x14006fef0]
lea rcx, [rbp - 0x10]
call fcn.140031d30
mov rsi, rax
mov rdx, rdi
lea rcx, [rbp - 0x60]
call fcn.140031d30
mov r9, rax
lea edx, [rbx + 0x42]
mov eax, 0x258
mov word [rsp + 0x38], ax
movzx ecx, word [0x14006ff10]
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.14000b660
movups xmm0, xmmword [0x14006ff14]
movaps xmmword [rbp - 0x40], xmm0
mov rdi, qword [r13]
add rdi, r15
lea rdx, [0x14006fef0]
lea rcx, [rbp - 0x60]
call fcn.140031d30
mov rsi, rax
mov rdx, rdi
lea rcx, [rbp - 0x10]
call fcn.140031d30
mov r9, rax
mov eax, 0x258
jmp 0x1400139f4
test edi, edi
je 0x140013908
mov dword [rbp + 0x10], 0xf
mov dword [rbp + 0x14], 0xf
mov ecx, dword [0x14006ff14]
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 [0x14006ff18]
add edx, dword [0x14006ff18]
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 [0x14006ff1c]
add edx, dword [0x14006ff1c]
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 [0x14006ff40]
call qword [sym.imp.MSIMG32.dll_GradientFill]
movdqa xmm0, xmmword [0x140069220]
movdqa xmmword [rbp - 0x40], xmm0
shl r15, 5
mov rdi, qword [r13]
add rdi, r15
lea rdx, [0x14006fef0]
lea rcx, [rbp - 0x60]
call fcn.140031d30
mov rsi, rax
mov rdx, rdi
lea rcx, [rbp - 0x10]
call fcn.140031d30
mov r9, rax
lea edx, [rbx + 0x42]
mov eax, 0x190
mov word [rsp + 0x38], ax
movzx ecx, word [0x14006ff10]
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.14000b660
mov rdi, qword [r13]
add rdi, r15
mov rax, rdi
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x14001398a
mov rax, qword [rdi]
mov rcx, qword [rdi + 0x10]
cmp rcx, 4
jne 0x14001399c
cmp dword [rax], 0x656e6f4e
je 0x1400139b6
mov rax, rdi
cmp rdx, 0x10
jb 0x1400139a8
mov rax, qword [rdi]
cmp rcx, 4
jne 0x1400139c0
cmp dword [rax], 0x656e6f6e
jne 0x1400139c0
movdqa xmm0, xmmword [0x140069270]
jmp 0x1400139c8
movdqa xmm0, xmmword [0x1400692c0]
movdqa xmmword [rbp - 0x40], xmm0
lea rdx, [0x14006fef0]
lea rcx, [rbp - 0x60]
call fcn.140031d30
mov rsi, rax
mov rdx, rdi
lea rcx, [rbp - 0x10]
call fcn.140031d30
mov r9, rax
mov eax, 0x190
mov word [rsp + 0x38], ax
movzx ecx, word [0x14006ff10]
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.14000b660
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 0x1400134d0
mov ebx, dword [r14]
mov rcx, r13
call fcn.140032130
mov eax, ebx
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.1400643d0
mov rbx, qword [rsp + 0x180]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret