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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push r14
mov eax, 0x16e0
call fcn.1400ae240
sub rsp, rax
mov rax, qword [0x1400c1008]
xor rax, rsp
mov qword [rsp + 0x16d0], rax
mov rdi, rdx
xor r12d, r12d
mov qword [rsp + 0x70], r12
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x120], xmm0
movups xmmword [rsp + 0x130], xmm0
movups xmmword [rsp + 0x140], xmm0
movups xmmword [rsp + 0x150], xmm0
movups xmmword [rsp + 0x160], xmm0
movups xmmword [rsp + 0x170], xmm0
mov qword [rsp + 0x180], rax
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0x4d0]
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
xorps xmm0, xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xc0], xmm0
movups xmmword [rsp + 0xd0], xmm0
movups xmmword [rsp + 0xe0], xmm0
movups xmmword [rsp + 0xf0], xmm0
movups xmmword [rsp + 0x100], xmm0
xor eax, eax
movups xmmword [rsp + 0x88], xmm0
mov qword [rsp + 0x98], rax
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0xed0]
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x80], r12
mov ebx, r12d
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x190], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x1a0], xmm1
mov qword [rsp + 0x78], r12
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rsp + 0x8d0]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x3fc
lea rcx, [rsp + 0xad0]
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x110], r12
xor edx, edx
mov r8d, 0x105
lea rcx, [rsp + 0x1b0]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0x2c0]
call sub.VCRUNTIME140.dll_memset
nop
test rdi, rdi
je 0x1400ae0ba
cmp word [rdi], r12w
je 0x1400ae0ba
mov qword [rsp + 0x20], rdi
lea r9, [0x140108fec]
mov edx, 0x105
lea r8, [r12 - 1]
lea rcx, [rsp + 0x2c0]
call fcn.140001140
mov word [rsp + 0x4c8], r12w
mov qword [rsp + 0x20], 0xffffffffffffffff
lea r9, [rsp + 0x2c0]
mov r8d, 0x105
lea rdx, [rsp + 0x1b0]
lea rcx, [rsp + 0x110]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs_s]
cmp eax, 0x2a
je 0x1400adc3c
test eax, eax
je 0x1400adc3c
cmp eax, 0x50
jne 0x1400ae0ba
mov byte [rsp + 0x2b4], 0
lea rax, str.esrv.exe
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1b0]
mov qword [rsp + 0x20], rax
lea r9, [0x140108f74]
mov edx, 0x400
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0x4d0]
call fcn.140001030
mov byte [rsp + 0x8cf], 0
lea r8, [rsp + 0x120]
lea rdx, [rsp + 0x4d0]
lea rcx, [0x140113930]
call fcn.1400a8ff0
cmp eax, 1
je 0x1400ae0ba
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0x4d0]
call sub.VCRUNTIME140.dll_memset
lea rax, str.task.exe
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1b0]
mov qword [rsp + 0x20], rax
lea r9, [0x140108ea4]
mov edx, 0x400
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0x4d0]
call fcn.140001030
mov byte [rsp + 0x8cf], 0
lea r8, [rsp + 0x120]
lea rdx, [rsp + 0x4d0]
call fcn.1400a71b0
cmp eax, 1
je 0x1400ae0ba
lea rcx, [rsp + 0x120]
call fcn.1400a73f0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
lea r8, str.task
lea rdx, str.SYSTEMCurrentControlSetServicesUSER_ESRV_SVC_QUEENCREEK
call fcn.140097e50
test eax, eax
jne 0x1400ae0b8
cmp qword [rsp + 0x60], 0
je 0x1400ae0b8
mov rdi, qword [rsp + 0x70]
test rdi, rdi
je 0x1400ae0b8
lea r9, [rsp + 0x68]
mov r8, rdi
call fcn.14008f330
mov r14, rax
test rax, rax
je 0x1400ae0ba
cmp qword [rsp + 0x68], 0
jne 0x1400adda4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WS2_32.dll_shutdown
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
jmp 0x1400addb6
mov r8, rdi
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x30], r14
lea rax, [0x140112a48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x2c0]
mov qword [rsp + 0x20], rax
lea r9, str.__s_s_____start_____start_options_handle____I64d_
mov edx, 0x400
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0xed0]
call fcn.140001140
mov word [rsp + 0x16ce], r12w
mov edx, 0xff
lea rcx, [rsp + 0x8d0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400ae0ba
lea rax, str.Kernel32.dll
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x8d0]
mov qword [rsp + 0x20], rax
lea r9, [0x140113058]
mov edx, 0x1fe
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0xad0]
call fcn.140001140
mov word [rsp + 0xeca], r12w
lea rcx, [rsp + 0xad0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x1400ae0ba
lea rdx, str.WTSGetActiveConsoleSessionId
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400ae0ba
call qword [0x1400b4c70]
test eax, eax
je 0x1400ae0ba
lea rdx, [rsp + 0x78]
mov ecx, eax
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
mov dword [rsp + 0xa0], WSACleanup
mov word [rsp + 0xe0], r12w
mov dword [rsp + 0xdc], 1
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x190], rax
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x198], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x1a0], rax
mov qword [rsp + 0x1a8], r14
mov qword [rsp + 0x80], r12
mov edi, r12d
lea r9, [rsp + 0x80]
xor r8d, r8d
lea edx, [r8 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
test eax, eax
jne 0x1400adfe6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400ae0ba
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, qword [rsp + 0x80]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x1400ae0ba
mov r8, qword [rsp + 0x80]
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x80]
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
test eax, eax
je 0x1400ae0ba
mov edi, 1
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], 0x20
lea r9, [rsp + 0x190]
xor edx, edx
mov r8d, 0x20002
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
je 0x1400ae0ba
mov qword [rsp + 0x108], rbx
lea rax, [rsp + 0x88]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], 0x80080
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r12
xor r9d, r9d
lea r8, [rsp + 0xed0]
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x1400ae0ba
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1400ae0ba
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1400ae0ba
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400ae078
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1400ae0ba
mov qword [rsp + 0x78], r12
mov rdx, qword [rsp + 0x68]
mov rcx, r14
call fcn.14008f2e0
test eax, eax
jne 0x1400ae0ba
cmp edi, 1
jne 0x1400ae097
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
test rbx, rbx
je 0x1400ae0b4
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x1400ae0ba
xor eax, eax
jmp 0x1400ae0fd
jmp 0x1400ae0ba
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400ae0d0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x78], r12
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x1400ae0eb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x90], r12
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400ae0fd
mov rcx, qword [rsp + 0x16d0]
xor rcx, rsp
call fcn.140001ea0
lea r11, [rsp + 0x16e0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov r12, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret