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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x158]
sub rsp, 0x230
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
movaps xmmword [rax - 0x78], xmm10
movaps xmmword [rax - 0x88], xmm11
mov rax, qword [0x140290040]
xor rax, rsp
mov qword [rbp + 0xc0], rax
cmp byte [0x1402be620], 0
jne 0x140024b65
movabs r15, 0x7fffffffffffffff
mov r13d, 0xff
mov r12d, 4
lea r14, [0x1402bfb64]
movdqa xmm10, xmmword [0x140282540]
xorps xmm7, xmm7
movsd xmm11, qword [0x140281f40]
movsd xmm8, qword [0x140281fe8]
mov esi, dword [rsp + 0x48]
movsd xmm9, qword [rsp + 0x40]
nop dword [rax]
mov eax, dword [0x1402be630]
inc eax
movsxd rbx, eax
lea rcx, [rsp + 0x50]
call fcn.140001be0
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
test rbx, rbx
je 0x1400248e5
js 0x1400248e5
imul r8, rbx, 0xf4240
mov rdx, r15
sub rdx, r8
cmp rax, rdx
je 0x1400248e0
mov ecx, 1
cmovl ecx, r13d
test cl, cl
jns 0x1400248e0
lea rcx, [r8 + rax]
mov qword [rsp + 0x30], rcx
jmp 0x1400248e5
mov qword [rsp + 0x30], r15
lea rcx, [rsp + 0x30]
call fcn.14000a0f0
cmp byte [0x1402be534], 0
je 0x140024b58
cmp qword [0x1402bfb10], 0
je 0x140024b58
lea rcx, [rbp + 0x20]
call fcn.140023980
mov qword [rbp + 0xb8], 0
movd xmm1, dword [0x1402be538]
cvtdq2ps xmm1, xmm1
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
movzx r9d, byte [0x1402be540]
mov r8d, dword [0x1402be544]
call fcn.140031a70
test al, al
je 0x140024b3a
cmp byte [rbp + 0x60], 0
jne 0x140024b3a
cmp byte [0x1402be509], 0
je 0x14002496e
cmp byte [rbp + 0xb4], 0
je 0x140024b3a
mov ecx, dword [0x1402be53c]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140024b3a
movd xmm6, dword [0x1402be548]
cvtdq2ps xmm6, xmm6
mov rax, qword gs:[0x58]
mov rdi, qword [rax]
mov eax, dword [r12 + rdi]
cmp dword [0x1402bfb54], eax
jle 0x140024a15
lea rcx, [0x1402bfb54]
call fcn.1400861c8
cmp dword [0x1402bfb54], 0xffffffff
jne 0x140024a15
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [0x1402c0ee4], 0xffffffff
mov dword [0x1402bfb64], eax
mov edx, 1
nop word [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [r14 + rdx*4], eax
inc rdx
cmp rdx, 0x270
jb 0x1400249e0
mov dword [0x1402bfb60], 0x270
lea rcx, [0x1402bfb54]
call fcn.14008615c
mov eax, dword [r12 + rdi]
cmp dword [0x1402bfb50], eax
jle 0x140024a4a
lea rcx, [0x1402bfb50]
call fcn.1400861c8
cmp dword [0x1402bfb50], 0xffffffff
jne 0x140024a4a
movups xmmword [0x1402c0ef8], xmm10
lea rcx, [0x1402bfb50]
call fcn.14008615c
movaps xmm2, xmm7
movaps xmm1, xmm11
mov ebx, 2
call fcn.140024bc0
mov eax, eax
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
subsd xmm0, xmm7
mulsd xmm0, xmm1
addsd xmm2, xmm0
mulsd xmm1, xmm8
sub rbx, 1
jne 0x140024a56
divsd xmm2, xmm1
movsd xmm0, qword [0x1402c0f00]
movups xmm1, xmmword [0x1402c0ef8]
subsd xmm0, xmm1
mulsd xmm2, xmm0
addsd xmm2, xmm1
xorps xmm0, xmm0
cvtss2sd xmm0, xmm6
comisd xmm0, xmm2
ja 0x140024b3a
mov ecx, dword [0x1402be54c]
test ecx, ecx
je 0x140024af4
sub ecx, 1
je 0x140024ada
cmp ecx, 1
jne 0x140024b1c
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x80]
call fcn.140023a30
mov r9d, 0x60f2
lea rdx, [rsp + 0x58]
jmp 0x140024b0c
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x80]
call fcn.140023a30
mov r9d, 0x9995
lea rdx, [rsp + 0x64]
jmp 0x140024b0c
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x80]
call fcn.140023a30
mov r9d, 0x796e
lea rdx, [rsp + 0x70]
mov r8, rax
call fcn.1400311f0
movsd xmm9, qword [rax]
mov esi, dword [rax + 8]
movsd qword [rsp + 0x40], xmm9
mov dword [rsp + 0x48], esi
lea rcx, [rsp + 0x40]
call fcn.140024480
mov byte [0x1402bf7d5], 1
jmp 0x140024b4f
cmp byte [0x1402bf7d5], 0
je 0x140024b4f
call fcn.140024290
mov byte [0x1402bf7d5], 0
lea rcx, [rbp + 0x20]
call fcn.14000ab70
cmp byte [0x1402be620], 0
je 0x140024890
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.140085e40
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret