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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1430
call fcn.1403948e0
sub rsp, rax
mov rax, qword [0x144db4000]
xor rax, rsp
mov qword [rsp + 0x1420], rax
mov rdi, rcx
mov qword [rsp + 0x38], rcx
call fcn.14022d130
nop
xor esi, esi
mov qword [rdi + 0x50], rsi
mov qword [rdi + 0x60], rsi
mov qword [rdi + 0x68], reloc.WS2_32.dll_ntohs
mov byte [rdi + 0x50], sil
mov qword [rdi + 0x70], rsi
mov qword [rdi + 0x80], rsi
mov qword [rdi + 0x88], reloc.WS2_32.dll_ntohs
mov byte [rdi + 0x70], sil
mov rcx, rdi
call fcn.14022d5b0
test al, al
jne 0x14022ce2c
call fcn.140393010
mov dword [rsp + 0x13c4], 0xffffffff
mov dword [rsp + 0x44], eax
lea edx, [rsi + 1]
nop dword [rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x44], eax
inc rdx
cmp rdx, 0x270
jb 0x14022cdc0
mov dword [rsp + 0x40], 0x270
lea rbp, [rdi + 0x30]
lea rbx, [rdi + 0x10]
cmp rbx, rbp
je 0x14022ce24
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0x20
mov dword [rsp + 0x30], 0xffffffff
lea rcx, [rsp + 0x20]
call fcn.140072670
mov dword [rbx], eax
add rbx, 4
cmp rbx, rbp
jne 0x14022cdf4
mov rcx, rdi
call fcn.14022d960
lea r8, [rdi + 0x30]
mov edx, 0x20
lea rcx, [rdi + 0x10]
call fcn.1402abad0
lea r8, [rsp + 0x13d0]
mov edx, 0x20
lea rcx, [rdi + 0x10]
call fcn.1401f4c90
mov r15, qword [rdi + 0x68]
movabs rbp, 0x7fffffffffffffff
movabs r13, 0x8000000000000000
cmp r15, 0x40
jb 0x14022ce9d
mov rbx, qword [rdi + 0x50]
mov qword [rdi + 0x60], 0x40
mov r8d, 0x40
lea rdx, [rsp + 0x13d0]
mov rcx, rbx
call fcn.1403954c0
mov byte [rbx + 0x40], 0
jmp 0x14022cf8e
mov rcx, r15
shr rcx, 1
mov rax, rbp
sub rax, rcx
cmp r15, rax
jbe 0x14022ceb7
mov r14, rbp
lea rax, [r13 + 0x27]
jmp 0x14022cee2
lea rax, [rcx + r15]
mov r14d, 0x4f
cmp rax, r14
cmova r14, rax
lea rcx, [r14 + 1]
cmp rcx, 0x1000
jb 0x14022cf01
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14022d103
mov rcx, rax
call fcn.1403940a0
test rax, rax
je 0x14022d0fd
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x14022cf13
test rcx, rcx
je 0x14022cf10
call fcn.1403940a0
mov rbx, rax
jmp 0x14022cf13
mov rbx, rsi
mov qword [rdi + 0x60], 0x40
mov qword [rdi + 0x68], r14
movaps xmm0, xmmword [rsp + 0x13d0]
movups xmmword [rbx], xmm0
movaps xmm1, xmmword [rsp + 0x13e0]
movups xmmword [rbx + 0x10], xmm1
movaps xmm0, xmmword [rsp + 0x13f0]
movups xmmword [rbx + 0x20], xmm0
movaps xmm1, xmmword [rsp + 0x1400]
movups xmmword [rbx + 0x30], xmm1
mov byte [rbx + 0x40], 0
cmp r15, 0x10
jb 0x14022cf8a
mov rcx, qword [rdi + 0x50]
lea rdx, [r15 + 1]
cmp rdx, 0x1000
jb 0x14022cf85
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14022d0fd
mov rcx, r8
call fcn.1403940dc
mov qword [rdi + 0x50], rbx
lea r8, [rsp + 0x13d0]
mov edx, 0x20
lea rcx, [rdi + 0x30]
call fcn.1401f4c90
mov rbx, qword [rdi + 0x88]
cmp rbx, 0x40
jb 0x14022cfdf
mov rbx, qword [rdi + 0x70]
mov qword [rdi + 0x80], 0x40
mov r8d, 0x40
lea rdx, [rsp + 0x13d0]
mov rcx, rbx
call fcn.1403954c0
mov byte [rbx + 0x40], 0
jmp 0x14022d0c9
mov rcx, rbx
shr rcx, 1
mov rax, rbp
sub rax, rcx
cmp rbx, rax
jbe 0x14022d013
lea rax, [r13 + 0x27]
mov rcx, rax
call fcn.1403940a0
test rax, rax
je 0x14022d0fd
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x14022d04c
lea rax, [rcx + rbx]
mov ebp, 0x4f
cmp rax, rbp
cmova rbp, rax
lea rcx, [rbp + 1]
cmp rcx, 0x1000
jb 0x14022d03f
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14022d103
jmp 0x14022cff4
test rcx, rcx
je 0x14022d04c
call fcn.1403940a0
mov rsi, rax
mov qword [rdi + 0x80], 0x40
mov qword [rdi + 0x88], rbp
movaps xmm0, xmmword [rsp + 0x13d0]
movups xmmword [rsi], xmm0
movaps xmm1, xmmword [rsp + 0x13e0]
movups xmmword [rsi + 0x10], xmm1
movaps xmm0, xmmword [rsp + 0x13f0]
movups xmmword [rsi + 0x20], xmm0
movaps xmm1, xmmword [rsp + 0x1400]
movups xmmword [rsi + 0x30], xmm1
mov byte [rsi + 0x40], 0
cmp rbx, 0x10
jb 0x14022d0c5
mov rcx, qword [rdi + 0x70]
lea rdx, [rbx + 1]
cmp rdx, 0x1000
jb 0x14022d0c0
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14022d0fd
mov rcx, r8
call fcn.1403940dc
mov qword [rdi + 0x70], rsi
mov rax, rdi
mov rcx, qword [rsp + 0x1420]
xor rcx, rsp
call fcn.1403941f0
lea r11, [rsp + 0x1430]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.14039b04c
nop
call fcn.1400020b0
int3