Function at 0x143c4
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xf0
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x80], ebx
xor eax, eax
mov dword [rsp + 0x84], eax
mov qword [r11 - 0x90], rax
mov dword [r11 - 0x60], ebx
xor edx, edx
lea r8d, [rbx + 0x28]
lea rcx, [r11 - 0x58]
call fcn.0001a360
mov r15, rbx
mov qword [rsp + 0x130], rbx
mov r12, rbx
mov r14, rbx
mov qword [rsp + 0x98], rbx
mov r13, rbx
mov qword [rsp + 0x90], rbx
mov edx, 0xc0000001
mov dword [0x0001ce3c], edx
lea rcx, [rdi + 0x1c]
mov qword [rsp + 0xb0], rcx
movzx eax, word [rdi + 0x18]
mov word [rsp + 0xa8], ax
mov eax, dword [rsp + 0xa8]
add eax, 2
mov word [rsp + 0xaa], ax
lea r8d, [rbx + 0x30]
mov dword [rsp + 0xb8], r8d
lea rax, [rsp + 0xa8]
mov qword [rsp + 0xc8], rax
lea eax, [rbx + 0x40]
mov dword [rsp + 0xd0], eax
mov dword [rsp + 0xb8], r8d
mov qword [rsp + 0xc0], rbx
mov dword [rsp + 0xd0], eax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd8], rbx
mov qword [rsp + 0xe0], rbx
cmp qword [0x0001c878], rbx
je 0x1474c
call fcn.00013168
mov r12, rax
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x68], 0x800
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x58], ebx
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x40], 0x60
lea ebx, [r13 + 1]
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], r13d
and qword [rsp + 0x20], r13
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xb8]
mov edx, 0x40100003
lea rcx, [rsp + 0x138]
call qword [0x0001c878]
mov edx, eax
mov dword [0x0001ce3c], eax
test eax, eax
je 0x145e7
lea rcx, [rsp + 0x98]
call fcn.00013000
lea rdx, [rsp + 0x90]
mov rcx, r12
call fcn.00012eb8
mov qword [rsp + 0x70], r12
mov dword [rsp + 0x68], 0x800
xor eax, eax
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xb8]
mov edx, 0x40100003
lea rcx, [rsp + 0x138]
call qword [0x0001c878]
mov edx, eax
mov dword [0x0001ce3c], eax
mov r14, qword [rsp + 0x98]
mov r13, qword [rsp + 0x90]
cmp edx, 0xc0000043
jne 0x14751
mov qword [rsp + 0x70], r12
mov dword [rsp + 0x68], 0x800
and qword [rsp + 0x60], 0
and dword [rsp + 0x58], 0
and dword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xb8]
mov edx, 0x100001
lea rcx, [rsp + 0xa0]
call qword [0x0001c878]
mov edx, eax
mov dword [0x0001ce3c], eax
test eax, eax
jne 0x14751
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x130]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
test eax, eax
jne 0x14736
mov rcx, qword [rsp + 0x130]
mov al, byte [rcx + 0x4b]
mov byte [rsp + 0x128], al
mov rax, qword [rcx + 0x28]
mov r15, qword [rax + 0x10]
and qword [rax + 0x10], 0
mov rax, qword [rsp + 0x130]
mov byte [rax + 0x4b], bl
mov rcx, qword [rsp + 0x130]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov qword [rsp + 0x70], r12
mov dword [rsp + 0x68], 0x800
xor eax, eax
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xb8]
mov edx, 0x40100003
lea rcx, [rsp + 0x138]
call qword [0x0001c878]
mov dword [0x0001ce3c], eax
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov edx, dword [0x0001ce3c]
jmp 0x14751
mov ebx, 1
test edx, edx
je 0x1478c
mov dword [rsp + 0x28], 0x60
mov dword [rsp + 0x20], ebx
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xb8]
mov edx, 0x100003
lea rcx, [rsp + 0x138]
call qword [sym.imp.ntoskrnl.exe_ZwOpenFile]
mov edx, eax
mov dword [0x0001ce3c], eax
test edx, edx
jne 0x14883
mov ecx, dword [rdi + 0x10]
add rcx, rdi
lea rax, [rdi + 8]
and qword [rsp + 0x40], 0
mov qword [rsp + 0x38], rax
mov eax, dword [rdi + 0x14]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rcx
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x138]
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov dword [0x0001ce3c], eax
test r15, r15
je 0x14840
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x130]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x138]
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
test eax, eax
jne 0x14840
mov rax, qword [rsp + 0x130]
mov rcx, qword [rax + 0x28]
mov qword [rcx + 0x10], r15
mov rcx, qword [rsp + 0x130]
mov al, byte [rsp + 0x128]
mov byte [rcx + 0x4b], al
mov rcx, qword [rsp + 0x130]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x138]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test r14, r14
je 0x14860
lea rcx, [rsp + 0x98]
call fcn.00013000
test r13, r13
je 0x1487d
lea rdx, [rsp + 0x90]
mov rcx, r12
call fcn.00012eb8
mov edx, dword [0x0001ce3c]
jmp 0x14883
mov edx, dword [0x0001ce3c]
jmp 0x1488b
mov eax, edx
mov rbx, qword [rsp + 0x120]
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
ret