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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x26d0]
mov eax, 0x27d0
call fcn.14008cce0
sub rsp, rax
mov rax, qword [0x1400ae038]
xor rax, rsp
mov qword [rbp + 0x26c0], rax
mov r14, r9
mov r15, r8
mov rsi, rdx
mov qword [rsp + 0x48], rdx
mov qword [rbp + 0x12e0], r8
mov r12, qword [rbp + 0x2730]
mov edi, 1
mov dword [rsp + 0x20], edi
cmp qword [r8 + 0x10], r12
ja 0x1400185be
mov rdx, r8
mov rcx, rsi
call fcn.140005a70
mov r13d, 0xffffffff
mov dword [rbp + 0x12d4], r13d
mov dword [rsp + 0x54], r14d
nop dword [rax]
nop word [rax + rax]
mov eax, r14d
shr eax, 0x1e
xor eax, r14d
imul ecx, eax, 0x6c078965
add ecx, edi
mov dword [rsp + rdi*4 + 0x54], ecx
mov r14d, ecx
inc rdi
cmp rdi, 0x270
jb 0x1400184f0
mov dword [rsp + 0x50], 0x270
cmp qword [rsi + 0x18], 0x10
jb 0x14001852f
mov rdx, qword [rsi]
mov r9, rdx
add rdx, qword [rsi + 0x10]
jmp 0x140018539
mov rdx, qword [rsi + 0x10]
add rdx, rsi
mov r9, rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x38], rbx
mov eax, 0x40
dec rax
shr rbx, 1
cmp rbx, r13
ja 0x140018554
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x28]
mov rcx, r9
call fcn.140019560
nop
mov rdx, qword [r15 + 0x18]
cmp rdx, 0x10
jb 0x1400185b1
inc rdx
mov rcx, qword [r15]
cmp rdx, 0x1000
jb 0x1400185ac
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140018afd
mov rcx, r8
call fcn.14008bba0
mov qword [r15 + 0x10], 0
jmp 0x140018ac4
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
xor r13d, r13d
mov qword [rdx + 0x10], r13
mov qword [rdx + 0x18], r13
mov r8, r12
cmp qword [r15 + 0x10], r12
cmovb r8, qword [r15 + 0x10]
mov rdx, r15
cmp qword [r15 + 0x18], 0x10
jb 0x1400185e8
mov rdx, qword [r15]
mov rcx, rsi
call fcn.140006aa0
nop
mov dword [rsp + 0x20], select
xorps xmm0, xmm0
movups xmmword [rbp + 0x1308], xmm0
mov qword [rbp + 0x1318], r13
mov qword [rbp + 0x1320], r13
mov rax, qword [r15 + 0x10]
cmp rax, r12
jb 0x140018b0a
sub rax, r12
mov rbx, 0xffffffffffffffff
mov r8, rbx
cmp rax, rbx
cmovb r8, rax
mov rax, r15
cmp qword [r15 + 0x18], 0x10
jb 0x14001863f
mov rax, qword [r15]
lea rdx, [r12 + rax]
lea rcx, [rbp + 0x1308]
call fcn.140006aa0
mov dword [rsp + 0x20], reloc.WS2_32.dll_ntohs
xorps xmm0, xmm0
movups xmmword [rbp + 0x12e8], xmm0
mov qword [rbp + 0x12f8], r13
mov qword [rbp + 0x1300], r13
mov r8, qword [rbp + 0x1318]
mov qword [rsp + 0x40], r8
lea r13, [rbp + 0x1308]
cmp qword [rbp + 0x1320], 0x10
cmovae r13, qword [rbp + 0x1308]
movabs r12, 0x7fffffffffffffff
cmp r8, r12
ja 0x140018b10
cmp r8, 0x10
jae 0x1400186cf
mov qword [rbp + 0x12f8], r8
mov edx, reloc.WS2_32.dll_ntohs
mov qword [rbp + 0x1300], rdx
movups xmm0, xmmword [r13]
movups xmmword [rbp + 0x12e8], xmm0
jmp 0x140018781
mov qword [rbp + 0x1300], reloc.WS2_32.dll_ntohs
mov rax, r8
or rax, 0xf
cmp rax, r12
ja 0x1400186f5
mov r12, rax
mov ecx, reloc.WS2_32.dll_shutdown
cmp rax, rcx
cmovb r12, rcx
mov rcx, r12
add rcx, 1
cmovb rcx, rbx
cmp rcx, 0x1000
jb 0x14001873d
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140018b04
mov rcx, rax
call fcn.14008bba8
mov rcx, rax
test rax, rax
je 0x140018a04
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
mov r8, qword [rsp + 0x40]
jmp 0x140018750
test rcx, rcx
je 0x14001874e
call fcn.14008bba8
mov r8, qword [rsp + 0x40]
jmp 0x140018750
xor eax, eax
mov qword [rbp + 0x12e8], rax
mov qword [rbp + 0x12f8], r8
mov qword [rbp + 0x1300], r12
inc r8
mov rdx, r13
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [rbp + 0x1300]
mov r8, qword [rbp + 0x12f8]
mov r13d, 0xffffffff
mov dword [rbp + 0x26b4], r13d
mov dword [rbp + 0x1334], r14d
nop word [rax + rax]
mov eax, r14d
shr eax, 0x1e
xor eax, r14d
imul ecx, eax, 0x6c078965
add ecx, edi
mov dword [rbp + rdi*4 + 0x1334], ecx
mov r14d, ecx
inc rdi
cmp rdi, 0x270
jb 0x1400187a0
mov dword [rbp + 0x1330], 0x270
lea r12, [rbp + 0x12e8]
mov rcx, qword [rbp + 0x12e8]
cmp rdx, 0x10
cmovae r12, rcx
add r12, r8
lea rdi, [rbp + 0x12e8]
cmp rdx, 0x10
cmovae rdi, rcx
cmp rdi, r12
je 0x14001885e
nop
movsx ecx, byte [rdi]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
test eax, eax
je 0x140018815
inc rdi
cmp rdi, r12
jne 0x140018800
mov rdx, qword [rbp + 0x1300]
mov rcx, qword [rbp + 0x12e8]
cmp rdi, r12
je 0x14001885e
lea r14, [rdi + 1]
cmp r14, r12
je 0x14001885e
movsx ecx, byte [r14]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
test eax, eax
je 0x140018848
movzx eax, byte [r14]
mov byte [rdi], al
inc rdi
inc r14
cmp r14, r12
jne 0x140018831
mov rdx, qword [rbp + 0x1300]
mov rcx, qword [rbp + 0x12e8]
lea r9, [rbp + 0x12e8]
cmp rdx, 0x10
cmovae r9, rcx
lea rax, [rbp + 0x1330]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x38], rbx
mov eax, 0x40
dec rax
shr rbx, 1
cmp rbx, r13
ja 0x140018883
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x28]
mov rdx, rdi
mov rcx, r9
call fcn.140019560
lea rdi, [rbp + 0x12e8]
cmp qword [rbp + 0x1300], 0x10
cmovae rdi, qword [rbp + 0x12e8]
lea rbx, [rbp + 0x1308]
mov r8, qword [rbp + 0x1308]
mov rdx, qword [rbp + 0x1320]
cmp rdx, 0x10
cmovae rbx, r8
nop dword [rax]
lea rcx, [rbp + 0x1308]
cmp rdx, 0x10
cmovae rcx, r8
add rcx, qword [rbp + 0x1318]
cmp rbx, rcx
je 0x1400189cb
movsx ecx, byte [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
mov rcx, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x18]
test eax, eax
je 0x140018971
movzx r9d, byte [rdi]
cmp rcx, rdx
jae 0x140018950
lea rax, [rcx + 1]
mov qword [rsi + 0x10], rax
mov rax, rsi
cmp rdx, 0x10
jb 0x140018931
mov rax, qword [rsi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
inc rdi
inc rbx
mov rdx, qword [rbp + 0x1320]
mov r8, qword [rbp + 0x1308]
jmp 0x1400188e0
mov rcx, rsi
call fcn.140006ed0
inc rdi
inc rbx
mov rdx, qword [rbp + 0x1320]
mov r8, qword [rbp + 0x1308]
jmp 0x1400188e0
movzx r9d, byte [rbx]
cmp rcx, rdx
jae 0x1400189ad
lea rax, [rcx + 1]
mov qword [rsi + 0x10], rax
mov rax, rsi
cmp rdx, 0x10
jb 0x14001898e
mov rax, qword [rsi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
inc rbx
mov rdx, qword [rbp + 0x1320]
mov r8, qword [rbp + 0x1308]
jmp 0x1400188e0
mov rcx, rsi
call fcn.140006ed0
inc rbx
mov rdx, qword [rbp + 0x1320]
mov r8, qword [rbp + 0x1308]
jmp 0x1400188e0
mov rax, qword [rbp + 0x1300]
cmp rax, 0x10
jb 0x140018a1e
lea rdx, [rax + 1]
mov rcx, qword [rbp + 0x12e8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018a0b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140018a0b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008bba0
mov rdx, qword [rbp + 0x1320]
mov r8, qword [rbp + 0x1308]
xor ebx, ebx
mov qword [rbp + 0x12f8], rbx
mov qword [rbp + 0x1300], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x12e8], bl
cmp rdx, 0x10
jb 0x140018a71
inc rdx
mov rax, r8
cmp rdx, 0x1000
jb 0x140018a69
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140018a69
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.14008bba0
mov qword [rbp + 0x1318], rbx
mov qword [rbp + 0x1320], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x1308], 0
mov rdx, qword [r15 + 0x18]
cmp rdx, 0x10
jb 0x140018ac0
inc rdx
mov rcx, qword [r15]
cmp rdx, 0x1000
jb 0x140018abb
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140018afd
mov rcx, r8
call fcn.14008bba0
mov qword [r15 + 0x10], rbx
mov rax, rsi
mov byte [r15], 0
mov qword [r15 + 0x18], reloc.WS2_32.dll_ntohs
mov rcx, qword [rbp + 0x26c0]
xor rcx, rsp
call fcn.14008bb80
mov rbx, qword [rsp + 0x2810]
add rsp, 0x27d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400014c0
nop
call fcn.1400063a0
nop
call fcn.140001560
int3