Function at 0x1400e6050
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
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push r12
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xc8
mov qword [rax - 0x30], rdi
mov rdi, rcx
mov qword [rax - 0x38], r13
mov qword [rax - 0x40], r15
xor r15d, r15d
mov rax, qword [rdx]
mov r13d, r15d
add rax, 2
mov qword [rbp - 0x29], r15
mov qword [rbp - 0x21], r15
mov r14d, r15d
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 0x31], r15
mov qword [rbp - 1], rax
test r8, r8
je 0x1400e60bf
mov rax, qword [r8]
add rax, 2
mov qword [rbp - 0x19], rax
mov r9d, 8
mov qword [rsp + 0x20], r15
lea r8, [rbp + 7]
mov edx, 0x1a
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
mov ebx, eax
mov r12, 0xffffffffffffffff
test eax, eax
js 0x1400e6812
cmp qword [rbp + 7], r13
movzx r9d, byte [0x14018dbaa]
setne r8b
mov qword [rsp + 0xc0], rsi
mov esi, 0x7ffe0030
test r8b, r8b
je 0x1400e6395
cmp r9b, 1
jb 0x1400e616c
xorps xmm0, xmm0
mov byte [rbp - 0x39], r8b
pcmpeqw xmm0, xmmword [rsi]
mov ecx, esi
pmovmskb eax, xmm0
xorps xmm1, xmm1
bsf edx, eax
mov dword [rbp - 0x35], edx
jne 0x1400e6158
mov byte [rbp - 0x39], r8b
nop word [rax + rax]
add rcx, 0x10
movdqa xmm0, xmm1
pcmpeqw xmm0, xmmword [rcx]
pmovmskb eax, xmm0
bsf edx, eax
mov dword [rbp - 0x35], edx
je 0x1400e6140
add rcx, 0xffffffff8001ffd0
mov eax, edx
sar rcx, 1
shr rax, 1
add rcx, rax
jmp 0x1400e617e
mov rcx, r12
nop
inc rcx
cmp word [rsi + rcx*2], r13w
jne 0x1400e6170
mov byte [rbp - 0x39], r8b
lea r14, [rcx + rcx]
lea rdx, str.SysWow64_ntdll.dll
cmp r9b, 1
jb 0x1400e6208
mov rdi, rdx
mov rcx, rdx
and rdi, 0xfffffffffffffff1
xorps xmm1, xmm1
and ecx, 0xf
je 0x1400e61c1
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rdi]
pmovmskb eax, xmm0
sar eax, cl
bsf ecx, eax
mov dword [rbp - 0x35], ecx
je 0x1400e61bd
mov edi, ecx
shr rdi, 1
jmp 0x1400e620d
add rdi, 0x10
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rdi]
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rbp - 0x35], ecx
jne 0x1400e61f8
nop dword [rax]
nop dword [rax + rax]
add rdi, 0x10
movdqa xmm0, xmm1
pcmpeqw xmm0, xmmword [rdi]
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rbp - 0x35], ecx
je 0x1400e61e0
sub rdi, rdx
mov eax, ecx
sar rdi, 1
shr rax, 1
add rdi, rax
jmp 0x1400e620d
mov edi, 0x13
mov rdx, qword [0x140191180]
add rdi, rdi
lea rbx, [rdi + r14]
lea rcx, [rbx + 0x12]
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhCreateObject
mov r8, r14
mov rdx, rsi
mov r13, rax
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov word [rbx + rcx], r15w
mov rcx, qword [rax + 8]
call fcn.1401317c0
mov rcx, qword [r13 + 8]
lea rdx, str.SysWow64_ntdll.dll
add rcx, r14
mov r8, rdi
call fcn.1401317c0
movzx r8d, byte [0x14018dbaa]
cmp r8b, 1
jb 0x1400e62bc
xorps xmm0, xmm0
mov rcx, rsi
pcmpeqw xmm0, xmmword [rsi]
xorps xmm1, xmm1
pmovmskb eax, xmm0
bsf edx, eax
mov dword [rbp - 0x35], edx
jne 0x1400e62a8
nop dword [rax]
nop word [rax + rax]
add rcx, 0x10
movdqa xmm0, xmm1
pcmpeqw xmm0, xmmword [rcx]
pmovmskb eax, xmm0
bsf edx, eax
mov dword [rbp - 0x35], edx
je 0x1400e6290
add rcx, 0xffffffff8001ffd0
mov eax, edx
sar rcx, 1
shr rax, 1
add rcx, rax
jmp 0x1400e62ca
mov rcx, r12
nop
inc rcx
cmp word [rsi + rcx*2], r15w
jne 0x1400e62c0
lea r15, [rcx + rcx]
lea rdx, str.SysWow64kernel32.dll
cmp r8b, 1
jb 0x1400e6348
mov rdi, rdx
mov rcx, rdx
and rdi, 0xfffffffffffffff1
xorps xmm1, xmm1
and ecx, 0xf
je 0x1400e630d
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rdi]
pmovmskb eax, xmm0
sar eax, cl
bsf ecx, eax
mov dword [rbp - 0x35], ecx
je 0x1400e6309
mov edi, ecx
shr rdi, 1
jmp 0x1400e634d
add rdi, 0x10
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rdi]
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rbp - 0x35], ecx
jne 0x1400e6338
add rdi, 0x10
movdqa xmm0, xmm1
pcmpeqw xmm0, xmmword [rdi]
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rbp - 0x35], ecx
je 0x1400e6320
sub rdi, rdx
mov eax, ecx
sar rdi, 1
shr rax, 1
add rdi, rax
jmp 0x1400e634d
mov edi, 0x16
mov rdx, qword [0x140191180]
add rdi, rdi
lea rbx, [rdi + r15]
lea rcx, [rbx + 0x12]
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhCreateObject
xor r8d, r8d
mov rdx, rsi
mov r14, rax
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov word [rbx + rcx], r8w
mov r8, r15
mov rcx, qword [rax + 8]
call fcn.1401317c0
lea rdx, str.SysWow64kernel32.dll
jmp 0x1400e6610
cmp r9b, 1
jb 0x1400e63ec
xorps xmm0, xmm0
mov byte [rbp - 0x39], r8b
pcmpeqw xmm0, xmmword [rsi]
mov rcx, rsi
pmovmskb eax, xmm0
xorps xmm1, xmm1
bsf edx, eax
mov dword [rbp - 0x35], edx
jne 0x1400e63d8
mov byte [rbp - 0x39], r8b
nop dword [rax]
add rcx, 0x10
movdqa xmm0, xmm1
pcmpeqw xmm0, xmmword [rcx]
pmovmskb eax, xmm0
bsf edx, eax
mov dword [rbp - 0x35], edx
je 0x1400e63c0
add rcx, 0xffffffff8001ffd0
mov eax, edx
sar rcx, 1
shr rax, 1
add rcx, rax
jmp 0x1400e63fe
mov rcx, r12
nop
inc rcx
cmp word [rsi + rcx*2], r13w
jne 0x1400e63f0
mov byte [rbp - 0x39], r8b
lea r14, [rcx + rcx]
lea rdx, str.System32_ntdll.dll
cmp r9b, 1
jb 0x1400e6488
mov rdi, rdx
mov rcx, rdx
and rdi, 0xfffffffffffffff1
xorps xmm1, xmm1
and ecx, 0xf
je 0x1400e6441
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rdi]
pmovmskb eax, xmm0
sar eax, cl
bsf ecx, eax
mov dword [rbp - 0x35], ecx
je 0x1400e643d
mov edi, ecx
shr rdi, 1
jmp 0x1400e648d
add rdi, 0x10
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rdi]
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rbp - 0x35], ecx
jne 0x1400e6478
nop dword [rax]
nop dword [rax + rax]
add rdi, 0x10
movdqa xmm0, xmm1
pcmpeqw xmm0, xmmword [rdi]
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rbp - 0x35], ecx
je 0x1400e6460
sub rdi, rdx
mov eax, ecx
sar rdi, 1
shr rax, 1
add rdi, rax
jmp 0x1400e648d
mov edi, 0x13
mov rdx, qword [0x140191180]
add rdi, rdi
lea rbx, [rdi + r14]
lea rcx, [rbx + 0x12]
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhCreateObject
mov r13, rax
mov r8, r14
mov rdx, rsi
mov qword [rax], rbx
add rax, 0x10
mov qword [r13 + 8], rax
mov word [rbx + rax], r15w
mov rcx, qword [r13 + 8]
call fcn.1401317c0
mov rcx, qword [r13 + 8]
lea rdx, str.System32_ntdll.dll
add rcx, r14
mov r8, rdi
call fcn.1401317c0
movzx r8d, byte [0x14018dbaa]
cmp r8b, 1
jb 0x1400e653c
xorps xmm0, xmm0
mov rcx, rsi
pcmpeqw xmm0, xmmword [rsi]
xorps xmm1, xmm1
pmovmskb eax, xmm0
bsf edx, eax
mov dword [rbp - 0x35], edx
jne 0x1400e6528
nop dword [rax]
nop word [rax + rax]
add rcx, 0x10
movdqa xmm0, xmm1
pcmpeqw xmm0, xmmword [rcx]
pmovmskb eax, xmm0
bsf edx, eax
mov dword [rbp - 0x35], edx
je 0x1400e6510
add rcx, 0xffffffff8001ffd0
mov eax, edx
sar rcx, 1
shr rax, 1
add rcx, rax
jmp 0x1400e654a
mov rcx, r12
nop
inc rcx
cmp word [rsi + rcx*2], r15w
jne 0x1400e6540
lea r15, [rcx + rcx]
lea rdx, str.System32kernel32.dll
cmp r8b, 1
jb 0x1400e65c8
mov rdi, rdx
mov rcx, rdx
and rdi, 0xfffffffffffffff1
xorps xmm1, xmm1
and ecx, 0xf
je 0x1400e658d
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rdi]
pmovmskb eax, xmm0
sar eax, cl
bsf ecx, eax
mov dword [rbp - 0x35], ecx
je 0x1400e6589
mov edi, ecx
shr rdi, 1
jmp 0x1400e65cd
add rdi, 0x10
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rdi]
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rbp - 0x35], ecx
jne 0x1400e65b8
add rdi, 0x10
movdqa xmm0, xmm1
pcmpeqw xmm0, xmmword [rdi]
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rbp - 0x35], ecx
je 0x1400e65a0
sub rdi, rdx
mov eax, ecx
sar rdi, 1
shr rax, 1
add rdi, rax
jmp 0x1400e65cd
mov edi, 0x16
mov rdx, qword [0x140191180]
add rdi, rdi
lea rbx, [rdi + r15]
lea rcx, [rbx + 0x12]
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhCreateObject
mov r14, rax
xor r8d, r8d
mov rdx, rsi
mov qword [rax], rbx
add rax, 0x10
mov qword [r14 + 8], rax
mov word [rbx + rax], r8w
mov r8, r15
mov rcx, qword [r14 + 8]
call fcn.1401317c0
lea rdx, str.System32kernel32.dll
mov rcx, qword [r14 + 8]
mov r8, rdi
add rcx, r15
call fcn.1401317c0
mov rdi, qword [rbp + 0x67]
lea rax, [rbp - 0x11]
mov rdx, qword [r13 + 8]
lea r8, str.RtlExitUserThread
xor r15d, r15d
mov rcx, rdi
mov qword [rsp + 0x28], r15
xor r9d, r9d
mov qword [rsp + 0x20], rax
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhGetProcedureAddressRemote
mov ebx, eax
test eax, eax
js 0x1400e680a
mov rdx, qword [r14 + 8]
lea rax, [rbp - 9]
mov qword [rsp + 0x28], r15
lea r8, str.SetEnvironmentVariableW
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov rcx, rdi
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhGetProcedureAddressRemote
mov ebx, eax
test eax, eax
js 0x1400e680a
mov dword [rsp + 0x28], 4
lea r9, [rbp - 1]
xor r8d, r8d
mov dword [rsp + 0x20], 0x1000
lea rdx, [rbp - 0x29]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
mov ebx, eax
test eax, eax
js 0x1400e680a
mov r8, qword [rbp + 0x6f]
mov rcx, rdi
mov rdx, qword [rbp - 0x29]
mov qword [rsp + 0x20], r15
mov r9, qword [r8]
mov r8, qword [r8 + 8]
call qword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
mov ebx, eax
test eax, eax
js 0x1400e680a
mov rsi, qword [rbp + 0x77]
test rsi, rsi
je 0x1400e6731
mov dword [rsp + 0x28], 4
lea r9, [rbp - 0x19]
xor r8d, r8d
mov dword [rsp + 0x20], 0x1000
lea rdx, [rbp - 0x21]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
mov ebx, eax
test eax, eax
js 0x1400e680a
mov r9, qword [rsi]
mov rcx, rdi
mov r8, qword [rsi + 8]
mov rdx, qword [rbp - 0x21]
mov qword [rsp + 0x20], r15
call qword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
mov ebx, eax
test eax, eax
js 0x1400e680a
xor edx, edx
mov rcx, rdi
cmp dword [sym.4yUlCM3HuVsHzW5CaCX.exe_WindowsVersion], 0x3c
jb 0x1400e67a1
mov qword [rsp + 0x48], r15
lea rax, [rbp - 0x31]
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov rax, qword [rbp - 0x11]
mov r8b, 1
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
call qword [sym.imp.ntdll.dll_RtlCreateUserThread]
mov ebx, eax
test eax, eax
js 0x1400e680a
mov rax, qword [rbp - 0x31]
mov rcx, rax
mov r9, qword [rbp - 0x21]
mov r8, qword [rbp - 0x29]
mov rdx, qword [rbp - 9]
mov qword [rsp + 0x20], r15
cmp byte [rbp - 0x39], r15b
je 0x1400e67e0
call qword [sym.imp.ntdll.dll_RtlQueueApcWow64Thread]
jmp 0x1400e67e6
mov r9, qword [rbp - 0x11]
xor r8d, r8d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rbp - 0x31], rax
test rax, rax
jne 0x1400e677f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x1400e680a
movzx ebx, ax
or ebx, 0xc0070000
jmp 0x1400e680a
call qword [sym.imp.ntdll.dll_NtQueueApcThread]
mov ebx, eax
test eax, eax
js 0x1400e680a
mov rcx, qword [rbp - 0x31]
xor edx, edx
call qword [sym.imp.ntdll.dll_NtResumeThread]
mov r8, qword [rbp + 0x7f]
xor edx, edx
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov ebx, eax
mov rsi, qword [rsp + 0xc0]
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x1400e6821
call qword [sym.imp.ntdll.dll_NtClose]
cmp qword [rbp - 0x29], 0
je 0x1400e6843
mov r9d, 0x8000
mov qword [rbp - 1], r15
lea r8, [rbp - 1]
mov rcx, rdi
lea rdx, [rbp - 0x29]
call qword [sym.imp.ntdll.dll_NtFreeVirtualMemory]
cmp qword [rbp - 0x21], 0
je 0x1400e6865
mov r9d, 0x8000
mov qword [rbp - 0x19], r15
lea r8, [rbp - 0x19]
mov rcx, rdi
lea rdx, [rbp - 0x21]
call qword [sym.imp.ntdll.dll_NtFreeVirtualMemory]
mov r15, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xb8]
test r13, r13
je 0x1400e6890
lea rcx, [r13 - 0x10]
mov eax, r12d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400e6890
call fcn.1400d9400
mov r13, qword [rsp + 0xb0]
test r14, r14
je 0x1400e68b2
lea rcx, [r14 - 0x10]
lock xadd dword [rcx + 8], r12d
cmp r12d, 1
jne 0x1400e68b2
call fcn.1400d9400
mov eax, ebx
add rsp, 0xc8
pop r14
pop r12
pop rbx
pop rbp
ret