Function at 0x1400118d0
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 [0x1400d8040]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov r14, r9
mov qword [rbp - 0x80], r9
mov rbx, rdx
mov r13, qword [rbp + 0xc0]
test edx, edx
jne 0x14001192e
mov rax, rdx
shr rax, 0x20
test eax, eax
jne 0x14001192e
mov rcx, r9
call fcn.140038dd0
xor eax, eax
jmp 0x1400121ba
movsxd rax, dword [r13]
xor r12d, r12d
lea rdx, [r9 + 8]
mov qword [rsp + 0x70], rdx
test eax, eax
jns 0x140011948
mov dword [r13], r12d
jmp 0x140011963
mov rcx, qword [rdx]
sub rcx, qword [r9]
sar rcx, 5
cmp rax, rcx
jb 0x140011963
lea eax, [rcx - 1]
mov dword [r13], eax
mov qword [rsp + 0x70], rdx
movzx r9d, word [rbp + 0xc8]
mov qword [rsp + 0x78], r9
test r9w, r9w
jne 0x140011985
mov r9d, dword [rdx]
sub r9d, dword [r14]
sar r9, 5
mov qword [rsp + 0x78], r9
mov qword [rsp + 0x60], r12
movsx eax, r8w
imul r15d, eax, 0x1e
mov dword [rsp + 0x50], r15d
mov edi, dword [rbp + 0xac]
lea r8d, [rdi - 0xa]
add r8d, r15d
lea ecx, [rbx + 0x35]
mov dword [rbp + 0x3c], r12d
mov dword [rbp + 0x4c], r12d
mov dword [rbp + 8], r12d
mov dword [rbp + 0xc], 1
mov rax, r12
shr rax, 0x20
movzx edx, al
shl edx, 8
mov dword [rbp + 0x30], ecx
mov dword [rbp + 0x34], r8d
lea eax, [rcx + 0xea]
mov dword [rbp + 0x40], eax
movsx eax, r9w
imul esi, eax, 0x19
lea eax, [r8 + 5]
add eax, esi
mov dword [rbp + 0x44], eax
movzx eax, dl
shl ax, 8
mov word [rbp + 0x38], ax
mov word [rbp + 0x3a], dx
mov word [rbp + 0x48], ax
mov word [rbp + 0x4a], dx
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 1
lea r9, [rbp + 8]
mov r8d, 2
lea rdx, [rbp + 0x30]
mov rcx, qword [0x1400d8fc0]
call qword [sym.imp.MSIMG32.dll_GradientFill]
mov dword [rbp + 0x18], 0xa
mov dword [rbp + 0x1c], 0xa
mov eax, 0x66666667
imul dword [0x1400d8f94]
mov r10d, edx
sar r10d, 2
mov eax, r10d
shr eax, 0x1f
add r10d, eax
mov dword [rsp + 0x60], r10d
mov eax, 0x66666667
imul dword [0x1400d8f98]
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov dword [rsp + 0x64], edx
lea r9d, [rdi - 9]
add r9d, r15d
lea r11d, [rbx + 0x36]
mov dword [rbp + 8], r11d
mov word [rbp + 0x3e], r12w
mov dword [rbp + 0x4c], 0xa00
mov dword [rbp + 0x10], r12d
mov dword [rbp + 0x14], 1
mov eax, 0x66666667
imul dword [0x1400d8f9c]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx r8d, dl
mov rax, qword [rsp + 0x60]
shr rax, 0x20
movzx edx, al
shl edx, 8
mov eax, r8d
shl eax, 0x10
or edx, eax
movzx eax, r10b
or edx, eax
mov rax, qword [rbp + 0x18]
shr rax, 0x20
movzx ecx, al
shl ecx, 8
or ecx, 0xa000a
mov dword [rbp + 0x30], r11d
mov dword [rbp + 0x34], r9d
lea eax, [r11 + 0xe8]
mov dword [rbp + 0x40], eax
lea eax, [r9 + 3]
add eax, esi
mov dword [rbp + 0x44], eax
movzx eax, dl
shl ax, 8
mov word [rbp + 0x38], ax
mov r9d, 0xff00
and dx, r9w
mov word [rbp + 0x3a], dx
shl r8w, 8
mov word [rbp + 0x3c], r8w
movzx eax, cl
shl ax, 8
mov word [rbp + 0x48], ax
and cx, r9w
mov word [rbp + 0x4a], cx
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 1
lea r9, [rbp + 0x10]
mov r8d, 2
lea rdx, [rbp + 0x30]
mov rcx, qword [0x1400d8fc0]
call qword [sym.imp.MSIMG32.dll_GradientFill]
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
sub rax, qword [r14]
sar rax, 5
test rax, rax
je 0x1400121ac
xor r10d, r10d
mov edi, r10d
nop word [rax + rax]
cmp r12w, word [rsp + 0x78]
jge 0x14001218c
movsx eax, r12w
imul ecx, eax, 0x19
add ecx, r15d
mov r9d, dword [rbp + 0xac]
add r9d, 0xfffffffb
add r9d, ecx
mov edx, dword [0x1400d8fc8]
mov eax, dword [0x1400d8fd0]
cmp edx, eax
jl 0x140011bfd
cmp edx, dword [0x1400d8fd8]
jg 0x140011bfd
mov ecx, dword [0x1400d8fcc]
mov r8d, dword [0x1400d8fd4]
cmp ecx, r8d
jl 0x140011bfd
cmp ecx, dword [0x1400d8fdc]
jg 0x140011bfd
sub edx, eax
mov eax, dword [rbp + 8]
cmp edx, eax
jl 0x140011bfd
add eax, 0xe8
cmp edx, eax
jg 0x140011bfd
sub ecx, r8d
cmp ecx, r9d
jl 0x140011bfd
lea eax, [r9 + 0x14]
cmp ecx, eax
mov esi, 1
jle 0x140011c00
mov esi, r10d
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, qword [0x1400d8fa8]
jne 0x140011caa
cmp dword [0x1400d8fe8], 0
jne 0x140011caa
test esi, esi
je 0x140011caa
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x140011c5c
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]
movsx eax, r12w
mov dword [r13], eax
mov ecx, 0x26
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x140011c83
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
mov cl, 0x26
call qword [sym.imp.USER32.dll_keybd_event]
dec dword [r13]
mov ecx, 0x28
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x140011caa
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
mov cl, 0x28
call qword [sym.imp.USER32.dll_keybd_event]
inc dword [r13]
movsx eax, r12w
cmp dword [r13], eax
jne 0x140011ece
mov dword [rbp - 0x68], 0xf
mov dword [rbp - 0x64], 0xf
mov eax, 0x2aaaaaab
imul dword [0x1400d8f94]
mov r10d, edx
shr r10d, 0x1f
add r10d, edx
mov dword [rbp - 0x78], r10d
mov eax, 0x2aaaaaab
imul dword [0x1400d8f98]
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rbp - 0x74], edx
movsx r15d, r12w
imul eax, r15d, 0x19
add eax, dword [rsp + 0x50]
mov r9d, dword [rbp + 0xac]
add r9d, 0xfffffffb
add r9d, eax
xor r11d, r11d
mov word [rbp + 0x3e], r11w
mov word [rbp + 0x4e], r11w
mov dword [rbp + 0x10], r11d
mov dword [rbp + 0x14], 1
mov eax, 0x2aaaaaab
imul dword [0x1400d8f9c]
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx r8d, dl
mov rax, qword [rbp - 0x78]
shr rax, 0x20
movzx ecx, al
shl ecx, 8
mov eax, r8d
shl eax, 0x10
or ecx, eax
movzx eax, r10b
or ecx, eax
mov rax, qword [rbp - 0x68]
shr rax, 0x20
movzx edx, al
shl edx, 8
or edx, 0xf000f
mov eax, dword [rbp + 8]
mov dword [rbp + 0x30], eax
mov dword [rbp + 0x34], r9d
add eax, 0xe8
mov dword [rbp + 0x40], eax
lea eax, [r9 + 0x14]
mov dword [rbp + 0x44], eax
movzx eax, cl
shl ax, 8
mov word [rbp + 0x38], ax
mov r9d, 0xff00
and cx, r9w
mov word [rbp + 0x3a], cx
shl r8w, 8
mov word [rbp + 0x3c], r8w
movzx eax, dl
shl ax, 8
mov word [rbp + 0x48], ax
movzx eax, dx
and ax, r9w
mov word [rbp + 0x4a], ax
shr edx, 0x10
shl dx, 8
mov word [rbp + 0x4c], dx
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x20], 1
lea r9, [rbp + 0x10]
lea r8d, [r11 + 2]
lea rdx, [rbp + 0x30]
mov rcx, qword [0x1400d8fc0]
call qword [sym.imp.MSIMG32.dll_GradientFill]
movdqa xmm0, xmmword [0x1400d1730]
movdqa xmmword [rsp + 0x60], xmm0
shl rdi, 5
mov rsi, qword [r14]
add rsi, rdi
lea rdx, [0x1400d8f70]
lea rcx, [rbp + 0x30]
call fcn.140038a20
mov r14, rax
mov rdx, rsi
lea rcx, [rbp - 0x38]
call fcn.140038a20
mov r9, rax
imul r8d, r15d, 0x19
add r8d, dword [rsp + 0x50]
add r8d, dword [rbp + 0xac]
lea edx, [rbx + 0x42]
mov word [rsp + 0x38], 0x258
movzx ecx, word [0x1400d8f90]
mov word [rsp + 0x30], cx
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call fcn.140009770
movups xmm0, xmmword [0x1400d8f94]
movaps xmmword [rsp + 0x60], xmm0
mov r14, qword [rbp - 0x80]
add rdi, qword [r14]
lea rdx, [0x1400d8f70]
lea rcx, [rbp - 0x38]
call fcn.140038a20
mov rsi, rax
mov rdx, rdi
lea rcx, [rbp + 0x30]
call fcn.140038a20
mov r9, rax
imul ecx, r15d, 0x19
mov r15d, dword [rsp + 0x50]
add ecx, r15d
mov r8d, dword [rbp + 0xac]
dec r8d
add r8d, ecx
mov word [rsp + 0x38], 0x258
movzx ecx, word [0x1400d8f90]
mov word [rsp + 0x30], cx
lea rax, [rsp + 0x60]
jmp 0x140012177
test esi, esi
je 0x140012026
mov dword [rbp - 0x48], 0xf
mov dword [rbp - 0x44], 0xf
mov ecx, dword [0x1400d8f94]
mov eax, 0x92492493
imul ecx
lea r10d, [rcx + rdx]
sar r10d, 2
mov eax, r10d
shr eax, 0x1f
add r10d, eax
mov dword [rbp - 0x58], r10d
mov eax, 0x92492493
imul dword [0x1400d8f98]
add edx, dword [0x1400d8f98]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rbp - 0x54], edx
movsx eax, r12w
imul ecx, eax, 0x19
add ecx, r15d
mov r9d, dword [rbp + 0xac]
add r9d, 0xfffffffb
add r9d, ecx
xor r11d, r11d
mov word [rbp + 0x3e], r11w
mov word [rbp + 0x4e], r11w
mov dword [rbp + 0x18], r11d
mov dword [rbp + 0x1c], 1
mov eax, 0x92492493
imul dword [0x1400d8f9c]
add edx, dword [0x1400d8f9c]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx r8d, dl
mov rax, qword [rbp - 0x58]
shr rax, 0x20
movzx ecx, al
shl ecx, 8
mov eax, r8d
shl eax, 0x10
or ecx, eax
movzx eax, r10b
or ecx, eax
mov rax, qword [rbp - 0x48]
shr rax, 0x20
movzx edx, al
shl edx, 8
or edx, 0xf000f
mov eax, dword [rbp + 8]
mov dword [rbp + 0x30], eax
mov dword [rbp + 0x34], r9d
add eax, 0xe8
mov dword [rbp + 0x40], eax
lea eax, [r9 + 0x14]
mov dword [rbp + 0x44], eax
movzx eax, cl
shl ax, 8
mov word [rbp + 0x38], ax
mov r9d, 0xff00
and cx, r9w
mov word [rbp + 0x3a], cx
shl r8w, 8
mov word [rbp + 0x3c], r8w
movzx eax, dl
shl ax, 8
mov word [rbp + 0x48], ax
movzx eax, dx
and ax, r9w
mov word [rbp + 0x4a], ax
shr edx, 0x10
shl dx, 8
mov word [rbp + 0x4c], dx
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x20], 1
lea r9, [rbp + 0x18]
lea r8d, [r11 + 2]
lea rdx, [rbp + 0x30]
mov rcx, qword [0x1400d8fc0]
call qword [sym.imp.MSIMG32.dll_GradientFill]
movdqa xmm0, xmmword [0x1400d1730]
movdqa xmmword [rsp + 0x60], xmm0
mov r15, rdi
shl r15, 5
mov rsi, qword [r14]
add rsi, r15
lea rdx, [0x1400d8f70]
lea rcx, [rbp - 0x38]
call fcn.140038a20
mov r14, rax
mov rdx, rsi
lea rcx, [rbp + 0x30]
call fcn.140038a20
mov r9, rax
movsx ecx, r12w
imul r8d, ecx, 0x19
add r8d, dword [rsp + 0x50]
add r8d, dword [rbp + 0xac]
lea edx, [rbx + 0x42]
mov word [rsp + 0x38], 0x190
movzx ecx, word [0x1400d8f90]
mov word [rsp + 0x30], cx
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call fcn.140009770
mov r14, qword [rbp - 0x80]
mov rax, qword [r14]
mov qword [rsp + 0x60], rax
add rax, r15
mov rdx, rax
mov r8, qword [rax + 0x18]
cmp r8, 0xf
jbe 0x1400120c0
mov rdx, qword [rax]
mov rcx, qword [rax + 0x10]
cmp rcx, 4
jne 0x1400120d2
cmp dword [rdx], 0x656e6f4e
je 0x1400120e9
cmp r8, 0xf
jbe 0x1400120db
mov rax, qword [rax]
cmp rcx, 4
jne 0x14001210c
cmp dword [rax], 0x656e6f6e
jne 0x14001210c
movdqa xmm0, xmmword [0x1400d1790]
movdqa xmmword [rbp + 0x30], xmm0
lea rdx, [0x1400d8f70]
lea rcx, [rbp - 0x38]
call fcn.140038a20
lea rcx, [rbp - 0x18]
jmp 0x14001212d
movdqa xmm0, xmmword [0x1400d17d0]
movdqa xmmword [rbp + 0x30], xmm0
lea rdx, [0x1400d8f70]
lea rcx, [rbp - 0x18]
call fcn.140038a20
lea rcx, [rbp - 0x38]
shl rdi, 5
add rdi, qword [rsp + 0x60]
mov rsi, rax
mov rdx, rdi
call fcn.140038a20
mov r9, rax
movsx ecx, r12w
mov word [rsp + 0x38], 0x190
movzx eax, word [0x1400d8f90]
mov r15d, dword [rsp + 0x50]
imul edx, ecx, 0x19
mov r8d, dword [rbp + 0xac]
mov word [rsp + 0x30], ax
add edx, r15d
dec r8d
lea rax, [rbp + 0x30]
add r8d, edx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
lea edx, [rbx + 0x41]
call fcn.140009770
xor r10d, r10d
inc r12w
movsx rdi, r12w
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
sub rax, qword [r14]
sar rax, 5
cmp rdi, rax
jb 0x140011b80
mov ebx, dword [r13]
mov rcx, r14
call fcn.140038dd0
mov eax, ebx
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.1400cc350
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x160
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret