Function at 0x140058ac0
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 - 0x1de0]
mov eax, 0x1ee0
call fcn.1400ab010
sub rsp, rax
mov rax, qword [0x1400da180]
xor rax, rsp
mov qword [rbp + 0x1dd0], rax
mov r13, rcx
mov qword [rbp - 0x68], rcx
xor esi, esi
mov dword [rsp + 0x40], esi
lea rcx, [rbp + 0x9e0]
call fcn.140057940
nop
lea rcx, [rbp + 0x9c0]
call fcn.140057cd0
nop
lea rcx, [rbp + 0xa20]
call fcn.140058100
nop
lea rcx, [rbp + 0xa00]
call fcn.140058440
nop
lea rcx, [rbp + 0x9a0]
call fcn.140058760
nop
movabs rax, 0x7fffffffffffffff
mov rcx, qword [rbp + 0x9f0]
sub rax, rcx
mov rdx, qword [rbp + 0x9d0]
cmp rax, rdx
jb 0x1400594cd
lea r9, [rbp + 0x9e0]
cmp qword [rbp + 0x9f8], 0xf
cmova r9, qword [rbp + 0x9e0]
lea rax, [rbp + 0x9c0]
cmp qword [rbp + 0x9d8], 0xf
cmova rax, qword [rbp + 0x9c0]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r8, [rbp + 0x9e0]
movzx edx, byte [rsp + 0x44]
lea rcx, [rbp - 0x60]
call fcn.140009a90
mov dword [rsp + 0x40], 2
lea rdx, [rbp + 0xa20]
cmp qword [rbp + 0xa38], 0xf
cmova rdx, qword [rbp + 0xa20]
mov r8, qword [rbp + 0xa30]
lea rcx, [rbp - 0x60]
call fcn.1400089e0
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x68], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], sil
mov dword [rsp + 0x40], 6
lea rdx, [rbp + 0xa00]
cmp qword [rbp + 0xa18], 0xf
cmova rdx, qword [rbp + 0xa00]
mov r8, qword [rbp + 0xa10]
lea rcx, [rsp + 0x58]
call fcn.1400089e0
xorps xmm0, xmm0
movups xmmword [rbp + 0x980], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x990], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x980], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x990], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], sil
mov dword [rsp + 0x40], ntohs
lea rdx, [rbp + 0x9a0]
cmp qword [rbp + 0x9b8], 0xf
cmova rdx, qword [rbp + 0x9a0]
mov r8, qword [rbp + 0x9b0]
lea rcx, [rbp + 0x980]
call fcn.1400089e0
xorps xmm0, xmm0
movups xmmword [r13], xmm0
mov qword [r13 + 0x10], rsi
mov qword [r13 + 0x18], rsi
movups xmm0, xmmword [rax]
movups xmmword [r13], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [r13 + 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], sil
mov dword [rsp + 0x40], 0x1f
mov rdx, qword [rbp + 0x998]
cmp rdx, 0xf
jbe 0x140058d39
inc rdx
mov rcx, qword [rbp + 0x980]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140058d34
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140058d34
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400aa63c
movdqa xmm0, xmmword [0x1400bf070]
movdqu xmmword [rbp + 0x990], xmm0
mov byte [rbp + 0x980], 0
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x140058d90
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140058d8b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140058d8b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400aa63c
movdqa xmm0, xmmword [0x1400bf070]
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x58], 0
mov rdx, qword [rbp - 0x48]
cmp rdx, 0xf
jbe 0x140058de1
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140058ddc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140058ddc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400aa63c
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x980], xmm0
mov qword [rbp + 0x990], rax
mov rdx, qword [r13 + 0x10]
cmp qword [r13 + 0x18], 0xf
jbe 0x140058e09
add rdx, qword [r13]
mov rbx, qword [r13]
jmp 0x140058e0f
add rdx, r13
mov rbx, r13
mov rdi, rdx
movdqu xmmword [rbp + 0x980], xmm0
mov rcx, rsi
mov qword [rbp + 0x990], rcx
cmp rbx, rdx
je 0x140058e72
mov rdx, qword [rbp + 0x988]
movsx eax, byte [rbx]
mov dword [rsp + 0x48], eax
cmp rdx, rcx
je 0x140058e4b
mov dword [rdx], eax
add rdx, 4
mov qword [rbp + 0x988], rdx
jmp 0x140058e6a
lea r8, [rsp + 0x48]
lea rcx, [rbp + 0x980]
call fcn.14005a410
mov rcx, qword [rbp + 0x990]
mov rdx, qword [rbp + 0x988]
inc rbx
cmp rbx, rdi
jne 0x140058e30
mov ebx, 0xffffffff
mov dword [rbp + 0x1dc4], ebx
mov edx, 0x1571
mov dword [rbp + 0xa44], edx
mov r15d, 1
mov ecx, r15d
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rbp + rcx*4 + 0xa44], edx
inc rcx
cmp rcx, 0x270
jb 0x140058e91
lea r8, [rbp + 0x980]
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x980]
call fcn.14005a220
xor edx, edx
xor r8d, r8d
nop
mov eax, dword [rbp + r8*4 - 0x40]
mov dword [rbp + r8*4 + 0xa44], eax
mov ecx, edx
or ecx, eax
mov edx, eax
shr edx, 0x1f
test r8, r8
cmovne edx, ecx
inc r8
cmp r8, 0x270
jb 0x140058ed0
mov eax, dword [rbp + 0xa44]
mov ecx, 0x80000000
test edx, edx
cmove eax, ecx
mov dword [rbp + 0xa44], eax
mov r8d, 0x270
mov dword [rbp + 0xa40], r8d
cmp qword [r13 + 0x18], 0xf
jbe 0x140058f34
mov rdx, qword [r13]
mov r9, rdx
mov qword [rsp + 0x48], rdx
add rdx, qword [r13 + 0x10]
jmp 0x140058f43
mov r9, r13
mov qword [rsp + 0x48], r13
mov rdx, qword [r13 + 0x10]
add rdx, r13
mov qword [rsp + 0x50], rdx
mov ecx, 0x40
mov rsi, 0xffffffffffffffff
lea rcx, [rcx - 1]
shr rsi, 1
cmp rsi, rbx
ja 0x140058f54
cmp r9, rdx
je 0x1400591dc
lea rax, [r9 + 1]
cmp rax, rdx
je 0x1400591dc
lea r14, [rcx - 1]
nop word [rax + rax]
lea r12, [r15 + 1]
nop dword [rax]
nop dword [rax + rax]
xor edi, edi
xor ebx, ebx
test r15, r15
je 0x14005917d
nop dword [rax]
mov rcx, r14
shl rdi, cl
add rdi, rdi
nop dword [rax]
cmp r8d, 0x270
jne 0x140059018
lea rax, [rbp + 0xa48]
mov r9d, r8d
nop dword [rax]
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
btr r8d, 0x1f
xor r8d, dword [rax - 4]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
and edx, 0x9908b0df
xor edx, dword [rax + 0x630]
shr r8d, 1
xor edx, r8d
mov dword [rax + 0x9bc], edx
lea rax, [rax + 4]
sub r9, 1
jne 0x140058fd0
mov r8d, dword [rbp + 0xa40]
jmp 0x14005911c
cmp r8d, 0x4e0
jb 0x14005911c
lea r9, [rbp + 0x1404]
mov r11d, 0xe3
mov r10d, dword [rbp + 0x1404]
nop dword [rax]
mov eax, r10d
mov r8, r9
add r9, 4
mov r10d, dword [r9]
mov edx, eax
xor edx, r10d
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
shr edx, 1
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub r11, 1
jne 0x140059040
lea r9, [rbp + 0x1790]
mov r11d, 0x18c
mov r10d, dword [rbp + 0x1790]
nop dword [rax]
nop word [rax + rax]
mov eax, r10d
mov r8, r9
add r9, 4
mov r10d, dword [r9]
mov edx, eax
xor edx, r10d
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
shr edx, 1
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub r11, 1
jne 0x1400590a0
mov edx, dword [rbp + 0x1dc0]
xor edx, dword [rbp + 0xa44]
btr edx, 0x1f
xor edx, dword [rbp + 0x1dc0]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
shr edx, 1
xor ecx, edx
xor ecx, dword [rbp + 0x1074]
mov dword [rbp + 0x1400], ecx
xor r8d, r8d
mov dword [rbp + 0xa40], r8d
mov eax, r8d
mov ecx, dword [rbp + rax*4 + 0xa44]
inc r8d
mov dword [rbp + 0xa40], r8d
mov eax, ecx
shr eax, 0xb
and eax, dword [rbp + 0x1dc4]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
cmp rax, rsi
ja 0x140058fb0
or rdi, rax
mov rcx, r14
shl rbx, cl
add rbx, rbx
or rbx, rsi
cmp rbx, r15
jb 0x140058fa0
xor edx, edx
mov rax, rbx
div r12
mov rcx, rax
xor edx, edx
mov rax, rdi
div r12
cmp rax, rcx
jb 0x1400591a6
xor edx, edx
mov rax, rbx
div r12
cmp rdx, r15
jne 0x140058f90
xor edx, edx
mov rax, rdi
div r12
mov r9, qword [rsp + 0x48]
cmp rdx, r15
je 0x1400591ca
movzx ecx, byte [r15 + r9]
movzx eax, byte [rdx + r9]
mov byte [r15 + r9], al
mov byte [rdx + r9], cl
inc r15
lea rax, [r15 + r9]
cmp rax, qword [rsp + 0x50]
jne 0x140058f80
cmp qword [r13 + 0x10], 0x32
jbe 0x1400592c0
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x78], xmm1
mov rdx, r13
cmp qword [r13 + 0x18], 0xf
jbe 0x140059205
mov rdx, qword [r13]
mov r8d, 0x32
lea rcx, [rsp + 0x78]
call fcn.140004580
lea rax, [rsp + 0x78]
cmp r13, rax
je 0x14005927d
mov rdx, qword [r13 + 0x18]
cmp rdx, 0xf
jbe 0x140059256
mov rcx, qword [r13]
inc rdx
cmp rdx, 0x1000
jb 0x140059251
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400592b2
mov rcx, r8
call fcn.1400aa63c
xor esi, esi
mov qword [r13 + 0x18], reloc.WS2_32.dll_ntohs
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [r13], xmm0
movups xmm1, xmmword [rbp - 0x78]
movups xmmword [r13 + 0x10], xmm1
lea edx, [rsi + 0xf]
mov byte [rsp + 0x78], sil
jmp 0x140059283
mov rdx, qword [rbp - 0x70]
xor esi, esi
cmp rdx, 0xf
jbe 0x1400592c2
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400592b9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400592b9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400aa63c
jmp 0x1400592c2
xor esi, esi
mov rcx, qword [rbp + 0x980]
test rcx, rcx
je 0x140059312
mov rax, qword [rbp + 0x990]
sub rax, rcx
sar rax, 2
lea rdx, [rax*4]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005930c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005930c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400aa63c
nop
mov rdx, qword [rbp + 0x9b8]
cmp rdx, 0xf
jbe 0x140059356
inc rdx
mov rcx, qword [rbp + 0x9a0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140059351
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140059351
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400aa63c
mov qword [rbp + 0x9b0], rsi
mov qword [rbp + 0x9b8], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x9a0], 0
mov rdx, qword [rbp + 0xa18]
cmp rdx, 0xf
jbe 0x1400593b4
inc rdx
mov rcx, qword [rbp + 0xa00]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400593ae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400593ae
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400aa63c
nop
mov rdx, qword [rbp + 0xa38]
cmp rdx, 0xf
jbe 0x1400593f9
inc rdx
mov rcx, qword [rbp + 0xa20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400593f3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400593f3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400aa63c
nop
mov rdx, qword [rbp + 0x9d8]
cmp rdx, 0xf
jbe 0x14005943d
inc rdx
mov rcx, qword [rbp + 0x9c0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140059438
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140059438
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400aa63c
mov qword [rbp + 0x9d0], rsi
mov qword [rbp + 0x9d8], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x9c0], 0
mov rdx, qword [rbp + 0x9f8]
cmp rdx, 0xf
jbe 0x14005949a
inc rdx
mov rcx, qword [rbp + 0x9e0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140059495
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140059495
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400aa63c
mov rax, r13
mov rcx, qword [rbp + 0x1dd0]
xor rcx, rsp
call fcn.1400aa5e0
lea r11, [rsp + 0x1ee0]
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
call fcn.140001bf0
int3