Function at 0x140058e60
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 - 0x1320]
mov eax, 0x1420
call fcn.1400c7ed0
sub rsp, rax
mov rax, qword [0x1401c7c00]
xor rax, rsp
mov qword [rbp + 0x1310], rax
mov ebx, edx
mov rdi, rcx
mov qword [rsp + 0x50], rcx
xor esi, esi
mov dword [rsp + 0x4c], esi
mov byte [rsp + 0x20], Ordinal_211
mov byte [rsp + 0x21], reloc.WLDAP32.dll_Ordinal_211
mov byte [rsp + 0x22], 0xda
mov byte [rsp + 0x23], reloc.WLDAP32.dll_Ordinal_217
mov byte [rsp + 0x24], Ordinal_217
mov byte [rsp + 0x25], Ordinal_211
mov byte [rsp + 0x26], 0xdf
mov byte [rsp + 0x27], 0xa9
mov byte [rsp + 0x28], 0xab
mov byte [rsp + 0x29], 0xa8
mov byte [rsp + 0x2a], 0xa5
mov byte [rsp + 0x2b], 0xa3
mov byte [rsp + 0x2c], 0xad
mov byte [rsp + 0x2d], 0xa4
mov byte [rsp + 0x2e], 0xac
mov byte [rsp + 0x2f], 0xb6
mov byte [rsp + 0x30], 0xb1
mov byte [rsp + 0x31], 0xb3
mov byte [rsp + 0x32], 0xba
mov byte [rsp + 0x33], 0xb9
mov byte [rsp + 0x34], 0xb5
mov byte [rsp + 0x35], 0xb2
mov byte [rsp + 0x36], 0xbf
mov byte [rsp + 0x37], 0xa9
mov byte [rsp + 0x38], 0xab
mov byte [rsp + 0x39], 0xa8
mov byte [rsp + 0x3a], 0xee
mov byte [rsp + 0x3b], 0xee
mov byte [rsp + 0x3c], 0xe2
mov byte [rsp + 0x3d], 0xe9
mov byte [rsp + 0x3e], 0xe7
mov byte [rsp + 0x3f], 0xe3
mov byte [rsp + 0x40], 0xe6
mov byte [rsp + 0x41], 0xe6
mov byte [rsp + 0x42], 0xe1
mov byte [rsp + 0x43], 0xe4
mov byte [rsp + 0x44], Ordinal_211
movzx eax, byte [rsp + 0x20]
mov r9d, esi
movabs r11, 0xe4c5bd0317ad12b9
mov r10, r11
lea rax, [rsp + 0x20]
sub r10, rax
mov r14d, reloc.WS2_32.dll_ntohs
nop word [rax + rax]
lea r8, [rsp + 0x20]
add r8, r9
mov rcx, r9
and ecx, r14d
cmp rcx, r14
cmovae rcx, r14
shl cl, 2
mov rdx, r11
shr rdx, cl
and dl, r14b
lea eax, [r10 + r8]
xor dl, al
movzx eax, byte [r8]
xor dl, al
mov byte [rsp + r9 + 0x20], dl
inc r9
cmp r9, 0x25
jb 0x140058f90
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], rsi
lea rax, [rsp + 0x20]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], sil
jne 0x140058ff0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x58]
call fcn.140049840
nop
call sub.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_
mov edx, eax
mov dword [rbp + 0x1304], 0xffffffff
mov dword [rbp - 0x7c], eax
mov ecx, 1
nop dword [rax]
nop word [rax + rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rbp + rcx*4 - 0x7c], edx
inc rcx
cmp rcx, 0x270
jb 0x140059030
mov dword [rbp - 0x80], 0x270
mov r15d, dword [rsp + 0x68]
dec r15d
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], r14
mov byte [rdi], 0
mov dword [rsp + 0x4c], 1
mov r13, qword [rsp + 0x58]
test ebx, ebx
jle 0x140059161
mov eax, 0x80000000
xor r15d, eax
mov r12, rbx
movzx ebx, byte [rsp + 0x48]
nop dword [rax]
nop dword [rax + rax]
lea rcx, [rbp - 0x80]
cmp r15d, 0x7fffffff
jne 0x1400590b6
call fcn.14004da60
mov ecx, eax
jmp 0x1400590f7
lea esi, [r15 - 0x7fffffff]
call fcn.14004da60
mov r14d, esi
mov ecx, eax
imul rcx, r14
cmp ecx, esi
jae 0x1400590f3
mov eax, esi
neg eax
xor edx, edx
div esi
mov esi, edx
cmp ecx, edx
jae 0x1400590f3
nop dword [rax]
lea rcx, [rbp - 0x80]
call fcn.14004da60
mov ecx, eax
imul rcx, r14
cmp ecx, esi
jb 0x1400590e0
shr rcx, 0x20
mov r8d, 0x80000000
lea eax, [rcx + r8]
xor eax, r8d
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0xf
cmova rcx, r13
cdqe
movzx r9d, byte [rax + rcx]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x140059146
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x14005913b
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140059157
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.14004b120
sub r12, 1
jne 0x1400590a0
mov rax, qword [rsp + 0x70]
cmp rax, 0xf
jbe 0x1400591a0
lea rdx, [rax + 1]
mov rax, r13
cmp rdx, 0x1000
jb 0x140059198
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140059198
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r13
call fcn.1400c7b60
mov rax, rdi
mov rcx, qword [rbp + 0x1310]
xor rcx, rsp
call fcn.1400c7a00
lea r11, [rsp + 0x1420]
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