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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x630]
sub rsp, 0x730
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x780], rbx
mov rax, qword [0x1400bd010]
xor rax, rsp
mov qword [rbp + 0x620], rax
mov r12, rdx
mov rdi, rcx
mov qword [rsp + 0x50], rcx
xor edx, edx
call fcn.1400046d0
test al, al
je 0x1400702d9
call fcn.14006d4b0
test eax, eax
je 0x1400702d9
xor ebx, ebx
mov qword [rbp], rbx
mov qword [rbp + 8], 7
mov word [rbp - 0x10], bx
call fcn.14006cfe0
mov r15, rax
test rax, rax
je 0x140070294
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x10]
call sub.VCRUNTIME140.dll_memset
lea rdi, [rbp + 0x10]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov edx, 0x104
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, [0x14008d5b8]
mov edx, 0x104
lea rcx, [rbp + 0x10]
call qword [sym.imp.huawei_secure_c.dll_wcscat_s]
test eax, eax
jne 0x140070294
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r14, rax
test rax, rax
je 0x14007028a
lea rdx, str.CreateProcessWithTokenW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
test rax, rax
je 0x140070281
mov dword [rbp - 0x80], 0x68
xor edx, edx
lea r8d, [rbx + 0x60]
lea rcx, [rbp - 0x78]
call sub.VCRUNTIME140.dll_memset
mov esi, 1
mov dword [rbp - 0x44], esi
mov word [rbp - 0x40], si
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
lea rdi, [rsp + 0x60]
mov ecx, 0x18
rep stosb byte [rdi], al
test r12, r12
je 0x140070230
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x220]
call sub.VCRUNTIME140.dll_memset
mov r8, r12
mov edx, 0x200
lea rcx, [rbp + 0x220]
call qword [sym.imp.huawei_secure_c.dll_wcscpy_s]
test eax, eax
jne 0x140070281
lea rax, [rbp + 0x220]
mov qword [rbp - 0x68], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x20
mov r9, r12
mov r8, qword [rsp + 0x50]
mov edx, esi
mov rcx, r15
call r13
cmp eax, esi
jne 0x14007027f
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, esi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp + 8]
cmp rdx, 8
jb 0x140070305
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400702d2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400702d2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007a810
jmp 0x140070305
mov esi, 1
mov dword [rsp + 0x28], esi
xor ebx, ebx
mov qword [rsp + 0x20], rbx
mov r9, r12
mov r8, rdi
lea rdx, [0x14008cd40]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
seta bl
mov eax, ebx
mov rcx, qword [rbp + 0x620]
xor rcx, rsp
call fcn.140079c90
mov rbx, qword [rsp + 0x780]
add rsp, 0x730
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret