Function at 0x140012840
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x3f8]
sub rsp, 0x4e0
vmovaps xmmword [rax - 0x28], xmm6
vmovaps xmmword [rax - 0x38], xmm7
vmovaps xmmword [rax - 0x48], xmm8
vmovaps xmmword [rax - 0x58], xmm9
vmovaps xmmword [rax - 0x68], xmm10
vmovaps xmmword [rax - 0x78], xmm11
mov rax, qword [0x140113010]
xor rax, rsp
mov qword [rbp + 0x370], rax
mov byte [0x140138ab0], 0
xor r15d, r15d
mov dword [rsp + 0x50], r15d
lea r14, [rdx + 0x10]
mov edx, dword [0x140129654]
add rdx, qword [r14]
mov rcx, qword [0x1401375c0]
test rcx, rcx
je 0x140012e4c
cmp dword [0x1401375c8], r15d
je 0x140012e4c
mov qword [rsp + 0x20], r15
lea r9d, [r15 + 4]
lea r8, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140012e4c
mov eax, dword [rsp + 0x50]
cmp eax, 0xffffffff
je 0x140012e4c
shr eax, 9
lea eax, [rax*8 + 0x10]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x4c], r15d
lea ecx, [r15 + 8]
call fcn.140098fc0
mov qword [rsp + 0x30], rax
lea rdx, [rax + 8]
mov qword [rsp + 0x40], rdx
mov rcx, qword [rsp + 0x48]
mov qword [rax], rcx
mov qword [rsp + 0x38], rdx
lea r8, [rsp + 0x30]
mov rdx, qword [0x140139d78]
call fcn.14000a440
test rax, rax
je 0x140012e4c
mov qword [rsp + 0x60], r15
mov ecx, dword [rsp + 0x50]
and ecx, 0x1ff
imul edx, ecx, 0x78
add rdx, rax
mov rcx, qword [0x1401375c0]
test rcx, rcx
je 0x140012e4c
cmp dword [0x1401375c8], r15d
je 0x140012e4c
mov qword [rsp + 0x20], r15
lea r9d, [r15 + 8]
lea r8, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140012e4c
vpxor xmm0, xmm0, xmm0
vmovups ymmword [rsp + 0x70], ymm0
vmovups ymmword [rbp - 0x70], ymm0
mov qword [rsp + 0x70], r15
mov dword [rsp + 0x78], r15d
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x78], r15
vmovdqu xmmword [rbp - 0x70], xmm0
mov esi, r15d
mov qword [rbp - 0x60], r15
vxorps xmm6, xmm6, xmm6
vmovss dword [rbp - 0x58], xmm6
vmovss dword [rbp - 0x54], xmm6
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x140012e40
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x58], r15
mov edx, dword [0x1401297d4]
add rdx, rax
mov rcx, qword [0x1401375c0]
test rcx, rcx
je 0x140012e40
cmp dword [0x1401375c8], r15d
je 0x140012e40
mov qword [rsp + 0x20], r15
lea r9d, [r15 + 8]
lea r8, [rsp + 0x48]
vzeroupper
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140012e40
mov edx, dword [0x140129758]
add rdx, qword [rsp + 0x48]
mov rcx, qword [0x1401375c0]
test rcx, rcx
je 0x140012e40
cmp dword [0x1401375c8], r15d
je 0x140012e40
mov qword [rsp + 0x20], r15
lea r9d, [r15 + 8]
lea r8, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140012e40
xor edx, edx
mov r8d, 0x3c0
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp - 0x50]
call fcn.140049520
mov rcx, qword [0x1401375c0]
test rcx, rcx
je 0x140012e40
cmp dword [0x1401375c8], r15d
je 0x140012e40
mov qword [rsp + 0x20], r15
mov r9d, 0x3c0
lea r8, [rbp - 0x50]
mov rdx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140012e40
lea rbx, [rbp - 0x50]
lea edi, [r15 + 0x1e]
vmovss xmm9, dword [0x140102b5c]
vmovsd xmm10, qword [0x140102bb8]
vmovss xmm11, dword [0x140102bb0]
mov rcx, qword [rbp - 0x68]
nop dword [rax]
nop word [rax + rax]
vmovaps xmm3, xmm6
vmovaps xmm2, xmm6
mov rax, qword [0x140139d68]
vmulss xmm8, xmm9, dword [rax + 0xec]
vmovss xmm4, dword [rbx + 4]
vmovss xmm1, dword [rbx]
vmovss xmm5, dword [rbx + 8]
vmulss xmm0, xmm1, dword [0x140139de8]
vfmadd231ss xmm0, xmm4, dword [0x140139dec]
vfmadd231ss xmm0, xmm5, dword [0x140139df0]
vaddss xmm7, xmm0, dword [0x140139df4]
vcvtss2sd xmm0, xmm7, xmm7
vcomisd xmm0, xmm10
ja 0x140012b56
xor dl, dl
jmp 0x140012bc0
vdivss xmm2, xmm11, xmm7
vmulss xmm0, xmm1, dword [0x140139db8]
vfmadd231ss xmm0, xmm4, dword [0x140139dbc]
vfmadd231ss xmm0, xmm5, dword [0x140139dc0]
vaddss xmm0, xmm0, dword [0x140139dc4]
vfmadd213ss xmm0, xmm2, xmm11
vmulss xmm0, xmm0, dword [rax + 0xe8]
vmulss xmm3, xmm0, xmm9
vmulss xmm1, xmm1, dword [0x140139dc8]
vfmadd231ss xmm1, xmm4, dword [0x140139dcc]
vfmadd231ss xmm1, xmm5, dword [0x140139dd0]
vaddss xmm0, xmm1, dword [0x140139dd4]
vmulss xmm1, xmm0, xmm2
vmovaps xmm2, xmm8
vfnmadd231ss xmm2, xmm8, xmm1
mov dl, 1
vmovsd xmm0, qword [rbx]
vmovsd qword [rsp + 0x30], xmm0
mov eax, dword [rbx + 8]
mov dword [rsp + 0x38], eax
vmovss dword [rsp + 0x3c], xmm3
vmovss dword [rsp + 0x40], xmm2
mov byte [rsp + 0x44], dl
cmp rcx, rsi
je 0x140012c05
vmovups xmm0, xmmword [rsp + 0x30]
vmovups xmmword [rcx], xmm0
vmovsd xmm1, qword [rsp + 0x40]
vmovsd qword [rcx + 0x10], xmm1
add rcx, 0x18
mov qword [rbp - 0x68], rcx
jmp 0x140012c1e
lea r8, [rsp + 0x30]
mov rdx, rcx
lea rcx, [rbp - 0x70]
call fcn.140049820
mov rsi, qword [rbp - 0x60]
mov rcx, qword [rbp - 0x68]
add rbx, 0x20
sub rdi, 1
jne 0x140012b00
sub rcx, qword [rbp - 0x70]
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x140012e40
cmp byte [0x140139f91], dil
je 0x140012cc3
mov rbx, qword [rbp - 0x80]
test rbx, rbx
je 0x140012c9c
mov edx, dword [0x140129778]
add rdx, rbx
mov rcx, qword [0x1401375c0]
test rcx, rcx
je 0x140012c9c
cmp dword [0x1401375c8], edi
je 0x140012c9c
mov qword [rsp + 0x20], r15
lea r9d, [rdi + 4]
lea r8, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
mov edi, dword [rsp + 0x48]
jne 0x140012c9f
mov edi, r15d
mov rcx, r14
call fcn.1400492e0
cmp eax, edi
je 0x140012e40
test rbx, rbx
je 0x140012e40
mov edx, dword [0x140129754]
add rdx, rbx
jmp 0x140012cd9
mov rax, qword [rbp - 0x80]
test rax, rax
je 0x140012e40
mov edx, dword [0x140129754]
add rdx, rax
mov rcx, qword [0x1401375c0]
test rcx, rcx
je 0x140012e40
cmp dword [0x1401375c8], 0
je 0x140012e40
mov qword [rsp + 0x20], r15
mov r9d, 4
lea r8, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140012e40
cmp dword [rsp + 0x48], 0
jle 0x140012e40
mov byte [0x140138ab0], 1
mov ecx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
mov eax, dword [rcx + rax]
cmp dword [0x14013a140], eax
jle 0x140012da3
lea rcx, [0x14013a140]
call fcn.140098f48
cmp dword [0x14013a140], 0xffffffff
jne 0x140012da3
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x140012d75
imul rax, rax, 0x64
jmp 0x140012d90
cqo
idiv rbx
imul r8, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rax, r8
mov qword [0x14013a148], rax
lea rcx, [0x14013a140]
call fcn.140098edc
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x140012dc1
imul rbx, rax, 0x64
jmp 0x140012ddd
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
lea rbx, [rax + rcx]
movsxd rax, dword [0x140139f8c]
imul rcx, rax, 0xf4240
mov rax, rbx
sub rax, qword [0x14013a148]
cmp rax, rcx
jl 0x140012e40
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr ax, 0xf
test al, al
jne 0x140012e39
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_mouse_event]
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.USER32.dll_mouse_event]
mov qword [0x14013a148], rbx
lea rcx, [rbp - 0x70]
vzeroupper
call fcn.14000a3c0
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.140098e80
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
vmovaps xmm6, xmmword [r11 - 0x10]
vmovaps xmm7, xmmword [r11 - 0x20]
vmovaps xmm8, xmmword [r11 - 0x30]
vmovaps xmm9, xmmword [r11 - 0x40]
vmovaps xmm10, xmmword [r11 - 0x50]
vmovaps xmm11, xmmword [r11 - 0x60]
mov rsp, r11
pop r15
pop r14
pop rbp
ret