Function at 0x140018d80
Capabilities:
Write file on windows

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x1402bb040]
xor rax, rsp
mov qword [rbp + 0x47], rax
test byte [0x1402bc398], 1
jne 0x14001900a
lock bts qword [0x1402bc398], 0x1f
setb al
test al, al
jne 0x140018dbe
mov al, 1
jmp 0x140018dd7
test byte [0x1402bc398], 1
jne 0x140018dd5
xor edx, edx
lea rcx, [0x1402bc398]
call sym.SystemInformer.exe_Ordinal_1388
xor al, al
test al, al
je 0x14001900a
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 qword [rbp - 0x21], r14
mov edx, 0x1f0003
mov byte [rsp + 0x20], r14b
lea rcx, [rbp - 0x39]
mov qword [rsp + 0xf8], rdi
mov dword [rbp - 0x31], 0x30
mov dword [rbp - 0x19], 0x20
movdqu xmmword [rbp - 0x11], xmm0
call qword [sym.imp.ntdll.dll_NtCreateEvent]
test eax, eax
js 0x140018e98
mov rdi, qword [rbp - 0x39]
lea rdx, [0x140018c70]
mov r8, rdi
lea rcx, [rbp + 0x37]
call sym.SystemInformer.exe_Ordinal_1334
test eax, eax
js 0x140018e8f
lfence
mov rbx, qword [rbp + 0x37]
mov rcx, rbx
call fcn.140018a40
test al, al
je 0x140018e78
lea rdx, [0x1402bc3a8]
mov rcx, rbx
call fcn.140018be0
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], 0x20
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 0x140018f30
mov rdi, qword [rbp + 0x2f]
lea rdx, [0x140018cc0]
mov r8, rdi
lea rcx, [rbp + 0x37]
call sym.SystemInformer.exe_Ordinal_1334
test eax, eax
js 0x140018f27
lfence
mov rbx, qword [rbp + 0x37]
mov rcx, rbx
call fcn.140018a40
nop
test al, al
je 0x140018f13
lea rdx, [0x1402bc3b0]
mov rcx, rbx
call fcn.140018be0
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.14016ddc0
test eax, eax
js 0x140018fe6
mov rdi, qword ds:[rbp + 0x2f]
lea rdx, [0x140018d20]
mov r8, rdi
lea rcx, [rbp + 0x37]
call sym.SystemInformer.exe_Ordinal_1334
test eax, eax
js 0x140018fcf
mov rbx, qword [rbp + 0x37]
mov rcx, rbx
mov dword [rbp + 0x2f], r14d
call fcn.140018a40
test al, al
je 0x140018f8c
lea rdx, [0x1402bc3ac]
mov rcx, rbx
call fcn.140018be0
mov rcx, qword ds:[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 ds:[rbp - 0x39]
call qword [sym.imp.ntdll.dll_NtClose]
lea rcx, [0x1402bc398]
call sym.SystemInformer.exe_Ordinal_1386
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.1401e5e40
add rsp, 0xe0
pop rbp
ret