Function at 0x180087960
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rbx, rcx
mov edx, dword [0x1800ec3dc]
mov rax, qword gs:[0x58]
mov ecx, 4
mov rax, qword [rax + rdx*8]
mov eax, dword [rcx + rax]
cmp dword [0x1800ee038], eax
jle 0x1800879e0
lea rcx, [0x1800ee038]
call fcn.18009047c
cmp dword [0x1800ee038], 0xffffffff
jne 0x1800879e0
mov qword [0x1800ee028], 0
lea rcx, [rsp + 0x60]
call fcn.180090300
mov rdx, qword [rax]
mov qword [0x1800ee028], rdx
mov qword [0x1800ee030], 0x12c
lea rcx, [0x1800ee038]
call fcn.180090410
mov ecx, dword [rbx + 0x10]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x180087a5e
lea rcx, [rsp + 0x60]
call fcn.180090300
mov r8, qword [rsp + 0x60]
mov rcx, r8
sub rcx, qword [0x1800ee028]
movabs rax, 0x431bde82d7b634db
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, qword [0x1800ee030]
je 0x180087a3e
mov ecx, 1
mov r9d, 0xff
cmovl ecx, r9d
test cl, cl
js 0x180087a5e
mov qword [0x1800ee028], r8
call qword [sym.imp.USER32.dll_GetActiveWindow]
cmp rax, qword [0x1800ec7b0]
jne 0x180087a5e
cmp byte [rbx + 8], 0
sete al
mov byte [rbx + 8], al
cmp byte [rbx + 8], 0
jne 0x180087a91
cmp byte [0x1800ec7df], 0
je 0x180087c33
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov byte [0x1800ec7df], 0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
cmp byte [0x1800ec7df], 0
jne 0x180087c33
mov rsi, qword [0x1800ecb90]
mov rbx, qword [0x1800ec798]
mov rax, qword [rbx]
mov r8, qword [rax + 0x538]
lea rdx, [0x180096de8]
mov rcx, rbx
call r8
mov rdi, rax
test rax, rax
je 0x180087b10
mov rcx, qword [rbx]
mov r8, qword [rcx + 0xa8]
mov rdx, rax
mov rcx, rbx
call r8
mov qword [rsp + 0x38], rax
mov rcx, qword [rbx]
mov r8, qword [rcx + 0x740]
mov rdx, rdi
mov rcx, rbx
call r8
cmp eax, 1
jne 0x180087b19
mov rax, qword [rbx]
mov r8, qword [rax + 0xb8]
mov rdx, rdi
mov rcx, rbx
call r8
jmp 0x180087b19
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x1800ec798]
mov rax, qword [rbx]
mov r8, qword [rax + 0x538]
lea rdx, str.xray_enabled
mov rcx, rbx
call r8
mov rdi, rax
test rax, rax
je 0x180087b89
mov rcx, qword [rbx]
mov r8, qword [rcx + 0xa8]
mov rdx, rax
mov rcx, rbx
call r8
mov qword [rsp + 0x28], rax
mov rcx, qword [rbx]
mov r8, qword [rcx + 0x740]
mov rdx, rdi
mov rcx, rbx
call r8
cmp eax, 1
jne 0x180087b92
mov rax, qword [rbx]
mov r8, qword [rax + 0xb8]
mov rdx, rdi
mov rcx, rbx
call r8
jmp 0x180087b92
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x40]
lea rcx, [rsi + 0x80]
call fcn.180064080
nop
mov rax, qword [0x1800ec798]
test rax, rax
je 0x180087be2
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x180087be2
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
mov r8, qword [rax + 0xb0]
call r8
mov rax, qword [0x1800ec798]
test rax, rax
je 0x180087c0a
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x180087c0a
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx]
mov r8, qword [rax + 0xb0]
call r8
mov rax, qword [0x1800ec798]
test rax, rax
je 0x180087c2c
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x180087c2c
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
mov r8, qword [rax + 0xb0]
call r8
nop
mov byte [0x1800ec7df], 1
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret