Function at 0x180010470
Capabilities:
Get disk information
Get disk size
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x3d8
mov qword [rsp + 0x130], 0xfffffffffffffffe
mov rax, qword [0x1800764c0]
xor rax, rsp
mov qword [rsp + 0x3c0], rax
mov r14, r9
mov r13, r8
mov rbp, rdx
mov dil, cl
xor r15d, r15d
mov dword [rsp + 0x40], r15d
mov ebx, r15d
lea rdx, [rsp + 0x40]
mov cl, dil
call fcn.180033e40
cmp al, r15b
jne 0x1800104e9
lea rcx, str.GetUsbStorageUnique_failed__retry_later
call fcn.180019070
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 5
jl 0x1800104b9
mov r8d, dword [rsp + 0x40]
cmp r8d, r15d
jne 0x180010504
lea rcx, str.USB_unique_is_0x00000000_
call fcn.180018ed8
jmp 0x180011020
lea rdx, str._08x
lea rcx, [rsp + 0x198]
call fcn.18001bd74
nop
movsx eax, dil
movzx r8d, ax
lea rdx, [0x18005f8f8]
lea rcx, [rsp + 0x148]
call fcn.18001bccc
nop
mov word [rsp + 0x1c0], r15w
mov ebx, 0xfe
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x1c2]
call fcn.18003eb60
mov word [rsp + 0x2c0], r15w
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x2c2]
call fcn.18003eb60
lea rcx, [rsp + 0x150]
cmp qword [rsp + 0x168], 8
cmovae rcx, qword [rsp + 0x150]
lea r8d, [rbx - 0x7e]
mov dword [rsp + 0x38], r8d
lea rax, [rsp + 0x2c0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
xor r9d, r9d
lea rdx, [rsp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov dword [rsp + 0xc8], r15d
xor eax, eax
mov dword [rsp + 0xcc], eax
mov dword [rsp + 0xd8], r15d
mov dword [rsp + 0xdc], eax
lea rcx, [rsp + 0x150]
cmp qword [rsp + 0x168], 8
cmovae rcx, qword [rsp + 0x150]
lea r9, [rsp + 0xd8]
lea r8, [rsp + 0xc8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
lea rax, [0x18007a1f8]
mov qword [rsp + 0x70], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov r12, qword [0x18007a950]
mov rbx, qword [0x18007a920]
lea r8, [rsp + 0x198]
lea rdx, [rsp + 0x138]
lea rcx, [0x18007a920]
call fcn.1800068c0
mov rsi, rax
cmp qword [rax], r15
je 0x18001065b
cmp qword [rax], rbx
je 0x180010660
call fcn.18003c608
cmp qword [rsi + 8], r12
setne r12b
lea rcx, [0x18007a1f8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, r15d
mov dword [rsp + 0x40], r15d
cmp byte [0x18007a258], r15b
jne 0x18001068b
mov ebx, r15d
jmp 0x1800106a3
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x198]
call fcn.18000e40c
mov ebx, eax
mov esi, dword [rsp + 0x40]
mov qword [rsp + 0x128], 7
mov qword [rsp + 0x120], r15
mov word [rsp + 0x110], r15w
mov r8d, 4
lea rdx, [0x1800603a8]
lea rcx, [rsp + 0x108]
call fcn.180002638
nop
lea rdx, [rsp + 0x108]
lea rcx, [rsp + 0x170]
call fcn.180002d54
nop
cmp qword [rsp + 0x128], 8
jb 0x180010709
mov rcx, qword [rsp + 0x110]
call fcn.18003c660
mov qword [rsp + 0x128], 7
mov qword [rsp + 0x120], r15
mov word [rsp + 0x110], r15w
mov byte [rsp + 0x45], r15b
mov byte [rsp + 0x44], r15b
lea r8, [rsp + 0x44]
lea rdx, [rsp + 0x45]
mov cl, dil
call fcn.18003539c
mov r15b, al
cmp ebx, 2
jne 0x180010822
mov qword [rsp + 0x68], 7
xor esi, esi
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x50], si
lea r8d, [rbx + 2]
lea rdx, [0x1800603b8]
lea rcx, [rsp + 0x48]
call fcn.180002638
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x78]
call fcn.180002d54
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x170]
call fcn.1800020ec
nop
cmp qword [rsp + 0x98], 0x10
jb 0x1800107b9
mov rcx, qword [rsp + 0x80]
call fcn.18003c660
mov qword [rsp + 0x98], 0xf
mov qword [rsp + 0x90], rsi
mov byte [rsp + 0x80], sil
cmp qword [rsp + 0x68], 8
jb 0x1800107e7
mov rcx, qword [rsp + 0x50]
call fcn.18003c660
cmp r12b, sil
je 0x1800107fc
mov cl, dil
call fcn.18000feac
mov byte [rbp], al
jmp 0x180010a38
mov cl, dil
call fcn.18000e5b8
cmp eax, esi
je 0x180010811
mov byte [rbp], 1
jmp 0x180010a38
lea rcx, [0x1800603c8]
call fcn.180019070
jmp 0x180010a38
cmp ebx, 1
jne 0x1800108d5
mov qword [rsp + 0x68], 7
xor esi, esi
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x50], si
lea r8d, [rbx + 4]
lea rdx, [0x1800603d8]
lea rcx, [rsp + 0x48]
call fcn.180002638
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x78]
call fcn.180002d54
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x170]
call fcn.1800020ec
nop
cmp qword [rsp + 0x98], 0x10
jb 0x180010896
mov rcx, qword [rsp + 0x80]
call fcn.18003c660
mov qword [rsp + 0x98], 0xf
mov qword [rsp + 0x90], rsi
mov byte [rsp + 0x80], sil
cmp qword [rsp + 0x68], 8
jb 0x1800108c4
mov rcx, qword [rsp + 0x50]
call fcn.18003c660
mov cl, dil
call fcn.180010070
mov byte [r13], al
jmp 0x180010a38
cmp ebx, 3
jne 0x180010987
mov qword [rsp + 0x68], 7
xor esi, esi
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x50], si
lea r8d, [rbx + 2]
lea rdx, [0x1800603e8]
lea rcx, [rsp + 0x48]
call fcn.180002638
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x78]
call fcn.180002d54
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x170]
call fcn.1800020ec
nop
cmp qword [rsp + 0x98], 0x10
jb 0x180010949
mov rcx, qword [rsp + 0x80]
call fcn.18003c660
mov qword [rsp + 0x98], 0xf
mov qword [rsp + 0x90], rsi
mov byte [rsp + 0x80], sil
cmp qword [rsp + 0x68], 8
jb 0x180010977
mov rcx, qword [rsp + 0x50]
call fcn.18003c660
mov cl, dil
call fcn.180010270
mov byte [r14], al
jmp 0x180010a38
test ebx, ebx
jne 0x180010a32
test esi, esi
je 0x180010a36
mov qword [rsp + 0x68], 7
xor esi, esi
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x50], si
lea r8d, [rbx + 0xa]
lea rdx, [0x1800603f8]
lea rcx, [rsp + 0x48]
call fcn.180002638
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x78]
call fcn.180002d54
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x170]
call fcn.1800020ec
nop
cmp qword [rsp + 0x98], 0x10
jb 0x180010a02
mov rcx, qword [rsp + 0x80]
call fcn.18003c660
mov qword [rsp + 0x98], 0xf
mov qword [rsp + 0x90], rsi
mov byte [rsp + 0x80], sil
cmp qword [rsp + 0x68], 8
jb 0x180010a38
mov rcx, qword [rsp + 0x50]
call fcn.18003c660
jmp 0x180010a38
xor esi, esi
jmp 0x180010a38
xor esi, esi
mov r9d, ebx
mov r8, qword [rsp + 0xc8]
lea rdx, [rsp + 0x1c0]
lea rcx, [rsp + 0x198]
call fcn.18000dd1c
cmp r12b, sil
je 0x180010a6d
lea rdx, [rsp + 0x198]
mov cl, dil
call fcn.18000f664
mov dword [rsp + 0x40], 4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xd0]
lea r8, [0x18005f678]
lea rdx, str.SoftwareWOW6432Nodeprojonepodlp_smprule_
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp eax, esi
jne 0x180010ac0
cmp dword [rsp + 0xd0], 4
jne 0x180010ac0
mov eax, dword [rsp + 0x70]
jmp 0x180010ac2
mov eax, esi
cmp eax, esi
je 0x180010fa0
and dword [rsp + 0x80], 0xfffffe00
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x98], rsi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x70], rax
movsx r8d, dil
lea rdx, str._c:_
lea rcx, [rsp + 0xa0]
call fcn.18001bd74
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.180025558
mov rdi, rax
lea rdx, str.us_drive
lea rcx, [rsp + 0x78]
call fcn.180026aa8
mov rcx, rax
mov rdx, rdi
call fcn.1800257e4
nop
cmp qword [rsp + 0xc0], 0x10
jb 0x180010b55
mov rcx, qword [rsp + 0xa8]
call fcn.18003c660
cmp word [rsp + 0x1c0], si
je 0x180010c40
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x50], si
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x1c0]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x1c0]
lea rcx, [rsp + 0x48]
call fcn.180002638
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0xa0]
call fcn.180002d54
nop
mov rdx, rax
lea rcx, [rsp + 0xe0]
call fcn.180025558
mov rdi, rax
lea rdx, str.us_label
lea rcx, [rsp + 0x78]
call fcn.180026aa8
mov rcx, rax
mov rdx, rdi
call fcn.1800257e4
nop
cmp qword [rsp + 0xc0], 0x10
jb 0x180010c09
mov rcx, qword [rsp + 0xa8]
call fcn.18003c660
mov qword [rsp + 0xc0], 0xf
mov qword [rsp + 0xb8], rsi
mov byte [rsp + 0xa8], sil
cmp qword [rsp + 0x68], 8
jb 0x180010d01
mov rcx, qword [rsp + 0x50]
call fcn.18003c660
jmp 0x180010d01
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x50], si
mov r8d, 2
lea rdx, [0x180060434]
lea rcx, [rsp + 0x48]
call fcn.180002638
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0xa0]
call fcn.180002d54
nop
mov rdx, rax
lea rcx, [rsp + 0xe0]
call fcn.180025558
mov rdi, rax
lea rdx, str.us_label
lea rcx, [rsp + 0x78]
call fcn.180026aa8
mov rcx, rax
mov rdx, rdi
call fcn.1800257e4
nop
cmp qword [rsp + 0xc0], 0x10
jb 0x180010cd3
mov rcx, qword [rsp + 0xa8]
call fcn.18003c660
mov qword [rsp + 0xc0], 0xf
mov qword [rsp + 0xb8], rsi
mov byte [rsp + 0xa8], sil
cmp qword [rsp + 0x68], 8
jb 0x180010d01
mov rcx, qword [rsp + 0x50]
call fcn.18003c660
mov rdx, qword [rsp + 0xc8]
cmp rdx, rsi
jbe 0x180010d7a
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0xa0]
call fcn.18001ad20
nop
mov rdx, rax
lea rcx, [rsp + 0xe0]
call fcn.180025558
mov rdi, rax
lea rdx, str.us_capacity
lea rcx, [rsp + 0x78]
call fcn.180026aa8
mov rcx, rax
mov rdx, rdi
call fcn.1800257e4
nop
cmp qword [rsp + 0xc0], 0x10
jb 0x180010e3b
mov rcx, qword [rsp + 0xa8]
call fcn.18003c660
jmp 0x180010e3b
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x50], si
mov r8d, 2
lea rdx, [0x18006044c]
lea rcx, [rsp + 0x48]
call fcn.180002638
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0xa0]
call fcn.180002d54
nop
mov rdx, rax
lea rcx, [rsp + 0xe0]
call fcn.180025558
mov rdi, rax
lea rdx, str.us_capacity
lea rcx, [rsp + 0x78]
call fcn.180026aa8
mov rcx, rax
mov rdx, rdi
call fcn.1800257e4
nop
cmp qword [rsp + 0xc0], 0x10
jb 0x180010e0d
mov rcx, qword [rsp + 0xa8]
call fcn.18003c660
mov qword [rsp + 0xc0], 0xf
mov qword [rsp + 0xb8], rsi
mov byte [rsp + 0xa8], sil
cmp qword [rsp + 0x68], 8
jb 0x180010e3b
mov rcx, qword [rsp + 0x50]
call fcn.18003c660
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x198]
lea rcx, [rsp + 0xe0]
call fcn.180025558
mov rdi, rax
lea rdx, str.us_unique
lea rcx, [rsp + 0x78]
call fcn.180026aa8
mov rcx, rax
mov rdx, rdi
call fcn.1800257e4
lea rcx, [rsp + 0xe0]
mov qword [rsp + 0x70], rcx
xor r8d, r8d
lea rdx, str._08x
lea rcx, [rsp + 0xa0]
call fcn.18001bd74
nop
mov rdx, rax
lea rcx, [rsp + 0xe0]
call fcn.180025558
mov rdi, rax
lea rdx, str.us_searial
lea rcx, [rsp + 0x78]
call fcn.180026aa8
mov rcx, rax
mov rdx, rdi
call fcn.1800257e4
nop
cmp qword [rsp + 0xc0], 0x10
jb 0x180010ee9
mov rcx, qword [rsp + 0xa8]
call fcn.18003c660
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0xe0]
call fcn.180025558
mov rdi, rax
lea rdx, str.us_action
lea rcx, [rsp + 0x78]
call fcn.180026aa8
mov rcx, rax
mov rdx, rdi
call fcn.1800257e4
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x70], rdx
mov byte [rsp + 0x50], 1
btr dword [rsp + 0x50], 8
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rsi
mov rax, rsi
cmp r15b, sil
setne al
mov qword [rsp + 0x48], rax
lea rdx, str.us_encrypted
lea rcx, [rsp + 0x78]
call fcn.180026aa8
mov rcx, rax
lea rdx, [rsp + 0x48]
call fcn.1800257e4
mov r9d, 1
xor r8d, r8d
lea rdx, [rsp + 0x78]
lea rcx, str.t_usbstorage_log
call fcn.180035fd4
nop
lea rcx, [rsp + 0x78]
call fcn.18002574c
nop
cmp qword [rsp + 0x190], 0x10
jb 0x180010fb8
mov rcx, qword [rsp + 0x178]
call fcn.18003c660
mov qword [rsp + 0x190], 0xf
mov qword [rsp + 0x188], rsi
mov byte [rsp + 0x178], sil
cmp qword [rsp + 0x168], 8
jb 0x180010fec
mov rcx, qword [rsp + 0x150]
call fcn.18003c660
mov qword [rsp + 0x168], 7
mov qword [rsp + 0x160], rsi
mov word [rsp + 0x150], si
cmp qword [rsp + 0x1b8], 0x10
jb 0x180011020
mov rcx, qword [rsp + 0x1a0]
call fcn.18003c660
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.18003c1a0
add rsp, 0x3d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret