Function at 0x140001070
Capabilities:
Execute command
Get disk information via ioctl

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x680
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x670], rax
xor ebx, ebx
lea rcx, str..PhysicalDrive0
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], ebx
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
lea r8d, [rbx + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400010ec
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_open_disk_device.
call fcn.140001290
mov rcx, rax
lea rdx, [0x140001460]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x14000125b
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rsp + 0x270]
mov dword [rsp + 0x28], 0x400
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x70050
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140001150
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_get_drive_layout.
call fcn.140001290
mov rcx, rax
lea rdx, [0x140001460]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x140001252
mov rdx, qword [rsp + 0x274]
test edx, edx
je 0x140001252
mov qword [rsp + 0x690], rdi
nop dword [rax + rax]
mov eax, ebx
lea rdi, [rsp + 0x2a0]
lea rcx, [rax + rax*8]
shl rcx, 4
add rdi, rcx
cmp dword [rdi], 1
jne 0x1400011ba
lea rdx, [rsp + 0x48]
lea rcx, str.C12A7328_F81F_11D2_BA4B_00A0C93EC93B
call qword [sym.imp.ole32.dll_CLSIDFromString]
mov rax, qword [rdi + 0x20]
cmp rax, qword [rsp + 0x48]
jne 0x1400011b2
mov rax, qword [rdi + 0x28]
cmp rax, qword [rsp + 0x50]
je 0x1400011c5
mov rdx, qword [rsp + 0x274]
inc ebx
cmp ebx, edx
jb 0x140001170
jmp 0x14000124a
mov r9d, dword [rdi + 0x18]
lea r8, str._GLOBALROOTDeviceHarddisk0Partition_lu_
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.140001010
mov eax, dword [0x14000342c]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x58], eax
lea rcx, [rsp + 0x58]
movzx eax, word [0x140003430]
mov word [rsp + 0x5c], ax
call qword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
test eax, eax
je 0x140001227
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1400014a0
mov rcx, rax
lea rdx, [0x140001670]
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]
jmp 0x14000124a
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_assign_drive_letter.
call fcn.140001290
mov rcx, rax
lea rdx, [0x140001460]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rdi, qword [rsp + 0x690]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.140001770
mov rbx, qword [rsp + 0x698]
add rsp, 0x680
pop rsi
ret