Function at 0x140015590
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 [0x1400ba010]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov r13, r9
mov rbx, rdx
mov r14, qword [rbp + 0xa0]
test edx, edx
jne 0x1400155ea
mov rax, rdx
shr rax, 0x20
test eax, eax
jne 0x1400155ea
mov rcx, r9
call fcn.140040660
xor eax, eax
jmp 0x140015d64
movsxd rax, dword [r14]
xor r12d, r12d
lea r15, [r9 + 8]
mov qword [rsp + 0x60], r15
test eax, eax
jns 0x140015602
mov dword [r14], r12d
jmp 0x14001561c
mov rcx, qword [r15]
sub rcx, qword [r9]
sar rcx, 5
cmp rax, rcx
jb 0x14001561c
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 0x14001563c
mov eax, dword [r15]
sub eax, dword [r9]
sar rax, 5
mov qword [rsp + 0x68], rax
movdqa xmm0, xmmword [0x1400b31a0]
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.14000d690
mov dword [rbp - 0x30], 0xa
mov dword [rbp - 0x2c], 0xa
mov eax, 0x66666667
imul dword [0x1400bb004]
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 [0x1400bb008]
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 [0x1400bb00c]
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 [0x1400bb030]
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 0x140015d57
mov r15d, r10d
nop dword [rax]
cmp r12w, word [rsp + 0x68]
jge 0x140015d36
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 [0x1400bb038]
mov r8d, dword [0x1400bb040]
cmp eax, r8d
jl 0x14001585d
cmp eax, dword [0x1400bb048]
jg 0x14001585d
mov ecx, dword [0x1400bb03c]
mov r9d, dword [0x1400bb044]
cmp ecx, r9d
jl 0x14001585d
cmp ecx, dword [0x1400bb04c]
jg 0x14001585d
sub eax, r8d
cmp eax, dword [rsp + 0x54]
jl 0x14001585d
cmp eax, dword [rsp + 0x58]
jg 0x14001585d
sub ecx, r9d
cmp ecx, edx
jl 0x14001585d
lea eax, [rdx + 0x14]
cmp ecx, eax
mov edi, 1
jle 0x140015860
mov edi, r10d
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, qword [0x1400bb018]
jne 0x1400158fb
cmp dword [0x1400bb058], 0
jne 0x1400158fb
test edi, edi
je 0x1400158fb
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x1400158af
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 0x1400158d5
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 0x1400158fb
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 0x140015ad1
mov dword [rbp - 0x80], 0xf
mov dword [rbp - 0x7c], 0xf
mov eax, 0x2aaaaaab
imul dword [0x1400bb004]
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [rsp + 0x70], ecx
mov eax, 0x2aaaaaab
imul dword [0x1400bb008]
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 [0x1400bb00c]
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 [0x1400bb030]
call qword [sym.imp.MSIMG32.dll_GradientFill]
movdqa xmm0, xmmword [0x1400b31a0]
movdqa xmmword [rbp - 0x40], xmm0
shl r15, 5
mov rdi, qword [r13]
add rdi, r15
lea rdx, [0x1400bafe0]
lea rcx, [rbp - 0x10]
call fcn.140040260
mov rsi, rax
mov rdx, rdi
lea rcx, [rbp - 0x60]
call fcn.140040260
mov r9, rax
lea edx, [rbx + 0x42]
mov eax, 0x258
mov word [rsp + 0x38], ax
movzx ecx, word [0x1400bb000]
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.14000d780
movups xmm0, xmmword [0x1400bb004]
movaps xmmword [rbp - 0x40], xmm0
mov rdi, qword [r13]
add rdi, r15
lea rdx, [0x1400bafe0]
lea rcx, [rbp - 0x60]
call fcn.140040260
mov rsi, rax
mov rdx, rdi
lea rcx, [rbp - 0x10]
call fcn.140040260
mov r9, rax
mov eax, 0x258
jmp 0x140015d04
test edi, edi
je 0x140015c18
mov dword [rbp + 0x10], 0xf
mov dword [rbp + 0x14], 0xf
mov ecx, dword [0x1400bb004]
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 [0x1400bb008]
add edx, dword [0x1400bb008]
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 [0x1400bb00c]
add edx, dword [0x1400bb00c]
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 [0x1400bb030]
call qword [sym.imp.MSIMG32.dll_GradientFill]
movdqa xmm0, xmmword [0x1400b31a0]
movdqa xmmword [rbp - 0x40], xmm0
shl r15, 5
mov rdi, qword [r13]
add rdi, r15
lea rdx, [0x1400bafe0]
lea rcx, [rbp - 0x60]
call fcn.140040260
mov rsi, rax
mov rdx, rdi
lea rcx, [rbp - 0x10]
call fcn.140040260
mov r9, rax
lea edx, [rbx + 0x42]
mov eax, 0x190
mov word [rsp + 0x38], ax
movzx ecx, word [0x1400bb000]
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.14000d780
mov rdi, qword [r13]
add rdi, r15
mov rax, rdi
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140015c9a
mov rax, qword [rdi]
mov rcx, qword [rdi + 0x10]
cmp rcx, 4
jne 0x140015cac
cmp dword [rax], 0x656e6f4e
je 0x140015cc6
mov rax, rdi
cmp rdx, 0x10
jb 0x140015cb8
mov rax, qword [rdi]
cmp rcx, 4
jne 0x140015cd0
cmp dword [rax], 0x656e6f6e
jne 0x140015cd0
movdqa xmm0, xmmword [0x1400b3210]
jmp 0x140015cd8
movdqa xmm0, xmmword [0x1400b3250]
movdqa xmmword [rbp - 0x40], xmm0
lea rdx, [0x1400bafe0]
lea rcx, [rbp - 0x60]
call fcn.140040260
mov rsi, rax
mov rdx, rdi
lea rcx, [rbp - 0x10]
call fcn.140040260
mov r9, rax
mov eax, 0x190
mov word [rsp + 0x38], ax
movzx ecx, word [0x1400bb000]
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.14000d780
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 0x1400157e0
mov ebx, dword [r14]
mov rcx, r13
call fcn.140040660
mov eax, ebx
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.1400ad3e0
mov rbx, qword [rsp + 0x180]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret