Function at 0x180001de0
Capabilities:
Set file attributes
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xe0
xor r14d, r14d
mov rbx, rcx
cmp qword [0x180033c68], r14
mov qword [rbp + 0xf], r14
mov qword [rbp + 0x1f], r14
mov qword [rbp + 0x17], r14
mov dword [rbp + 7], r14d
jne 0x180001e45
mov ecx, 0x1994
call fcn.1800251fc
test rax, rax
je 0x180001e3e
mov dword [rax + 0x1990], r14d
mov qword [0x180033c68], rax
jmp 0x180001e45
mov qword [0x180033c68], r14
lea rdx, [0x180036bcc]
lea rcx, [rbp + 7]
call fcn.18001c720
lea rcx, [rbp - 0x19]
mov qword [rbp - 0x11], r14
mov qword [rbp - 1], r14
mov qword [rbp - 9], r14
mov dword [rbp - 0x19], r14d
call fcn.18001bfb0
mov rcx, qword [rbp + 0x1f]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r12d, eax
add r12d, r12d
lea ecx, [r12 + 2]
movsxd rcx, ecx
call fcn.1800251fc
mov esi, r14d
mov dword [rbp - 0x39], r14d
mov rdi, rax
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x29], rax
test rax, rax
je 0x180001ec1
mov rdx, qword [rbp + 0x1f]
movsxd r8, r12d
mov rcx, rax
mov esi, r12d
mov dword [rbp - 0x39], r12d
mov word [r8 + rax], r14w
call fcn.18002525c
mov eax, esi
cdq
sub eax, edx
sar eax, 1
movsxd rcx, eax
cmp word [rdi + rcx*2 - 2], 0x5c
jne 0x180001edf
cmp word [rbx], 0x5c
jne 0x180001efb
lea rcx, [rbx + 2]
jmp 0x180001efe
cmp word [rbx], 0x5c
je 0x180001efb
lea rdx, [0x18002cd48]
lea rcx, [rbp - 0x39]
mov r8d, 2
call fcn.180005da0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rbp - 0x39]
mov rdx, rbx
lea r8d, [rax + rax]
call fcn.180005da0
mov rcx, qword [rbp - 1]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r12d, eax
add r12d, r12d
lea ecx, [r12 + 2]
movsxd rcx, ecx
call fcn.1800251fc
mov esi, r14d
mov dword [rbp - 0x59], r14d
mov rdi, rax
mov qword [rbp - 0x51], rax
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x49], rax
test rax, rax
je 0x180001f67
mov rdx, qword [rbp - 1]
movsxd r8, r12d
mov rcx, rax
mov esi, r12d
mov dword [rbp - 0x59], r12d
mov word [r8 + rax], r14w
call fcn.18002525c
mov eax, esi
cdq
sub eax, edx
sar eax, 1
movsxd rcx, eax
cmp word [rdi + rcx*2 - 2], 0x5c
jne 0x180001f85
cmp word [rbx], 0x5c
jne 0x180001fa1
lea rcx, [rbx + 2]
jmp 0x180001fa4
cmp word [rbx], 0x5c
je 0x180001fa1
lea rdx, [0x18002cd48]
lea rcx, [rbp - 0x59]
mov r8d, 2
call fcn.180005da0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rbp - 0x59]
mov rdx, rbx
lea r8d, [rax + rax]
call fcn.180005da0
mov rdx, qword [rbp - 0x41]
lea rcx, [rbp + 0x27]
mov qword [rbp + 0x2f], r14
mov qword [rbp + 0x3f], r14
mov qword [rbp + 0x37], r14
mov dword [rbp + 0x27], r14d
call fcn.180005bd0
mov rsi, qword [rbp - 0x21]
mov rcx, rsi
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor r9d, r9d
mov qword [rsp + 0x30], r14
lea r8d, [r9 + 1]
mov edx, 0x40000000
mov rcx, rsi
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, qword [rbp + 0x2f]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x180002025
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180002051
mov r8d, dword [rbp + 0x27]
lea r9, [rbp + 0x6f]
mov rdx, rbx
mov rcx, rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180002048
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.18001dfb0
test rbx, rbx
je 0x180002066
mov rcx, rbx
call sub.KERNEL32.dll_LocalFree
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x180002074
call sub.KERNEL32.dll_LocalFree
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x180002082
call sub.KERNEL32.dll_LocalFree
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x180002090
call sub.KERNEL32.dll_LocalFree
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x18000209e
call sub.KERNEL32.dll_LocalFree
lea r11, [rsp + 0xe0]
xor eax, eax
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rbp
ret