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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x12f0]
mov eax, 0x13f0
call fcn.1400837b0
sub rsp, rax
mov rax, qword [0x1400a60c0]
xor rax, rsp
mov qword [rbp + 0x12e0], rax
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
mov dword [rsp + 0x20], esi
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
lea r8d, [rsi + 0x3e]
lea rdx, str.0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
lea rcx, [rsp + 0x30]
call fcn.140013750
nop
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov dword [rbp + 0x12d4], 0xffffffff
mov dword [rsp + 0x54], eax
lea ecx, [rsi + 1]
nop dword [rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rsp + rcx*4 + 0x54], edx
inc rcx
cmp rcx, 0x270
jb 0x140005960
mov ebx, 0x270
mov dword [rsp + 0x50], ebx
mov r13d, dword [rsp + 0x40]
dec r13d
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov dword [rsp + 0x20], 1
mov r14d, esi
mov r12, qword [rsp + 0x48]
mov r15, qword [rsp + 0x30]
nop word [rax + rax]
test r14d, r14d
je 0x140005a00
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x1400059ee
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x1400059e6
mov rax, qword [rdi]
mov word [rax + rcx], reloc.WLDAP32.dll_Ordinal_45
jmp 0x140005a00
mov r9b, reloc.WLDAP32.dll_Ordinal_45
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rdi
call fcn.140013fb0
cmp r13d, 0xffffffff
jne 0x140005b92
cmp ebx, 0x270
jne 0x140005a62
lea r8, [rsp + 0x58]
mov r9d, ebx
nop word [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, dword [r8 - 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x630]
shr edx, 1
xor ecx, edx
mov dword [r8 + 0x9bc], ecx
lea r8, [r8 + 4]
sub r9, 1
jne 0x140005a20
mov ebx, dword [rsp + 0x50]
jmp 0x140005b58
cmp ebx, 0x4e0
jb 0x140005b58
mov r8, rsi
lea r9, [rbp + 0x914]
lea r10, [rbp + 0xf48]
lea r11, [rsp + 0x54]
nop dword [rax]
nop dword [rax + rax]
mov edx, dword [r9 + r8*4]
xor edx, dword [rbp + r8*4 + 0x918]
btr edx, 0x1f
xor edx, dword [r9 + r8*4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [r10 + r8*4]
shr edx, 1
xor ecx, edx
mov dword [r11 + r8*4], ecx
inc r8
cmp r8, 0xe3
jb 0x140005a90
mov r8d, 0xe3
lea r9, [rbp + 0x918]
lea r10, [rsp + 0x54]
nop dword [rax]
mov eax, dword [rbp + r8*4 + 0x914]
mov edx, eax
xor edx, dword [r9 + r8*4]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [rbp + r8*4 - 0x438]
shr edx, 1
xor ecx, edx
mov dword [r10 + r8*4], ecx
inc r8
cmp r8, 0x26f
jb 0x140005ae0
mov edx, dword [rbp + 0x12d0]
and edx, 0x80000000
mov eax, dword [rsp + 0x54]
btr eax, 0x1f
or edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
shr edx, 1
xor ecx, edx
xor ecx, dword [rbp + 0x584]
mov dword [rbp + 0x910], ecx
mov ebx, esi
mov dword [rsp + 0x50], ebx
mov eax, ebx
mov edx, dword [rsp + rax*4 + 0x54]
inc ebx
mov dword [rsp + 0x50], ebx
mov eax, edx
shr eax, 0xb
and eax, dword [rbp + 0x12d4]
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov ecx, edx
shr ecx, 0x12
xor ecx, edx
jmp 0x140005bde
lea ebx, [r13 + 1]
lea rcx, [rsp + 0x50]
call fcn.14001bf80
mov esi, ebx
mov ecx, eax
imul rcx, rsi
cmp ecx, ebx
jae 0x140005bd4
mov eax, ebx
neg eax
xor edx, edx
div ebx
mov ebx, edx
cmp ecx, edx
jae 0x140005bd4
nop word [rax + rax]
lea rcx, [rsp + 0x50]
call fcn.14001bf80
mov ecx, eax
imul rcx, rsi
cmp ecx, ebx
jb 0x140005bc0
shr rcx, 0x20
mov ebx, dword [rsp + 0x50]
xor esi, esi
lea rdx, [rsp + 0x30]
cmp r12, 0xf
cmova rdx, r15
movsxd rax, ecx
movzx r9d, byte [rax + rdx]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x140005c1f
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x140005c14
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140005c2e
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rdi
call fcn.140013fb0
inc r14d
cmp r14d, 0x10
jl 0x1400059c0
cmp r12, 0xf
jbe 0x140005c76
lea rdx, [r12 + 1]
mov rax, r15
cmp rdx, 0x1000
jb 0x140005c6e
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005c6e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.140083314
mov rax, rdi
mov rcx, qword [rbp + 0x12e0]
xor rcx, rsp
call fcn.140082b60
lea r11, [rsp + 0x13f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret