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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x68
xor r13d, r13d
lea rsi, [rcx + 8]
mov ebp, r8d
mov r12, rdx
mov r8d, dword [rsi]
mov rbx, rcx
mov edi, r13d
test r8b, 2
je 0x1400e0ca6
mov qword [rsp + 0x40], r13
lea rax, [rcx + 0x10]
mov rcx, qword [rcx]
test r8b, 8
cmove rax, r13
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], ebp
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rdx
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtWriteFile]
mov ecx, eax
cmp eax, 0x103
jne 0x1400e0c84
mov rcx, qword [rbx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov ecx, eax
test eax, eax
js 0x1400e0c97
mov ecx, dword [rsp + 0x50]
test ecx, ecx
js 0x1400e0c97
mov rax, qword [rsp + 0x58]
add qword [rbx + 0x10], rax
or dword [rsi], 0x80000000
mov eax, ecx
add rsp, 0x68
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov qword [rsp + 0xa8], r14
mov qword [rsp + 0x60], r15
lea r15, [rcx + 0x2c]
cmp dword [rcx + 0x2c], r13d
jne 0x1400e0d1c
mov edx, dword [rcx + 0x28]
mov ecx, dword [rcx + 0x24]
cmp edx, ecx
je 0x1400e0d10
sub ecx, edx
movsxd rax, ecx
add rax, qword [rbx + 0x10]
mov qword [rbx + 0x10], rax
test r8b, 8
jne 0x1400e0d08
mov rcx, qword [rbx]
lea r8, [rsp + 0xa0]
mov r9d, 8
mov qword [rsp + 0xa0], rax
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x20], 0xe
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
mov edi, eax
test edi, edi
js 0x1400e0ef0
mov qword [rbx + 0x24], r13
lea r15, [rbx + 0x2c]
lea rsi, [rbx + 8]
mov edx, dword [rbx + 0x2c]
test edx, edx
je 0x1400e0df9
mov r14d, dword [rbx + 0x20]
sub r14d, edx
je 0x1400e0d70
cmp r14d, ebp
jbe 0x1400e0d40
mov r14d, ebp
lea r15, [rbx + 0x2c]
lea rsi, [rbx + 8]
mov rcx, rdx
mov r8d, r14d
add rcx, qword [rbx + 0x18]
mov rdx, r12
mov r13d, r14d
call fcn.1401317c0
mov edx, dword [r15]
add edx, r14d
mov dword [r15], edx
cmp r14d, ebp
je 0x1400e0ef0
add r12, r13
sub ebp, r14d
xor r13d, r13d
mov rcx, qword [rbx + 0x18]
lea r14, [rbx + 0x10]
test byte [rsi], 8
mov rax, r14
mov qword [rsp + 0x40], r13
cmove rax, r13
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], edx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
xor edx, edx
mov rcx, qword [rbx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtWriteFile]
mov edi, eax
cmp eax, 0x103
jne 0x1400e0dd5
mov rcx, qword [rbx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov edi, eax
test eax, eax
js 0x1400e0ef0
mov edi, dword [rsp + 0x50]
test edi, edi
js 0x1400e0ef0
mov rax, qword [rsp + 0x58]
lea r15, [rbx + 0x2c]
add qword [r14], rax
or dword [rsi], 0x80000000
lea rsi, [rbx + 8]
mov dword [rbx + 0x2c], r13d
jmp 0x1400e0dfd
lea r14, [rbx + 0x10]
mov eax, dword [rbx + 0x20]
cmp ebp, eax
jb 0x1400e0e79
test byte [rsi], 8
mov rax, r14
mov rcx, qword [rbx]
cmove rax, r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov dword [rsp + 0x30], ebp
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], r12
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtWriteFile]
mov edi, eax
cmp eax, 0x103
jne 0x1400e0e61
mov rcx, qword [rbx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov edi, eax
test eax, eax
js 0x1400e0ef0
mov edi, dword [rsp + 0x50]
test edi, edi
js 0x1400e0ef0
mov rax, qword [rsp + 0x58]
add qword [r14], rax
or dword [rsi], 0x80000000
jmp 0x1400e0ef0
test ebp, ebp
je 0x1400e0ef0
mov rcx, qword [rbx + 0x18]
test rcx, rcx
jne 0x1400e0ee2
mov dword [rsp + 0x28], 4
lea r9, [rsp + 0xb8]
xor r8d, r8d
mov dword [rsp + 0x20], 0x1000
lea rdx, [rsp + 0xa0]
mov qword [rsp + 0xb8], rax
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0xa0], r13
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
js 0x1400e0f0c
mov rcx, qword [rsp + 0xa0]
mov qword [rbx + 0x18], rcx
test rcx, rcx
je 0x1400e0f10
mov edi, r13d
lea r15, [rbx + 0x2c]
mov r8d, ebp
mov rdx, r12
call fcn.1401317c0
mov dword [r15], ebp
mov eax, edi
mov r14, qword [rsp + 0xa8]
mov r15, qword [rsp + 0x60]
add rsp, 0x68
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov qword [rbx + 0x18], r13
mov eax, 0xc0000017
jmp 0x1400e0ef2