Function at 0x1400015b0
Capabilities:
Create thread
Encode data using xor
Generate random numbers using a mersenne twister
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x15c0]
mov eax, 0x16c0
call fcn.140003b50
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x15b0], rax
xor r12d, r12d
call qword [sym.imp.MSVCP140.dll__Thrd_hardware_concurrency]
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x58], xmm1
mov qword [rbp - 0x48], r12
mov ebx, r12d
call qword [sym.imp.MSVCP140.dll__Thrd_hardware_concurrency]
test eax, eax
je 0x14000165b
xorps xmm1, xmm1
movaps xmmword [rsp + 0x40], xmm1
mov rdx, qword [rbp - 0x50]
cmp rdx, qword [rbp - 0x48]
je 0x140001635
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
movups xmmword [rdx], xmm1
add qword [rbp - 0x50], 0x10
jmp 0x140001644
lea r8, [rsp + 0x40]
lea rcx, [rbp - 0x58]
call fcn.140002760
nop
cmp dword [rsp + 0x48], 0
jne 0x140001737
inc ebx
call qword [sym.imp.MSVCP140.dll__Thrd_hardware_concurrency]
cmp ebx, eax
jb 0x140001610
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], 7
mov word [rbp - 0x78], r12w
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rbp + 0x1364], 0xffffffff
mov dword [rbp - 0x1c], eax
mov edx, 1
nop dword [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rbp + rdx*4 - 0x1c], eax
inc rdx
cmp rdx, 0x270
jb 0x140001690
mov dword [rbp - 0x20], 0x270
mov r15d, r12d
mov r13d, 0x2d
nop
mov edi, r12d
mov r14, r12
call qword [sym.imp.MSVCP140.dll__Thrd_hardware_concurrency]
test eax, eax
je 0x1400016f1
mov rbx, r12
mov rax, qword [rbp - 0x58]
cmp dword [rbx + rax + 8], 0
je 0x14000173e
inc edi
inc r14
add rbx, 0x10
call qword [sym.imp.MSVCP140.dll__Thrd_hardware_concurrency]
cmp edi, eax
jb 0x1400016d3
mov edi, r12d
mov r14, r12
call qword [sym.imp.MSVCP140.dll__Thrd_hardware_concurrency]
test eax, eax
je 0x140001def
mov rbx, r12
nop dword [rax + rax]
mov rax, qword [rbp - 0x58]
cmp dword [rbx + rax + 8], 0
jne 0x140001a74
inc edi
inc r14
add rbx, 0x10
call qword [sym.imp.MSVCP140.dll__Thrd_hardware_concurrency]
cmp edi, eax
jb 0x140001710
jmp 0x140001def
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
lea r9, [rbp + 0x139a]
mov r8d, r15d
test r15d, r15d
jns 0x140001790
neg r8d
sub r9, 2
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dx
shl ax, 2
lea ecx, [rax + rdx]
add cx, cx
sub r8w, cx
add r8w, 0x30
mov word [r9], r8w
mov r8d, edx
test edx, edx
jne 0x140001750
add r9, 0xfffffffffffffffe
mov word [r9], r13w
jmp 0x1400017c0
sub r9, 2
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dx
shl ax, 2
lea ecx, [rax + rdx]
add cx, cx
sub r8w, cx
add r8w, 0x30
mov word [r9], r8w
mov r8d, edx
test edx, edx
jne 0x140001790
lea r8, [rbp + 0x139a]
mov rdx, r9
lea rcx, [rsp + 0x60]
call fcn.140002610
nop
lea r8, [rsp + 0x60]
lea rcx, [rbp - 0x40]
call fcn.1400023d0
mov rbx, rax
lea rax, [rbp - 0x78]
cmp rax, rbx
je 0x14000185f
mov rdx, qword [rbp - 0x60]
cmp rdx, 7
jbe 0x14000182f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000182a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001ea3
call fcn.140002d94
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], 7
mov word [rbp - 0x78], r12w
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x78], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp - 0x68], xmm1
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 7
mov word [rbx], r12w
mov rdx, qword [rbp - 0x28]
cmp rdx, 7
jbe 0x14000189f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000189a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001ea3
call fcn.140002d94
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], r12w
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x1400018f2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400018ed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001eaa
call fcn.140002d94
lea rcx, [rbp - 0x78]
cmp qword [rbp - 0x60], 7
cmova rcx, qword [rbp - 0x78]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x10000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400019ff
mov edi, r12d
mov rbx, r12
lea rcx, [rbp - 0x20]
call fcn.140002b60
mov ecx, eax
shl rcx, 8
shr rcx, 0x20
mov byte [rbp + rbx + 0x13b0], cl
inc rbx
cmp rbx, 0x200
jl 0x140001937
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x80]
mov r8d, 0x200
lea rdx, [rbp + 0x13b0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
add edi, 0x200
cmp edi, 0x1e00
jl 0x140001934
mov rbx, r12
nop
lea rcx, [rbp - 0x20]
call fcn.140002b60
mov ecx, eax
shl rcx, 8
shr rcx, 0x20
mov byte [rbp + rbx + 0x1370], cl
inc rbx
cmp rbx, 0x40
jl 0x1400019a0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1be
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x80]
mov r8d, 0x40
lea rdx, [rbp + 0x1370]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 4
call fcn.140002d50
mov dword [rax], r15d
mov qword [rbp - 0x40], rax
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r12d
mov r9, rax
lea r8, [0x140002cf0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140001eb1
shl r14, 4
add r14, qword [rbp - 0x58]
cmp dword [r14 + 8], 0
jne 0x140001a6d
xorps xmm0, xmm0
movaps xmm1, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
movups xmmword [r14], xmm1
cmp dword [rsp + 0x58], 0
je 0x140001def
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
add r14, r14
lea rbx, [rax + r14*8]
cmp dword [rbx + 8], 0
je 0x140001f00
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbx + 8], eax
je 0x140001ef4
movups xmm0, xmmword [rbx]
movaps xmmword [rbp - 0x40], xmm0
xor edx, edx
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
jne 0x140001ee8
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
lea r9, [rbp + 0x139a]
mov r8d, r15d
test r15d, r15d
jns 0x140001b10
neg r8d
nop word [rax + rax]
sub r9, 2
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dx
shl ax, 2
lea ecx, [rax + rdx]
add cx, cx
sub r8w, cx
add r8w, 0x30
mov word [r9], r8w
mov r8d, edx
test edx, edx
jne 0x140001ad0
add r9, 0xfffffffffffffffe
mov word [r9], r13w
jmp 0x140001b40
sub r9, 2
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dx
shl ax, 2
lea ecx, [rax + rdx]
add cx, cx
sub r8w, cx
add r8w, 0x30
mov word [r9], r8w
mov r8d, edx
test edx, edx
jne 0x140001b10
lea r8, [rbp + 0x139a]
mov rdx, r9
lea rcx, [rsp + 0x60]
call fcn.140002610
nop
lea r8, [rsp + 0x60]
lea rcx, [rbp - 0x40]
call fcn.1400023d0
mov rbx, rax
lea rax, [rbp - 0x78]
cmp rax, rbx
je 0x140001bdf
mov rdx, qword [rbp - 0x60]
cmp rdx, 7
jbe 0x140001baf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001baa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001ec2
call fcn.140002d94
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], 7
mov word [rbp - 0x78], r12w
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x78], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp - 0x68], xmm1
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 7
mov word [rbx], r12w
mov rdx, qword [rbp - 0x28]
cmp rdx, 7
jbe 0x140001c1f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001c1a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001ec2
call fcn.140002d94
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], r12w
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x140001c72
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001c6d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001ec9
call fcn.140002d94
lea rcx, [rbp - 0x78]
cmp qword [rbp - 0x60], 7
cmova rcx, qword [rbp - 0x78]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x10000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140001d7f
mov edi, r12d
mov rbx, r12
lea rcx, [rbp - 0x20]
call fcn.140002b60
mov ecx, eax
shl rcx, 8
shr rcx, 0x20
mov byte [rbp + rbx + 0x13b0], cl
inc rbx
cmp rbx, 0x200
jl 0x140001cb7
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x80]
mov r8d, 0x200
lea rdx, [rbp + 0x13b0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
add edi, 0x200
cmp edi, 0x1e00
jl 0x140001cb4
mov rbx, r12
nop
lea rcx, [rbp - 0x20]
call fcn.140002b60
mov ecx, eax
shl rcx, 8
shr rcx, 0x20
mov byte [rbp + rbx + 0x1370], cl
inc rbx
cmp rbx, 0x40
jl 0x140001d20
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1be
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x80]
mov r8d, 0x40
lea rdx, [rbp + 0x1370]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 4
call fcn.140002d50
mov dword [rax], r15d
mov qword [rbp - 0x40], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r12d
mov r9, rax
lea r8, [0x140002cf0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140001ed7
mov rax, qword [rbp - 0x58]
cmp dword [rax + r14*8 + 8], 0
jne 0x140001ed0
xorps xmm0, xmm0
movaps xmm1, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
movups xmmword [rax + r14*8], xmm1
cmp dword [rsp + 0x48], 0
jne 0x140001ed0
inc r15d
cmp r15d, 0x1a
jl 0x1400016c0
mov rbx, qword [rbp - 0x58]
mov rdi, qword [rbp - 0x50]
cmp rbx, rdi
je 0x140001e5d
nop dword [rax]
cmp dword [rbx + 8], 0
je 0x140001f00
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbx + 8], eax
je 0x140001ef4
movups xmm0, xmmword [rbx]
movaps xmmword [rsp + 0x40], xmm0
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
jne 0x140001ee8
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
add rbx, 0x10
cmp rbx, rdi
jne 0x140001e10
mov rdi, qword [rbp - 0x50]
mov rbx, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x60]
cmp rdx, 7
jbe 0x140001f19
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001f0c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001f0c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov dword [rsp + 0x58], r12d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [rsp + 0x48], r12d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov ecx, 2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
call fcn.140002d94
mov rdi, qword [rbp - 0x50]
mov rbx, qword [rbp - 0x58]
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], 7
mov word [rbp - 0x78], r12w
test rbx, rbx
je 0x140001f88
mov rax, rbx
cmp rbx, rdi
je 0x140001f46
cmp dword [rax + 8], 0
jne 0x140001f79
add rax, 0x10
cmp rax, rdi
jne 0x140001f37
mov rdx, qword [rbp - 0x48]
sub rdx, rbx
and rdx, 0xfffffffffffffff0
mov rax, rbx
cmp rdx, 0x1000
jb 0x140001f80
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001f80
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov rcx, rbx
call fcn.140002d94
mov rcx, qword [rbp + 0x15b0]
xor rcx, rsp
call fcn.140002d30
lea r11, [rsp + 0x16c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret