Function at 0x1400407d0
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
mov eax, 0x1530
call fcn.1400c2ac0
sub rsp, rax
lea rbp, [rsp + 0x40]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x1401d9080]
xor rax, rsp
mov qword [rbp + 0x14e0], rax
mov rbx, rcx
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0xc0], rcx
xor r12d, r12d
mov dword [rbp + 8], r12d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r12
mov edi, reloc.WS2_32.dll_ntohs
mov qword [rcx + 0x18], rdi
mov byte [rcx], r12b
mov r15d, 1
mov dword [rbp + 8], r15d
movabs rax, 0xfa14fa2db5f62c85
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x60], rax
movabs rax, 0x9ec61e8fad539ac2
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x68], rax
movabs rax, 0x12cc4908ac9ebd90
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x70], rax
movabs rax, 0x55d5ebfd7a0c630b
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x78], rax
movabs rax, 0xa49d6124d26f7fce
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x80], rax
movabs rax, 0xf9e3db113c840d5b
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x88], rax
movabs rax, 0x23a67c5e9a808c56
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x90], rax
movabs rax, 0x82ec4683be6018fd
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x98], rax
movabs rax, 0x216e6937b20c8c9e
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0xa0], rax
movabs rcx, 0x38d2724d073b9a2
mov qword [rbp], rcx
mov rax, qword [rbp]
mov qword [rbp + 0xa8], rax
movabs rax, 0xcd22cf1986c41db5
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x1480], rax
movabs rax, 0xd8835accef12a3fa
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x1488], rax
movabs rax, 0x5c810543e6d7f5d7
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x1490], rax
movabs rax, 0x380bfae285d3344
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x1498], rax
movabs rax, 0xc0fe034588362799
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x14a0], rax
movabs rax, 0x9588b17854e36b3e
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x14a8], rax
movabs rax, 0x57d50e2feaefe23b
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x14b0], rax
movabs rax, 0xc2cd3cfac6176e88
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x14b8], rax
movabs rax, 0x216e4311ec29a8bd
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x14c0], rax
mov qword [rbp], rcx
mov rax, qword [rbp]
mov qword [rbp + 0x14c8], rax
vmovdqu ymm0, ymmword [rbp + 0x60]
vpxor ymm1, ymm0, ymmword [rbp + 0x1480]
vmovdqa ymmword [rbp + 0x60], ymm1
vmovdqu ymm0, ymmword [rbp + 0x80]
vpxor ymm1, ymm0, ymmword [rbp + 0x14a0]
vmovdqa ymmword [rbp + 0x80], ymm1
vmovdqa xmm0, xmmword [rbp + 0xa0]
vxorps xmm0, xmm0, xmmword [rbp + 0x14c0]
vmovdqa xmmword [rbp + 0xa0], xmm0
vxorps xmm0, xmm0, xmm0
vmovups xmmword [rbp + 0xc8], xmm0
vxorps xmm1, xmm1, xmm1
vmovdqu xmmword [rbp + 0xd8], xmm1
lea rax, [rbp + 0x60]
mov rsi, 0xffffffffffffffff
mov r8, rsi
vzeroupper
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140040a90
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0xc8]
call fcn.1400029c0
nop
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov eax, 0xffffffff
mov dword [rbp + 0x1474], eax
mov dword [rbp + 0xf4], edx
mov rcx, r15
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 + 0xf4], edx
inc rcx
cmp rcx, 0x270
jb 0x140040ad0
mov dword [rbp + 0xf0], 0x270
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov ecx, eax
mov eax, 0x30c30c31
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x15
sub ecx, eax
add ecx, 0xa
mov dword [rbp], ecx
lea rdx, [rbp + 0xc8]
mov r9, qword [rbp + 0xc8]
mov r10, qword [rbp + 0xe0]
cmp r10, 0xf
cmova rdx, r9
mov rcx, qword [rbp + 0xd8]
add rdx, rcx
mov qword [rbp + 0x38], rdx
lea r13, [rbp + 0xc8]
cmp r10, 0xf
cmova r13, r9
mov eax, 0xffffffff
mov r14d, 0x40
dec r14
shr rsi, 1
cmp rsi, rax
ja 0x140040b65
cmp r13, rdx
je 0x140040c4f
lea rax, [r13 + 1]
cmp rax, rdx
je 0x140040c4f
mov rcx, r15
sub rcx, r13
mov qword [rbp + 0x10], rcx
lea r12, [r15 + r13]
add r12, rcx
xor edi, edi
xor ebx, ebx
test r15, r15
je 0x140040bd8
lea rcx, [r14 - 1]
shl rdi, cl
add rdi, rdi
nop word [rax + rax]
lea rcx, [rbp + 0xf0]
call fcn.140048bc0
mov eax, eax
cmp rax, rsi
ja 0x140040bb0
or rdi, rax
lea rcx, [r14 - 1]
shl rbx, cl
add rbx, rbx
or rbx, rsi
cmp rbx, r15
jb 0x140040ba0
xor edx, edx
mov rax, rbx
div r12
mov rcx, rax
xor edx, edx
mov rax, rdi
div r12
cmp rax, rcx
jb 0x140040bfd
xor edx, edx
mov rax, rbx
div r12
cmp rdx, r15
jne 0x140040b97
xor edx, edx
mov rax, rdi
div r12
cmp rdx, r15
je 0x140040c1c
movzx ecx, byte [r15 + r13]
movzx eax, byte [rdx + r13]
mov byte [r15 + r13], al
mov byte [rdx + r13], cl
inc r15
lea rax, [r15 + r13]
cmp rax, qword [rbp + 0x38]
mov rcx, qword [rbp + 0x10]
jne 0x140040b90
mov r10, qword [rbp + 0xe0]
mov rcx, qword [rbp + 0xd8]
mov r9, qword [rbp + 0xc8]
mov rbx, qword [rbp + 0x40]
mov edi, reloc.WS2_32.dll_ntohs
xorps xmm0, xmm0
movups xmmword [rbp + 0x18], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x28], xmm1
movsxd r8, dword [rbp]
cmp rcx, r8
cmovb r8, rcx
lea rdx, [rbp + 0xc8]
cmp r10, 0xf
cmova rdx, r9
lea rcx, [rbp + 0x18]
call fcn.1400029c0
lea rax, [rbp + 0x18]
cmp rbx, rax
je 0x140040cd8
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140040cc0
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140040cbb
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140040d0b
mov rcx, r8
call fcn.1400c229c
mov byte [rbx], 0
movups xmm0, xmmword [rbp + 0x18]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp + 0x28]
movups xmmword [rbx + 0x10], xmm1
mov byte [rbp + 0x18], 0
jmp 0x140040cdc
mov rdi, qword [rbp + 0x30]
cmp rdi, 0xf
jbe 0x140040d18
lea rdx, [rdi + 1]
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040d12
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140040d12
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c229c
nop
mov rdx, qword [rbp + 0xe0]
cmp rdx, 0xf
jbe 0x140040d5c
inc rdx
mov rcx, qword [rbp + 0xc8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040d57
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140040d57
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c229c
mov rax, rbx
mov rcx, qword [rbp + 0x14e0]
xor rcx, rsp
call fcn.1400c1ee0
lea r11, [rsp + 0x1530]
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