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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xe0
movaps xmmword [rsp + 0xd0], xmm6
mov rax, qword [0x140121940]
xor rax, rsp
mov qword [rbp + 7], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rbp - 0x21], rcx
xor ebx, ebx
mov dword [rsp + 0x24], ebx
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
lea rax, [rbp + 0x5f]
movabs rcx, 0xff00ff00ff00ff00
mov qword [rbp - 0x31], rcx
mov qword [rbp - 0x29], rax
mov r12, qword [rax]
xor r12, rcx
mov qword [rbp - 0x69], r12
mov qword [rbp - 0x39], r12
mov qword [rax], rbx
movups xmm0, xmmword [0x1400be278]
movups xmmword [rbp - 0x61], xmm0
movups xmm1, xmmword [0x1400be288]
movups xmmword [rbp - 0x51], xmm1
mov eax, dword [0x1400be298]
mov dword [rbp - 0x41], eax
movzx eax, byte [0x1400be29c]
mov byte [rbp - 0x3d], al
mov ecx, ebx
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x140042d92
movdqa xmm5, xmmword [0x1400bd6f0]
movdqa xmm4, xmmword [0x1400bf640]
movdqa xmm6, xmmword [0x1400bf600]
movdqa xmm0, xmmword [str.4444444444444444]
movdqa xmmword [rbp - 0x79], xmm0
lea rdx, [rbp - 0x5d]
mov r8d, dword [rbp - 0x79]
nop word [rax + rax]
movd xmm2, ecx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400bf610]
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 xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400bf610]
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 0x140042c90
cmp ecx, 0x25
jge 0x140042dce
movsxd rax, ecx
lea r8, [rbp - 0x61]
add r8, rax
nop dword [rax]
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul edx, eax, 0x34
add dl, cl
xor byte [r8], dl
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x25
jl 0x140042da0
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
mov qword [rbp - 9], rbx
mov qword [rbp - 1], rbx
lea rax, [rbp - 0x61]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140042df0
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x19]
call fcn.140041020
nop
mov ecx, dword [0x140122ed0]
mov rax, qword gs:[0x58]
mov r14, qword [rax + rcx*8]
mov qword [rbp - 0x79], r14
mov r15d, 0x1398
mov eax, dword [r15 + r14]
mov ecx, reloc.WS2_32.dll_recv
test al, 1
jne 0x140042e8a
or eax, 1
mov dword [r15 + r14], eax
mov ebx, ecx
add rbx, r14
call sub.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 + 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 0x140042e60
mov dword [rbx], 0x270
xor ebx, ebx
mov eax, dword [r15 + r14]
mov ecx, 0x13a0
mov qword [rsp + 0x28], rcx
test al, 2
jne 0x140042eb5
or eax, 2
mov dword [r15 + r14], eax
mov rax, qword [rbp - 9]
dec rax
mov qword [r14 + rcx], rbx
mov qword [r14 + rcx + 8], rax
jmp 0x140042eba
mov qword [rsp + 0x28], rcx
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 dword [rsp + 0x24], 1
mov r13, qword [rbp - 1]
mov r15, qword [rbp - 0x19]
cmp rsi, 0xf
jbe 0x140042f01
movzx r8d, byte [rsp + 0x20]
mov rdx, rsi
mov rcx, rdi
call fcn.140041870
mov qword [rdi + 0x10], rbx
mov rcx, qword [rsp + 0x28]
jmp 0x140042f0a
test rsi, rsi
je 0x140042fb8
mov r12d, reloc.WS2_32.dll_recv
add r12, r14
movzx ebx, byte [rsp + 0x20]
nop dword [rax + rax]
dec rsi
mov rdx, qword [r14 + rcx + 8]
mov r14, qword [r14 + rcx]
mov qword [rsp + 0x30], r12
sub rdx, r14
lea rcx, [rsp + 0x30]
cmp rdx, 0xffffffffffffffff
jne 0x140042f46
call fcn.14004fbd0
jmp 0x140042f4e
inc rdx
call fcn.1400427a0
mov rcx, rax
lea rax, [rbp - 0x19]
cmp r13, 0xf
cmova rax, r15
add rax, rcx
movzx r9d, byte [rax + r14]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x140042f91
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x140042f86
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140042fa2
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.140041700
test rsi, rsi
mov r14, qword [rbp - 0x79]
mov rcx, qword [rsp + 0x28]
jne 0x140042f20
mov r12, qword [rbp - 0x69]
cmp r13, 0xf
jbe 0x140042ff3
lea rdx, [r13 + 1]
mov rax, r15
cmp rdx, 0x1000
jb 0x140042fea
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140042fea
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.1400b25e4
nop
movabs rax, 0xff00ff00ff00ff00
xor r12, rax
lea rax, [rbp + 0x5f]
mov qword [rax], r12
mov rax, rdi
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.1400b28c0
mov rbx, qword [rsp + 0x130]
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret