Function at 0x180044360
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
xor edi, edi
mov dword [rbp + 0x110], edi
lea rdx, str.list_volume_nselect_volume_C_nshrink_desired100_ncreate_partition_primary_nformat_fsfat32_quick_nassign_letterA_n
lea rcx, [rsp + 0x40]
call fcn.18004a3e0
nop
lea rax, [0x180101d78]
mov qword [rbp - 0x30], rax
lea rax, [0x180101f28]
mov qword [rbp - 0x20], rax
lea rcx, [rbp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
nop
mov dword [rbp + 0x110], 1
xor r8d, r8d
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x30]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t______ptr64____ptr64]
nop
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea r14, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + rcx - 0x30], r14
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x34], edx
lea rcx, [rbp - 0x18]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
lea rsi, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp - 0x18], rsi
mov qword [rbp + 0x50], rdi
mov dword [rbp + 0x58], edi
lea rdx, str._c__echo
lea rcx, [rbp - 0x20]
call fcn.18004d130
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
mov rcx, rax
call fcn.180052430
mov rcx, rax
lea rdx, str.__diskpart_
call fcn.18004d130
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rsp + 0x60], 0x70
mov qword [rsp + 0x68], rdi
lea rax, str.runas
mov qword [rsp + 0x70], rax
lea rax, str.cmd.exe
mov qword [rsp + 0x78], rax
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rdi
mov r8d, 7
mov qword [rsp + 0x38], r8
mov word [rsp + 0x20], di
mov dword [rbp + 0x110], 5
mov ecx, dword [rbp + 0x58]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x1800444e7
mov rax, qword [rbp + 0x28]
mov rdx, qword [rax]
test rdx, rdx
je 0x1800444e7
mov rax, qword [rbp + 8]
mov r9, qword [rax]
cmp rdx, qword [rbp + 0x50]
cmovb rdx, qword [rbp + 0x50]
jmp 0x18004450a
test cl, 4
jne 0x180044547
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
test rdx, rdx
je 0x180044547
mov rax, qword [rbp]
mov r9, qword [rax]
mov rax, qword [rbp + 0x38]
movsxd rcx, dword [rax]
lea rdx, [rdx + rcx*2]
sub rdx, r9
mov rax, r9
sar rdx, 1
test rax, rax
je 0x180044547
lea rcx, [rsp + 0x20]
cmp rdx, r8
ja 0x18004453d
mov qword [rsp + 0x30], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov word [rsp + rbx + 0x20], di
jmp 0x180044542
call fcn.18004d860
mov r8, qword [rsp + 0x38]
lea rax, [rsp + 0x20]
mov rcx, qword [rsp + 0x20]
cmp r8, 7
cmova rax, rcx
mov qword [rbp - 0x80], rax
jbe 0x180044594
lea rdx, [r8*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004458f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004458f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d2278
mov qword [rbp - 0x78], rdi
mov dword [rbp - 0x70], edi
mov qword [rbp - 0x68], rdi
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x1800445fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
cmp eax, 0x4c7
jne 0x1800445d2
lea rdx, str.The_user_cancelled_the_elevation_request.
call fcn.18004d130
jmp 0x1800445e9
lea rdx, str.An_error_occurred:
call fcn.18004d130
mov edx, ebx
mov rcx, rax
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]
lea rdx, [0x18004d310]
mov rcx, rax
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___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
nop
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x30], r14
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x34], edx
mov qword [rbp - 0x18], rsi
lea rcx, [rbp - 0x18]
call fcn.18004ac70
lea rcx, [rbp - 0x18]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
lea rcx, [rbp - 0x10]
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 + 0x68]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x18004468a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180044685
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180044685
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d2278
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret