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

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x4e0
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x14004b138]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
mov rbp, rdx
mov rbx, rcx
xor r14d, r14d
cmp rdx, r14
je 0x140016dd9
mov dword [rdx], r14d
cmp rcx, r14
je 0x1400171d5
cmp rdx, r14
je 0x1400171d5
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x58], r14d
lea rcx, [rsp + 0x70]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
mov qword [rsp + 0x40], r14
mov rax, qword [rbx]
lea r8, [rsp + 0x40]
lea rdx, [0x1400028c8]
mov rcx, rbx
call qword [rax]
cmp eax, r14d
jl 0x140016e88
mov rax, qword [rbx]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [rax + 0x28]
cmp eax, r14d
je 0x140016e75
lea rcx, [rsp + 0x50]
call fcn.14002bfb4
cmp eax, r14d
jl 0x140016e88
mov rdi, qword [rsp + 0x40]
cmp qword [rsp + 0x50], r14
jle 0x140016e88
mov rcx, rdi
call fcn.140013ab0
cmp eax, r14d
jl 0x140016e88
mov r9d, 8
lea r8, [rsp + 0x50]
lea rdx, [0x140004bd8]
mov rcx, qword [rdi + 0x10]
call fcn.14002c3c8
cmp eax, r14d
jl 0x140016e88
mov rax, qword [rbx]
lea rdx, [rsp + 0x58]
mov rcx, rbx
call qword [rax + 0x30]
mov rax, qword [rbx]
lea rdx, [rsp + 0x48]
mov rcx, rbx
call qword [rax + 0x90]
mov ecx, dword [rsp + 0x48]
mov edx, 0xc96441
cmp eax, r14d
cmovl ecx, edx
mov dword [rsp + 0x48], ecx
mov word [rsp + 0xb0], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0xb2]
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x88]
cmp rax, r14
je 0x1400171b0
lea rcx, [rsp + 0x98]
call qword [sym.imp.RPCRT4.dll_UuidCreateSequential]
mov dword [rsp + 0x60], eax
cmp eax, r14d
je 0x140016efd
cmp eax, 0x720
jne 0x140016fdf
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x98]
call qword [sym.imp.RPCRT4.dll_UuidHash]
movzx r12d, ax
mov edi, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov r13d, dword [rsp + 0x58]
mov word [rsp + 0x2c0], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x2c2]
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x2c0]
call fcn.14001ce50
mov ebx, eax
cmp eax, r14d
jl 0x140016f89
lea rax, [rsp + 0x2c0]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], edi
or dword [rsp + 0x28], 0xffffffff
mov qword [rsp + 0x20], rsi
mov r9d, r13d
mov r8d, r12d
mov edx, 0x104
lea rcx, [rsp + 0xb0]
call fcn.14001ceb4
mov ebx, eax
cmp ebx, r14d
jl 0x140017190
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 1
xor r9d, r9d
lea edx, [r9 + 2]
mov r8d, edx
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x140017004
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x50
je 0x140016eca
cmp eax, 0xb7
jne 0x140016fe9
jmp 0x140016eca
mov ebx, 0x80004005
jmp 0x1400171b5
mov rcx, qword [rsp + 0x40]
cmp rcx, r14
je 0x140016ffa
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov ebx, 0x80004005
jmp 0x1400171a1
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call fcn.140013ab0
mov ebx, 0x80004005
cmp eax, r14d
jge 0x14001701f
mov edi, ebx
jmp 0x140017043
lea rcx, [rsp + 0x70]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov rcx, qword [rdi + 0x10]
mov rax, qword [rcx]
lea r9, [rsp + 0x70]
xor r8d, r8d
xor edx, edx
call qword [rax + 0xc8]
mov edi, eax
mov rsi, r14
mov eax, 0x2011
cmp ax, word [rsp + 0x70]
cmove rsi, qword [rsp + 0x78]
mov rdx, r14
mov qword [rsp + 0x68], rdx
mov r8d, r14d
cmp edi, r14d
jl 0x14001716c
cmp rsi, r14
je 0x14001708d
lea rdx, [rsp + 0x68]
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov edi, eax
mov r8d, dword [rsi + 0x18]
mov rdx, qword [rsp + 0x68]
cmp rdx, r14
jne 0x140017098
cmp edi, r14d
jl 0x14001716c
mov edi, ebx
cmp edi, r14d
jl 0x14001716c
mov dword [rsp + 0x5c], r14d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x5c]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, r14d
jne 0x1400170d2
call sub.KERNEL32.dll_GetLastError
movzx edi, ax
or edi, 0x80070000
cmp eax, r14d
cmovle edi, eax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, r14d
jne 0x1400170f9
cmp edi, r14d
jl 0x1400170f9
call sub.KERNEL32.dll_GetLastError
movzx edi, ax
or edi, 0x80070000
cmp eax, r14d
cmovle edi, eax
mov edx, 0x2000
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp rsi, r14
je 0x14001711a
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
cmp edi, r14d
jl 0x14001714c
mov dword [rbp], r12d
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call fcn.140013ab0
cmp eax, r14d
jge 0x140017139
mov edi, ebx
jmp 0x14001714c
cmp r12d, r14d
jne 0x140017145
mov edi, 0x80070057
jmp 0x14001714c
mov dword [rdi + 0x20], r12d
mov edi, r14d
mov rcx, qword [rsp + 0x40]
cmp rcx, r14
je 0x14001715d
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, edi
jmp 0x1400171da
cmp rsi, r14
je 0x14001717b
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
nop
mov rcx, qword [rsp + 0x40]
cmp rcx, r14
je 0x14001718c
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov ebx, edi
jmp 0x1400171a1
mov rcx, qword [rsp + 0x40]
cmp rcx, r14
je 0x1400171a1
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, ebx
jmp 0x1400171da
mov ebx, 0x80070057
mov rcx, qword [rsp + 0x40]
cmp rcx, r14
je 0x1400171c6
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, ebx
jmp 0x1400171da
mov eax, 0x80070057
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.14003a6d0
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret