Function at 0x140008fc0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0xc8
test byte [0x14018aa80], 1
jne 0x140009273
lock bts qword [0x14018aa80], 0x1f
jae 0x140009002
test byte [0x14018aa80], 1
jne 0x140009273
xor edx, edx
lea rcx, [0x14018aa80]
add rsp, 0xc8
jmp sym.ProcessHacker.exe_PhfWaitForEvent
mov qword [rsp + 0xc0], rbx
lea rcx, [rsp + 0xd8]
xor r9d, r9d
mov qword [rsp + 0xb8], rbp
xor r8d, r8d
mov byte [rsp + 0x20], 0
mov edx, 0x1f0003
call qword [sym.imp.ntdll.dll_NtCreateEvent]
xor ebp, ebp
test eax, eax
js 0x1400090bb
mov r8, qword [rsp + 0xd8]
lea rdx, [0x140008f00]
xor ecx, ecx
call sym.ProcessHacker.exe_PhCreateThread
mov rbx, rax
test rax, rax
je 0x1400090ad
mov rcx, rax
call fcn.140008de0
test al, al
je 0x140009094
lea r9d, [rbp + 0x10]
mov qword [rsp + 0x20], rbp
lea r8, [rsp + 0x60]
mov rcx, rbx
lea edx, [rbp + 0x15]
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
movzx ecx, word [0x14018aa78]
test eax, eax
cmovns cx, word [rsp + 0x68]
mov word [0x14018aa78], cx
mov rcx, qword [rsp + 0xd8]
xor edx, edx
call qword [sym.imp.ntdll.dll_NtSetEvent]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.ntdll.dll_NtClose]
xor r9d, r9d
mov byte [rsp + 0x20], bpl
xor r8d, r8d
lea rcx, [rsp + 0xd8]
mov edx, 0x1f0003
call qword [sym.imp.ntdll.dll_NtCreateEvent]
test eax, eax
js 0x140009168
mov r8, qword [rsp + 0xd8]
lea rdx, [0x140008f30]
xor ecx, ecx
call sym.ProcessHacker.exe_PhCreateThread
mov rbx, rax
test rax, rax
je 0x14000915a
mov rcx, rax
call fcn.140008de0
test al, al
je 0x140009141
mov r9d, 0x10
mov qword [rsp + 0x20], rbp
lea r8, [rsp + 0x78]
mov rcx, rbx
lea edx, [r9 + 5]
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
movzx ecx, word [0x14018aa70]
test eax, eax
cmovns cx, word [rsp + 0x80]
mov word [0x14018aa70], cx
mov rcx, qword [rsp + 0xd8]
xor edx, edx
call qword [sym.imp.ntdll.dll_NtSetEvent]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.ntdll.dll_NtClose]
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0xe0]
call sym.ProcessHacker.exe_PhCreatePipe
test eax, eax
js 0x140009257
mov r8, qword [rsp + 0xe0]
lea rdx, [0x140008f70]
xor ecx, ecx
call sym.ProcessHacker.exe_PhCreateThread
mov rbx, rax
test rax, rax
je 0x14000923b
mov rcx, rax
mov dword [rsp + 0xd0], ebp
call fcn.140008de0
test al, al
je 0x1400091f3
mov r9d, 0x10
mov qword [rsp + 0x20], rbp
lea r8, [rsp + 0x90]
mov rcx, rbx
lea edx, [r9 + 5]
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
movzx ecx, word [0x14018aa74]
test eax, eax
cmovns cx, word [rsp + 0x98]
mov word [0x14018aa74], cx
mov rcx, qword [rsp + 0xe8]
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x40], rbp
xor r9d, r9d
mov qword [rsp + 0x38], rbp
xor r8d, r8d
mov dword [rsp + 0x30], 4
xor edx, edx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtWriteFile]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.ntdll.dll_NtClose]
lea rcx, [0x14018aa80]
call sym.ProcessHacker.exe_PhfSetEvent
mov rbp, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0xc0]
add rsp, 0xc8
ret