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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xa0
xor r14d, r14d
mov r13, r8
mov r12, rdx
lea r8, [rax + 0x20]
lea r9d, [r14 + 8]
lea edx, [r14 + 0x1a]
mov rsi, rcx
xor bpl, bpl
mov qword [rax - 0x78], r14
mov qword [rsp + 0x20], r14
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x14001897b
cmp qword [rsp + 0xe8], r14
setne bpl
test bpl, bpl
je 0x14001897b
lea rax, [rsp + 0x70]
lea r9, [rsp + 0x68]
mov r8b, 1
xor edx, edx
mov rcx, r12
mov qword [rsp + 0x20], rax
call sym.ProcessHacker.exe_PhMapViewOfEntireFile
mov edi, eax
test eax, eax
js 0x140018a9d
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x68]
call sym.ProcessHacker.exe_PhInitializeMappedImage
mov rdx, qword [rsp + 0x68]
mov edi, eax
test eax, eax
jns 0x1400188e5
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
jmp 0x140018a9d
mov eax, 0x10b
cmp word [rsp + 0x90], ax
sete dil
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
test dil, dil
je 0x14001897b
mov rbx, qword [0x1400d63b0]
test rbx, rbx
jne 0x14001899b
lea rdx, str.SysWow64kernel32.dll
mov ecx, 0x7ffe0030
call sym.ProcessHacker.exe_PhConcatStrings2
lea r8, [0x1400ab540]
xor r9d, r9d
lea rdx, [rax + 0x10]
mov rdi, rax
lea rax, [0x1400d63b0]
mov rcx, rsi
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
call sym.ProcessHacker.exe_PhGetProcedureAddressRemote
lea rcx, [rdi - 0x20]
or edx, 0xffffffff
mov ebx, eax
lock xadd dword [rcx], edx
add edx, 0xffffffff
jne 0x140018967
call fcn.14001fcd0
test ebx, ebx
jns 0x140018972
mov eax, ebx
jmp 0x140018a9f
mov rbx, qword [0x1400d63b0]
jmp 0x14001899b
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1400ab540]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r12
repne scasw ax, word [rdi]
mov eax, 0xffffffff
lea r9, [rsp + 0x60]
not rcx
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x28], 4
dec rcx
mov dword [rsp + 0x20], 0x1000
add cx, cx
movzx edi, cx
mov rcx, rsi
add rdi, 2
neg bpl
sbb r8, r8
mov qword [rsp + 0x60], rdi
and r8, rax
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
js 0x140018a9f
mov rdx, qword [rsp + 0x50]
mov r9, rdi
mov r8, r12
mov rcx, rsi
mov qword [rsp + 0x20], r14
call sym.ProcessHacker.exe_PhWriteVirtualMemory
mov edi, eax
test eax, eax
js 0x140018a7f
xor edx, edx
cmp dword [0x1400d8fc0], 0x3c
mov rcx, rsi
jb 0x140018abb
mov qword [rsp + 0x48], r14
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call qword [sym.imp.ntdll.dll_RtlCreateUserThread]
mov edi, eax
test eax, eax
js 0x140018a7f
mov rax, qword [rsp + 0x58]
mov r8, r13
xor edx, edx
mov rcx, rax
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov rcx, qword [rsp + 0x58]
mov edi, eax
call qword [sym.imp.ntdll.dll_NtClose]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x50]
mov r9d, 0x8000
mov rcx, rsi
mov qword [rsp + 0x60], r14
call qword [sym.imp.ntdll.dll_NtFreeVirtualMemory]
mov eax, edi
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], r14
mov r9, rbx
xor r8d, r8d
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x140018a64
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x140018afd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140018a7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0xc0070000
jmp 0x140018a7f