Function at 0x1800027b0
Capabilities:
Get common file path
Map section object
Process ghostly hollowing
Set file attributes
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x3e0]
sub rsp, 0x4e0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
xor r12d, r12d
lea rdx, [rsp + 0x70]
lea rcx, str.wct654F.tmp
mov qword [rsp + 0x70], r12
call fcn.180003db8
lea r13, [r12 - 1]
mov rdi, rax
test rax, rax
jne 0x180002455
mov rdx, qword [rsp + 0x78]
mov esi, r12d
jmp 0x180002500
mov r14d, dword [rsp + 0x70]
mov eax, r14d
and al, 0xf
mov qword [rsp + 0x510], r15
neg al
mov eax, r14d
sbb r15d, r15d
and eax, 0xfffffff0
and r15d, 0x10
add r15d, eax
mov ecx, r15d
add ecx, 1
cmovb rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
lea r8d, [r15 + 1]
xor edx, edx
mov rcx, rax
mov rsi, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbp - 0x60], r12
movabs rax, 0x3932646972676148
mov qword [rbp - 0x68], rax
mov ebx, r12d
test r14d, r14d
je 0x1800024f5
mov eax, r12d
nop word [rax + rax]
cdqe
lea rcx, [rax + rsi]
mov qword [0x180009810], rcx
movups xmm0, xmmword [rax + rdi]
lea rax, [rbp - 0x68]
mov qword [0x180009818], rax
movups xmmword [rcx], xmm0
call section..text
call fcn.180001810
inc ebx
mov eax, ebx
shl eax, 4
cmp eax, r14d
jb 0x1800024c0
mov edx, r15d
mov r15, qword [rsp + 0x510]
xor r9d, r9d
mov byte [rsp + 0x20], r12b
lea r8, [rsp + 0x58]
mov rcx, rsi
call fcn.180002d90
mov rbx, rax
test rax, rax
je 0x180002535
xor edx, edx
mov rcx, rax
call fcn.18000314c
test al, al
jne 0x180002563
xor edx, edx
mov rcx, rbx
call fcn.180003448
mov eax, r13d
mov rcx, qword [rbp + 0x3d0]
xor rcx, rsp
call fcn.180004420
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
mov rcx, rsi
call fcn.180003938
xor edx, edx
lea rcx, [rbp - 0x50]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x50]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rbp + 0x1c0]
xor r8d, r8d
lea rdx, [0x180006b08]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, [rbp + 0x1c0]
call fcn.1800027c0
mov rcx, rax
lea rdx, [0x180002990]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov r14d, dword [rsp + 0x58]
lea rcx, [rbp + 0x1c0]
call fcn.180001c00
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x18000278d
xorps xmm0, xmm0
mov byte [rsp + 0x68], 1
mov r9d, 1
mov dword [rsp + 0x20], 0xd
lea r8, [rsp + 0x68]
mov rcx, rax
lea rdx, [rbp - 0x78]
movups xmmword [rbp - 0x78], xmm0
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
js 0x18000278d
xor eax, eax
mov qword [rsp + 0x40], r12
mov qword [rbp - 0x80], rax
xor r9d, r9d
lea rax, [rbp - 0x80]
xor r8d, r8d
mov qword [rsp + 0x38], rax
xor edx, edx
mov dword [rsp + 0x30], r14d
lea rax, [rbp - 0x78]
mov qword [rsp + 0x28], rbx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtWriteFile]
test eax, eax
jns 0x180002668
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x180002538
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x28], 0x1000000
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0xf001f
mov qword [rsp + 0x60], r12
call qword [sym.imp.ntdll.dll_NtCreateSection]
test eax, eax
jne 0x18000278d
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
mov rdi, qword [rsp + 0x60]
lea rax, [rdi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x18000278d
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x50], r12
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x48], 2
lea r8, [rsp + 0x50]
mov dword [rsp + 0x40], r12d
mov rdx, rax
mov dword [rsp + 0x38], 1
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov qword [rsp + 0x28], r12
mov rcx, rdi
mov qword [rsp + 0x20], r12
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
je 0x180002714
cmp eax, 0x40000003
jne 0x18000278d
mov r8, qword [rsp + 0x50]
xor r9d, r9d
mov rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.180003d1c
test al, al
je 0x18000278d
mov r8, qword [rsp + 0x58]
mov rdx, rbx
mov rcx, qword [rsp + 0x50]
call fcn.180002220
test al, al
je 0x18000278d
xor edx, edx
mov rcx, rbx
call fcn.180003448
mov r14, qword [rsp + 0x50]
mov rcx, rsi
call fcn.1800035ac
mov rcx, rsi
mov ebx, eax
call fcn.180003954
mov rcx, rsi
movzx edi, al
call fcn.180003db0
lea rax, [r14 + rbx]
test dil, dil
je 0x18000278b
xor r8d, r8d
mov rcx, r14
lea edx, [r8 + 1]
call rax
xor eax, eax
jmp 0x180002538
call rax
xor eax, eax
jmp 0x180002538
jmp 0x1800023f0