Function at 0x14000fa40
Capabilities:
Write file on windows

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x140237008]
xor rax, rsp
mov qword [rbp + 0x47], rax
test byte [0x14023a6d8], 1
jne 0x14000fce2
lock bts qword [0x14023a6d8], 0x1f
jae 0x14000fa99
test byte [0x14023a6d8], 1
nop dword [rax]
jne 0x14000fce2
xor edx, edx
lea rcx, [0x14023a6d8]
call sym.ProcessHacker.exe_PhfWaitForEvent
jmp 0x14000fce2
mov qword ss:[rsp + 0xf0], rbx
lea rcx, [rbp - 0x21]
xor r9d, r9d
mov qword [rsp + 0xf8], r14
xor r8d, r8d
mov byte [rsp + 0x20], 0
mov edx, 0x1f0003
call qword [sym.imp.ntdll.dll_NtCreateEvent]
xor r14d, r14d
test eax, eax
js 0x14000fb47
mov r8, qword ds:[rbp - 0x21]
lea rdx, [0x14000f930]
lea rcx, [rbp - 0x39]
call sym.ProcessHacker.exe_PhCreateThreadEx
test eax, eax
js 0x14000fb3d
mov rbx, qword [rbp - 0x39]
mov rcx, rbx
call fcn.14000f7c0
test al, al
je 0x14000fb28
lea r9d, [r14 + 0x10]
mov qword [rsp + 0x20], r14
lea r8, [rbp - 0x11]
mov rcx, rbx
lea edx, [r14 + 0x15]
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
movzx edx, word [0x14023a6e8]
test eax, eax
cmovns dx, word [rbp - 9]
mov word [0x14023a6e8], dx
mov rcx, qword [rbp - 0x21]
xor edx, edx
call qword [sym.imp.ntdll.dll_NtSetEvent]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ntdll.dll_NtClose]
xor r9d, r9d
mov byte [rsp + 0x20], r14b
xor r8d, r8d
lea rcx, [rbp - 0x21]
mov edx, 0x1f0003
call qword [sym.imp.ntdll.dll_NtCreateEvent]
test eax, eax
js 0x14000fbe9
mov r8, qword ds:[rbp - 0x21]
lea rdx, [0x14000f980]
lea rcx, [rbp - 0x39]
call sym.ProcessHacker.exe_PhCreateThreadEx
test eax, eax
js 0x14000fbdf
mov rbx, qword [rbp - 0x39]
mov rcx, rbx
call fcn.14000f7c0
test al, al
je 0x14000fbca
mov r9d, 0x10
mov qword [rsp + 0x20], r14
lea r8, [rbp + 7]
mov rcx, rbx
lea edx, [r9 + 5]
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
movzx edx, word [0x14023a6f0]
test eax, eax
cmovns dx, word [rbp + 0xf]
mov word [0x14023a6f0], dx
mov rcx, qword [rbp - 0x21]
xor edx, edx
call qword [sym.imp.ntdll.dll_NtSetEvent]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ntdll.dll_NtClose]
xor r8d, r8d
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x31]
call fcn.14011c6e0
nop dword [rax]
test eax, eax
js 0x14000fcc6
mov r8, qword [rbp - 0x31]
lea rdx, [0x14000f9e0]
lea rcx, [rbp - 0x39]
call sym.ProcessHacker.exe_PhCreateThreadEx
nop dword [rax]
test eax, eax
js 0x14000fcaf
mov rbx, qword [rbp - 0x39]
mov rcx, rbx
mov dword [rbp - 0x19], r14d
call fcn.14000f7c0
test al, al
je 0x14000fc6d
mov r9d, 0x10
mov qword [rsp + 0x20], r14
lea r8, [rbp + 0x1f]
mov rcx, rbx
lea edx, [r9 + 5]
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
movzx ecx, word [0x14023a6ec]
test eax, eax
cmovns cx, word [rbp + 0x27]
mov word [0x14023a6ec], cx
mov rcx, qword ds:[rbp - 0x29]
lea rax, [rbp - 0x19]
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, qword [rbp - 0x31]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword ds:[rbp - 0x29]
call qword [sym.imp.ntdll.dll_NtClose]
lea rcx, [0x14023a6d8]
call sym.ProcessHacker.exe_PhfSetEvent
mov r14, qword [rsp + 0xf8]
mov rbx, qword [rsp + 0xf0]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1401848a0
add rsp, 0xe0
pop rbp
ret