Function at 0x14003ffe0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x1360]
mov eax, 0x1460
call fcn.140177bb0
sub rsp, rax
movaps xmmword [rsp + 0x1450], xmm6
mov rax, qword [0x1401de080]
xor rax, rsp
mov qword [rbp + 0x1340], rax
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
movups xmm0, xmmword [0x1401b4998]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [0x1401b49a8]
movups xmmword [rsp + 0x78], xmm1
movups xmm0, xmmword [0x1401b49b8]
movups xmmword [rbp - 0x78], xmm0
movsd xmm0, qword [0x1401b49c8]
movsd qword [rbp - 0x68], xmm0
mov eax, dword [0x1401b49d0]
mov dword [rbp - 0x60], eax
movzx eax, word [0x1401b49d4]
mov word [rbp - 0x5c], ax
movzx eax, byte [0x1401b49d6]
mov byte [rbp - 0x5a], al
mov r8d, ebx
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x1400401b7
movdqa xmm4, xmmword [0x1401bfcc0]
movdqa xmm3, xmmword [0x1401c02a0]
movdqa xmm5, xmmword [0x1401bfcf0]
movdqa xmm0, xmmword [0x1401bfe00]
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x6c]
movdqa xmm6, xmmword [0x1401bfd60]
mov edx, dword [rsp + 0x30]
nop dword [rax]
nop word [rax + rax]
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x38
jl 0x1400400d0
cmp r8d, 0x3f
jge 0x140040200
movsxd rax, r8d
lea r9, [rsp + 0x68]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x5397829d
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x31
movzx eax, r8b
sub al, cl
add al, 0x37
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x3f
jl 0x1400401d0
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
lea rax, [rsp + 0x68]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], bl
jne 0x140040220
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x48]
call fcn.14002ff20
nop
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov ebx, 1
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
mov dword [rbp + 0x1334], 0xffffffff
mov dword [rbp - 0x4c], eax
nop
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, ebx
mov dword [rbp + rbx*4 - 0x4c], ecx
inc rbx
cmp rbx, 0x270
jb 0x140040270
mov dword [rbp - 0x50], 0x270
mov r14, qword [rsp + 0x58]
dec r14
mov esi, 6
mov r13, qword [rsp + 0x60]
mov r15, qword [rsp + 0x48]
nop dword [rax]
lea rax, [rbp - 0x50]
mov qword [rsp + 0x30], rax
cmp r14, 0xffffffffffffffff
jne 0x1400402de
lea rcx, [rbp - 0x50]
call fcn.1400541a0
mov ebx, eax
shl rbx, 0x20
lea rcx, [rbp - 0x50]
call fcn.1400541a0
mov eax, eax
or rbx, rax
jmp 0x1400402ef
lea rdx, [r14 + 1]
lea rcx, [rsp + 0x30]
call fcn.140053e40
mov rbx, rax
lea rax, [rsp + 0x48]
cmp r13, 0xf
cmova rax, r15
movzx r9d, byte [rax + rbx]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x14004032d
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x140040322
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140040335
mov rcx, rdi
call fcn.14002fdb0
sub rsi, 1
jne 0x1400402b0
cmp r13, 0xf
jbe 0x140040379
lea rdx, [r13 + 1]
mov rax, r15
cmp rdx, 0x1000
jb 0x140040371
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140040371
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.140177344
mov rax, rdi
mov rcx, qword [rbp + 0x1340]
xor rcx, rsp
call fcn.140176e00
lea r11, [rsp + 0x1460]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret