Function at 0x1400087d0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x100
mov rax, qword [0x140047040]
xor rax, rsp
mov qword [rbp + 0x27], rax
xor r12d, r12d
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.140003aa0
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea edx, [r12 + 7]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov esi, r12d
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x48], r12
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
lea ebx, [r12 + 0x41]
mov r15, qword [rsp + 0x40]
test dil, 1
je 0x140008918
xorps xmm0, xmm0
movups xmmword [rbp - 0x69], xmm0
mov qword [rbp - 0x59], 1
mov qword [rbp - 0x51], 7
mov word [rbp - 0x69], bx
mov word [rbp - 0x67], r12w
cmp r15, rsi
je 0x1400088b8
lea rdx, [rbp - 0x69]
mov rcx, r15
call fcn.140003490
add r15, 0x20
mov qword [rsp + 0x40], r15
jmp 0x1400088d8
lea r8, [rbp - 0x69]
mov rdx, r15
lea rcx, [rsp + 0x38]
call fcn.140009ed0
mov rsi, qword [rsp + 0x48]
mov qword [rsp + 0x30], rsi
mov r15, qword [rsp + 0x40]
mov rdx, qword [rbp - 0x51]
cmp rdx, 7
jbe 0x140008918
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008913
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400089cb
call fcn.140030a80
shr edi, 1
inc bx
cmp bx, 0x5a
jbe 0x140008872
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 [rbp - 0x79], r8
mov rbx, qword [rsp + 0x38]
mov rsi, rbx
cmp rbx, r15
je 0x140008df6
lea r10, [0x1400356b0]
mov r11d, 0xa
movabs rdx, 0x7fffffffffffffff
movabs rcx, 0x7ffffffffffffffe
mov r14, qword [rsi + 0x10]
mov r8, rsi
mov r9, qword [rsi + 0x18]
cmp r9, 7
jbe 0x1400089a3
mov r8, qword [rsi]
cmp r14, 1
jne 0x1400089e8
mov rdx, r14
mov rax, r10
sub r8, r10
movzx ecx, word [rax + r8]
cmp cx, word [rax]
jne 0x1400089d2
add rax, 2
sub rdx, 1
jne 0x1400089b2
jmp 0x140008de4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
movabs rcx, 0x7ffffffffffffffe
movabs rdx, 0x7fffffffffffffff
jmp 0x1400089f8
mov rax, rcx
sub rax, r14
cmp rax, 2
jb 0x140008e7d
mov r13, rsi
cmp r9, 7
jbe 0x140008a04
mov r13, qword [rsi]
xorps xmm0, xmm0
movups xmmword [rbp - 0x69], xmm0
mov qword [rbp - 0x59], r12
mov qword [rbp - 0x51], r12
lea r12, [r14 + 2]
mov ebx, 7
lea rdi, [rbp - 0x69]
cmp r12, rbx
jbe 0x140008a9c
mov rbx, r12
or rbx, 7
cmp rbx, rcx
jbe 0x140008a3a
mov rbx, rcx
lea rcx, [rdx + rdx]
jmp 0x140008a5b
cmp rbx, 0xa
cmovb rbx, r11
lea rcx, [rbx + 1]
cmp rcx, rdx
ja 0x140008e83
add rcx, rcx
cmp rcx, 0x1000
jb 0x140008a87
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140008e83
mov rcx, rax
call fcn.140030ba8
test rax, rax
je 0x140008e41
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140008a98
test rcx, rcx
je 0x140008a96
call fcn.140030ba8
mov rdi, rax
jmp 0x140008a98
xor edi, edi
mov qword [rbp - 0x69], rdi
mov qword [rbp - 0x59], r12
mov qword [rbp - 0x51], rbx
lea rbx, [r14 + r14]
mov r8, rbx
mov rdx, r13
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov dword [rbx + rdi], 0x5c003a
xor edx, edx
mov word [rdi + r12*2], dx
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
mov r13, qword [rbp - 0x59]
sub rax, r13
cmp rax, 0x19
jb 0x140008e8f
lea r12, [rbp - 0x69]
mov rax, qword [rbp - 0x69]
mov qword [rbp - 0x71], rax
cmp qword [rbp - 0x51], 7
cmova r12, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x39], rdx
mov qword [rbp - 0x31], rdx
lea r14, [r13 + 0x19]
mov ebx, 7
lea rdi, [rbp - 0x49]
cmp r14, rbx
jbe 0x140008bad
mov rbx, r14
or rbx, 7
cmp rbx, rcx
jbe 0x140008b3b
mov rbx, rcx
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x140008b6b
cmp rbx, 0xa
mov eax, 0xa
cmovb rbx, rax
lea rcx, [rbx + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140008e89
add rcx, rcx
cmp rcx, 0x1000
jb 0x140008b97
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140008e89
mov rcx, rax
call fcn.140030ba8
test rax, rax
je 0x140008e3a
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140008ba9
test rcx, rcx
je 0x140008ba6
call fcn.140030ba8
mov rdi, rax
jmp 0x140008ba9
mov rdi, rdx
mov qword [rbp - 0x49], rdi
mov qword [rbp - 0x39], r14
mov qword [rbp - 0x31], rbx
lea rbx, [r13*2]
mov r8, rbx
mov rdx, r12
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
movups xmm0, xmmword [str.System_Volume_Information]
movups xmmword [rdi + rbx], xmm0
movups xmm1, xmmword [0x1400356d0]
movups xmmword [rdi + rbx + 0x10], xmm1
movups xmm0, xmmword [0x1400356e0]
movups xmmword [rdi + rbx + 0x20], xmm0
movzx eax, word [0x1400356f0]
mov word [rdi + rbx + 0x30], ax
xor r12d, r12d
mov word [rdi + r14*2], r12w
lea rcx, [rbp - 0x49]
call fcn.1400084e0
test al, al
je 0x140008d4a
lea rcx, [rbp - 0x49]
call fcn.1400084e0
test al, al
je 0x140008c83
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
mov dword [rbp - 9], eax
lea rcx, [rbp - 0x49]
cmp qword [rbp - 0x31], 7
cmova rcx, qword [rbp - 0x49]
lea r8, [rbp - 0x29]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x140008c83
mov eax, dword [rbp - 0x15]
mov dword [rsp + 0x20], eax
mov rax, qword [rbp - 0x15]
shr rax, 0x20
mov dword [rsp + 0x24], eax
movabs rax, 0xd6bf94d5e57a42bd
mul qword [rsp + 0x20]
shr rdx, 0x17
movabs rax, 0x2b6109100
sub rdx, rax
jmp 0x140008c86
mov rdx, r12
mov qword [rsp + 0x28], rdx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 1], xmm0
movups xmmword [rbp + 0xf], xmm0
mov dword [rbp + 0x1f], eax
lea rdx, [rsp + 0x28]
lea rcx, [rbp - 1]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
mov rax, qword [rbp - 0x79]
cmp qword [rsp + 0x28], rax
jle 0x140008d4a
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]
call fcn.140003880
mov rdx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x140008cd9
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
mov rcx, rax
call fcn.140004710
lea rdx, str._was_installed_at:
mov rcx, rax
call fcn.140003880
lea rcx, [rbp - 1]
mov qword [rbp - 0x29], rcx
lea rbx, [0x140035718]
mov qword [rbp - 0x21], rbx
mov rcx, rbx
nop word [rax + rax]
add rcx, 2
cmp word [rcx], 0
jne 0x140008d10
mov qword [rbp - 0x19], rcx
lea rdx, [rbp - 0x29]
mov rcx, rax
call fcn.140009390
mov rcx, rax
lea rdx, str.._Ban_the_user.
call fcn.140003880
lea rdx, [0x140003a60]
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 [rbp - 0x31]
cmp rdx, 7
jbe 0x140008d8a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008d85
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008e3a
call fcn.140030a80
mov qword [rbp - 0x39], r12
mov qword [rbp - 0x31], 7
mov word [rbp - 0x49], r12w
mov rax, qword [rbp - 0x51]
cmp rax, 7
jbe 0x140008dd7
lea rdx, [rax*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008dd2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008e41
call fcn.140030a80
mov r11d, 0xa
lea r10, [0x1400356b0]
add rsi, 0x20
cmp rsi, r15
jne 0x14000897b
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x140008e50
mov rdx, r15
mov rcx, rbx
call fcn.1400099b0
mov rdx, qword [rsp + 0x30]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
mov rax, rbx
cmp rdx, 0x1000
jb 0x140008e48
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140008e48
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, rbx
call fcn.140030a80
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140030a60
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140002300
nop
call fcn.140002260
nop
call fcn.140002260
int3
call fcn.140002300
int3