Function at 0x140018fe0
Capabilities:
Write file on windows

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x1402c0040]
xor rax, rsp
mov qword [rbp + 0x47], rax
test byte [0x1402c13b0], 1
jne 0x14001925d
lock bts qword [0x1402c13b0], 0x1f
setb al
test al, al
jne 0x14001901e
mov al, 1
jmp 0x140019037
test byte [0x1402c13b0], 1
jne 0x140019035
xor edx, edx
lea rcx, [0x1402c13b0]
call sym.SystemInformer.exe_PhfWaitForEvent
xor al, al
test al, al
je 0x14001925d
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 0x1400190f0
mov rdi, qword [rbp - 0x39]
lea rdx, [0x140018ed0]
mov r8, rdi
lea rcx, [rbp + 0x37]
call sym.SystemInformer.exe_PhCreateThreadEx
test eax, eax
js 0x1400190e7
lfence
mov rbx, qword [rbp + 0x37]
mov rcx, rbx
call fcn.140018ca0
nop
test al, al
je 0x1400190d3
lea rdx, [0x1402c13c0]
mov rcx, rbx
call fcn.140018e40
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 0x140019188
mov rdi, qword ds:[rbp + 0x2f]
lea rdx, [0x140018f20]
mov r8, rdi
lea rcx, [rbp + 0x37]
call sym.SystemInformer.exe_PhCreateThreadEx
test eax, eax
js 0x14001917f
lfence
mov rbx, qword [rbp + 0x37]
mov rcx, rbx
call fcn.140018ca0
test al, al
je 0x14001916b
lea rdx, [0x1402c13c8]
mov rcx, rbx
call fcn.140018e40
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.14016ca20
nop dword [rax + rax]
test eax, eax
js 0x140019239
mov rdi, qword [rbp + 0x2f]
lea rdx, [0x140018f80]
mov r8, rdi
lea rcx, [rbp + 0x37]
call sym.SystemInformer.exe_PhCreateThreadEx
nop
test eax, eax
js 0x140019226
mov rbx, qword [rbp + 0x37]
mov rcx, rbx
mov dword [rbp + 0x2f], r14d
call fcn.140018ca0
test al, al
je 0x1400191e7
lea rdx, [0x1402c13c4]
mov rcx, rbx
call fcn.140018e40
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, [0x1402c13b0]
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.1401e5e20
add rsp, 0xe0
pop rbp
ret