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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push r12
push r14
push r15
sub rsp, 0xc0
xor r12d, r12d
mov r15, r8
mov rbp, rdx
mov qword [rsp + 0x20], r12
lea r8, [rsp + 0x108]
mov rsi, rcx
xor r14b, r14b
xor bl, bl
lea r9d, [r12 + 8]
lea edx, [r12 + 0x1a]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x14001e992
cmp qword [rsp + 0x108], r12
setne r14b
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3e
mov qword [rsp + 0xf0], rdi
jae 0x14001ea9c
lea r8, [rsp + 0x58]
mov dword [rsp + 0x58], 0xc0000135
lea rdx, [0x140020890]
mov qword [rsp + 0x60], rbp
mov rcx, rsi
mov dword [rsp + 0x68], 1
call fcn.140020480
mov edi, dword [rsp + 0x58]
test eax, eax
cmovs edi, eax
test r14b, r14b
je 0x14001ea1d
cmp edi, 0xc0000135
jne 0x14001ea1d
lea r8, [rsp + 0x70]
mov dword [rsp + 0x70], edi
lea rdx, [0x140020e50]
mov qword [rsp + 0x78], rbp
mov rcx, rsi
mov dword [rsp + 0x80], 1
call fcn.140020920
mov edi, dword [rsp + 0x70]
test eax, eax
cmovs edi, eax
test edi, edi
js 0x14001ea21
mov bl, 1
test edi, edi
jns 0x14001ea28
mov eax, edi
jmp 0x14001eb9d
test bl, bl
je 0x14001eaa3
mov rax, qword [0x14015a2b8]
test rax, rax
jne 0x14001eaca
lea rdx, str.SysWow64_ntdll.dll
mov ecx, 0x7ffe0030
call sym.ProcessHacker.exe_PhConcatStrings2
mov rbx, rax
mov qword [rsp + 0x28], r12
lea rax, [0x14015a2b8]
xor r9d, r9d
lea r8, [0x140122d40]
mov qword [rsp + 0x20], rax
mov rcx, rsi
mov rdx, qword [rbx + 8]
call sym.ProcessHacker.exe_PhGetProcedureAddressRemote
mov edi, eax
lea rcx, [rbx - 0x10]
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14001ea8f
call fcn.1400258b0
test edi, edi
js 0x14001ea21
mov rax, qword [0x14015a2b8]
jmp 0x14001eaca
mov edi, dword [rsp + 0x108]
lea rcx, [0x14010a240]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001eac7
lea rdx, [0x140122d40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x14001eaca
mov rax, r12
xor edx, edx
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3c
jb 0x14001eb0b
mov qword [rsp + 0x48], r12
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x40], rcx
xor r9d, r9d
mov qword [rsp + 0x38], rbp
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov rcx, rsi
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.ntdll.dll_RtlCreateUserThread]
mov edi, eax
jmp 0x14001eb48
mov qword [rsp + 0x30], r12
mov r9, rax
mov dword [rsp + 0x28], r12d
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x14001eb48
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x14001eb48
movzx edi, ax
or edi, 0xc0070000
test edi, edi
js 0x14001ea21
mov rcx, qword [rsp + 0x50]
mov r8, r15
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov ebx, eax
test eax, eax
jne 0x14001eb90
mov rcx, qword [rsp + 0x50]
lea r9d, [rax + 0x30]
lea r8, [rsp + 0x88]
mov qword [rsp + 0x20], r12
xor edx, edx
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
test eax, eax
mov ebx, eax
cmovns ebx, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
mov rdi, qword [rsp + 0xf0]
mov rbx, qword [rsp + 0xf8]
add rsp, 0xc0
pop r15
pop r14
pop r12
pop rsi
pop rbp
ret