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

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x10], rdx
push rbp
push rbx
push rdi
push r13
lea rbp, [rax - 0x5f]
sub rsp, 0xb8
xor edi, edi
mov qword [rax - 0x28], r12
mov qword [rax - 0x30], r14
mov r12d, edi
mov qword [rax - 0x38], r15
mov r14, rcx
mov rax, qword [rdx]
mov r15, r8
add rax, 2
mov qword [rbp - 0x11], rdi
mov qword [rbp - 9], rdi
mov r13d, edi
mov qword [rbp - 1], rdi
mov qword [rbp + 0x17], rdi
mov qword [rbp + 7], rdi
mov qword [rbp - 0x19], rdi
mov qword [rbp + 0xf], rax
test r8, r8
je 0x14011a208
mov rax, qword [r8]
add rax, 2
mov qword [rbp - 1], rax
mov r9d, 8
mov qword [rsp + 0x20], rdi
lea r8, [rbp + 0x1f]
lea edx, [r9 + 0x12]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
mov ebx, eax
test eax, eax
js 0x14011a67e
cmp qword [rbp + 0x1f], rdi
mov qword [rsp + 0xe0], rsi
setne al
mov byte [rbp + 0x77], al
test al, al
je 0x14011a389
cmp qword [0x1402169b8], rdi
je 0x14011a262
movups xmm0, xmmword [0x1402169b0]
movaps xmmword ds:[rbp - 0x29], xmm0
jmp 0x14011a2ac
mov ecx, 0x7ffe0030
mov qword [rbp - 0x21], 0x7ffe0030
call sym.ProcessHacker.exe_PhCountStringZ
add rax, rax
mov qword [rbp - 0x29], rax
cmp word [rax + 0x7ffe002e], 0x5c
jne 0x14011a28d
add rax, 0xfffffffffffffffe
mov qword [rbp - 0x29], rax
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
mov qword [0x1402169b0], rax
lock or dword [rsp], edi
mov qword [0x1402169b8], 0x7ffe0030
mov rsi, qword ds:[rbp - 0x29]
mov rdx, qword [0x140213b58]
lea rbx, [rsi + 0x26]
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov rdx, qword [rbp - 0x21]
mov r8, rsi
mov r12, rax
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov word [rcx + rbx], di
mov rcx, qword [rax + 8]
call fcn.140165120
mov rcx, qword [r12 + 8]
lea rbx, [rsi + 0x2c]
movups xmm0, xmmword [str.SysWow64_ntdll.dll]
movups xmmword [rcx + rsi], xmm0
movups xmm1, xmmword [0x1401c8f28]
movups xmmword [rcx + rsi + 0x10], xmm1
mov eax, dword [0x1401c8f38]
mov dword [rcx + rsi + 0x20], eax
movzx eax, word [0x1401c8f3c]
mov word [rcx + rsi + 0x24], ax
lea rcx, [rbx + 0x12]
mov rdx, qword [0x140213b58]
call sym.ProcessHacker.exe_PhCreateObject
xor edx, edx
mov r8, rsi
mov r13, rax
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov word [rcx + rbx], dx
mov rdx, qword [rbp - 0x21]
mov rcx, qword [rax + 8]
call fcn.140165120
movups xmm0, xmmword [str.SysWow64kernel32.dll]
mov rcx, qword [r13 + 8]
movups xmmword [rcx + rsi], xmm0
movups xmm1, xmmword [0x1401c8ee8]
movups xmmword [rcx + rsi + 0x10], xmm1
movsd xmm0, qword [0x1401c8ef8]
movsd qword [rcx + rsi + 0x20], xmm0
mov eax, dword [0x1401c8f00]
mov dword [rcx + rsi + 0x28], eax
jmp 0x14011a4c4
cmp qword [0x1402169b8], rdi
je 0x14011a39f
movups xmm0, xmmword [0x1402169b0]
movaps xmmword [rbp - 0x29], xmm0
jmp 0x14011a3e9
mov ecx, 0x7ffe0030
mov qword [rbp - 0x21], 0x7ffe0030
call sym.ProcessHacker.exe_PhCountStringZ
add rax, rax
mov qword [rbp - 0x29], rax
cmp word [rax + 0x7ffe002e], 0x5c
jne 0x14011a3ca
add rax, 0xfffffffffffffffe
mov qword [rbp - 0x29], rax
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
mov qword [0x1402169b0], rax
lock or dword [rsp], edi
mov qword [0x1402169b8], 0x7ffe0030
mov rsi, qword ds:[rbp - 0x29]
mov rdx, qword [0x140213b58]
lea rbx, [rsi + 0x26]
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov rdx, qword [rbp - 0x21]
mov r12, rax
mov r8, rsi
mov qword [rax], rbx
add rax, 0x10
mov qword [r12 + 8], rax
mov word [rax + rbx], di
mov rcx, qword [r12 + 8]
call fcn.140165120
mov rcx, qword [r12 + 8]
lea rbx, [rsi + 0x2c]
movups xmm0, xmmword [str.System32_ntdll.dll]
add rcx, rsi
movups xmmword [rcx], xmm0
movups xmm1, xmmword [0x1401bc4d0]
movups xmmword [rcx + 0x10], xmm1
mov eax, dword [0x1401bc4e0]
mov dword [rcx + 0x20], eax
movzx eax, word [0x1401bc4e4]
mov word [rcx + 0x24], ax
lea rcx, [rbx + 0x12]
mov rdx, qword [0x140213b58]
call sym.ProcessHacker.exe_PhCreateObject
mov r13, rax
xor edx, edx
mov r8, rsi
mov qword [rax], rbx
add rax, 0x10
mov qword [r13 + 8], rax
mov word [rax + rbx], dx
mov rdx, qword [rbp - 0x21]
mov rcx, qword [r13 + 8]
call fcn.140165120
mov rcx, qword [r13 + 8]
movups xmm0, xmmword [str.System32kernel32.dll]
add rcx, rsi
movups xmmword [rcx], xmm0
movups xmm1, xmmword [0x1401c8f50]
movups xmmword [rcx + 0x10], xmm1
movsd xmm0, qword [0x1401c8f60]
movsd qword [rcx + 0x20], xmm0
mov eax, dword [0x1401c8f68]
mov dword [rcx + 0x28], eax
mov rdx, qword [r12 + 8]
lea rax, [rbp + 0x17]
mov qword [rsp + 0x28], rdi
lea r8, str.RtlExitUserThread
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov rcx, r14
call sym.ProcessHacker.exe_PhGetProcedureAddressRemote
mov rsi, qword [rsp + 0xe0]
mov ebx, eax
test eax, eax
js 0x14011a67e
mov rdx, qword [r13 + 8]
lea rax, [rbp + 7]
mov qword [rsp + 0x28], rdi
lea r8, str.SetEnvironmentVariableW
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov rcx, r14
call sym.ProcessHacker.exe_PhGetProcedureAddressRemote
mov ebx, eax
test eax, eax
js 0x14011a67e
mov dword [rsp + 0x28], 4
lea r9, [rbp + 0xf]
xor r8d, r8d
mov dword [rsp + 0x20], 0x1000
lea rdx, [rbp - 0x11]
mov rcx, r14
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
mov ebx, eax
test eax, eax
js 0x14011a67e
mov r8, qword [rbp + 0x6f]
mov rcx, r14
mov rdx, qword [rbp - 0x11]
mov qword [rsp + 0x20], rdi
mov r9, qword [r8]
mov r8, qword [r8 + 8]
call qword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
mov ebx, eax
test eax, eax
js 0x14011a67e
nop
test r15, r15
je 0x14011a5d6
mov dword [rsp + 0x28], 4
lea r9, [rbp - 1]
xor r8d, r8d
mov dword [rsp + 0x20], 0x1000
lea rdx, [rbp - 9]
mov rcx, r14
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
mov ebx, eax
test eax, eax
js 0x14011a67e
mov r9, qword [r15]
mov rcx, r14
mov r8, qword [r15 + 8]
mov rdx, qword [rbp - 9]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
mov ebx, eax
test eax, eax
js 0x14011a67e
mov qword [rsp + 0x48], rdi
lea rax, [rbp - 0x19]
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov rax, qword [rbp + 0x17]
mov r8b, 1
mov qword [rsp + 0x38], rdi
xor edx, edx
mov qword [rsp + 0x30], rax
mov rcx, r14
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ntdll.dll_RtlCreateUserThread]
mov ebx, eax
test eax, eax
js 0x14011a67e
mov rcx, qword [rbp - 0x19]
cmp byte [rbp + 0x77], dil
je 0x14011a636
mov r9, qword [rbp - 9]
mov r8, qword [rbp - 0x11]
mov rdx, qword [rbp + 7]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ntdll.dll_RtlQueueApcWow64Thread]
jmp 0x14011a654
mov rax, qword [rbp - 9]
xor edx, edx
mov r9, qword [rbp - 0x11]
mov r8, qword [rbp + 7]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQueueApcThreadEx]
mov ebx, eax
test eax, eax
js 0x14011a67e
mov rcx, qword [rbp - 0x19]
xor edx, edx
call qword [sym.imp.ntdll.dll_NtAlertResumeThread]
mov ebx, eax
test eax, eax
js 0x14011a67e
mov r8, qword [rbp + 0x7f]
xor edx, edx
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov ebx, eax
mov rcx, qword [rbp - 0x19]
mov r15, qword [rsp + 0xa0]
test rcx, rcx
je 0x14011a695
call qword [sym.imp.ntdll.dll_NtClose]
cmp qword [rbp - 0x11], 0
je 0x14011a6b7
mov r9d, 0x8000
mov qword [rbp + 0xf], rdi
lea r8, [rbp + 0xf]
mov rcx, r14
lea rdx, [rbp - 0x11]
call qword [sym.imp.ntdll.dll_NtFreeVirtualMemory]
cmp qword [rbp - 9], 0
je 0x14011a6d9
mov r9d, 0x8000
mov qword [rbp - 1], rdi
lea r8, [rbp - 1]
mov rcx, r14
lea rdx, [rbp - 9]
call qword [sym.imp.ntdll.dll_NtFreeVirtualMemory]
mov r14, qword [rsp + 0xa8]
mov edi, 0xffffffff
test r12, r12
je 0x14011a705
lea rcx, [r12 - 0x10]
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14011a705
nop dword [rax]
call fcn.140106290
mov r12, qword [rsp + 0xb0]
test r13, r13
je 0x14011a72a
lea rcx, ds:[r13 - 0x10]
lock xadd dword [rcx + 8], edi
cmp edi, 1
jne 0x14011a72a
call fcn.140106290
mov eax, ebx
add rsp, 0xb8
pop r13
pop rdi
pop rbx
pop rbp
ret