Function at 0x180007100
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
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x1300]
mov eax, 0x1400
call fcn.18005aec0
sub rsp, rax
mov rax, qword [0x180070010]
xor rax, rsp
mov qword [rbp + 0x12f0], rax
cmp byte [0x180071190], 0
je 0x180007429
cmp byte [0x1800710b0], 0
jne 0x180007429
call fcn.180057bf0
test al, al
jne 0x180007429
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 [0x1800710c0]
test eax, eax
cmove eax, edi
mov dword [0x1800710c0], eax
mov ecx, edi
sub ecx, eax
mov eax, 0x3e8
cdq
idiv dword [0x180070054]
cmp ecx, eax
jl 0x180007429
lea rdx, [rsp + 0x20]
call fcn.180057cc0
nop
mov rcx, rax
call fcn.180007780
movzx esi, al
mov r8, qword [rsp + 0x38]
mov r8, qword [r8 + 8]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.1800065c0
mov edx, 0x48
mov rcx, qword [rsp + 0x38]
call fcn.180059f00
mov r8, qword [rsp + 0x28]
mov r8, qword [r8 + 8]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.1800065c0
mov edx, 0x48
mov rcx, qword [rsp + 0x28]
call fcn.180059f00
mov ebx, 1
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x180007422
lea rcx, [rsp + 0x58]
call qword [sym.imp.USER32.dll_GetCursorPos]
movzx r9d, word [rsp + 0x5c]
movzx eax, word [rsp + 0x58]
mov rcx, qword [0x180071188]
shl r9d, 0x10
or r9, rax
cmp byte [0x180070278], 0
je 0x180007296
test sil, sil
je 0x180007276
mov r8d, ebx
mov edx, 0x201
call qword [sym.imp.USER32.dll_SendMessageA]
mov byte [0x1800710c4], bl
jmp 0x1800072cb
cmp byte [0x1800710c4], 0
je 0x180007296
xor r8d, r8d
mov edx, 0x202
call qword [sym.imp.USER32.dll_SendMessageA]
mov byte [0x1800710c4], 0
jmp 0x1800072cb
mov r8, rbx
mov edx, 0x201
call qword [sym.imp.USER32.dll_SendMessageA]
movzx r9d, word [rsp + 0x5c]
movzx eax, word [rsp + 0x58]
shl r9d, 0x10
or r9, rax
xor r8d, r8d
mov edx, 0x202
mov rcx, qword [0x180071188]
call qword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x1800710c0], edi
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rbp + 0x12e4], 0xffffffff
mov dword [rsp + 0x64], eax
mov r9d, 0x270
nop dword [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, ebx
mov dword [rsp + rbx*4 + 0x64], eax
inc rbx
cmp rbx, r9
jb 0x1800072f0
mov dword [rsp + 0x60], r9d
cvttss2si ecx, dword [0x18007027c]
cvttss2si edx, dword [0x180070274]
lea eax, [rcx - 0x80000000]
mov r14d, 0x80000000
lea esi, [rcx + r14]
cmp ecx, r14d
cmovae esi, eax
lea eax, [rdx - 0x80000000]
lea ebx, [rdx + r14]
cmp edx, r14d
cmovae ebx, eax
sub ebx, esi
cmp ebx, 0xffffffff
jne 0x1800073d1
lea r8, [rsp + 0x68]
nop word [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, dword [r8 - 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x630]
shr edx, 1
xor ecx, edx
mov dword [r8 + 0x9bc], ecx
lea r8, [r8 + 4]
sub r9, 1
jne 0x180007360
mov r9d, dword [rsp + 0x60]
mov ecx, dword [rsp + r9*4 + 0x64]
mov eax, ecx
shr eax, 0xb
and eax, dword [rbp + 0x12e4]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov edx, ecx
shr edx, 0x12
xor edx, ecx
jmp 0x180007408
lea edi, [rbx + 1]
xor r8d, r8d
xor eax, eax
test ebx, ebx
je 0x1800073ef
lea rcx, [rsp + 0x60]
call fcn.180006f70
mov r8d, eax
mov eax, 0xffffffff
xor edx, edx
div edi
mov r9d, edx
mov ecx, eax
xor edx, edx
mov eax, r8d
div edi
cmp eax, ecx
jb 0x180007408
cmp r9d, ebx
jne 0x1800073d4
add edx, esi
lea eax, [rdx + r14]
lea ecx, [rdx - 0x80000000]
cmp edx, r14d
cmovae ecx, eax
mov dword [0x180070054], ecx
jmp 0x180007429
mov byte [0x1800710c4], 0
mov rcx, qword [rbp + 0x12f0]
xor rcx, rsp
call fcn.180059d20
lea r11, [rsp + 0x1400]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret