Function at 0x14001f690
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0xa40]
sub rsp, 0xb40
mov rax, qword [0x14006b030]
xor rax, rsp
mov qword [rbp + 0xa30], rax
mov edi, ecx
call fcn.140022fd0
test eax, eax
jne 0x14001f6cb
mov eax, 4
jmp 0x14001f90e
mov r8d, eax
mov qword [rsp + 0xb58], rbx
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x14001f6f3
lea eax, [rbx + 5]
jmp 0x14001f906
mov qword [rsp + 0xb60], rsi
lea r8, [rbp - 0x80]
xor esi, esi
mov rcx, rbx
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x78], rsi
lea edx, [rsi + 0xa]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14001f8f0
mov rcx, qword [rbp - 0x80]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x28], rax
lea r9d, [rsi + 2]
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov edx, 0x2000000
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x14001f8f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
lea rcx, [rbp + 0x20]
mov r8d, 0x208
lea ebx, [rsi + 7]
call fcn.14002a400
mov r8d, 0x104
lea rdx, [rbp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm1, xmm1
lea rcx, [rbp + 0x230]
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm1
xor edx, edx
mov r8d, 0x800
movups xmmword [rbp - 0x20], xmm1
mov dword [rbp - 0x50], 0x68
movups xmmword [rbp - 0x10], xmm1
mov word [rbp - 0x10], si
mov dword [rbp - 0x14], 1
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], rax
movups xmmword [rbp - 0x40], xmm1
mov qword [rbp + 0x10], rax
movups xmmword [rbp - 0x30], xmm1
movups xmmword [rbp], xmm1
call fcn.14002a400
lea edx, [rsi + 0x4c]
lea rcx, [rsp + 0x60]
call fcn.1400144f0
cmp qword [rax + 0x18], 8
jb 0x14001f7e4
mov rax, qword [rax]
mov r9, rax
mov dword [rsp + 0x20], edi
lea r8, [rbp + 0x20]
lea rdx, [0x1400624f8]
lea rcx, [rbp + 0x230]
call fcn.140020cd0
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x14001f844
mov rcx, qword [rsp + 0x60]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001f83f
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001f92e
call fcn.140027b2c
mov rcx, qword [rbp - 0x78]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x50], rax
lea r8, [rbp + 0x230]
lea rax, [rbp - 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x20]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x14001f8ec
mov rcx, qword [rbp - 0x70]
mov edx, 0x927c0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x70]
lea rdx, [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x14001f8d8
mov eax, dword [rbp - 0x58]
cmp eax, 0x103
je 0x14001f8d8
test eax, eax
jne 0x14001f8bc
mov ebx, esi
jmp 0x14001f8d8
cmp eax, 1
jne 0x14001f8c5
mov ebx, eax
jmp 0x14001f8d8
cmp eax, 2
jne 0x14001f8ce
mov ebx, eax
jmp 0x14001f8d8
mov ecx, 3
cmp eax, ecx
cmove ebx, ecx
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x14001f8fe
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 6
mov rsi, qword [rsp + 0xb60]
mov rbx, qword [rsp + 0xb58]
mov rcx, qword [rbp + 0xa30]
xor rcx, rsp
call fcn.140027ae0
mov rdi, qword [rsp + 0xb68]
add rsp, 0xb40
pop rbp
ret
call fcn.14002e478
int3