Function at 0x14006f820
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x588]
sub rsp, 0x688
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x1400bd010]
xor rax, rsp
mov qword [rbp + 0x570], rax
mov r15, r9
mov r12, r8
mov r14, rdx
mov rsi, rcx
test rdx, rdx
jne 0x14006f86e
xor al, al
jmp 0x14006fc75
xor r13d, r13d
mov qword [rbp - 0x68], r13
mov qword [rbp - 0x60], 7
mov word [rbp - 0x78], r13w
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rcx + r8*2], r13w
jne 0x14006f890
mov rdx, rsi
lea rcx, [rbp - 0x78]
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 - 0x78]
mov r9, qword [rbp - 0x78]
mov r10, qword [rbp - 0x60]
cmp r10, 8
cmovae rdx, r9
mov rdi, qword [rbp - 0x68]
test rdi, rdi
je 0x14006f8f8
lea rcx, [rdi - 1]
mov rax, rbx
cmp rcx, rbx
cmovb rax, rcx
lea r8, [rdx + rax*2]
cmp word [r8], 0x5c
je 0x14006f8f0
nop dword [rax]
cmp r8, rdx
je 0x14006f8f8
sub r8, 2
cmp word [r8], 0x5c
jne 0x14006f8e0
sub r8, rdx
sar r8, 1
jmp 0x14006f8fb
mov r8, rbx
mov qword [rsp + 0x78], r13
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], r13w
cmp rdi, r8
cmovb r8, rdi
lea rdx, [rbp - 0x78]
cmp r10, 8
cmovae rdx, r9
lea rcx, [rsp + 0x68]
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
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x150]
call sub.VCRUNTIME140.dll_memset
lea rdi, [rbp + 0x150]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov r8, rsi
mov edx, 0x104
lea rcx, [rbp + 0x150]
call qword [sym.imp.huawei_secure_c.dll_wcscpy_s]
test eax, eax
je 0x14006fa22
lea rcx, [rbp - 0x20]
call fcn.140004550
nop
lea rdx, str.wcscpy_s_fail
lea rcx, [rbp - 0x10]
call fcn.140015c30
mov rcx, rax
lea rdx, [0x140087c64]
call fcn.140015a40
mov rcx, rax
lea rdx, str.HWPROCESS::CreateProcessAsAdminUser
call fcn.140015c30
mov rcx, rax
lea rdx, [0x140087c60]
call fcn.140015a40
call qword [sym.imp.LogHelper.dll_public:_static_class_HwLogger____ptr64___cdecl_HwLogger::GetInstance_void_]
mov rcx, rax
lea r8, [rbp - 0x20]
mov edx, 4
call qword [sym.imp.LogHelper.dll_public:_void___cdecl_HwLogger::Log_enum_LOG_MESSAGE_LEVEL__class_std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64____ptr64]
nop
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + rcx - 0x20], rax
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov rax, rcx
mov dword [rbp + rcx - 0x24], edx
lea rcx, [rbp - 8]
call fcn.140012ea0
lea rcx, [rbp]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
lea rcx, [rbp + 0x78]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
mov dword [r15], 0xfffffffe
xor dil, dil
jmp 0x14006fbd7
lea rdi, [rbp - 0x40]
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov dword [rbp - 0x40], 0x18
lea rdi, [rbp - 0x58]
mov ecx, 0x18
rep stosb byte [rdi], al
mov dword [rbp - 0x58], 0x18
mov rdi, r12
mov ecx, 0x18
rep stosb byte [rdi], al
lea rdi, [rbp + 0xe0]
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rbp + 0xe0], 0x68
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x360]
call sub.VCRUNTIME140.dll_memset
lea rax, [rbp + 0x150]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14006fa85
lea r8, [rbp + 0x360]
mov edx, ebx
lea rcx, [rbp + 0x150]
call fcn.14006b730
test al, al
jne 0x14006fab7
mov dword [r15], 0xfffffffe
xor dil, dil
jmp 0x14006fbd7
lea rax, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rax, qword [rsp + 0x68]
mov qword [rsp + 0x50], r12
lea rdx, [rbp + 0xe0]
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], r13d
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x40]
lea r8, [rbp + 0x360]
xor edx, edx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp eax, 1
je 0x14006fbd4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15], eax
lea rcx, [rbp - 0x20]
call fcn.140004550
nop
lea rdx, str.CreateProcessAsUser_Failed:
lea rcx, [rbp - 0x10]
call fcn.140015c30
mov rcx, rax
mov edx, dword [r15]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140087c64]
call fcn.140015a40
mov rcx, rax
lea rdx, str.HWPROCESS::CreateProcessAsAdminUser
call fcn.140015c30
mov rcx, rax
lea rdx, [0x140087c60]
call fcn.140015a40
call qword [sym.imp.LogHelper.dll_public:_static_class_HwLogger____ptr64___cdecl_HwLogger::GetInstance_void_]
mov rcx, rax
lea r8, [rbp - 0x20]
mov edx, 4
call qword [sym.imp.LogHelper.dll_public:_void___cdecl_HwLogger::Log_enum_LOG_MESSAGE_LEVEL__class_std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64____ptr64]
nop
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + rcx - 0x20], rax
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov rax, rcx
mov dword [rbp + rcx - 0x24], edx
lea rcx, [rbp - 8]
call fcn.140012ea0
lea rcx, [rbp]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
lea rcx, [rbp + 0x78]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
xor dil, dil
jmp 0x14006fbd7
mov dil, 1
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x14006fc1b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006fc16
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006fc16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007a810
mov qword [rsp + 0x78], r13
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], r13w
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x14006fc71
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006fc6c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006fc6c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007a810
movzx eax, dil
mov rcx, qword [rbp + 0x570]
xor rcx, rsp
call fcn.140079c90
add rsp, 0x688
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret