Function at 0x14006bbb0
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x288]
sub rsp, 0x360
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400bd010]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
jne 0x14006bbfd
xor al, al
jmp 0x14006beb5
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
xor edx, edx
lea r8d, [rax + 0x68]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
xor r12d, r12d
mov qword [rsp + 0x68], r12
mov r15d, 0x2000000
mov r14d, r12d
call fcn.14006cfe0
mov rsi, rax
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x68]
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov ecx, 0x2000400
test eax, eax
cmovne r15d, ecx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x40]
call sub.VCRUNTIME140.dll_memset
test rdi, rdi
je 0x14006bc94
mov r9, 0xffffffffffffffff
nop
inc r9
cmp word [rdi + r9*2], r12w
jne 0x14006bc70
mov r8, rdi
mov edx, 0x104
lea rcx, [rbp + 0x40]
call qword [sym.imp.huawei_secure_c.dll_wmemcpy_s]
test eax, eax
jne 0x14006be6b
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x70], 0x68
mov eax, 1
mov dword [rbp - 0x34], eax
mov word [rbp - 0x30], ax
lea rax, str.winsta0default
mov qword [rbp - 0x60], rax
movdqa xmm0, xmmword [0x14008efc0]
movdqu xmmword [rbp + 0x30], xmm0
mov word [rbp + 0x20], r12w
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rbx + r8*2], r12w
jne 0x14006bce0
mov rdx, rbx
lea rcx, [rbp + 0x20]
call sym.HwMdcCenter.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const__const___ptr64__unsigned_long_long_unsigned___int64_____ptr64
nop
lea rdx, [rbp + 0x20]
mov r10, qword [rbp + 0x20]
mov r11, qword [rbp + 0x38]
cmp r11, 8
cmovae rdx, r10
mov r9, qword [rbp + 0x30]
test r9, r9
je 0x14006bd49
lea rcx, [r9 - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea r8, [rdx + rax*2]
cmp word [r8], 0x5c
je 0x14006bd41
cmp r8, rdx
je 0x14006bd49
sub r8, 2
cmp word [r8], 0x5c
jne 0x14006bd31
sub r8, rdx
sar r8, 1
jmp 0x14006bd50
mov r8, 0xffffffffffffffff
movdqa xmm0, xmmword [0x14008efc0]
movdqu xmmword [rbp + 0x10], xmm0
mov word [rbp], r12w
cmp r9, r8
cmovb r8, r9
lea rdx, [rbp + 0x20]
cmp r11, 8
cmovae rdx, r10
lea rcx, [rbp]
call sym.HwMdcCenter.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const__const___ptr64__unsigned_long_long_unsigned___int64_____ptr64
lea rax, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rax, qword [rbp]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x50], rcx
lea rcx, [rbp - 0x70]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
xor r9d, r9d
lea r8, [rbp + 0x40]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov r14d, eax
mov rdx, qword [rbp + 0x18]
cmp rdx, 8
jb 0x14006be16
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006be11
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006be11
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007a810
movdqa xmm0, xmmword [0x14008efc0]
movdqu xmmword [rbp + 0x10], xmm0
mov word [rbp], r12w
mov rdx, qword [rbp + 0x38]
cmp rdx, 8
jb 0x14006be6b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006be66
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006be66
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007a810
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14006be7b
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
test rsi, rsi
je 0x14006be89
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14006be9e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x70], r12
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14006beae
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp r14d, 1
sete al
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.140079c90
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret