Function at 0x7ff7c00d9ea0
Capabilities:
Create thread
Get windows directory from kuser_shared_data

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
xor r13d, r13d
mov r12, r8
mov r15, rdx
mov qword [rsp + 0x20], r13
lea r8, [rbp + 0x7f]
mov r14, rcx
xor bl, bl
lea r9d, [r13 + 8]
lea edx, [r13 + 0x1a]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
nop
test eax, eax
js 0x7ff7c00d9eeb
cmp qword [rbp + 0x7f], r13
setne bl
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3e
jae 0x7ff7c00da0dc
lea r8, [rbp - 0x29]
mov dword [rbp - 0x29], 0xc0000135
lea rdx, [0x7ff7c00dc030]
mov qword [rbp - 0x21], r15
mov rcx, r14
mov dword [rbp - 0x19], 1
call fcn.7ff7c00dbb70
mov ecx, dword [rbp - 0x29]
test eax, eax
cmovs ecx, eax
test bl, bl
je 0x7ff7c00da0d1
cmp ecx, 0xc0000135
jne 0x7ff7c00da0d1
mov dword [rbp - 0x11], ecx
lea r8, [rbp - 0x11]
mov rcx, r14
mov qword [rbp - 9], r15
lea rdx, [0x7ff7c00dc710]
mov dword [rbp - 1], 1
call fcn.7ff7c00dc080
mov ecx, eax
test eax, eax
js 0x7ff7c00da0d5
mov ecx, dword [rbp - 0x11]
test ecx, ecx
js 0x7ff7c00da0d5
mov rax, qword [0x7ff7c01d6af8]
nop word [rax + rax]
test rax, rax
jne 0x7ff7c00da105
cmp qword [0x7ff7c01d69b8], r13
mov qword [rsp + 0x100], rsi
mov qword [rsp + 0x108], rdi
je 0x7ff7c00d9faf
movups xmm0, xmmword [0x7ff7c01d69b0]
movaps xmmword [rbp - 0x39], xmm0
jmp 0x7ff7c00d9ffe
mov ecx, 0x7ffe0030
mov qword [rbp - 0x31], 0x7ffe0030
call sym.ProcessHacker.exe_PhCountStringZ
add rax, rax
mov qword [rbp - 0x39], rax
cmp word [rax + 0x7ffe002e], 0x5c
jne 0x7ff7c00d9fde
add rax, 0xfffffffffffffffe
mov qword [rbp - 0x39], rax
movaps xmm0, xmmword [rbp - 0x39]
movdqa xmmword [rbp - 0x39], xmm0
mov qword [0x7ff7c01d69b0], rax
lock or dword [rsp], r13d
mov qword [0x7ff7c01d69b8], 0x7ffe0030
mov rdi, qword [rbp - 0x39]
mov rdx, qword [0x7ff7c01d3b58]
lea rbx, [rdi + 0x26]
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov rdx, qword [rbp - 0x31]
mov r8, rdi
mov rsi, rax
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov word [rcx + rbx], r13w
mov rcx, qword [rax + 8]
call fcn.7ff7c0125120
mov rcx, qword [rsi + 8]
lea r8, [0x7ff7c0188f08]
movups xmm0, xmmword [0x7ff7c0188f18]
mov qword [rsp + 0x28], r13
xor r9d, r9d
movups xmmword [rdi + rcx], xmm0
movups xmm1, xmmword [0x7ff7c0188f28]
movups xmmword [rdi + rcx + 0x10], xmm1
mov eax, dword [0x7ff7c0188f38]
mov dword [rdi + rcx + 0x20], eax
movzx eax, word [0x7ff7c0188f3c]
mov word [rdi + rcx + 0x24], ax
lea rax, [0x7ff7c01d6af8]
mov rdx, qword [rsi + 8]
mov rcx, r14
mov qword [rsp + 0x20], rax
call sym.ProcessHacker.exe_PhGetProcedureAddressRemote
mov ebx, eax
lea rcx, [rsi - 0x10]
mov edx, 0xffffffff
lock xadd dword [rcx + 8], edx
mov rdi, qword [rsp + 0x108]
mov rsi, qword [rsp + 0x100]
cmp edx, 1
jne 0x7ff7c00da0bb
call fcn.7ff7c00c6290
nop dword [rax + rax]
test ebx, ebx
js 0x7ff7c00da17c
mov rax, qword [0x7ff7c01d6af8]
jmp 0x7ff7c00da105
test ecx, ecx
jns 0x7ff7c00da0dc
mov eax, ecx
jmp 0x7ff7c00da17e
lea rcx, [0x7ff7c01759e0]
call fcn.7ff7c00c47c0
test rax, rax
jne 0x7ff7c00da0f2
mov rax, r13
jmp 0x7ff7c00da105
xor r8d, r8d
lea rdx, [0x7ff7c0188f08]
mov rcx, rax
call fcn.7ff7c00c4b60
mov qword [rsp + 0x48], r13
lea rcx, [rbp - 0x49]
mov qword [rsp + 0x40], rcx
xor r9d, r9d
mov qword [rsp + 0x38], r15
xor r8d, r8d
mov qword [rsp + 0x30], rax
xor edx, edx
mov qword [rsp + 0x28], r13
mov rcx, r14
mov qword [rsp + 0x20], r13
call qword [sym.imp.ntdll.dll_RtlCreateUserThread]
test eax, eax
js 0x7ff7c00da17e
mov rcx, qword [rbp - 0x49]
mov r8, r12
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov ebx, eax
test eax, eax
jne 0x7ff7c00da172
mov rcx, qword [rbp - 0x49]
lea r9d, [rax + 0x30]
lea r8, [rbp + 7]
mov qword [rsp + 0x20], r13
xor edx, edx
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
test eax, eax
mov ebx, eax
cmovns ebx, dword [rbp + 7]
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
mov rbx, qword [rsp + 0x110]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rbp
ret