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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0xa00
mov rsi, rdx
mov rbx, rcx
mov qword [rsp + 0x38], rcx
xor ebp, ebp
mov dword [rsp + 0x24], ebp
mov r14d, 4
mov rax, qword gs:[0x58]
add r14, qword [rax]
mov eax, dword [r14]
cmp dword [0x14011fb90], eax
jle 0x140004eaf
lea rcx, [0x14011fb90]
call fcn.1400ce968
cmp dword [0x14011fb90], 0xffffffff
jne 0x140004eaf
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x14011e780], xmm0
mov qword [0x14011e790], rax
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x28], eax
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x2c], eax
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
xorps xmm0, xmm0
movdqu xmmword [0x14011e780], xmm0
mov ecx, ebp
mov qword [0x14011e790], rcx
lea rdi, [rsp + 0x28]
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [rdi]
mov dword [rsp + 0x20], eax
mov rdx, qword [0x14011e788]
cmp rdx, rcx
je 0x140004e6e
mov dword [rdx], eax
add qword [0x14011e788], 4
jmp 0x140004e7f
lea r8, [rsp + 0x20]
lea rcx, [0x14011e780]
call fcn.140028a60
add rdi, 4
lea rax, [rsp + 0x38]
cmp rdi, rax
je 0x140004e96
mov rcx, qword [0x14011e790]
jmp 0x140004e50
lea rcx, [0x1400d98d0]
call fcn.1400cec44
nop
lea rcx, [0x14011fb90]
call fcn.1400ce8fc
lea rdi, [0x140000000]
mov eax, dword [r14]
cmp dword [0x14011e738], eax
jle 0x140004f9c
lea rcx, [0x14011e738]
call fcn.1400ce968
cmp dword [0x14011e738], 0xffffffff
jne 0x140004f9c
mov dword [0x14011fb24], 0xffffffff
mov edx, 0x1571
mov dword [0x14011e7a4], edx
mov ecx, 1
nop dword [rax + rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rdi + rcx*4 + 0x11e7a4], edx
inc rcx
cmp rcx, 0x270
jb 0x140004f00
mov dword [0x14011e7a0], 0x270
lea r8, [rsp + 0xa00]
lea rdx, [rsp + 0x40]
call fcn.140023960
mov edx, ebp
mov r8, rbp
nop dword [rax]
nop word [rax + rax]
mov ecx, dword [rsp + r8*4 + 0x40]
mov dword [rdi + r8*4 + 0x11e7a4], ecx
mov eax, ecx
or eax, edx
mov edx, ecx
shr edx, 0x1f
test r8, r8
cmovne edx, eax
inc r8
cmp r8, 0x270
jb 0x140004f50
test edx, edx
jne 0x140004f86
mov dword [0x14011e7a4], 0x80000000
mov dword [0x14011e7a0], 0x270
lea rcx, [0x14011e738]
call fcn.1400ce8fc
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov dword [rsp + 0x24], 1
test rsi, rsi
je 0x14000502e
movabs rbp, 0x842108421084211
call fcn.140012a80
mov ecx, eax
mov rax, rbp
mul rcx
mov eax, ecx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 5
imul rax, rax, 0x3e
sub rcx, rax
movzx r9d, byte [rcx + rdi + 0xdd2e8]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x140005020
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x140005015
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140005028
mov rcx, rbx
call fcn.140017820
sub rsi, 1
jne 0x140004fc8
mov rax, rbx
lea r11, [rsp + 0xa00]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret