Function at 0x14007f020
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, 0xa20
mov rax, qword [0x140381300]
xor rax, rsp
mov qword [rsp + 0xa10], rax
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor ebp, ebp
mov dword [rsp + 0x28], ebp
mov esi, 4
mov rax, qword gs:[0x58]
add rsi, qword [rax]
mov eax, dword [rsi]
cmp dword [0x140389560], eax
jle 0x14007f138
lea rcx, [0x140389560]
call fcn.140262c80
cmp dword [0x140389560], 0xffffffff
jne 0x14007f138
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x14038a9f0], xmm0
mov qword [0x14038aa00], rax
call fcn.140261d50
mov dword [rsp + 0x30], eax
call fcn.140261d50
mov dword [rsp + 0x34], eax
call fcn.140261d50
mov dword [rsp + 0x38], eax
call fcn.140261d50
mov dword [rsp + 0x3c], eax
xorps xmm0, xmm0
movdqu xmmword [0x14038a9f0], xmm0
mov ecx, ebp
mov qword [0x14038aa00], rcx
lea rbx, [rsp + 0x30]
nop dword [rax]
mov eax, dword [rbx]
mov dword [rsp + 0x24], eax
mov rdx, qword [0x14038a9f8]
cmp rdx, rcx
je 0x14007f0fe
mov dword [rdx], eax
add qword [0x14038a9f8], 4
jmp 0x14007f108
lea r8, [rsp + 0x24]
call fcn.14009e130
add rbx, 4
lea rax, [rsp + 0x40]
cmp rbx, rax
je 0x14007f11f
mov rcx, qword [0x14038aa00]
jmp 0x14007f0e0
lea rcx, [0x14029c1d0]
call fcn.140262f5c
nop
lea rcx, [0x140389560]
call fcn.140262c14
lea r14, [0x140000000]
mov eax, dword [rsi]
cmp dword [0x14038aae4], eax
jle 0x14007f21c
lea rcx, [0x14038aae4]
call fcn.140262c80
cmp dword [0x14038aae4], 0xffffffff
jne 0x14007f21c
mov dword [0x14038a9b4], 0xffffffff
mov edx, 0x1571
mov dword [0x140389634], edx
mov ecx, 1
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [r14 + rcx*4 + 0x389634], edx
inc rcx
cmp rcx, 0x270
jb 0x14007f180
mov dword [0x140389630], 0x270
lea r8, [rsp + 0xa10]
lea rdx, [rsp + 0x50]
call fcn.14009b710
mov edx, ebp
mov r8, rbp
nop dword [rax]
nop dword [rax + rax]
mov ecx, dword [rsp + r8*4 + 0x50]
mov dword [r14 + r8*4 + 0x389634], 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 0x14007f1d0
test edx, edx
jne 0x14007f206
mov dword [0x140389634], 0x80000000
mov dword [0x140389630], 0x270
lea rcx, [0x14038aae4]
call fcn.140262c14
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov dword [rsp + 0x28], 1
mov esi, 0xa
movabs rbp, 0x842108421084211
movzx ebx, byte [rsp + 0x20]
nop dword [rax]
call fcn.14008c910
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 + r14 + 0x3578f0]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x14007f2a8
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x14007f29d
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14007f2b9
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.140095630
sub rsi, 1
jne 0x14007f250
mov rax, rdi
mov rcx, qword [rsp + 0xa10]
xor rcx, rsp
call fcn.140262bb0
lea r11, [rsp + 0xa20]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret