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

Disassembly:
push rbx
push rdi
push r14
push r15
sub rsp, 0x308
mov rax, qword [0x140109010]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov r15, rdx
mov rbx, r9
xor edx, edx
mov r14, rcx
call fcn.14001bf40
test al, al
je 0x14009296b
call fcn.140092680
test eax, eax
je 0x14009296b
mov qword [rsp + 0x300], rsi
call fcn.1400922c0
mov rsi, rax
test rax, rax
je 0x14009284c
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, [0x1400cbb20]
mov edx, 0x104
lea rcx, [rsp + 0xe0]
call qword [sym.imp.huawei_secure_c.dll_wcscat_s]
test eax, eax
jne 0x14009284c
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1401181a0], eax
jle 0x140092837
lea rcx, [0x1401181a0]
call fcn.140093f44
cmp dword [0x1401181a0], 0xffffffff
jne 0x140092837
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, [0x1401181a0]
mov qword [0x1401181a8], rax
call fcn.140093ee4
mov rcx, qword [0x1401181a8]
test rcx, rcx
jne 0x140092858
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 0x140092890
lea rdx, str.CreateProcessWithTokenW
mov qword [rsp + 0x340], rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
test rax, rax
jne 0x1400928b6
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.140093940
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 0x140092951
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 0x140092888
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 0x140092888
xor edi, edi
mov dword [rsp + 0x28], 1
mov r9, r15
mov qword [rsp + 0x20], rdi
mov r8, r14
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
mov edx, edi
seta dl
ja 0x140092a7a
cmp eax, 0x20
ja case.0x1400929c2.1
lea rdi, [0x140000000]
cdqe
movzx eax, byte [rdi + rax + 0x92abc]
mov ecx, dword [rdi + rax*4 + 0x92a88]
add rcx, rdi
jmp rcx
mov eax, 0xe
mov dword [rbx], eax
mov eax, edx
jmp 0x140092898
mov eax, 2
mov dword [rbx], eax
mov eax, edx
jmp 0x140092898
mov eax, 3
mov dword [rbx], eax
mov eax, edx
jmp 0x140092898
mov eax, 0xb
mov dword [rbx], eax
mov eax, edx
jmp 0x140092898
mov eax, 8
mov dword [rbx], eax
mov eax, edx
jmp 0x140092898
mov eax, 5
mov dword [rbx], eax
mov eax, edx
jmp 0x140092898
mov eax, 0x483
mov dword [rbx], eax
mov eax, edx
jmp 0x140092898
mov eax, 0xaa
mov dword [rbx], eax
mov eax, edx
jmp 0x140092898
mov eax, 0x484
mov dword [rbx], eax
mov eax, edx
jmp 0x140092898
mov eax, 0x79
mov dword [rbx], eax
mov eax, edx
jmp 0x140092898
mov eax, 0x485
mov dword [rbx], eax
mov eax, edx
jmp 0x140092898
mov eax, 0x20
mov dword [rbx], eax
mov eax, edx
jmp 0x140092898
mov eax, 0x57
mov dword [rbx], eax
mov eax, edx
jmp 0x140092898
mov eax, edi
mov dword [rbx], eax
mov eax, edx
jmp 0x140092898