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

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x610
lea rdi, [rsp + 0x60]
mov ecx, 0x16c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x620]
mov rax, qword [section..data]
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.140012cb8
test eax, eax
jne 0x140013a67
mov eax, dword [rsp + 0x60]
jmp 0x140013d4c
mov dword [rsp + 0x294], 0
lea rcx, [rsp + 0x80]
call fcn.140012a2c
mov dword [rsp + 0x294], eax
cmp dword [rsp + 0x294], 0
jne 0x140013a99
mov eax, dword [rsp + 0x60]
jmp 0x140013d4c
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 0x140013ccb
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 0x140013ccb
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 0x140013ccb
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 0x140013be5
mov dword [rsp + 0x5e4], 0
mov dword [rsp + 0x5f4], 0
cmp dword [rsp + 0x5e4], 0
je 0x140013c52
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 0x140013cb9
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 0x140013ccb
mov dword [rsp + 0x60], 1
cmp qword [rsp + 0x4d8], 0
je 0x140013ce4
mov rcx, qword [rsp + 0x4d8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x5c8], 0
je 0x140013cfd
mov rcx, qword [rsp + 0x5c8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x588], 0
je 0x140013d16
mov rcx, qword [rsp + 0x588]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x590], 0
je 0x140013d2f
mov rcx, qword [rsp + 0x590]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x5b8], 0
je 0x140013d48
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, [0x14004e150]
call fcn.140015a64
mov rax, rdi
mov rcx, qword [rsp + 0x600]
xor rcx, rsp
call fcn.140015b70
add rsp, 0x610
pop rdi
ret