Function at 0x1400081a0
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x110
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x140054040]
xor rax, rsp
mov qword [rsp + 0xf8], rax
xor r12d, r12d
mov dword [rsp + 0x20], r12d
test cl, cl
jne 0x14000822a
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea edx, [r12 + 6]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str._Disk_Scanner__Running_checks_for_replaced_drives_bypass...__n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1400053a0
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea edx, [r12 + 7]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
nop
xorps xmm6, xmm6
movdqu xmmword [rsp + 0x28], xmm6
mov qword [rsp + 0x38], r12
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov ebx, 0x41
psrldq xmm6, 8
movq rsi, xmm6
nop
cmp bx, 0x5a
ja 0x140008333
nop word [rax + rax]
test dil, 1
je 0x140008329
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], 1
mov qword [rsp + 0x80], 7
mov word [rsp + 0x68], bx
mov word [rsp + 0x6a], r12w
cmp rsi, qword [rsp + 0x38]
je 0x1400082b1
lea rdx, [rsp + 0x68]
mov rcx, rsi
call fcn.140002a80
add rsi, 0x20
mov qword [rsp + 0x30], rsi
jmp 0x1400082ca
lea r8, ds:[rsp + 0x68]
mov rdx, rsi
lea rcx, [rsp + 0x28]
call fcn.140009500
mov rsi, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x80]
cmp rdx, 7
jbe 0x140008312
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000830d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000830d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140038e10
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x80], 7
mov word [rsp + 0x68], r12w
shr edi, 1
inc bx
jmp 0x140008250
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rbx, rax
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov r8, rax
movabs rax, 0x20c49ba5e353f7cf
imul rbx
sar rdx, 7
mov rcx, rdx
shr rcx, 0x3f
add rdx, rcx
sub r8, rdx
mov qword [rsp + 0x50], r8
mov rdi, qword [rsp + 0x28]
mov rax, rsi
mov qword [rsp + 0x58], rax
lea r11, [0x14003fe10]
mov r10d, 0xa
movabs rdx, 0x7fffffffffffffff
movabs rcx, 0x7ffffffffffffffe
cmp rdi, rax
je 0x140008905
mov r15, qword [rdi + 0x10]
mov r8, rdi
mov r9, qword [rdi + 0x18]
cmp r9, 7
jbe 0x1400083bd
mov r8, qword [rdi]
nop dword [rax]
cmp r15, 1
jne 0x1400084cc
mov rdx, r15
mov rcx, r11
sub r8, r11
movzx eax, word [rcx + r8]
cmp ax, word [rcx]
jne 0x1400083f2
add rcx, 2
sub rdx, 1
jne 0x1400083d3
add rdi, 0x20
mov rax, qword [rsp + 0x58]
jmp 0x140008386
movabs rcx, 0x7ffffffffffffffe
movabs rdx, 0x7fffffffffffffff
mov r13, rdi
cmp r9, 7
jbe 0x140008412
mov r13, qword [rdi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x80], r12
lea r12, [r15 + 2]
mov ebx, 7
lea r14, [rsp + 0x68]
cmp r12, rbx
jbe 0x140008468
mov rbx, r12
or rbx, 7
cmp rbx, rcx
jbe 0x1400084e5
mov rbx, rcx
mov rcx, rdx
lfence
add rcx, rcx
call fcn.140003b00
mov r14, rax
mov qword [rsp + 0x68], rax
mov rsi, qword [rsp + 0x30]
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x80], rbx
lea rbx, [r15 + r15]
mov r8, rbx
mov rdx, r13
mov rcx, r14
call sub.VCRUNTIME140.dll_memcpy
mov dword ds:[rbx + r14], 0x5c003a
xor ecx, ecx
mov word [r14 + r12*2], cx
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov r13, qword [rsp + 0x78]
movabs rdx, 0x7ffffffffffffffe
mov rax, rdx
sub rax, r13
cmp rax, 0x19
jb 0x1400089ac
jmp 0x1400084ff
mov rax, rcx
sub rax, r15
cmp rax, 2
jb 0x1400089b2
nop dword [rax]
jmp 0x140008406
cmp rbx, 0xa
cmovb rbx, r10
lea rcx, [rbx + 1]
cmp rcx, rdx
ja 0x1400089b7
jmp 0x140008450
lea r12, ds:[rsp + 0x68]
cmp qword [rsp + 0x80], 7
cmova r12, qword [rsp + 0x68]
xorps xmm0, xmm0
movups xmmword [rsp + 0x88], xmm0
mov qword [rsp + 0x98], rcx
mov qword [rsp + 0xa0], rcx
lea r15, [r13 + 0x19]
mov ebx, 7
lea r14, [rsp + 0x88]
cmp r15, rbx
jbe 0x14000857d
mov rbx, r15
or rbx, 7
cmp rbx, rdx
jbe 0x140008696
mov rbx, rdx
movabs rcx, 0x7fffffffffffffff
lfence
add rcx, rcx
call fcn.140003b00
mov r14, rax
mov qword [rsp + 0x88], rax
mov rsi, qword [rsp + 0x30]
mov qword ds:[rsp + 0x98], r15
mov qword [rsp + 0xa0], rbx
lea rbx, [r13*2]
mov r8, rbx
mov rdx, r12
mov rcx, r14
call sub.VCRUNTIME140.dll_memcpy
movups xmm0, xmmword [str.System_Volume_Information]
movups xmmword [rbx + r14], xmm0
movups xmm1, xmmword [0x14003fe30]
movups xmmword [rbx + r14 + 0x10], xmm1
movups xmm0, xmmword [0x14003fe40]
movups xmmword [rbx + r14 + 0x20], xmm0
movzx eax, word [0x14003fe50]
mov word [rbx + r14 + 0x30], ax
xor r12d, r12d
mov word [r14 + r15*2], r12w
or dword [rsp + 0x20], 2
lea rcx, [rsp + 0x88]
call fcn.140007e80
test al, al
je 0x1400087e8
lea rcx, [rsp + 0x88]
call fcn.140007e80
test al, al
je 0x1400086bf
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0xa8], xmm0
movups xmmword [rsp + 0xb8], xmm0
mov dword [rsp + 0xc8], eax
lea rcx, [rsp + 0x88]
cmp qword [rsp + 0xa0], 7
cmova rcx, qword [rsp + 0x88]
lea r8, [rsp + 0xa8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x1400086bf
mov eax, dword [rsp + 0xbc]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0xbc]
shr rax, 0x20
mov dword [rsp + 0x44], eax
movabs rax, 0xd6bf94d5e57a42bd
mul qword [rsp + 0x40]
shr rdx, 0x17
movabs rax, 0x2b6109100
sub rdx, rax
jmp 0x1400086c2
cmp rbx, 0xa
mov eax, 0xa
cmovb rbx, rax
lea rcx, [rbx + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x1400089bd
jmp 0x140008562
mov rdx, r12
mov qword [rsp + 0x48], rdx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0xd0], xmm0
movups xmmword [rsp + 0xe0], xmm0
mov dword [rsp + 0xf0], eax
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0xd0]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
test eax, eax
jne 0x1400087a7
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jle 0x14000882d
lea rdx, str.____Disk
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
nop dword [rax]
call fcn.140003020
mov rdx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140008732
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, rax
call fcn.140006180
lea rdx, str._was_installed_at:
mov rcx, rax
call fcn.140003020
lea rcx, [rsp + 0xd0]
mov qword [rsp + 0xa8], rcx
lea rbx, [0x14003fe78]
mov qword [rsp + 0xb0], rbx
mov rcx, rbx
nop
add rcx, 2
mov qword [rsp + 0xb8], rcx
cmp word [rcx], 0
jne 0x140008770
lea rdx, [rsp + 0xa8]
mov rcx, rax
call fcn.140009180
lea rdx, str.._Ban_the_user.
mov rcx, rax
call fcn.140003020
jmp 0x1400087d3
lea rdx, str.___Error_getting_local_time_for_drive
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140003020
mov rdx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x1400087c7
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, rax
call fcn.140006180
lea rdx, [0x140005660]
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]
jmp 0x14000882d
lea rdx, str.___Could_not_detect_disk_bypasses_in_drive_letter:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140003020
lea rdx, [rsp + 0x68]
cmp qword [rsp + 0x80], 7
cmova rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x78]
mov rcx, rax
call fcn.140006180
lea rdx, [0x140005660]
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 rdx, qword [rsp + 0xa0]
cmp rdx, 7
jbe 0x140008878
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008873
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140008873
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140038e10
mov qword ds:[rsp + 0x98], r12
mov qword [rsp + 0xa0], 7
mov word [rsp + 0x88], r12w
mov rdx, qword [rsp + 0x80]
cmp rdx, 7
jbe 0x1400088e5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400088db
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400088db
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
nop dword [rax + rax]
call fcn.140038e10
lea r11, [0x14003fe10]
mov r10d, 0xa
add rdi, 0x20
mov rax, qword [rsp + 0x58]
jmp 0x140008386
mov r14, qword [rsp + 0x28]
test r14, r14
je 0x140008970
mov rbx, r14
cmp r14, rsi
je 0x140008928
mov rcx, rbx
call fcn.140002b80
add rbx, 0x20
cmp rbx, rsi
jne 0x140008917
mov rdx, qword ds:[rsp + 0x38]
sub rdx, r14
and rdx, 0xffffffffffffffe0
mov rax, r14
cmp rdx, 0x1000
jb 0x140008967
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140008967
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.140038e10
nop
mov rcx, qword ds:[rsp + 0xf8]
xor rcx, rsp
call fcn.140038df0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
ret
call fcn.140001fe0
nop
call fcn.140001fe0
call fcn.140001f30
nop
nop dword [rax]
call fcn.140001f30
int3