Function at 0x140013258
Capabilities:
Create process on windows
Impersonate user

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x610
mov rdi, rsp
mov ecx, 0x184
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x620]
mov rax, qword [0x140056008]
xor rax, rsp
mov qword [rsp + 0x600], rax
mov dword [rsp + 0x60], 0
lea rax, [rsp + 0x80]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov edx, 0x104
lea rcx, [rsp + 0x80]
call fcn.140012504
test eax, eax
jne 0x1400132c9
mov eax, dword [rsp + 0x60]
jmp 0x1400135ae
mov dword [rsp + 0x294], 0
lea rcx, [rsp + 0x80]
call fcn.140012278
mov dword [rsp + 0x294], eax
cmp dword [rsp + 0x294], 0
jne 0x1400132fb
mov eax, dword [rsp + 0x60]
jmp 0x1400135ae
lea rax, [rsp + 0x2b0]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov r8, qword [rsp + 0x620]
mov edx, 0x104
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov qword [rsp + 0x4d8], 0
lea rax, [rsp + 0x500]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
lea rax, [rsp + 0x588]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov qword [rsp + 0x5b8], 0
mov r8d, dword [rsp + 0x294]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x5c8], rax
cmp qword [rsp + 0x5c8], 0
je 0x14001352d
mov dword [rsp + 0x5d0], 0xb
lea r8, [rsp + 0x4d8]
mov edx, dword [rsp + 0x5d0]
mov rcx, qword [rsp + 0x5c8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14001352d
mov dword [rsp + 0x5d4], 0x18b
lea rax, [rsp + 0x5b8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 2
xor r8d, r8d
mov edx, dword [rsp + 0x5d4]
mov rcx, qword [rsp + 0x4d8]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x14001352d
mov dword [rsp + 0x500], 0x68
mov dword [rsp + 0x5e4], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [rsp + 0x5e4]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
jne 0x140013447
mov dword [rsp + 0x5e4], 0
mov dword [rsp + 0x5f4], 0
cmp dword [rsp + 0x5e4], 0
je 0x1400134b4
lea rax, [rsp + 0x588]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x500]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], MsiDatabaseExportA
lea r9, [rsp + 0x2b0]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x5b8]
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
mov dword [rsp + 0x5f4], eax
jmp 0x14001351b
lea rax, [rsp + 0x588]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x500]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x20
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x2b0]
xor edx, edx
mov rcx, qword [rsp + 0x5b8]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [rsp + 0x5f4], eax
cmp dword [rsp + 0x5f4], 0
je 0x14001352d
mov dword [rsp + 0x60], 1
cmp qword [rsp + 0x4d8], 0
je 0x140013546
mov rcx, qword [rsp + 0x4d8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x5c8], 0
je 0x14001355f
mov rcx, qword [rsp + 0x5c8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x588], 0
je 0x140013578
mov rcx, qword [rsp + 0x588]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x590], 0
je 0x140013591
mov rcx, qword [rsp + 0x590]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x5b8], 0
je 0x1400135aa
mov rcx, qword [rsp + 0x5b8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x60]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14004b2a0]
call fcn.140015370
mov rax, rdi
mov rcx, qword [rsp + 0x600]
xor rcx, rsp
call fcn.140015470
add rsp, 0x610
pop rdi
ret