Function at 0x140001540
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.140003760
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 0x1400015eb
xorps xmm1, xmm1
movaps xmmword [rsp + 0x40], xmm1
mov rdx, qword [rbp - 0x50]
cmp rdx, qword [rbp - 0x48]
je 0x1400015c5
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
movups xmmword [rdx], xmm1
add qword [rbp - 0x50], 0x10
jmp 0x1400015d4
lea r8, [rsp + 0x40]
lea rcx, [rbp - 0x58]
call fcn.140002350
nop
cmp dword [rsp + 0x48], 0
jne 0x1400016c7
inc ebx
call qword [sym.imp.MSVCP140.dll__Thrd_hardware_concurrency]
cmp ebx, eax
jb 0x1400015a0
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 0x140001620
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 0x140001681
mov rbx, r12
mov rax, qword [rbp - 0x58]
cmp dword [rbx + rax + 8], 0
je 0x1400016ce
inc edi
inc r14
add rbx, 0x10
call qword [sym.imp.MSVCP140.dll__Thrd_hardware_concurrency]
cmp edi, eax
jb 0x140001663
mov edi, r12d
mov r14, r12
call qword [sym.imp.MSVCP140.dll__Thrd_hardware_concurrency]
test eax, eax
je 0x140001d7f
mov rbx, r12
nop dword [rax + rax]
mov rax, qword [rbp - 0x58]
cmp dword [rbx + rax + 8], 0
jne 0x140001a04
inc edi
inc r14
add rbx, 0x10
call qword [sym.imp.MSVCP140.dll__Thrd_hardware_concurrency]
cmp edi, eax
jb 0x1400016a0
jmp 0x140001d7f
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 0x140001720
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 0x1400016e0
add r9, 0xfffffffffffffffe
mov word [r9], r13w
jmp 0x140001750
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 0x140001720
lea r8, [rbp + 0x139a]
mov rdx, r9
lea rcx, [rsp + 0x60]
call fcn.140002200
nop
lea r8, [rsp + 0x60]
lea rcx, [rbp - 0x40]
call fcn.1400020c0
mov rbx, rax
lea rax, [rbp - 0x78]
cmp rax, rbx
je 0x1400017ef
mov rdx, qword [rbp - 0x60]
cmp rdx, 7
jbe 0x1400017bf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400017ba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001e33
call fcn.140002984
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 0x14000182f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
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 0x140001e33
call fcn.140002984
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], r12w
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x140001882
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000187d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001e3a
call fcn.140002984
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 0x14000198f
mov edi, r12d
mov rbx, r12
lea rcx, [rbp - 0x20]
call fcn.140002750
mov ecx, eax
shl rcx, 8
shr rcx, 0x20
mov byte [rbp + rbx + 0x13b0], cl
inc rbx
cmp rbx, 0x200
jl 0x1400018c7
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 0x1400018c4
mov rbx, r12
nop
lea rcx, [rbp - 0x20]
call fcn.140002750
mov ecx, eax
shl rcx, 8
shr rcx, 0x20
mov byte [rbp + rbx + 0x1370], cl
inc rbx
cmp rbx, 0x40
jl 0x140001930
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.140002940
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, [0x1400028e0]
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 0x140001e41
shl r14, 4
add r14, qword [rbp - 0x58]
cmp dword [r14 + 8], 0
jne 0x1400019fd
xorps xmm0, xmm0
movaps xmm1, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
movups xmmword [r14], xmm1
cmp dword [rsp + 0x58], 0
je 0x140001d7f
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 0x140001e90
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbx + 8], eax
je 0x140001e84
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 0x140001e78
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
lea r9, [rbp + 0x139a]
mov r8d, r15d
test r15d, r15d
jns 0x140001aa0
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 0x140001a60
add r9, 0xfffffffffffffffe
mov word [r9], r13w
jmp 0x140001ad0
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 0x140001aa0
lea r8, [rbp + 0x139a]
mov rdx, r9
lea rcx, [rsp + 0x60]
call fcn.140002200
nop
lea r8, [rsp + 0x60]
lea rcx, [rbp - 0x40]
call fcn.1400020c0
mov rbx, rax
lea rax, [rbp - 0x78]
cmp rax, rbx
je 0x140001b6f
mov rdx, qword [rbp - 0x60]
cmp rdx, 7
jbe 0x140001b3f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001b3a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001e52
call fcn.140002984
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 0x140001baf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
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 0x140001e52
call fcn.140002984
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], r12w
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x140001c02
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001bfd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001e59
call fcn.140002984
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 0x140001d0f
mov edi, r12d
mov rbx, r12
lea rcx, [rbp - 0x20]
call fcn.140002750
mov ecx, eax
shl rcx, 8
shr rcx, 0x20
mov byte [rbp + rbx + 0x13b0], cl
inc rbx
cmp rbx, 0x200
jl 0x140001c47
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 0x140001c44
mov rbx, r12
nop
lea rcx, [rbp - 0x20]
call fcn.140002750
mov ecx, eax
shl rcx, 8
shr rcx, 0x20
mov byte [rbp + rbx + 0x1370], cl
inc rbx
cmp rbx, 0x40
jl 0x140001cb0
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.140002940
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, [0x1400028e0]
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 0x140001e67
mov rax, qword [rbp - 0x58]
cmp dword [rax + r14*8 + 8], 0
jne 0x140001e60
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 0x140001e60
inc r15d
cmp r15d, 0x1a
jl 0x140001650
mov rbx, qword [rbp - 0x58]
mov rdi, qword [rbp - 0x50]
cmp rbx, rdi
je 0x140001ded
nop dword [rax]
cmp dword [rbx + 8], 0
je 0x140001e90
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbx + 8], eax
je 0x140001e84
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 0x140001e78
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
add rbx, 0x10
cmp rbx, rdi
jne 0x140001da0
mov rdi, qword [rbp - 0x50]
mov rbx, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x60]
cmp rdx, 7
jbe 0x140001ea9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001e9c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001e9c
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.140002984
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 0x140001f18
mov rax, rbx
cmp rbx, rdi
je 0x140001ed6
cmp dword [rax + 8], 0
jne 0x140001f09
add rax, 0x10
cmp rax, rdi
jne 0x140001ec7
mov rdx, qword [rbp - 0x48]
sub rdx, rbx
and rdx, 0xfffffffffffffff0
mov rax, rbx
cmp rdx, 0x1000
jb 0x140001f10
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001f10
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.140002984
mov rcx, qword [rbp + 0x15b0]
xor rcx, rsp
call fcn.140002920
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