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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rdi
mov qword [r11 + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x14016e040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
mov qword [r11 - 0x40], rcx
and dword [rsp + 0x24], 0
mov r12d, reloc.WS2_32.dll_recv
mov rax, qword gs:[0x58]
mov rax, qword [rax]
mov eax, dword [r12 + rax]
cmp dword [0x140234a94], eax
jle 0x14003e180
lea rcx, [0x140234a94]
call fcn.140118b98
cmp dword [0x140234a94], 0xffffffff
jne 0x14003e180
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x30], eax
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x34], eax
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x38], eax
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x3c], eax
xorps xmm0, xmm0
movdqu xmmword [0x140235ea8], xmm0
xor eax, eax
mov qword [0x140235eb8], rax
lea rdi, [rsp + 0x30]
mov ecx, dword [rdi]
mov dword [rsp + 0x20], ecx
mov rdx, qword [0x140235eb0]
cmp rdx, rax
je 0x14003e146
mov dword [rdx], ecx
add qword [0x140235eb0], 4
jmp 0x14003e150
lea r8, [rsp + 0x20]
call fcn.14005af04
add rdi, 4
lea rax, [rsp + 0x40]
cmp rdi, rax
je 0x14003e167
mov rax, qword [0x140235eb8]
jmp 0x14003e128
lea rcx, [0x1401207d4]
call fcn.140118f44
nop
lea rcx, [0x140234a94]
call fcn.140118b2c
mov rax, qword gs:[0x58]
mov rax, qword [rax]
lea r14, [0x140000000]
mov r15d, 0x270
mov eax, dword [r12 + rax]
cmp dword [0x140235efc], eax
jle 0x14003e208
lea rcx, [0x140235efc]
call fcn.140118b98
cmp dword [0x140235efc], 0xffffffff
jne 0x14003e208
or dword [0x140235ea4], 0xffffffff
mov ecx, 0x1571
mov dword [0x140234b24], ecx
mov edx, 1
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, edx
mov dword [r14 + rdx*4 + 0x234b24], ecx
inc rdx
cmp rdx, r15
jb 0x14003e1d1
mov dword [0x140234b20], r15d
call fcn.140055bdc
lea rcx, [0x140235efc]
call fcn.140118b2c
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
and qword [rbx + 0x10], 0
and qword [rbx + 0x10], 0
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov dword [rsp + 0x24], 1
mov edi, 0xa
mov r12d, 0x7fffffff
mov r13d, 0x9908b0df
mov edx, dword [0x140234b20]
cmp edx, r15d
jne 0x14003e291
lea r8, [0x140234b28]
mov r9, r15
mov edx, dword [r8 - 4]
xor edx, dword [r8]
and edx, r12d
xor edx, dword [r8 - 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, r13d
xor ecx, dword [r8 + 0x630]
shr edx, 1
xor ecx, edx
mov dword [r8 + 0x9bc], ecx
lea r8, [r8 + 4]
sub r9, 1
jne 0x14003e251
mov edx, dword [0x140234b20]
jmp 0x14003e366
cmp edx, 0x4e0
jb 0x14003e366
xor r8d, r8d
mov eax, dword [r8 + r14 + 0x2354e4]
mov edx, eax
xor edx, dword [r8 + r14 + 0x2354e8]
and edx, r12d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, r13d
xor ecx, dword [r8 + r14 + 0x235b18]
shr edx, 1
xor ecx, edx
mov dword [r8 + r14 + 0x234b24], ecx
add r8, 4
cmp r8, 0x38c
jb 0x14003e2a0
mov r8d, 0x38c
mov eax, dword [r8 + r14 + 0x2354e4]
mov edx, eax
xor edx, dword [r8 + r14 + 0x2354e8]
and edx, r12d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, r13d
xor ecx, dword [r8 + r14 + 0x234798]
shr edx, 1
xor ecx, edx
mov dword [r8 + r14 + 0x234b24], ecx
add r8, 4
cmp r8, 0x9bc
jb 0x14003e2e9
mov edx, dword [0x140235ea0]
and edx, 0x80000000
mov eax, dword [0x140234b24]
and eax, r12d
or edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, r13d
shr edx, 1
xor ecx, edx
xor ecx, dword [0x140235154]
mov dword [0x1402354e0], ecx
xor edx, edx
mov dword [0x140234b20], edx
mov eax, edx
mov ecx, dword [r14 + rax*4 + 0x234b24]
inc edx
mov dword [0x140234b20], edx
mov eax, ecx
shr eax, 0xb
and eax, dword [0x140235ea4]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and ecx, 0xffffdf8c
shl ecx, 0xf
xor rcx, rax
mov r8, rcx
shr r8, 0x12
xor r8, rcx
movabs rax, 0x842108421084211
mul r8
mov rax, r8
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 5
imul rax, rax, 0x3e
sub r8, rax
mov r9b, byte [r8 + r14 + 0x13f5e0]
mov rcx, qword [rbx + 0x10]
cmp rcx, qword [rbx + 0x18]
jae 0x14003e3ff
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14003e3f4
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14003e407
mov rcx, rbx
call fcn.14001483c
sub rdi, 1
jne 0x14003e23c
mov rax, rbx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140118ad0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret