Function at 0x180008d10
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 - 0x1330]
mov eax, 0x1430
call fcn.1800503f0
sub rsp, rax
mov rax, qword [0x180065040]
xor rax, rsp
mov qword [rbp + 0x1320], rax
xor edi, edi
mov dword [rsp + 0x78], edi
cmp byte [0x180066270], dil
je 0x180008f42
cmp byte [0x180065f91], dil
jne 0x180008f42
call fcn.18004d270
test al, al
jne 0x180008f42
cmp byte [0x1800652e8], dil
je 0x180008f3e
mov rdi, qword [0x180065f98]
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
mov r8d, 0xf
lea rdx, [0x18005b258]
lea rcx, [rsp + 0x58]
call fcn.1800018a0
nop
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x78]
lea rcx, [rdi + 0x18]
call fcn.18000a080
mov rcx, qword [rax]
mov r10, qword [0x180065fb0]
mov rax, qword [r10]
mov r9, qword [rax + 0x2f8]
mov r8, qword [rcx + 0x40]
mov rdx, qword [rdi + 0x28]
mov rcx, r10
call r9
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 0x180008e0d
call fcn.180007d50
mov rcx, qword [0x180066028]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x48], rbx
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x180008e68
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180008e5e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180008e5e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18004f5f8
mov rsi, qword [rsp + 0x20]
movdqa xmm0, xmmword [0x18005b860]
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x58], 0
mov edi, 3
mov dword [rsp + 0x78], edi
mov rbx, qword [0x180066018]
lea rcx, [rsp + 0x20]
call qword [rsi]
mov rcx, qword [0x180065fb0]
mov rdx, qword [rcx]
mov r9, qword [rdx + 0x2f8]
mov r8, rbx
mov rdx, rax
call r9
mov rsi, rax
test rax, rax
je 0x180008f3e
mov rcx, qword [0x180065fb0]
mov rdx, qword [rcx]
mov r8, qword [rdx + 0xf8]
mov rdx, rax
call r8
mov rbx, rax
test rax, rax
je 0x180008f3e
mov rcx, qword [0x180065fb0]
mov rdx, qword [rcx]
mov r10, qword [rdx + 0x480]
lea r9, [0x180059680]
lea r8, [0x180059890]
mov rdx, rax
call r10
test rax, rax
je 0x180008f3e
mov rcx, qword [0x180065fb0]
mov rdx, qword [rcx]
mov r9, qword [rdx + 0x488]
mov r8, rax
mov rdx, rbx
call r9
test rax, rax
je 0x180008f3e
mov rcx, qword [0x180065fb0]
mov rdx, qword [rcx]
mov r9, qword [rdx + 0xc0]
mov r8, rsi
mov rdx, rax
call r9
test al, al
jne 0x180008f42
xor bl, bl
jmp 0x180008f44
mov bl, 1
test dil, 1
je 0x180008f98
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
test bl, bl
jne 0x1800091a8
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov rcx, rax
movabs rax, 0x346dc5d63886594b
imul rcx
mov rdi, rdx
sar rdi, 0xb
mov rax, rdi
shr rax, 0x3f
add rdi, rax
mov eax, dword [0x1800660cc]
test eax, eax
jne 0x180008fd9
mov eax, edi
mov dword [0x1800660cc], eax
mov ecx, edi
sub ecx, eax
mov eax, 0x3e8
cdq
idiv dword [0x1800650c4]
cmp ecx, eax
jl 0x1800091a8
mov ebx, 1
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1800091a8
inc dword [0x1800660d4]
lea rcx, [rsp + 0x78]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [0x1800660d4]
and eax, 0x80000001
jge 0x18000902c
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x18000909f
mov eax, edi
sub eax, dword [0x1800660d0]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm0, dword [0x18005b7e0]
jb 0x18000909f
movzx r9d, word [rsp + 0x7c]
shl r9d, 0x10
movzx eax, word [rsp + 0x78]
or r9, rax
mov edx, 0x204
mov r8d, 2
mov rcx, qword [0x180066268]
call qword [sym.imp.USER32.dll_SendMessageA]
movzx r9d, word [rsp + 0x7c]
shl r9d, 0x10
movzx eax, word [rsp + 0x78]
or r9, rax
xor r8d, r8d
mov edx, 0x205
mov rcx, qword [0x180066268]
call qword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x1800660d0], edi
movzx r9d, word [rsp + 0x7c]
shl r9d, 0x10
movzx eax, word [rsp + 0x78]
or r9, rax
mov r8, rbx
mov edx, 0x201
mov rcx, qword [0x180066268]
call qword [sym.imp.USER32.dll_SendMessageA]
movzx r9d, word [rsp + 0x7c]
shl r9d, 0x10
movzx eax, word [rsp + 0x78]
or r9, rax
xor r8d, r8d
mov edx, 0x202
mov rcx, qword [0x180066268]
call qword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x1800660cc], edi
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rbp + 0x1314], 0xffffffff
mov dword [rbp - 0x6c], eax
nop word [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, ebx
mov dword [rbp + rbx*4 - 0x6c], eax
inc rbx
cmp rbx, 0x270
jb 0x180009110
mov dword [rbp - 0x70], 0x270
cvttss2si esi, dword [0x1800652ec]
btc esi, 0x1f
cvttss2si eax, dword [0x1800652e4]
btc eax, 0x1f
sub eax, esi
lea rcx, [rbp - 0x70]
cmp eax, 0xffffffff
jne 0x180009162
call fcn.180001400
mov ecx, eax
jmp 0x18000919b
lea ebx, [rax + 1]
call fcn.180001400
mov edi, ebx
mov ecx, eax
imul rcx, rdi
cmp ecx, ebx
jae 0x180009197
mov eax, ebx
neg eax
xor edx, edx
div ebx
mov ebx, edx
cmp ecx, edx
jae 0x180009197
lea rcx, [rbp - 0x70]
call fcn.180001400
mov ecx, eax
imul rcx, rdi
cmp ecx, ebx
jb 0x180009184
shr rcx, 0x20
lea eax, [rcx + rsi]
btc eax, 0x1f
mov dword [0x1800650c4], eax
mov rcx, qword [rbp + 0x1320]
xor rcx, rsp
call fcn.18004f260
lea r11, [rsp + 0x1430]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret