Function at 0x7ff7bffcaba0
Capabilities:
Write file on windows

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x7ff7c01ca008]
xor rax, rsp
mov qword [rbp + 0x47], rax
test byte [0x7ff7c01cd0d8], 1
jne 0x7ff7bffcae42
lock bts qword [0x7ff7c01cd0d8], 0x1f
jae 0x7ff7bffcabf9
test byte [0x7ff7c01cd0d8], 1
nop dword [rax]
jne 0x7ff7bffcae42
xor edx, edx
lea rcx, [0x7ff7c01cd0d8]
call sym.ProcessHacker.exe_PhfWaitForEvent
jmp 0x7ff7bffcae42
mov qword ss:[rsp + 0xf0], rbx
lea rcx, [rbp - 0x39]
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 0x7ff7bffcaca7
mov r8, qword ds:[rbp - 0x39]
lea rdx, [0x7ff7bffcaae0]
lea rcx, [rbp - 0x31]
call sym.ProcessHacker.exe_PhCreateThreadEx
test eax, eax
js 0x7ff7bffcac9d
mov rbx, qword [rbp - 0x31]
mov rcx, rbx
call fcn.7ff7bffca990
test al, al
je 0x7ff7bffcac88
lea r9d, [r14 + 0x10]
mov qword [rsp + 0x20], r14
lea r8, [rbp - 1]
mov rcx, rbx
lea edx, [r14 + 0x15]
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
movzx edx, word [0x7ff7c01cd0e8]
test eax, eax
cmovns dx, word [rbp + 7]
mov word [0x7ff7c01cd0e8], dx
mov rcx, qword [rbp - 0x39]
xor edx, edx
call qword [sym.imp.ntdll.dll_NtSetEvent]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.ntdll.dll_NtClose]
xor r9d, r9d
mov byte [rsp + 0x20], r14b
xor r8d, r8d
lea rcx, [rbp - 0x39]
mov edx, 0x1f0003
call qword [sym.imp.ntdll.dll_NtCreateEvent]
test eax, eax
js 0x7ff7bffcad49
mov r8, qword ds:[rbp - 0x39]
lea rdx, [0x7ff7bffcab10]
lea rcx, [rbp - 0x31]
call sym.ProcessHacker.exe_PhCreateThreadEx
test eax, eax
js 0x7ff7bffcad3f
mov rbx, qword [rbp - 0x31]
mov rcx, rbx
call fcn.7ff7bffca990
test al, al
je 0x7ff7bffcad2a
mov r9d, 0x10
mov qword [rsp + 0x20], r14
lea r8, [rbp + 0x17]
mov rcx, rbx
lea edx, [r9 + 5]
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
movzx edx, word [0x7ff7c01cd0f0]
test eax, eax
cmovns dx, word [rbp + 0x1f]
mov word [0x7ff7c01cd0f0], dx
mov rcx, qword [rbp - 0x39]
xor edx, edx
call qword [sym.imp.ntdll.dll_NtSetEvent]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.ntdll.dll_NtClose]
xor r8d, r8d
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x21]
call fcn.7ff7c00e1cf0
nop dword [rax]
test eax, eax
js 0x7ff7bffcae26
mov r8, qword [rbp - 0x21]
lea rdx, [0x7ff7bffcab50]
lea rcx, [rbp - 0x31]
call sym.ProcessHacker.exe_PhCreateThreadEx
nop dword [rax]
test eax, eax
js 0x7ff7bffcae0f
mov rbx, qword [rbp - 0x31]
mov rcx, rbx
mov dword [rbp - 0x29], r14d
call fcn.7ff7bffca990
test al, al
je 0x7ff7bffcadcd
mov r9d, 0x10
mov qword [rsp + 0x20], r14
lea r8, [rbp + 0x2f]
mov rcx, rbx
lea edx, [r9 + 5]
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
movzx ecx, word [0x7ff7c01cd0ec]
test eax, eax
cmovns cx, word [rbp + 0x37]
mov word [0x7ff7c01cd0ec], cx
mov rcx, qword ds:[rbp - 0x19]
lea rax, [rbp - 0x29]
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 - 0x11]
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 - 0x21]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword ds:[rbp - 0x19]
call qword [sym.imp.ntdll.dll_NtClose]
lea rcx, [0x7ff7c01cd0d8]
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.7ff7c0121390
add rsp, 0xe0
pop rbp
ret