Function at 0x1400aceb8
Capabilities:
Create process on windows
Create process suspended
Get common file path

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x228]
sub rsp, 0x328
mov rax, qword [0x1401e7e78]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov r14, r9
mov qword [rbp - 0x38], r9
mov rbx, r8
mov rsi, rdx
mov r15, rcx
mov qword [rbp - 0x80], rcx
mov rax, qword [rbp + 0x2a8]
mov qword [rsp + 0x68], rax
mov rax, qword [rbp + 0x290]
mov qword [rsp + 0x78], rax
mov r13, qword [rbp + 0x298]
mov rdi, qword [rbp + 0x2a0]
call fcn.1400b12b4
mov qword [r14], rax
mov r12b, 1
lea rcx, [rbp - 0x70]
call fcn.140120d54
nop
xor eax, eax
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x74], eax
mov dword [rsp + 0x70], eax
xor r9d, r9d
lea r8, [rbp - 0x70]
mov rdx, rbx
mov cl, r12b
call fcn.140124c64
test al, al
jne 0x1400acf8b
lea rcx, [rbp - 0x70]
call fcn.140058574
mov rcx, rax
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x74]
lea rdx, [rsp + 0x60]
call fcn.1401289ec
xor ecx, ecx
test al, al
je 0x1400acf8b
movzx r12d, r12b
cmp dword [rsp + 0x60], 2
cmove r12d, ecx
lea rcx, [rbp - 0x70]
call fcn.140120ddc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [rsi + 0x68], 2
jne 0x1400ad215
mov rax, qword [r15 + 8]
xor ecx, ecx
cmp byte [rax + 0x4934], cl
jne 0x1400ad215
lea rcx, [rbp - 0x60]
call fcn.1401286a8
nop
xor r8d, r8d
lea rdx, [rbp - 0x60]
mov rcx, rbx
call fcn.14012571c
mov r13, rax
xor r15d, r15d
test rax, rax
jne 0x1400acfe7
mov bl, r15b
or eax, 0xffffffff
jmp 0x1400ad200
mov rdx, qword [rdi]
test rdx, rdx
je 0x1400ad017
mov rcx, qword [rdx + 0x68]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400ad007
mov qword [rdx + 0x68], r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400ad017
call fcn.14012008c
mov qword [rdi], r15
mov rax, qword [r14]
or rbx, 0xffffffffffffffff
test rax, rax
je 0x1400ad032
mov rsi, rbx
inc rsi
cmp word [rax + rsi*2], r15w
jne 0x1400ad026
jmp 0x1400ad035
mov rsi, r15
lea rcx, [rbp - 0x60]
call fcn.140058574
mov r14, rbx
inc r14
cmp word [rax + r14*2], r15w
jne 0x1400ad041
mov r15, rbx
xor eax, eax
inc r15
cmp word [r13 + r15*2], ax
jne 0x1400ad050
lea eax, [rsi + r14]
add eax, r15d
add eax, eax
movsxd rcx, eax
add rcx, 0x90
mov edx, 1
call fcn.14012005c
mov qword [rdi], rax
mov dword [rax], 0x70
mov rcx, qword [rdi]
mov rax, qword [0x14021c5e0]
mov qword [rcx + 8], rax
movzx ecx, r12b
shl ecx, 0xf
bts ecx, 8
mov rax, qword [rdi]
mov dword [rax + 4], ecx
mov rax, qword [rdi]
or dword [rax + 4], 0x40
mov rcx, qword [rdi]
lea rax, [rcx + 0x70]
mov qword [rcx + 0x10], rax
mov rcx, qword [rdi]
lea r8, str.runas
mov edx, 6
mov rcx, qword [rcx + 0x10]
call fcn.1401468a8
mov rdx, qword [rdi]
mov rcx, qword [rdx + 0x10]
mov rax, rbx
xor r12d, r12d
inc rax
cmp word [rcx + rax*2], r12w
jne 0x1400ad0d7
add rcx, 4
lea rax, [rcx + rax*2]
mov qword [rdx + 0x18], rax
lea rcx, [rbp - 0x60]
call fcn.140058574
mov r8, rax
lea rdx, [r14 + 1]
mov rcx, qword [rdi]
mov rcx, qword [rcx + 0x18]
call fcn.1401468a8
mov rdx, qword [rdi]
mov rcx, qword [rdx + 0x18]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], r12w
jne 0x1400ad113
add rcx, 4
lea rax, [rcx + rax*2]
mov qword [rdx + 0x20], rax
mov rax, qword [rdi]
mov rcx, qword [rax + 0x20]
mov eax, 0x20
mov word [rcx], ax
lea rdx, [r15 + 1]
mov rax, qword [rdi]
mov rcx, qword [rax + 0x20]
add rcx, 2
mov r8, r13
call fcn.1401468a8
mov rcx, qword [rdi]
mov rax, qword [rcx + 0x20]
inc rbx
cmp word [rax + rbx*2], r12w
jne 0x1400ad156
lea rax, [rax + rbx*2]
add rax, 4
mov qword [rcx + 0x28], rax
mov r8, qword [rbp - 0x38]
mov r8, qword [r8]
test r8, r8
je 0x1400ad190
cmp word [r8], r12w
je 0x1400ad190
lea rdx, [rsi + 1]
mov rcx, qword [rdi]
mov rcx, qword [rcx + 0x28]
call fcn.14000ab94
jmp 0x1400ad197
mov rax, qword [rdi]
mov qword [rax + 0x28], r12
mov rax, qword [rdi]
mov dword [rax + 0x30], r12d
lea rax, str.Starting_root_process_as_Administrator...
lea rdx, str.Starting_root_process_as_user...
cmp dword [0x14021c614], 6
cmovae rdx, rax
mov r8d, 5
mov rsi, qword [rbp - 0x80]
mov rcx, rsi
call fcn.1400bca4c
mov rcx, qword [rsi + 8]
mov r14d, 0x260
add rcx, r14
mov dl, 1
call fcn.14003b50c
mov rcx, qword [rdi]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
setne bl
mov rcx, qword [rsi + 8]
add rcx, r14
xor edx, edx
call fcn.14003b50c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov rsi, qword [rsp + 0x68]
mov dword [rsi], eax
lea rcx, [rbp - 0x60]
call fcn.1401286cc
jmp 0x1400ad4c9
movzx ecx, byte [rbp + 0x2b0]
inc ecx
call qword [sym.imp.USER32.dll_LockSetForegroundWindow]
mov r8d, 5
lea rdx, str.Starting_root_process...
mov rcx, r15
call fcn.1400bca4c
lea rcx, [rbp - 0x60]
call fcn.14000e960
nop
xor edi, edi
cmp dword [rbp - 0x50], edi
jne 0x1400ad25c
mov rax, qword [rbp - 0x60]
test rax, rax
je 0x1400ad25c
lea rcx, [rbp - 0x48]
call rax
mov dword [rbp - 0x50], eax
cmp qword [rsi + 0x78], rdi
je 0x1400ad3f2
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp]
call fcn.14013b230
mov r15, qword [r14]
lea rcx, [rbp - 0x80]
call fcn.140120d54
nop
test r15, r15
je 0x1400ad293
cmp word [r15], di
jne 0x1400ad34e
lea rax, [rbp]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x25]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1400ad2b8
cmp word [rbp], di
jne 0x1400ad2c8
lea rdx, [0x1401a0d88]
lea rcx, [rbp]
call fcn.140004ad0
lea r15, [rbp]
lea rcx, [rbp - 0x30]
call fcn.1401286a8
nop
xor r8d, r8d
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.14012571c
mov rdi, rax
xor r14d, r14d
test rax, rax
je 0x1400ad343
lea rcx, [rbp - 0x30]
call fcn.140058574
mov rdx, rax
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
mov r9, rdi
lea r8, str.__PROFILECD
lea rcx, [rbp - 0x70]
call fcn.140120be0
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.140120e10
lea rcx, [rbp - 0x70]
call fcn.140120ddc
nop
lea rcx, [rbp - 0x30]
call fcn.1401286cc
xor edi, edi
mov r14d, edi
cmp dword [rsi + 0x74], 2
sete r14b
lea rcx, [rbp - 0x80]
call fcn.140120ef0
test al, al
je 0x1400ad372
lea rcx, [rbp - 0x80]
call fcn.140058574
mov rbx, rax
lea rdi, [rsi + 0x88]
movzx eax, r12b
shl eax, 4
or eax, 0x4000020
mov qword [rsp + 0x50], r13
mov rdx, qword [rsp + 0x78]
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], r15
xor r15d, r15d
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r15
lea r9d, [r14 + 1]
mov r8, rdi
mov rdx, qword [rsi + 0x80]
mov rcx, qword [rsi + 0x78]
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
setne bl
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rsi, qword [rsp + 0x68]
mov dword [rsi], eax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rcx, [rbp - 0x80]
call fcn.140120ddc
xor edi, edi
jmp 0x1400ad488
mov rcx, qword [r14]
movzx eax, r12b
shl eax, 4
or eax, 0x4000020
mov rdx, qword [rsp + 0x78]
xor r9d, r9d
xor r8d, r8d
cmp dword [rsi + 0x70], 2
jne 0x1400ad44f
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edi
mov rdx, rbx
xor ecx, ecx
call fcn.140043a2c
test eax, eax
setne bl
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400ad486
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edi
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne bl
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rsi, qword [rsp + 0x68]
mov dword [rsi], eax
cmp byte [rbp + 0x2b0], dil
jne 0x1400ad49e
mov ecx, 2
call qword [sym.imp.USER32.dll_LockSetForegroundWindow]
jmp 0x1400ad4b1
test bl, bl
je 0x1400ad4b1
mov ecx, dword [r13 + 0x10]
test ecx, ecx
je 0x1400ad4b1
call qword [sym.imp.USER32.dll_AllowSetForegroundWindow]
nop
cmp dword [rbp - 0x50], edi
je 0x1400ad4c9
mov dword [rbp - 0x50], edi
mov rax, qword [rbp - 0x58]
test rax, rax
je 0x1400ad4c9
mov rcx, qword [rbp - 0x48]
call rax
nop
mov al, bl
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.140139b10
add rsp, 0x328
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret