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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r14d, r8d
mov rbx, rdx
xor r12d, r12d
mov ecx, dword [0x14008e818]
mov rax, qword gs:[0x58]
mov rsi, qword [rax + rcx*8]
mov eax, 0x13a8
mov eax, dword [rax + rsi]
cmp dword [0x14008e010], eax
jg 0x14001cbab
mov r15d, 0x1398
mov eax, dword [r15 + rsi]
mov r13d, reloc.WS2_32.dll_recv
test al, 1
jne 0x14001ca68
or eax, 1
mov dword [r15 + rsi], eax
mov edi, r13d
add rdi, rsi
call sub.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_
mov dword [rdi + 0x1384], 0xffffffff
mov dword [rdi + 4], eax
mov edx, 1
lea r8, [rdi + 8]
nop dword [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [r8], eax
inc rdx
lea r8, [r8 + 4]
cmp rdx, 0x270
jb 0x14001ca40
mov dword [rdi], 0x270
mov eax, dword [r15 + rsi]
mov ebp, 0x13a0
test al, 2
jne 0x14001ca8c
or eax, 2
mov dword [r15 + rsi], eax
mov dword [rsi + rbp], r12d
mov eax, dword [0x14008c0a8]
dec eax
mov dword [rsi + rbp + 4], eax
mov eax, reloc.WLDAP32.dll_Ordinal_32
test r14d, r14d
cmovne eax, r14d
movsxd rdx, eax
xor r8d, r8d
mov rcx, rbx
call fcn.140002e60
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14001cab8
mov rcx, qword [rbx]
mov rdx, rcx
jmp 0x14001cabb
mov rdx, rbx
mov rdi, rcx
mov r14, qword [rbx + 0x10]
add r14, rdx
cmp rcx, r14
je 0x14001cb88
lea r15, [rsi + rbp]
mov ebp, r13d
add rbp, rsi
mov r12d, 0x80000000
lea r13, [0x14008c098]
nop word [rax + rax]
mov edx, dword [r15 + 4]
mov ecx, dword [r15]
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x30], reloc.WLDAP32.dll_Ordinal_32
mov dword [rsp + 0x38], 0xffffffff
lea eax, [rcx - 0x80000000]
lea esi, [rcx + r12]
cmp ecx, r12d
cmovae esi, eax
lea eax, [rdx - 0x80000000]
lea ecx, [rdx + r12]
cmp edx, r12d
cmovae ecx, eax
sub ecx, esi
cmp ecx, 0xffffffff
jne 0x14001cb40
lea rcx, [rsp + 0x28]
call fcn.140003d90
jmp 0x14001cb4d
lea edx, [rcx + 1]
lea rcx, [rsp + 0x28]
call fcn.140003980
lea ecx, [rsi + rax]
lea eax, [rcx - 0x80000000]
lea edx, [rcx + r12]
cmp ecx, r12d
cmovae edx, eax
mov rcx, r13
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae rcx, qword [0x14008c098]
movsxd rax, edx
movzx ecx, byte [rax + rcx]
mov byte [rdi], cl
inc rdi
cmp rdi, r14
jne 0x14001caf0
mov rax, rbx
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rcx, [0x14008e010]
call fcn.14006b2b0
cmp dword [0x14008e010], 0xffffffff
jne 0x14001c9fc
mov edx, Ordinal_50
lea rcx, [0x14008c098]
call fcn.140001d40
mov qword [0x14008c098], rax
mov qword [0x14008c0a8], 0x2a
mov qword [reloc.WS2_32.dll_ntohs], 0x2f
movups xmm0, xmmword [0x14006f298]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14006f2a8]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x14006f2b8]
movsd qword [rax + 0x20], xmm0
movzx edx, word [0x14006f2c0]
mov word [rax + 0x28], dx
mov byte [rax + 0x2a], 0
lea rcx, [0x14006dc40]
call fcn.14006ae74
nop
lea rcx, [0x14008e010]
call fcn.14006b250
jmp 0x14001c9fc