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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rax, qword [0x140051058]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov r12, rdx
mov rbx, rcx
xor esi, esi
test rdx, rdx
je 0x14001eb7f
mov dword [rdx], esi
test rbx, rbx
je 0x14001f00c
test r12, r12
je 0x14001f00c
mov qword [rsp + 0x50], rsi
mov dword [rsp + 0x4c], esi
lea rcx, [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop dword [rax + rax]
nop
mov qword [rsp + 0x40], rsi
mov rax, qword [rbx]
movabs r10, 0xdee01e7974d59970
lea r8, [rsp + 0x40]
lea rdx, [0x140044518]
mov rcx, rbx
mov rax, qword [rax]
call qword [vtable.H_MA8HI.0]
test eax, eax
js 0x14001ec65
mov rax, qword [rbx]
movabs r10, 0xce99a66c78547170
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov rax, qword [rax + 0x28]
call qword [vtable.H_MA8HI.0]
test eax, eax
je 0x14001ec44
lea rcx, [rsp + 0x50]
call fcn.14003388c
test eax, eax
js 0x14001ec65
mov rdi, qword [rsp + 0x40]
cmp qword [rsp + 0x50], rsi
jle 0x14001ec65
mov rcx, rdi
call fcn.1400171a0
test eax, eax
js 0x14001ec65
mov r9d, 8
lea r8, [rsp + 0x50]
lea rdx, [0x1400477e0]
mov rcx, qword [rdi + 0x10]
call fcn.1400343bc
test eax, eax
js 0x14001ec65
mov rax, qword [rbx]
movabs r10, 0xd6059e2c14528b70
lea rdx, [rsp + 0x4c]
mov rcx, rbx
mov rax, qword [rax + 0x30]
call qword [vtable.H_MA8HI.0]
mov rax, qword [rbx]
movabs r10, 0xd7753ee518510870
lea rdx, [rsp + 0x48]
mov rcx, rbx
mov rax, qword [rax + 0x90]
call qword [vtable.H_MA8HI.0]
mov ecx, dword [rsp + 0x48]
mov edx, 0xc96441
test eax, eax
cmovs ecx, edx
mov dword [rsp + 0x48], ecx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x70]
call sub.msvcrt.dll_memset
lea rcx, [rbp - 0x80]
call qword [sym.imp.RPCRT4.dll_UuidCreateSequential]
nop dword [rax + rax]
mov dword [rsp + 0x58], eax
test eax, eax
je 0x14001eccd
cmp eax, 0x720
jne 0x14001edd1
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x80]
call qword [sym.imp.RPCRT4.dll_UuidHash]
nop dword [rax + rax]
movzx r15d, ax
mov ebx, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov r14d, dword [rsp + 0x4c]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1a0]
call sub.msvcrt.dll_memset
lea rcx, [rbp + 0x1a0]
call fcn.14001fb24
mov edi, eax
test eax, eax
js 0x14001efd5
lea rax, [rbp + 0x1a0]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebx
or dword [rsp + 0x28], 0xffffffff
mov qword [rsp + 0x20], rsi
mov r9d, r14d
mov r8d, r15d
lea rcx, [rbp - 0x70]
call fcn.14001f9e0
mov edi, eax
xor esi, esi
test eax, eax
js 0x14001efd5
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 1
xor r9d, r9d
lea edx, [rsi + 2]
mov r8d, edx
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x14001edf4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x50
je 0x14001ecaa
cmp eax, 0xb7
je 0x14001ecaa
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14001edc7
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [vtable.H_MA8HI.0]
mov edi, 0x80004005
jmp 0x14001eff7
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14001edc7
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [vtable.H_MA8HI.0]
jmp 0x14001edc7
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.1400171a0
mov edi, 0x80004005
test eax, eax
jns 0x14001ee0f
mov r14d, edi
jmp 0x14001ee4b
lea rcx, [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x10]
mov rax, qword [rcx]
movabs r10, 0x8e3c373250583870
lea r9, [rsp + 0x68]
xor r8d, r8d
xor edx, edx
mov rax, qword [rax + 0xc8]
call qword [vtable.H_MA8HI.0]
mov r14d, eax
mov eax, 0x2011
cmp ax, word [rsp + 0x68]
cmove rsi, qword [rsp + 0x70]
and qword [rsp + 0x60], 0
test r14d, r14d
js 0x14001ee99
test rsi, rsi
je 0x14001ee96
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
nop dword [rax + rax]
mov ebx, eax
mov r8d, dword [rsi + 0x18]
mov rdx, qword [rsp + 0x60]
mov r14d, eax
test rdx, rdx
jne 0x14001eed7
test eax, eax
js 0x14001ee9e
mov r14d, edi
test rsi, rsi
je 0x14001eeae
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
nop dword [rax + rax]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14001eecf
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [vtable.H_MA8HI.0]
mov edi, r14d
jmp 0x14001eff7
test eax, eax
js 0x14001ee99
and dword [rsp + 0x5c], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x5c]
mov rcx, r13
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
nop dword [rax + rax]
mov r14d, 0x80070000
test eax, eax
jne 0x14001ef1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14001ef1c
movzx ebx, ax
or ebx, r14d
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test eax, eax
jne 0x14001ef4b
test ebx, ebx
js 0x14001ef4b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14001ef4b
movzx ebx, ax
or ebx, r14d
mov edx, 0x2000
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
nop dword [rax + rax]
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
nop dword [rax + rax]
test ebx, ebx
js 0x14001ef9e
mov rbx, qword [rsp + 0x40]
mov dword [r12], r15d
mov rcx, rbx
call fcn.1400171a0
test eax, eax
jns 0x14001ef8c
mov ebx, edi
jmp 0x14001ef9e
test r15d, r15d
jne 0x14001ef98
mov ebx, 0x80070057
jmp 0x14001ef9e
mov dword [rbx + 0x20], r15d
xor ebx, ebx
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14001efc0
mov rdx, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rdx + 0x10]
call qword [vtable.H_MA8HI.0]
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop dword [rax + rax]
mov eax, ebx
jmp 0x14001f011
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14001eff7
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [vtable.H_MA8HI.0]
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop dword [rax + rax]
mov eax, edi
jmp 0x14001f011
mov eax, 0x80070057
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.1400027f0
mov rbx, qword [rsp + 0x510]
add rsp, 0x4c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret