Function at 0x140018740
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 [0x140089518]
mov rax, qword gs:[0x58]
mov rsi, qword [rax + rcx*8]
mov eax, 0x13a8
mov eax, dword [rax + rsi]
cmp dword [0x140088d10], eax
jg 0x14001893b
mov r15d, 0x1398
mov eax, dword [r15 + rsi]
mov r13d, reloc.WS2_32.dll_recv
test al, 1
jne 0x1400187f8
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 0x1400187d0
mov dword [rdi], 0x270
mov eax, dword [r15 + rsi]
mov ebp, 0x13a0
test al, 2
jne 0x14001881c
or eax, 2
mov dword [r15 + rsi], eax
mov dword [rsi + rbp], r12d
mov eax, dword [0x1400870a8]
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.140002930
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140018848
mov rcx, qword [rbx]
mov rdx, rcx
jmp 0x14001884b
mov rdx, rbx
mov rdi, rcx
mov r14, qword [rbx + 0x10]
add r14, rdx
cmp rcx, r14
je 0x140018918
lea r15, [rsi + rbp]
mov ebp, r13d
add rbp, rsi
mov r12d, 0x80000000
lea r13, [0x140087098]
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 0x1400188d0
lea rcx, [rsp + 0x28]
call fcn.140002e00
jmp 0x1400188dd
lea edx, [rcx + 1]
lea rcx, [rsp + 0x28]
call fcn.140002b80
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 [0x140087098]
movsxd rax, edx
movzx ecx, byte [rax + rcx]
mov byte [rdi], cl
inc rdi
cmp rdi, r14
jne 0x140018880
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, [0x140088d10]
call fcn.140067010
cmp dword [0x140088d10], 0xffffffff
jne 0x14001878c
mov edx, Ordinal_50
lea rcx, [0x140087098]
call fcn.140001d30
mov qword [0x140087098], rax
mov qword [0x1400870a8], 0x2a
mov qword [reloc.WS2_32.dll_ntohs], 0x2f
movups xmm0, xmmword [str.ABCDFGHJKLMNPQRSTVWXZabcdfghjklmnpqrstvwxz]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14006ac70]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x14006ac80]
movsd qword [rax + 0x20], xmm0
movzx edx, word [0x14006ac88]
mov word [rax + 0x28], dx
mov byte [rax + 0x2a], 0
lea rcx, [0x140069740]
call fcn.140066bd4
nop
lea rcx, [0x140088d10]
call fcn.140066fb0
jmp 0x14001878c