Function at 0x180011810
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1380]
mov eax, 0x1480
call fcn.1800503f0
sub rsp, rax
mov rax, qword [0x180065040]
xor rax, rsp
mov qword [rbp + 0x1370], rax
xor ebx, ebx
mov dword [rbp - 0x30], ebx
cmp byte [0x180066260], bl
je 0x180008a38
cmp byte [0x180065f91], bl
jne 0x180008a38
call fcn.18004d270
test al, al
jne 0x180008a38
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbx
mov r8d, 0x1c
lea rdx, [0x1800597e8]
lea rcx, [rsp + 0x20]
call fcn.1800018a0
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x20]
call fcn.18004da80
mov rax, qword [0x180065f98]
lea rdx, [rsp + 0x60]
mov rcx, qword [rax + 0x38]
call fcn.1800109c0
nop
mov rbx, qword [0x180066038]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx]
mov r8, rbx
mov rdx, rax
mov rcx, qword [0x180065fb0]
call fcn.180006ab0
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.1800084c0
nop
lea rsi, fcn.180008570
mov qword [rsp + 0x20], rsi
cmp byte [0x180066020], 0
jne 0x180008677
call fcn.180007d50
mov rcx, qword [0x180066048]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x48], rbx
mov edi, 4
lea rcx, [rsp + 0x20]
call fcn.180008570
mov rbx, rax
mov r8, qword [rsp + 0x38]
mov r8, qword [r8 + 8]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.180002490
mov edx, 0x48
mov rcx, qword [rsp + 0x38]
call fcn.18004f5f8
mov r8, qword [rsp + 0x28]
mov r8, qword [r8 + 8]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.180002490
mov edx, 0x48
mov rcx, qword [rsp + 0x28]
call fcn.18004f5f8
nop
mov r8, qword [rsp + 0x78]
mov r8, qword [r8 + 8]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x78]
call fcn.180002490
mov edx, 0x48
mov rcx, qword [rsp + 0x78]
call fcn.18004f5f8
mov r8, qword [rsp + 0x68]
mov r8, qword [r8 + 8]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x68]
call fcn.180002490
mov edx, 0x48
mov rcx, qword [rsp + 0x68]
call fcn.18004f5f8
test rbx, rbx
je 0x180008a38
cmp byte [0x1800650b5], 0
je 0x180008815
mov rax, qword [0x180065f98]
lea rdx, [rbp - 0x68]
mov rcx, qword [rax + 0x38]
call fcn.1800109c0
nop
mov dword [rbp - 0x30], 5
mov rbx, qword [0x180066038]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx]
mov r8, rbx
mov rdx, rax
mov rcx, qword [0x180065fb0]
call fcn.180006ab0
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.1800084c0
nop
mov qword [rsp + 0x20], rsi
cmp byte [0x180066020], 0
jne 0x1800087b0
call fcn.180007d50
mov rcx, qword [0x180066048]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x48], rbx
mov edi, 0xf
mov dword [rbp - 0x30], edi
mov rbx, qword [0x180066040]
lea rcx, [rsp + 0x20]
call fcn.180008570
mov r8, rbx
mov rdx, rax
mov rcx, qword [0x180065fb0]
call fcn.180006ab0
mov rcx, qword [0x180065fb0]
mov rdx, qword [rcx]
mov r9, qword [rdx + 0x100]
mov r8, qword [rsp + 0x58]
mov rdx, rax
call r9
test al, al
jne 0x180008815
mov bl, 1
jmp 0x180008817
xor bl, bl
test dil, 2
je 0x18000886f
and edi, 0xfffffffd
mov r8, qword [rsp + 0x38]
mov r8, qword [r8 + 8]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.180002490
mov edx, 0x48
mov rcx, qword [rsp + 0x38]
call fcn.18004f5f8
mov r8, qword [rsp + 0x28]
mov r8, qword [r8 + 8]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.180002490
mov edx, 0x48
mov rcx, qword [rsp + 0x28]
call fcn.18004f5f8
nop
test dil, 1
je 0x1800088bb
mov r8, qword [rbp - 0x50]
mov r8, qword [r8 + 8]
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x50]
call fcn.180002490
mov edx, 0x48
mov rcx, qword [rbp - 0x50]
call fcn.18004f5f8
mov r8, qword [rbp - 0x60]
mov r8, qword [r8 + 8]
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x60]
call fcn.180002490
mov edx, 0x48
mov rcx, qword [rbp - 0x60]
call fcn.18004f5f8
test bl, bl
jne 0x180008a38
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov rcx, rax
movabs rax, 0x346dc5d63886594b
imul rcx
mov rbx, rdx
sar rbx, 0xb
mov rax, rbx
shr rax, 0x3f
add rbx, rax
mov eax, dword [0x1800660c8]
test eax, eax
jne 0x1800088fc
mov eax, ebx
mov dword [0x1800660c8], ebx
mov ecx, ebx
sub ecx, eax
mov eax, 0x3e8
cdq
idiv dword [0x1800650c0]
cmp ecx, eax
jl 0x180008a38
mov ecx, 2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x180008a38
lea rcx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_GetCursorPos]
movzx r9d, word [rbp - 0x2c]
shl r9d, 0x10
movzx eax, word [rbp - 0x30]
or r9, rax
mov edx, 0x204
mov r8d, 2
mov rcx, qword [0x180066268]
call qword [sym.imp.USER32.dll_SendMessageA]
movzx r9d, word [rbp - 0x2c]
shl r9d, 0x10
movzx eax, word [rbp - 0x30]
or r9, rax
xor r8d, r8d
mov edx, 0x205
mov rcx, qword [0x180066268]
call qword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x1800660c8], ebx
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rbp + 0x1364], 0xffffffff
mov dword [rbp - 0x1c], eax
mov edx, 1
nop dword [rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rbp + rdx*4 - 0x1c], eax
inc rdx
cmp rdx, 0x270
jb 0x1800089a0
mov dword [rbp - 0x20], 0x270
cvttss2si esi, dword [0x1800650bc]
btc esi, 0x1f
cvttss2si eax, dword [0x1800650b8]
btc eax, 0x1f
sub eax, esi
lea rcx, [rbp - 0x20]
cmp eax, 0xffffffff
jne 0x1800089f2
call fcn.180001400
mov ecx, eax
jmp 0x180008a2b
lea ebx, [rax + 1]
call fcn.180001400
mov edi, ebx
mov ecx, eax
imul rcx, rdi
cmp ecx, ebx
jae 0x180008a27
mov eax, ebx
neg eax
xor edx, edx
div ebx
mov ebx, edx
cmp ecx, edx
jae 0x180008a27
lea rcx, [rbp - 0x20]
call fcn.180001400
mov ecx, eax
imul rcx, rdi
cmp ecx, ebx
jb 0x180008a14
shr rcx, 0x20
lea eax, [rcx + rsi]
btc eax, 0x1f
mov dword [0x1800650c0], eax
mov rcx, qword [rbp + 0x1370]
xor rcx, rsp
call fcn.18004f260
lea r11, [rsp + 0x1480]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
sub rsp, 0x28
mov rax, qword [0x180065f98]
mov rcx, qword [rax + 0x38]
mov rax, qword [rcx]
call qword [rax]
test rax, rax
je 0x18001186e
mov rax, qword [0x180065f98]
mov rcx, qword [rax + 0x40]
mov rax, qword [rcx]
call qword [rax]
test rax, rax
je 0x18001186e
call fcn.180010ad0
call fcn.18000c960
cmp byte [0x1800650b4], 0
je 0x180011856
call fcn.18004d270
call fcn.18000a300
call fcn.1800096a0
call fcn.180008d10
add rsp, 0x28
jmp 0x180008580
mov byte [0x180066271], 0
add rsp, 0x28
ret