Function at 0x1401865f0
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x1405f98c0]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov rdi, r9
mov rbx, r8
mov rsi, rcx
xor r14d, r14d
mov qword [rbp - 0x80], r14
mov rcx, qword [rdx + 0x10]
movabs rax, 0x7ffffffffffffffe
sub rax, rcx
cmp rax, 1
jb 0x140186bc2
cmp qword [rdx + 0x18], 7
jbe 0x14018664c
mov rdx, qword [rdx]
mov qword [rsp + 0x30], 1
lea rax, [0x140574be8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r9, rdx
lea rcx, [rbp + 0x70]
call fcn.1400d6400
nop
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 7
jbe 0x140186681
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rbp + 0x70]
call fcn.1400d6550
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x60], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x60], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
mov rdx, qword [rbp + 0x88]
cmp rdx, 7
jbe 0x1401866fe
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401866f9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140186bc8
call fcn.1403e3650
movdqa xmm0, xmmword [0x14057a8b0]
movdqu xmmword [rbp + 0x80], xmm0
mov word [rbp + 0x70], r14w
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x70], r14
call fcn.140185ee0
mov dword [rsp + 0x64], eax
test eax, eax
jne 0x14018674c
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
lea r9, str.utils:_could_not_get_current_session_id:_
lea r8, str.UTILS
call fcn.140102bc0
jmp 0x1401868e6
lea rdx, [rsp + 0x78]
mov ecx, eax
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x14018678e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x64], eax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
lea r9, str.WTSQueryUserToken_failed:_
lea r8, str.UTILS
mov edx, 4
call fcn.1400d1640
jmp 0x1401868e6
mov dword [rsp + 0x68], r14d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 8
lea r8, [rbp - 0x78]
lea edx, [r9 + 0xb]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1401867c5
mov rbx, qword [rbp - 0x78]
mov qword [rsp + 0x70], rbx
jmp 0x1401867f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x64], eax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
lea r9, str.GetTokenInformation_failed:_
lea r8, str.UTILS
mov edx, 4
call fcn.1400d1640
mov rbx, qword [rsp + 0x70]
test rbx, rbx
jne 0x140186905
lea r9, str.Failed_to_get_token_with_elevated_right__TokenLinkedToken___falling_back_with_TokenElevationType
lea r8, str.UTILS
lea edx, [rbx + 4]
call fcn.1400c6f10
mov dword [rsp + 0x64], 1
mov dword [rsp + 0x68], r14d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 4]
lea r8, [rsp + 0x64]
lea edx, [rbx + 0x12]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140186890
cmp dword [rsp + 0x64], 1
jne 0x1401868bc
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
lea r9d, [rbx + 2]
xor r8d, r8d
mov edx, 0x2000000
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov dword [rsp + 0x60], eax
test eax, eax
jne 0x1401868bc
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call fcn.140186ed0
jmp 0x1401868bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, str.GetTokenInformation_failed:_
lea r8, str.UTILS
mov edx, 4
call fcn.1400d1640
mov rbx, qword [rsp + 0x70]
test rbx, rbx
jne 0x140186905
lea r9, str.Failed_to_get_token_with_elevated_right__TokenElevationType_
lea r8, str.UTILS
lea edx, [rbx + 4]
call fcn.1400c6f10
mov rbx, qword [rsp + 0x70]
test rbx, rbx
jne 0x140186905
lea r9, str.Could_not_get_elevated_user_token
lea r8, str.UTILS
mov edx, 4
call fcn.1400c6f10
xor bl, bl
jmp 0x140186b60
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp - 0x80]
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x140186968
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, str.CreateEnvironmentBlock_failed:_
lea r8, str.UTILS
mov edx, 4
call fcn.1400d1640
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140186b5a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.CloseHandle_token__failed:_
jmp 0x140186b3b
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x40], xmm0
mov dword [rbp - 0x20], reloc.WS2_32.dll_WSASetLastError
mov dword [rbp + 0x1c], 1
mov word [rbp + 0x20], r14w
movdqa xmm0, xmmword [0x14057ab60]
movdqa xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], 0xffffffffffffffff
xorps xmm1, xmm1
xor eax, eax
movups xmmword [rbp - 0x70], xmm1
mov qword [rbp - 0x60], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rax
movups xmmword [rbp - 0x58], xmm1
mov qword [rbp - 0x48], rax
cmp qword [rdi + 0x18], 7
jbe 0x1401869d5
mov rdi, qword [rdi]
lea r8, [rbp + 0x50]
cmp qword [rbp + 0x68], 7
cmova r8, qword [rbp + 0x50]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rdi
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x9000600
mov dword [rsp + 0x28], r14d
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x40]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, eax
test rsi, rsi
je 0x140186a34
mov ecx, dword [rbp - 0x60]
mov dword [rsi], ecx
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140186a73
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140186a73
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, str.CloseHandle_pi.hThread__failed:_
lea r8, str.UTILS
mov edx, 4
call fcn.1400d1640
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x140186ab2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140186ab2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, str.CloseHandle_pi.hProcess__failed:_
lea r8, str.UTILS
mov edx, 4
call fcn.1400d1640
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140186af1
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
test eax, eax
jne 0x140186af1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, str.DestroyEnvironmentBlock_failed:_
lea r8, str.UTILS
mov edx, 4
call fcn.1400d1640
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140186b2a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, str.CloseHandle_token__failed:_
lea r8, str.UTILS
mov edx, 4
call fcn.1400d1640
test edi, edi
jne 0x140186b5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.CreateProcess_failed_
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r8, str.UTILS
mov edx, 4
call fcn.1400d1640
xor bl, bl
jmp 0x140186b60
mov bl, 1
mov rdx, qword [rbp + 0x68]
cmp rdx, 7
jbe 0x140186b9c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140186b97
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140186bbc
call fcn.1403e3650
movzx eax, bl
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.1403e3630
add rsp, 0x1a0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1403fd768
int3
call fcn.1400c4f10
nop
call fcn.1403fd768
nop
int3