Function at 0x14001b6d0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r13
push r14
lea rbp, [rsp - 0xb90]
sub rsp, 0xc90
mov rax, qword [0x14004c010]
xor rax, rsp
mov qword [rbp + 0xb80], rax
lea rax, str.CreateProcessFromService
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x4b]
lea rcx, str.E:gitElevocRpcServer_v2ProcessHelper.cpp
call fcn.14001b4a0
mov r8d, 0x104
lea rdx, [rbp + 0x170]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
test eax, eax
jne 0x14001b75f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.GetModuleFileName_failed_w_err_0x_08lx_n
call fcn.140019960
xor eax, eax
jmp 0x14001bcf1
xor esi, esi
lea r13, str.Found_the_Error_:__d_lasterror___d
nop dword [rax + rax]
mov dword [rbp - 0x80], esi
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x68]
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
test eax, eax
jne 0x14001b7bf
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1a]
lea rcx, str.E:gitElevocRpcServer_v2ProcessHelper.cpp
call fcn.14001b4a0
mov ebx, esi
jmp 0x14001b7f7
mov ebx, esi
mov ecx, esi
mov r8, qword [rbp - 0x68]
mov r9d, dword [rbp - 0x80]
test r9d, r9d
je 0x14001b7ee
mov edx, ecx
lea rax, [rdx + rdx*2]
cmp dword [r8 + rax*8 + 0x10], ebx
je 0x14001b7e6
inc ecx
cmp ecx, r9d
jb 0x14001b7d0
jmp 0x14001b7ee
lea rax, [rdx + rdx*2]
mov ebx, dword [r8 + rax*8]
mov rcx, r8
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
test ebx, ebx
je 0x14001b770
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x80]
mov edx, 0x28
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenProcessToken]
test eax, eax
je 0x14001b85a
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea r8, [0x140040990]
xor edx, edx
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AdjustTokenPrivileges]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x14001b862
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x14001b86d
mov eax, edi
jmp 0x14001bcf1
lea rdx, [rbp - 0x78]
mov ecx, ebx
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x14001b8ad
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x66]
lea rcx, str.E:gitElevocRpcServer_v2ProcessHelper.cpp
call fcn.14001b4a0
xor eax, eax
jmp 0x14001bcf1
mov qword [rbp - 0x70], rsi
mov r8d, 1
mov rdx, qword [rbp - 0x78]
lea rcx, [rbp - 0x70]
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x14001b8da
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
xor eax, eax
jmp 0x14001bcf1
mov dword [rbp - 0x40], 0x68
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
movups xmmword [rbp - 8], xmm0
movups xmmword [rbp + 8], xmm0
movups xmmword [rbp + 0x18], xmm0
xor eax, eax
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rax
lea rax, str.winsta0default
mov qword [rbp - 0x30], rax
mov qword [rbp + 0x30], rsi
mov qword [rbp + 0x40], rsi
mov qword [rbp + 0x48], 7
mov word [rbp + 0x30], si
lea rax, [rbp + 0x170]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], si
jne 0x14001b933
lea rdx, [rbp + 0x170]
lea rcx, [rbp + 0x30]
call fcn.14001aa20
nop
lea rbx, [rbp + 0x30]
mov r14, qword [rbp + 0x30]
cmp qword [rbp + 0x48], 8
cmovae rbx, r14
mov rdi, qword [rbp + 0x40]
test rdi, rdi
je 0x14001ba32
mov r12d, 0x100
mov r8d, r12d
xor edx, edx
lea rcx, [rbp + 0x70]
call fcn.1400387f2
lea rcx, [0x140040950]
lea rdx, [0x140040952]
nop
movzx eax, word [rcx]
cmp ax, r12w
jae 0x14001b9dc
movzx eax, al
mov byte [rbp + rax + 0x70], 1
add rcx, 2
cmp rcx, rdx
jne 0x14001b990
lea rcx, [rdi - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea r8, [rbx + rax*2]
movzx eax, word [r8]
cmp ax, r12w
jae 0x14001b9d1
cmp byte [rbp + rax + 0x70], 0
jne 0x14001ba2a
cmp r8, rbx
je 0x14001ba32
sub r8, 2
jmp 0x14001b9c0
lea rcx, [rdi - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea r8, [rbx + rax*2]
nop dword [rax]
nop word [rax + rax]
mov ecx, 1
lea rax, [0x140040950]
movzx edx, word [r8]
cmp word [rax], dx
je 0x14001ba2a
add rax, 2
sub rcx, 1
jne 0x14001ba10
cmp r8, rbx
je 0x14001ba32
sub r8, 2
jmp 0x14001ba00
sub r8, rbx
sar r8, 1
jmp 0x14001ba39
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], si
cmp rdi, r8
cmovb r8, rdi
lea rdx, [rbp + 0x30]
cmp qword [rbp + 0x48], 8
cmovae rdx, r14
lea rcx, [rsp + 0x60]
call fcn.14001aa20
nop
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
mov rax, rdx
sub rax, rcx
cmp rax, 0x17
jb 0x14001babf
lea rdi, [rcx + 0x17]
mov qword [rsp + 0x70], rdi
lea rbx, [rsp + 0x60]
cmp rdx, 8
cmovae rbx, qword [rsp + 0x60]
lea rcx, [rbx + rcx*2]
mov r8d, 0x2e
lea rdx, [0x140040920]
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], si
lea rax, [rsp + 0x60]
jmp 0x14001bade
mov qword [rsp + 0x20], 0x17
lea r9, [0x140040920]
mov edx, 0x17
lea rcx, [rsp + 0x60]
call fcn.14001b030
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x60], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x14001bb41
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001bb3c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001bb3c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400379c0
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], si
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x380]
call fcn.1400387f2
lea rcx, [rbp + 0x50]
mov rdi, qword [rbp + 0x50]
mov r14, qword [rbp + 0x68]
cmp r14, 8
cmovae rcx, rdi
lea rdx, [rbp + 0x380]
sub rdx, rcx
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x14001bb90
lea rax, [rbp - 0x60]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rsi
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x8000420
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea r8, [rbp + 0x380]
xor edx, edx
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessAsUserW]
mov ebx, eax
mov dword [rsp + 0x28], eax
lea rax, str.CreateProcessAsUser___d
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8b
lea rcx, str.E:gitElevocRpcServer_v2ProcessHelper.cpp
call fcn.14001b4a0
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test ebx, ebx
jne 0x14001bc54
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
mov edx, 0x91
lea rcx, str.E:gitElevocRpcServer_v2ProcessHelper.cpp
call fcn.14001b4a0
jmp 0x14001bc6d
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov esi, 1
cmp r14, 8
jb 0x14001bcac
lea rdx, [r14*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x14001bca3
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001bca3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.1400379c0
nop
mov rdx, qword [rbp + 0x48]
cmp rdx, 8
jb 0x14001bcef
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001bcea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001bcea
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400379c0
mov eax, esi
mov rcx, qword [rbp + 0xb80]
xor rcx, rsp
call fcn.1400379a0
lea r11, [rsp + 0xc90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop rbp
ret