Function at 0x1400b9cd0
Capabilities:
Create thread
Get windows directory from kuser_shared_data
Inject apc
Inject thread
Resume thread

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
push rbp
push rbx
push rdi
push r13
lea rbp, [rax - 0x5f]
sub rsp, 0xa8
mov qword [rax + 8], rsi
mov rdi, rcx
xor ecx, ecx
mov qword [rax - 0x28], r12
mov qword [rax - 0x38], r15
mov rsi, r8
mov rax, qword [rdx]
mov r12, rdx
add rax, 2
mov qword [rbp - 0x19], rcx
mov qword [rbp - 0x11], rcx
mov r15d, ecx
mov qword [rbp - 9], rcx
mov r13d, ecx
mov qword [rbp - 1], rcx
mov qword [rbp + 7], rcx
mov qword [rbp + 0x77], rcx
mov qword [rbp + 0xf], rax
test r8, r8
je 0x1400b9d37
mov rax, qword [r8]
add rax, 2
mov qword [rbp - 9], rax
mov r9d, 8
mov qword [rsp + 0x20], rcx
lea r8, [rbp + 0x17]
mov qword [rsp + 0x98], r14
mov rcx, rdi
lea edx, [r9 + 0x12]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
mov ebx, eax
test eax, eax
js 0x1400b9d6b
cmp qword [rbp + 0x17], r13
setne r14b
jmp 0x1400b9d70
movzx r14d, byte [rbp + 0x6f]
test eax, eax
js 0x1400b9fad
mov ecx, 0x7ffe0030
test r14b, r14b
je 0x1400b9d97
lea rdx, str.SysWow64_ntdll.dll
call sym.ProcessHacker.exe_PhConcatStrings2
lea rdx, str.SysWow64kernel32.dll
jmp 0x1400b9daa
lea rdx, str.System32_ntdll.dll
call sym.ProcessHacker.exe_PhConcatStrings2
lea rdx, str.System32kernel32.dll
mov ecx, 0x7ffe0030
mov r15, rax
call sym.ProcessHacker.exe_PhConcatStrings2
mov rdx, qword [r15 + 8]
lea r8, str.RtlExitUserThread
mov r13, rax
mov qword [rsp + 0x28], 0
lea rax, [rbp - 1]
xor r9d, r9d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call sym.ProcessHacker.exe_PhGetProcedureAddressRemote
mov ebx, eax
test eax, eax
js 0x1400b9fad
mov rdx, qword [r13 + 8]
lea rax, [rbp + 7]
mov qword [rsp + 0x28], 0
lea r8, str.SetEnvironmentVariableW
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov rcx, rdi
call sym.ProcessHacker.exe_PhGetProcedureAddressRemote
mov ebx, eax
test eax, eax
js 0x1400b9fad
mov dword [rsp + 0x28], 4
lea r9, [rbp + 0xf]
xor r8d, r8d
mov dword [rsp + 0x20], 0x1000
lea rdx, [rbp - 0x19]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
mov ebx, eax
test eax, eax
js 0x1400b9fad
mov r9, qword [r12]
mov rcx, rdi
mov r8, qword [r12 + 8]
mov rdx, qword [rbp - 0x19]
mov qword [rsp + 0x20], 0
call qword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
mov ebx, eax
test eax, eax
js 0x1400b9fad
test rsi, rsi
je 0x1400b9ed0
mov dword [rsp + 0x28], 4
lea r9, [rbp - 9]
xor r8d, r8d
mov dword [rsp + 0x20], 0x1000
lea rdx, [rbp - 0x11]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
xor r12d, r12d
mov ebx, eax
test eax, eax
js 0x1400b9fb0
mov r9, qword [rsi]
mov rcx, rdi
mov r8, qword [rsi + 8]
mov rdx, qword [rbp - 0x11]
mov qword [rsp + 0x20], r12
call qword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
mov ebx, eax
test eax, eax
js 0x1400b9fb0
jmp 0x1400b9ed3
xor r12d, r12d
xor edx, edx
mov rcx, rdi
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3c
jb 0x1400b9f42
mov qword [rsp + 0x48], r12
lea rax, [rbp + 0x77]
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov rax, qword [rbp - 1]
mov r8b, 1
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.ntdll.dll_RtlCreateUserThread]
mov ebx, eax
test eax, eax
js 0x1400b9fb0
mov rax, qword [rbp + 0x77]
mov r9, qword [rbp - 0x11]
mov rcx, rax
mov r8, qword [rbp - 0x19]
mov rdx, qword [rbp + 7]
mov qword [rsp + 0x20], r12
test r14b, r14b
je 0x1400b9f81
call qword [sym.imp.ntdll.dll_RtlQueueApcWow64Thread]
jmp 0x1400b9f87
mov r9, qword [rbp - 1]
xor r8d, r8d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rbp + 0x77], rax
test rax, rax
jne 0x1400b9f21
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x1400b9fb0
movzx ebx, ax
or ebx, 0xc0070000
jmp 0x1400b9fb0
call qword [sym.imp.ntdll.dll_NtQueueApcThread]
mov ebx, eax
test eax, eax
js 0x1400b9fb0
mov rcx, qword [rbp + 0x77]
xor edx, edx
call qword [sym.imp.ntdll.dll_NtResumeThread]
mov r8, qword [rbp + 0x7f]
xor edx, edx
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov ebx, eax
jmp 0x1400b9fb0
xor r12d, r12d
mov rcx, qword [rbp + 0x77]
mov r14, qword [rsp + 0x98]
mov rsi, qword [rsp + 0xd0]
test rcx, rcx
je 0x1400b9fcf
call qword [sym.imp.ntdll.dll_NtClose]
cmp qword [rbp - 0x19], 0
je 0x1400b9ff1
mov r9d, 0x8000
mov qword [rbp + 0xf], r12
lea r8, [rbp + 0xf]
mov rcx, rdi
lea rdx, [rbp - 0x19]
call qword [sym.imp.ntdll.dll_NtFreeVirtualMemory]
cmp qword [rbp - 0x11], 0
je 0x1400ba013
mov r9d, 0x8000
mov qword [rbp - 9], r12
lea r8, [rbp - 9]
mov rcx, rdi
lea rdx, [rbp - 0x11]
call qword [sym.imp.ntdll.dll_NtFreeVirtualMemory]
mov r12, qword [rsp + 0xa0]
or edi, 0xffffffff
test r15, r15
je 0x1400ba038
lea rcx, [r15 - 0x10]
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400ba038
call fcn.1400ae900
mov r15, qword [rsp + 0x90]
test r13, r13
je 0x1400ba058
lea rcx, [r13 - 0x10]
lock xadd dword [rcx + 8], edi
cmp edi, 1
jne 0x1400ba058
call fcn.1400ae900
mov eax, ebx
add rsp, 0xa8
pop r13
pop rdi
pop rbx
pop rbp
ret