Function at 0x140078490
Capabilities:
Create thread
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
vmovaps xmmword [rsp + 0x50], xmm6
mov r13d, r9d
mov r12d, r8d
mov r14, rcx
xor ebx, ebx
mov qword [rcx + 8], rbx
mov qword [rcx + 0x10], rbx
mov qword [rcx + 0x18], rbx
mov qword [rcx + 0x20], rbx
mov qword [rcx + 0x28], rbx
mov qword [rcx + 0x30], rdx
mov qword [rcx + 0x38], rbx
mov qword [rcx + 0x40], rbx
mov r9, rdx
mov edx, 1
mov r8d, 4
lea rcx, [0x140daf820]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r12d, 3
sete byte [rsp + 0xb0]
mov r9, qword [r14 + 0x30]
mov edx, 1
mov r8d, edx
lea rcx, [rsp + 0xb0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
movsxd r15, dword [rsp + 0xc0]
mov byte [rsp + 0xb0], r15b
mov r9, qword [r14 + 0x30]
mov edx, 1
mov r8d, edx
lea rcx, [rsp + 0xb0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, r15
mov qword [rsp + 0xa8], rcx
mov rax, qword [r14 + 0x28]
sub rax, qword [r14 + 0x18]
sar rax, 3
cmp r15, rax
jbe 0x140078585
movabs rax, 0x1fffffffffffffff
cmp rcx, rax
ja 0x140078737
lea rdx, [rsp + 0xa8]
lea rcx, [r14 + 0x18]
call fcn.140081e70
mov ebp, ebx
test r15d, r15d
jle 0x140078703
vpxor xmm6, xmm6, xmm6
mov ecx, 0xe8
call fcn.1403f4d70
mov rsi, rax
mov qword [rsp + 0x30], rax
mov r8d, r13d
mov edx, r12d
mov rcx, rax
call fcn.1400780a0
mov word [rsi + 0x3c], 0
mov byte [rsi + 0x3e], 0
vpxor xmm0, xmm0, xmm0
vmovups ymmword [rsi + 0x58], ymm0
vmovups xmmword [rsi + 0x78], xmm0
vmovups xmmword [rsi + 0x48], xmm6
mov dword [rsi + 0x88], 0xffffffff
mov dword [rsi + 0x40], 2
mov dword [rsi + 0x8c], ebx
lea rcx, [rsi + 0x90]
vzeroupper
call qword [sym.imp.MSVCP140.dll__Cnd_init_in_situ]
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsi + 0xd8], xmm0
mov qword [rsp + 0xa8], rsi
mov ecx, 8
call fcn.1403f4d70
mov qword [rax], rsi
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebx
mov r9, rax
lea r8, [0x1400823f0]
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 0x1400786f3
cmp dword [rsi + 0xe0], 0
jne 0x1400786ec
vpxor xmm0, xmm0, xmm0
vmovups xmm1, xmmword [rsp + 0x40]
vmovdqa xmmword [rsp + 0x40], xmm0
vmovups xmmword [rsi + 0xd8], xmm1
cmp dword [rsp + 0x48], 0
jne 0x1400786ec
mov rdx, qword [r14 + 0x20]
cmp rdx, qword [r14 + 0x28]
je 0x14007868e
mov qword [rdx], rsi
add qword [r14 + 0x20], 8
jmp 0x1400786a7
lea r8, [rsp + 0xa8]
lea rcx, [r14 + 0x18]
call fcn.1400821a0
mov rbx, qword [rsp + 0xa8]
test rbx, rbx
je 0x1400786d7
cmp dword [rbx + 0xe0], 0
jne 0x1400786e5
lea rcx, [rbx + 0x90]
call qword [sym.imp.MSVCP140.dll__Cnd_destroy_in_situ]
mov rcx, rbx
call fcn.140078260
mov edx, 0xe8
mov rcx, rbx
call fcn.1403f4db4
inc ebp
cmp ebp, r15d
jge 0x140078703
xor ebx, ebx
jmp 0x140078594
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [rsp + 0x48], ebx
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
movsxd rcx, dword [r14 + 0x10]
mov rax, qword [r14 + 0x18]
mov rcx, qword [rax + rcx*8]
mov rax, qword [rcx + 0x18]
mov qword [r14], rax
mov rax, r14
mov rbx, qword [rsp + 0xb8]
vmovaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400033c0
nop
int3