Function at 0x14006dfdc
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x430]
sub rsp, 0x530
mov rax, qword [0x1400e6870]
xor rax, rsp
mov qword [rbp + 0x420], rax
mov edi, r9d
mov r15, r8
mov rsi, rdx
mov r14d, r9d
mov r13d, 1
and r14d, 4
je 0x14006e074
mov cl, dil
and cl, r13b
mov al, cl
neg al
sbb ebx, ebx
not ebx
and ebx, 0x80070005
test cl, cl
jne 0x14006e074
lea rax, [0x1400df278]
mov rcx, qword [0x1400df278]
cmp rcx, rax
je 0x14006e562
test byte [rcx + 0x1c], r13b
je 0x14006e562
lea edx, [r13 + 0xb]
mov r9d, ebx
lea r8, [0x1400be6f0]
mov rcx, qword [rcx + 0x10]
call fcn.14000a9b0
jmp 0x14006e562
test dil, 8
je 0x14006e0b5
mov edx, 4
mov rcx, rsi
call fcn.1400a9ad4
mov ebx, eax
test eax, eax
jns 0x14006e0b5
lea rax, [0x1400df278]
mov rcx, qword [0x1400df278]
cmp rcx, rax
je 0x14006e562
test byte [rcx + 0x1c], r13b
je 0x14006e562
mov edx, SafeArrayGetElemsize
jmp 0x14006e05c
mov qword [rsp + 0x20], r15
mov r9, rsi
lea r8, str.__s___s
mov edx, 0x208
lea rcx, [rbp + 0x10]
call fcn.140003870
mov ebx, eax
test eax, eax
jns 0x14006e103
lea rax, [0x1400df278]
mov rcx, qword [0x1400df278]
cmp rcx, rax
je 0x14006e562
test byte [rcx + 0x1c], r13b
je 0x14006e562
mov edx, SafeArrayGetElemsize
jmp 0x14006e05c
and qword [rbp - 0x70], 0
and qword [rsp + 0x70], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
nop dword [rax + rax]
mov rcx, rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea edx, [r8 + 0xa]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenThreadToken]
nop dword [rax + rax]
test eax, eax
jne 0x14006e17f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x14006e17f
lea rax, [0x1400df278]
mov rcx, qword [0x1400df278]
cmp rcx, rax
je 0x14006e54c
test byte [rcx + 0x1c], r13b
je 0x14006e54c
mov edx, SafeArrayGetLBound
jmp 0x14006e1bf
mov byte [rsp + 0x60], 0
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x60]
call fcn.1400a7210
mov ebx, eax
test eax, eax
jns 0x14006e1d7
lea rax, [0x1400df278]
mov rcx, qword [0x1400df278]
cmp rcx, rax
je 0x14006e54c
test byte [rcx + 0x1c], r13b
je 0x14006e54c
mov edx, SafeArrayGetLBound
mov r9d, ebx
lea r8, [0x1400be6f0]
mov rcx, qword [rcx + 0x10]
call fcn.14000a9b0
jmp 0x14006e54c
mov al, byte [rsp + 0x60]
test r13b, dil
je 0x14006e204
test al, al
jne 0x14006e204
lea rax, [0x1400df278]
mov rcx, qword [0x1400df278]
cmp rcx, rax
je 0x14006e246
test byte [rcx + 0x1c], r13b
je 0x14006e246
mov edx, reloc.OLEAUT32.dll_SafeArrayGetElemsize
jmp 0x14006e230
mov r9d, 2
test r9b, dil
je 0x14006e250
test al, al
je 0x14006e250
lea rax, [0x1400df278]
mov rcx, qword [0x1400df278]
cmp rcx, rax
je 0x14006e246
test byte [rcx + 0x1c], r13b
je 0x14006e246
lea edx, [r9 + 0x10]
mov r9d, 0x80070005
lea r8, [0x1400be6f0]
mov rcx, qword [rcx + 0x10]
call fcn.14000a9b0
mov ebx, 0x80070005
jmp 0x14006e54c
and qword [rsp + 0x68], 0
test dil, 0x10
je 0x14006e334
mov r9d, 4
lea r8, [0x1400b9990]
lea rdx, [0x1400b69d0]
lea rcx, [rsp + 0x68]
call fcn.1400a8c68
mov ebx, eax
test eax, eax
jns 0x14006e2a4
lea rax, [0x1400df278]
mov rcx, qword [0x1400df278]
cmp rcx, rax
je 0x14006e2f4
test byte [rcx + 0x1c], r13b
je 0x14006e2f4
mov edx, reloc.OLEAUT32.dll_SafeArrayGetLBound
jmp 0x14006e2e0
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
mov r8, r15
mov rdx, rsi
mov rax, qword [rax + 0x38]
call qword [case.0x1400ad4ce.0]
mov ebx, eax
test eax, eax
jns 0x14006e314
lea rax, [0x1400df278]
mov rcx, qword [0x1400df278]
cmp rcx, rax
je 0x14006e2f4
test byte [rcx + 0x1c], r13b
je 0x14006e2f4
mov edx, reloc.OLEAUT32.dll_SafeArrayLock
mov r9d, ebx
lea r8, [0x1400be6f0]
mov rcx, qword [rcx + 0x10]
call fcn.14000a9b0
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14006e54c
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400ad4ce.0]
jmp 0x14006e54c
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14006e54a
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400ad4ce.0]
jmp 0x14006e54a
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
xor r8d, r8d
mov edx, 0xab
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_DuplicateTokenEx]
nop dword [rax + rax]
test eax, eax
jne 0x14006e3a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x14006e3a9
lea rax, [0x1400df278]
mov rcx, qword [0x1400df278]
cmp rcx, rax
je 0x14006e509
test byte [rcx + 0x1c], r13b
je 0x14006e509
mov edx, SafeArrayPutElement
jmp 0x14006e4f6
test r14d, r14d
je 0x14006e436
mov r8, qword [rsp + 0x68]
lea rdx, str.SeAssignPrimaryTokenPrivilege
call fcn.14006dec0
mov ebx, eax
test eax, eax
jns 0x14006e3f4
lea rax, [0x1400df278]
mov rcx, qword [0x1400df278]
cmp rcx, rax
je 0x14006e509
test byte [rcx + 0x1c], r13b
je 0x14006e509
mov edx, SafeArrayPutElement
jmp 0x14006e4f6
mov r8, qword [rsp + 0x68]
lea rdx, str.SeIncreaseQuotaPrivilege
call fcn.14006dec0
mov ebx, eax
test eax, eax
jns 0x14006e436
lea rax, [0x1400df278]
mov rcx, qword [0x1400df278]
cmp rcx, rax
je 0x14006e509
test byte [rcx + 0x1c], r13b
je 0x14006e509
mov edx, SafeArrayPutElement
jmp 0x14006e4f6
and qword [rbp - 0x78], 0
movdqa xmm0, xmmword [0x1400c5ad0]
movdqu xmmword [rsp + 0x78], xmm0
mov ebx, 0x68
mov r8d, ebx
xor edx, edx
lea rcx, [rbp - 0x60]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov dword [rbp - 0x60], ebx
lea rax, str.winsta0default
mov qword [rbp - 0x50], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x48], rax
and qword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x20
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rbp + 0x10]
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessAsUserW]
nop dword [rax + rax]
test eax, eax
jne 0x14006e521
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x14006e521
lea rax, [0x1400df278]
mov rcx, qword [0x1400df278]
cmp rcx, rax
je 0x14006e509
test byte [rcx + 0x1c], r13b
je 0x14006e509
mov edx, SafeArrayPutElement
mov r9d, ebx
lea r8, [0x1400be6f0]
mov rcx, qword [rcx + 0x10]
call fcn.14000a9b0
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14006e54c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x14006e54c
mov rcx, qword [rsp + 0x78]
call fcn.1400a2560
mov rcx, qword [rbp - 0x80]
call fcn.1400a2560
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14006e54a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
xor ebx, ebx
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14006e562
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x420]
xor rcx, rsp
call fcn.1400abb00
add rsp, 0x530
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret