Function at 0x140007900
Capabilities:
Create directory
Get common file path
Get startup folder
Write file on windows
Write file to startup folder

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x14006a040]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rdi, rdx
mov rsi, rcx
xor r14d, r14d
mov dword [rbp - 0x80], r14d
lea r8, [rsp + 0x60]
lea edx, [r14 + 0x20]
call qword [sym.imp.GDI32.dll_GetObjectW]
mov eax, 0x4d42
mov word [rbp - 0x38], ax
movzx r10d, word [rsp + 0x72]
mov eax, r10d
movzx r9d, word [rsp + 0x70]
imul eax, r9d
mov r8d, dword [rsp + 0x68]
imul eax, r8d
mov ecx, dword [rsp + 0x64]
imul eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, 0x36
mov dword [rbp - 0x36], eax
mov dword [rbp - 0x32], r14d
mov dword [rbp - 0x2e], gethostname
mov dword [rbp - 0x28], 0x28
mov dword [rbp - 0x24], ecx
mov dword [rbp - 0x20], r8d
mov word [rbp - 0x1c], r9w
mov word [rbp - 0x1a], r10w
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], r14
lea rax, [rbp]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r14 + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140007dc0
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
lea rax, [rbp]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], r14w
jne 0x140007a00
lea rdx, [rbp]
lea rcx, [rsp + 0x40]
call fcn.14001a7f0
nop
mov r8d, 6
lea rdx, str.Temp_
lea rcx, [rsp + 0x40]
call fcn.140041c10
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x60], r14
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x68], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x140007aa3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007a9e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007a9e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004de50
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r14w
lea rcx, [rbp - 0x78]
cmp qword [rbp - 0x60], 7
cmova rcx, qword [rbp - 0x78]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x140007ad0
movabs rax, 0x7ffffffffffffffe
mov rcx, qword [rbp - 0x68]
sub rax, rcx
cmp rax, rbx
jb 0x140007e0c
lea r9, [rbp - 0x78]
cmp qword [rbp - 0x60], 7
cmova r9, qword [rbp - 0x78]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x58]
call fcn.140049820
nop
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 7
cmova rcx, qword [rbp - 0x58]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140007c1a
lea rdx, str.Failed_to_create_file_in_Temp_directory.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140044180
lea rdx, [0x140044350]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 7
jbe 0x140007bc0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007bbb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007d5c
call fcn.14004de50
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], r14w
mov rdx, qword [rbp - 0x60]
cmp rdx, 7
jbe 0x140007de3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007c10
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007db0
call fcn.14004de50
jmp 0x140007de3
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x80]
mov r8d, 0xe
lea rdx, [rbp - 0x38]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x80]
mov r8d, 0x28
lea rdx, [rbp - 0x28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rcx, rax
mov dword [rsp + 0x30], r14d
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov r9d, dword [rsp + 0x68]
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.GDI32.dll_GetDIBits]
movzx eax, word [rsp + 0x72]
movzx ecx, word [rsp + 0x70]
imul eax, ecx
imul eax, dword [rsp + 0x68]
imul eax, dword [rsp + 0x64]
cdq
and edx, 7
add eax, edx
sar eax, 3
movsxd rcx, eax
call fcn.14004e1ac
mov rbx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rcx, rax
mov dword [rsp + 0x30], r14d
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov r9d, dword [rsp + 0x68]
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.GDI32.dll_GetDIBits]
movzx eax, word [rsp + 0x72]
movzx ecx, word [rsp + 0x70]
imul eax, ecx
imul eax, dword [rsp + 0x68]
imul eax, dword [rsp + 0x64]
cdq
and edx, 7
lea r8d, [rdx + rax]
sar r8d, 3
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x80]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call fcn.14004de50
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 7
jbe 0x140007d68
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007d63
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007d63
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004de50
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], r14w
mov rdx, qword [rbp - 0x60]
cmp rdx, 7
jbe 0x140007dbc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007db7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007db7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004de50
mov al, 1
jmp 0x140007de5
lea rdx, [0x140055940]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140044180
lea rdx, [0x140044350]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor al, al
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.14004de30
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140002030
nop
int3