Function at 0x140003b80
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x15a0
call fcn.14000cdb0
sub rsp, rax
mov rax, qword [0x14003b080]
xor rax, rsp
mov qword [rsp + 0x1590], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
cmp qword [rcx + 0x18], 7
jbe 0x140003bc4
mov rcx, qword [rcx]
mov r9d, 0xffffffff
mov r8d, 9
lea rdx, [rsp + 0xc8]
call fcn.14000b020
test eax, eax
jne 0x140003f33
mov rsi, qword [rsp + 0xd0]
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rsp + 0xf0]
call fcn.140028100
mov rdx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140003c0f
mov rdx, qword [rbx]
lea rcx, [rsp + 0xf0]
call fcn.1400095b0
mov rax, qword [rsp + 0xf0]
movsxd rcx, dword [rax + 4]
lea r13, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0xf0], r13
mov rax, qword [rsp + 0xf0]
movsxd rdx, dword [rax + 4]
lea r8d, [rdx - 0xa8]
mov dword [rsp + rdx + 0xec], r8d
cmp qword [rsp + 0x178], 0
je 0x140003f45
call fcn.14000bfb4
mov dword [rsp + 0x1584], 0xffffffff
mov dword [rsp + 0x204], eax
mov edx, 1
nop dword [rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x204], eax
inc rdx
cmp rdx, 0x270
jb 0x140003c80
mov dword [rsp + 0x200], 0x270
xorps xmm0, xmm0
movups xmmword [rsp + 0xa8], xmm0
xor edi, edi
mov qword [rsp + 0xa8], rdi
xor r12d, r12d
mov qword [rsp + 0xb0], r12
xor r15d, r15d
mov qword [rsp + 0xb8], r15
test rsi, rsi
je 0x140003d59
movabs rax, 0x7fffffffffffffff
cmp rsi, rax
ja 0x140003f86
cmp rsi, 0x1000
jb 0x140003d22
lea rcx, [rsi + 0x27]
cmp rcx, rsi
jbe 0x140003f8b
call fcn.14000c6b8
test rax, rax
je 0x140003feb
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140003d2d
mov rcx, rsi
call fcn.14000c6b8
mov rdi, rax
mov qword [rsp + 0xa8], rdi
lea r12, [rdi + rsi]
mov r15, r12
mov qword [rsp + 0xb8], r12
mov r8, rsi
xor edx, edx
mov rcx, rdi
call fcn.140028100
mov qword [rsp + 0xb0], r12
xor r14d, r14d
nop dword [rax]
cmp r14d, 5
jge 0x140003df1
test rsi, rsi
je 0x140003d93
xor ebx, ebx
lea rcx, [rsp + 0x200]
call fcn.14000aa50
mov ecx, eax
shl rcx, 8
shr rcx, 0x20
mov byte [rbx + rdi], cl
inc rbx
cmp rbx, rsi
jb 0x140003d71
xorps xmm0, xmm0
xor eax, eax
mov qword [rsp + 0xd8], rax
movaps xmmword [rsp + 0x40], xmm0
movsd xmm0, qword [rsp + 0xd8]
movsd qword [rsp + 0x50], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xf0]
call fcn.140006ee0
mov r8, r12
sub r8, rdi
mov rdx, rdi
lea rcx, [rsp + 0xf0]
call fcn.1400071f0
lea rcx, [rsp + 0xf0]
call fcn.140007090
inc r14d
jmp 0x140003d60
lea rcx, [rsp + 0xf8]
call fcn.140007ba0
test rax, rax
jne 0x140003e45
mov rax, qword [rsp + 0xf0]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rsp + rcx + 0x138], 0
cmovne eax, edx
or eax, dword [rsp + rcx + 0x100]
and eax, 0x17
mov dword [rsp + rcx + 0x100], eax
mov edx, dword [rsp + rcx + 0x104]
and edx, eax
jne 0x140003f91
test rdi, rdi
je 0x140003e7e
sub r15, rdi
mov rax, rdi
cmp r15, 0x1000
jb 0x140003e72
add r15, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003feb
mov rdx, r15
mov rcx, rdi
call fcn.14000c6b0
nop
mov rax, qword [rsp + 0xf0]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0xf0], r13
mov rax, qword [rsp + 0xf0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0xec], edx
lea rcx, [rsp + 0xf8]
call fcn.140006c20
mov rax, qword [rsp + 0xf0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0xf0], rax
mov rax, qword [rsp + 0xf0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0xec], edx
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0x198], rax
lea rcx, [rsp + 0x198]
call fcn.14000bdb8
nop
mov rcx, qword [rsp + 0x1590]
xor rcx, rsp
call fcn.14000c690
lea r11, [rsp + 0x15a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov r8, rbx
mov edx, eax
lea rcx, str.file_size
call fcn.1400031e0
nop
lea rdx, [rsp + 0xc8]
mov rcx, rbx
call fcn.1400026c0
nop
mov r8, rax
lea rcx, [rsp + 0xa8]
call fcn.1400081c0
nop
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.1400013f0
lea rdx, [0x1400395d0]
lea rcx, [rsp + 0x68]
call fcn.14000e63c
nop
call fcn.140009be0
call fcn.140001330
nop
test dl, 4
je 0x140003f9f
lea rbx, str.ios_base::badbit_set
jmp 0x140003fb4
test dl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.140001530
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x80]
call fcn.140002060
lea rdx, [0x1400396d0]
lea rcx, [rsp + 0x80]
call fcn.14000e63c
nop
call fcn.140014008
int3