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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x1401720c0]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rdi, rcx
mov qword [rbp - 0x29], rcx
xor r13d, r13d
mov dword [rsp + 0x24], r13d
mov r15d, reloc.WS2_32.dll_recv
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
lea rcx, [rbp + 0x5f]
movabs rdx, 0xff00ff00ff00ff00
mov qword [rbp + 7], rdx
mov qword [rbp + 0xf], rcx
mov rax, qword [rcx]
xor rax, rdx
mov qword [rbp - 0x59], rax
mov qword [rbp - 1], rax
mov qword [rcx], r13
movups xmm0, xmmword [0x140156e48]
movups xmmword [rbp - 0x51], xmm0
movups xmm1, xmmword [0x140156e58]
movups xmmword [rbp - 0x41], xmm1
mov eax, dword [0x140156e68]
mov dword [rbp - 0x31], eax
movzx eax, byte [0x140156e6c]
mov byte [rbp - 0x2d], al
mov ecx, r13d
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x1400424fc
movdqa xmm4, xmmword [0x140158210]
movdqa xmm3, xmmword [0x1401586c0]
movdqa xmm5, xmmword [0x140158260]
movdqa xmm0, xmmword [str.22222222222222228888888888888888]
movdqa xmmword [rbp - 0x69], xmm0
lea rdx, [rbp - 0x4d]
movdqa xmm6, xmmword [0x140158270]
mov r8d, dword [rbp - 0x69]
nop word [rax + rax]
movd xmm2, ecx
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
paddd xmm1, xmm2
psrad xmm1, 5
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, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 4]
xorps xmm2, xmm0
movd dword [rdx - 4], xmm2
lea eax, [rcx + 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
paddd xmm1, xmm2
psrad xmm1, 5
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, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
xorps xmm2, xmm0
movd dword [rdx], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x20
jl 0x140042410
cmp ecx, 0x25
jge 0x14004253e
movsxd rax, ecx
lea r8, [rbp - 0x51]
add r8, rax
nop word [rax + rax]
mov eax, 0x8d3dcb09
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x3a
movzx eax, cl
sub al, dl
add al, 0x32
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x25
jl 0x140042510
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
mov qword [rbp - 0x11], r13
mov qword [rbp - 9], r13
lea rax, [rbp - 0x51]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140042560
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 0x21]
call fcn.140038fc0
nop
mov rax, qword gs:[0x58]
mov rsi, qword [rax]
mov qword [rbp - 0x69], rsi
mov r14d, Ordinal_45
mov eax, dword [r14 + rsi]
mov ebx, Ordinal_50
test al, 1
jne 0x1400425fd
or eax, 1
mov dword [r14 + rsi], eax
add rbx, rsi
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov ecx, eax
mov dword [rbx + 0x1384], 0xffffffff
mov dword [rbx + 4], eax
mov edx, 1
lea r8, [rbx + 8]
nop dword [rax]
nop word [rax + rax]
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, edx
mov dword [r8], ecx
inc rdx
lea r8, [r8 + 4]
cmp rdx, 0x270
jb 0x1400425d0
mov dword [rbx], 0x270
mov ebx, Ordinal_50
mov eax, dword [r14 + rsi]
mov r12d, Ordinal_27
mov qword [rsp + 0x28], r12
test al, 2
jne 0x140042629
or eax, 2
mov dword [r14 + rsi], eax
mov rax, qword [rbp - 0x11]
dec rax
mov qword [rsi + r12], r13
mov qword [rsi + r12 + 8], rax
jmp 0x14004262e
mov qword [rsp + 0x28], r12
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov dword [rsp + 0x24], 1
mov rdx, r15
mov rcx, rdi
call fcn.140049b10
mov qword [rdi + 0x10], r13
mov r14d, ebx
add r14, rsi
mov r13, qword [rbp - 0x21]
movzx ebx, byte [rsp + 0x20]
nop dword [rax]
dec r15
mov rdx, qword [rsi + r12 + 8]
mov r12, qword [rsi + r12]
mov qword [rbp - 0x79], r14
sub rdx, r12
cmp rdx, 0xffffffffffffffff
jne 0x1400426a6
mov rcx, r14
call fcn.14004a280
mov esi, eax
shl rsi, 0x20
mov rcx, r14
call fcn.14004a280
mov eax, eax
or rsi, rax
jmp 0x1400426b5
inc rdx
lea rcx, [rbp - 0x79]
call fcn.14004a090
mov rsi, rax
lea rcx, [rsi + r12]
lea rax, [rbp - 0x21]
mov r8, qword [rbp - 9]
cmp r8, 0xf
cmova rax, r13
movzx r9d, byte [rcx + rax]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x1400426fa
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x1400426ef
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14004270f
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.140049c60
mov r8, qword [rbp - 9]
test r15, r15
mov rsi, qword [rbp - 0x69]
mov r12, qword [rsp + 0x28]
jne 0x140042670
cmp r8, 0xf
jbe 0x14004275c
lea rdx, [r8 + 1]
mov rax, r13
cmp rdx, 0x1000
jb 0x140042753
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140042753
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r13
call fcn.14011fe94
nop
mov rax, qword [rbp - 0x59]
movabs rcx, 0xff00ff00ff00ff00
xor rax, rcx
lea rcx, [rbp + 0x5f]
mov qword [rcx], rax
mov rax, rdi
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14011f760
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret