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

Disassembly:
push rbx
push rdi
push r14
push r15
sub rsp, 0x308
mov rax, qword [0x1400bd010]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov r15, rdx
mov rbx, r9
xor edx, edx
mov r14, rcx
call fcn.1400046d0
test al, al
je 0x14006d789
call fcn.14006d4b0
test eax, eax
je 0x14006d789
mov qword [rsp + 0x300], rsi
call fcn.14006cfe0
mov rsi, rax
test rax, rax
je 0x14006d66a
xor edx, edx
lea rcx, [rsp + 0xe0]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
xor eax, eax
lea rdi, [rsp + 0xe0]
mov ecx, 0x208
mov edx, 0x104
rep stosb byte [rdi], al
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, [0x14008d5b8]
mov edx, 0x104
lea rcx, [rsp + 0xe0]
call qword [sym.imp.huawei_secure_c.dll_wcscat_s]
test eax, eax
jne 0x14006d66a
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400c048c], eax
jg 0x14006d8a3
mov rcx, qword [0x1400c0490]
test rcx, rcx
jne 0x14006d676
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
xor eax, eax
jmp 0x14006d6ae
lea rdx, str.CreateProcessWithTokenW
mov qword [rsp + 0x340], rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
test rax, rax
jne 0x14006d6d4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
xor eax, eax
mov rbp, qword [rsp + 0x340]
mov rsi, qword [rsp + 0x300]
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.140079c90
add rsp, 0x308
pop r15
pop r14
pop rdi
pop rbx
ret
xor edx, edx
mov dword [rsp + 0x70], 0x68
lea rcx, [rsp + 0x78]
lea r8d, [rdx + 0x60]
call sub.VCRUNTIME140.dll_memset
xor eax, eax
lea rdi, [rsp + 0x50]
mov qword [rsp + 0x50], rax
mov ecx, 0x18
mov qword [rsp + 0x58], rax
mov r9, r15
mov qword [rsp + 0x60], rax
mov r8, r14
rep stosb byte [rdi], al
xor edi, edi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov rcx, rsi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov eax, 0x20
mov qword [rsp + 0x30], rdi
lea edx, [rdi + 1]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
call rbp
mov ebp, eax
cmp eax, 1
jne 0x14006d76f
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
mov dword [rbx], edi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
jmp 0x14006d6a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov dword [rbx], eax
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
jmp 0x14006d6a6
xor edi, edi
mov dword [rsp + 0x28], 1
mov r9, r15
mov qword [rsp + 0x20], rdi
mov r8, r14
lea rdx, [0x14008cd40]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
mov edx, edi
seta dl
ja 0x14006d898
cmp eax, 0x20
ja case.0x14006d7e0.1
lea rdi, [0x140000000]
cdqe
movzx eax, byte [rdi + rax + 0x6d918]
mov ecx, dword [rdi + rax*4 + 0x6d8e4]
add rcx, rdi
jmp rcx
mov eax, 0xe
mov dword [rbx], eax
mov eax, edx
jmp 0x14006d6b6
mov eax, 2
mov dword [rbx], eax
mov eax, edx
jmp 0x14006d6b6
mov eax, 3
mov dword [rbx], eax
mov eax, edx
jmp 0x14006d6b6
mov eax, 0xb
mov dword [rbx], eax
mov eax, edx
jmp 0x14006d6b6
mov eax, 8
mov dword [rbx], eax
mov eax, edx
jmp 0x14006d6b6
mov eax, 5
mov dword [rbx], eax
mov eax, edx
jmp 0x14006d6b6
mov eax, 0x483
mov dword [rbx], eax
mov eax, edx
jmp 0x14006d6b6
mov eax, 0xaa
mov dword [rbx], eax
mov eax, edx
jmp 0x14006d6b6
mov eax, 0x484
mov dword [rbx], eax
mov eax, edx
jmp 0x14006d6b6
mov eax, 0x79
mov dword [rbx], eax
mov eax, edx
jmp 0x14006d6b6
mov eax, 0x485
mov dword [rbx], eax
mov eax, edx
jmp 0x14006d6b6
mov eax, 0x20
mov dword [rbx], eax
mov eax, edx
jmp 0x14006d6b6
mov eax, 0x57
mov dword [rbx], eax
mov eax, edx
jmp 0x14006d6b6
mov eax, edi
mov dword [rbx], eax
mov eax, edx
jmp 0x14006d6b6
lea rcx, [0x1400c048c]
call fcn.14007a098
cmp dword [0x1400c048c], 0xffffffff
jne 0x14006d655
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, [0x1400c048c]
mov qword [0x1400c0490], rax
call fcn.14007a038
jmp 0x14006d655