Function at 0x1400025d0
Capabilities:
Get storage device properties

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x140008020]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov rsi, rcx
mov qword [rsp + 0x48], rcx
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r15 + 3]
lea rcx, str..PhysicalDrive0
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000267a
lea rdx, str.Error:_Could_not_open_physical_drive._Make_sure_you_have_sufficient_privileges.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140003880
mov rcx, rax
lea rdx, [0x140003a50]
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]
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 0xf
mov byte [rsi], r15b
jmp 0x140002bd8
mov qword [rbp - 0x68], r15
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 8
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0xc
lea r8, [rbp - 0x68]
mov edx, 0x2d1400
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400026ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.Error:_DeviceIoControl_failed_with_error_code
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140003880
mov rcx, rax
mov edx, ebx
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___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140003a50]
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 rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140002660
mov ecx, dword [rsp + 0x4c]
call fcn.140003e94
mov r14, rax
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x4c]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], r14
mov r9d, 0xc
lea r8, [rbp - 0x68]
mov edx, 0x2d1400
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14000278f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.Error:_DeviceIoControl_failed_with_error_code
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140003880
mov rcx, rax
mov edx, ebx
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___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140003a50]
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 rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call fcn.140003e8c
jmp 0x140002660
mov eax, dword [r14 + 0x18]
test eax, eax
jne 0x1400027ac
lea rdx, str.Error:_No_serial_number_available_for_this_device.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140003880
jmp 0x140002769
lea rdx, [r14 + rax]
lea rcx, [rbp - 0x58]
call fcn.1400036f0
nop
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call fcn.140003e8c
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], 0xf
mov byte [rsp + 0x78], 0
lea rcx, [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_GetCurrentHwProfileA]
test eax, eax
je 0x14000284b
lea rax, [rbp - 0x2c]
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x140002800
mov rax, qword [rbp - 0x70]
cmp rdi, rax
ja 0x14000283a
lea rbx, [rsp + 0x78]
cmp rax, 0x10
cmovae rbx, qword [rsp + 0x78]
mov qword [rbp - 0x78], rdi
mov r8, rdi
lea rdx, [rbp - 0x2c]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], 0
jmp 0x14000284b
lea r9, [rbp - 0x2c]
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.140003bf0
lea r8, [rsp + 0x78]
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x50]
call fcn.140003a90
lea rcx, [rsp + 0x50]
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x68], 0x10
jb 0x14000287f
mov rcx, qword [rsp + 0x50]
lea rdi, [rcx + rax]
lea rbx, [rcx + rax]
jmp 0x140002890
lea rdi, [rcx + rax]
lea rbx, [rsp + 0x50]
add rbx, rax
lea rcx, [rsp + 0x50]
mov r14, rdi
mov r8b, 0x7b
mov rdx, rbx
call fcn.140003d50
mov rcx, rax
cmp rax, rbx
je 0x1400028c5
inc rax
cmp rax, rbx
je 0x1400028c5
nop
movzx edx, byte [rax]
cmp dl, 0x7b
je 0x1400028bd
mov byte [rcx], dl
inc rcx
inc rax
cmp rax, rbx
jne 0x1400028b0
lea rax, [rsp + 0x50]
mov rdx, rcx
mov rbx, qword [rsp + 0x60]
cmp qword [rsp + 0x68], 0x10
jb 0x1400028e4
mov r8, qword [rsp + 0x50]
sub rdx, r8
jmp 0x1400028ef
sub rdx, rax
mov r14, rdi
lea r8, [rsp + 0x50]
mov rax, rbx
sub r14, rcx
sub rax, rdx
cmp rax, r14
cmovb r14, rax
lea rcx, [r8 + rdx]
sub rbx, r14
mov r8, rbx
sub r8, rdx
inc r8
lea rdx, [rcx + r14]
call sub.VCRUNTIME140.dll_memmove
mov qword [rsp + 0x60], rbx
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
jb 0x140002938
mov rcx, qword [rsp + 0x50]
lea rdi, [rbx + rcx]
add rbx, rcx
jmp 0x140002949
lea rdi, [rbx + rax]
lea rax, [rsp + 0x50]
add rbx, rax
lea rcx, [rsp + 0x50]
mov r8b, 0x7d
mov rdx, rbx
call fcn.140003d50
mov rdx, rax
cmp rax, rbx
je 0x140002979
inc rax
cmp rax, rbx
je 0x140002979
movzx ecx, byte [rax]
cmp cl, 0x7d
je 0x140002971
mov byte [rdx], cl
inc rdx
inc rax
cmp rax, rbx
jne 0x140002964
lea rax, [rsp + 0x50]
sub rdi, rdx
mov rbx, qword [rsp + 0x60]
cmp qword [rsp + 0x68], 0x10
jb 0x140002998
mov rcx, qword [rsp + 0x50]
sub rdx, rcx
jmp 0x1400029a0
sub rdx, rax
lea rcx, [rsp + 0x50]
mov rax, rbx
sub rax, rdx
cmp rax, rdi
cmovb rdi, rax
add rcx, rdx
sub rbx, rdi
mov r8, rbx
sub r8, rdx
inc r8
lea rdx, [rcx + rdi]
call sub.VCRUNTIME140.dll_memmove
mov qword [rsp + 0x60], rbx
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
jb 0x1400029e5
mov rcx, qword [rsp + 0x50]
lea rdi, [rcx + rbx]
add rbx, rcx
jmp 0x1400029f6
lea rdi, [rbx + rax]
lea rax, [rsp + 0x50]
add rbx, rax
lea rcx, [rsp + 0x50]
mov r8b, 0x2d
mov rdx, rbx
call fcn.140003d50
mov rdx, rax
cmp rax, rbx
je 0x140002a26
inc rax
cmp rax, rbx
je 0x140002a26
movzx ecx, byte [rax]
cmp cl, 0x2d
je 0x140002a1e
mov byte [rdx], cl
inc rdx
inc rax
cmp rax, rbx
jne 0x140002a11
lea rax, [rsp + 0x50]
sub rdi, rdx
mov rbx, qword [rsp + 0x60]
cmp qword [rsp + 0x68], 0x10
jb 0x140002a45
mov rcx, qword [rsp + 0x50]
sub rdx, rcx
jmp 0x140002a4d
sub rdx, rax
lea rcx, [rsp + 0x50]
mov rax, rbx
sub rax, rdx
cmp rax, rdi
cmovb rdi, rax
add rcx, rdx
sub rbx, rdi
mov r8, rbx
sub r8, rdx
inc r8
lea rdx, [rcx + rdi]
call sub.VCRUNTIME140.dll_memmove
mov qword [rsp + 0x60], rbx
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
jb 0x140002a92
mov rcx, qword [rsp + 0x50]
lea rdi, [rcx + rbx]
add rbx, rcx
jmp 0x140002aa3
lea rdi, [rbx + rax]
lea rax, [rsp + 0x50]
add rbx, rax
lea rcx, [rsp + 0x50]
mov r8b, 0x20
mov rdx, rbx
call fcn.140003d50
mov rdx, rax
cmp rax, rbx
je 0x140002ad5
inc rax
cmp rax, rbx
je 0x140002ad5
nop
movzx ecx, byte [rax]
cmp cl, 0x20
je 0x140002acd
mov byte [rdx], cl
inc rdx
inc rax
cmp rax, rbx
jne 0x140002ac0
lea rax, [rsp + 0x50]
sub rdi, rdx
mov rbx, qword [rsp + 0x60]
cmp qword [rsp + 0x68], 0x10
jb 0x140002af4
mov rcx, qword [rsp + 0x50]
sub rdx, rcx
jmp 0x140002afc
sub rdx, rax
lea rcx, [rsp + 0x50]
mov rax, rbx
sub rax, rdx
cmp rax, rdi
cmovb rdi, rax
add rcx, rdx
sub rbx, rdi
mov r8, rbx
sub r8, rdx
inc r8
lea rdx, [rcx + rdi]
call sub.VCRUNTIME140.dll_memmove
mov qword [rsp + 0x60], rbx
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rsi + 0x10], xmm1
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], 0xf
mov byte [rsp + 0x50], 0
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x140002b89
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002b84
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002b84
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003e8c
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], 0xf
mov byte [rsp + 0x78], 0
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x140002bd8
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002bd3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002bd3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003e8c
mov rax, rsi
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140003e30
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret