Function at 0x140018f80
Capabilities:
Write file on windows

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x1402bf040]
xor rax, rsp
mov qword [rbp + 0x47], rax
test byte [0x1402c03b0], 1
jne 0x1400191fd
lock bts qword [0x1402c03b0], 0x1f
setb al
test al, al
jne 0x140018fbe
mov al, 1
jmp 0x140018fd7
test byte [0x1402c03b0], 1
jne 0x140018fd5
xor edx, edx
lea rcx, [0x1402c03b0]
call sym.SystemInformer.exe_PhfWaitForEvent
xor al, al
test al, al
je 0x1400191fd
mov qword [rsp + 0x100], r14
lea r8, [rbp - 0x31]
xor r14d, r14d
mov qword [rsp + 0xf0], rbx
xorps xmm0, xmm0
mov qword [rbp - 0x29], r14
xor r9d, r9d
mov dword [rbp - 0x19], r14d
mov edx, 0x1f0003
mov qword [rbp - 0x21], r14
lea rcx, [rbp - 0x39]
mov byte [rsp + 0x20], r14b
mov qword [rsp + 0xf8], rdi
mov dword [rbp - 0x31], 0x30
movdqu xmmword [rbp - 0x11], xmm0
call qword [sym.imp.ntdll.dll_NtCreateEvent]
test eax, eax
js 0x140019090
mov rdi, qword [rbp - 0x39]
lea rdx, [0x140018e70]
mov r8, rdi
lea rcx, [rbp + 0x37]
call sym.SystemInformer.exe_PhCreateThreadEx
test eax, eax
js 0x140019087
lfence
mov rbx, qword [rbp + 0x37]
mov rcx, rbx
call fcn.140018c40
nop
test al, al
je 0x140019073
lea rdx, [0x1402c03c0]
mov rcx, rbx
call fcn.140018de0
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtSetEvent]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
xorps xmm0, xmm0
mov dword [rbp - 1], 0x30
xor r9d, r9d
mov qword [rbp + 7], r14
lea r8, [rbp - 1]
mov dword [rbp + 0x17], r14d
mov edx, 0x1f0003
mov qword [rbp + 0xf], r14
lea rcx, [rbp + 0x2f]
mov byte [rsp + 0x20], r14b
movdqu xmmword [rbp + 0x1f], xmm0
call qword [sym.imp.ntdll.dll_NtCreateEvent]
test eax, eax
js 0x140019128
mov rdi, qword ds:[rbp + 0x2f]
lea rdx, [0x140018ec0]
mov r8, rdi
lea rcx, [rbp + 0x37]
call sym.SystemInformer.exe_PhCreateThreadEx
test eax, eax
js 0x14001911f
lfence
mov rbx, qword [rbp + 0x37]
mov rcx, rbx
call fcn.140018c40
test al, al
je 0x14001910b
lea rdx, [0x1402c03c8]
mov rcx, rbx
call fcn.140018de0
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtSetEvent]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
xor r8d, r8d
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 0x2f]
call fcn.14016bda0
nop dword [rax + rax]
test eax, eax
js 0x1400191d9
mov rdi, qword [rbp + 0x2f]
lea rdx, [0x140018f20]
mov r8, rdi
lea rcx, [rbp + 0x37]
call sym.SystemInformer.exe_PhCreateThreadEx
nop
test eax, eax
js 0x1400191c6
mov rbx, qword [rbp + 0x37]
mov rcx, rbx
mov dword [rbp + 0x2f], r14d
call fcn.140018c40
test al, al
je 0x140019187
lea rdx, [0x1402c03c4]
mov rcx, rbx
call fcn.140018de0
mov rcx, qword [rbp - 0x39]
lea rax, [rbp + 0x2f]
mov qword [rsp + 0x40], r14
xor r9d, r9d
mov qword [rsp + 0x38], r14
xor r8d, r8d
mov dword [rsp + 0x30], 4
xor edx, edx
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x37]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtWriteFile]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.ntdll.dll_NtClose]
lea rcx, [0x1402c03b0]
call sym.SystemInformer.exe_PhfSetEvent
mov r14, qword [rsp + 0x100]
mov rdi, qword [rsp + 0xf8]
mov rbx, qword [rsp + 0xf0]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1401e4a20
add rsp, 0xe0
pop rbp
ret