Function at 0x14008d490
Capabilities:
Get disk information
Get storage device properties

Disassembly:
push rbp
push rdi
push r13
lea rbp, [rsp - 0xd00]
sub rsp, 0xe00
mov rax, qword [0x140d5c040]
xor rax, rsp
mov qword [rbp + 0xce0], rax
cmp byte [0x145d1ea64], 0
mov r13, rdx
mov qword [rsp + 0x40], rdx
mov rdi, rcx
je 0x14008d4fa
lea rcx, [0x145d1e960]
sub rdi, rcx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [rdi + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14008d4e0
mov byte [reloc.WS2_32.dll_socket], 6
jmp 0x14008da71
mov rcx, qword [0x1410cdeb0]
test rcx, rcx
je 0x14008d526
nop word [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdi], al
lea rdi, [rdi + 1]
test al, al
jne 0x14008d510
jmp 0x14008da71
mov qword [rsp + 0xe28], rbx
mov edx, 1
mov qword [rsp + 0xe30], rsi
mov ecx, 0xb48
mov qword [rsp + 0xdf8], r14
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
xor edx, edx
mov qword [0x1410cdeb0], rax
mov r8d, 0x7d0
lea rcx, [rbp + 0x110]
call sub.VCRUNTIME140.dll_memset
cmp byte [0x145d1e95b], 0
je 0x14008d5cf
xor edx, edx
lea rcx, [rbp]
mov r8d, Ordinal_265
call sub.VCRUNTIME140.dll_memset
mov edx, 0x104
lea rcx, [rbp]
call fcn.14008d1c0
test eax, eax
setne bl
test eax, eax
jne 0x14008d5a2
lea ecx, [rax + 0x64]
call qword [sym.imp.KERNEL32.dll_Sleep]
test bl, bl
je 0x14008d582
lea rcx, [rbp + 0x110]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x14008d5b0
lea rbx, [rbp]
xor edx, edx
movzx eax, byte [rbx + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14008d5c0
cmp byte [0x145d1e958], 0
mov r14, 0xffffffffffffffff
je 0x14008d6b0
xor edx, edx
lea rcx, [rbp]
mov r8d, Ordinal_265
call sub.VCRUNTIME140.dll_memset
xor ecx, ecx
mov eax, 1
cpuid
mov r8d, edx
lea rcx, [rbp]
xorps xmm0, xmm0
lea rdx, [0x1400b3e20]
mov r9d, eax
movups xmmword [rbp - 0x40], xmm0
call fcn.14001e480
xor ecx, ecx
mov eax, 3
cpuid
mov dword [rbp - 0x3c], ebx
mov dword [rbp - 0x38], ecx
test edx, edx
jne 0x14008d631
test eax, eax
je 0x14008d64c
mov r9d, edx
mov dword [rsp + 0x20], eax
lea rdx, [0x1400b3e28]
lea r8, [rbp]
lea rcx, [rbp]
call fcn.14001e480
lea rcx, [rbp]
mov rax, r14
inc rax
cmp byte [rcx + rax], 0
jne 0x14008d653
lea rcx, [rbp + 0x110]
dec rcx
cmp rax, 0xd
jb 0x14008d691
nop dword [rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x14008d670
lea rbx, [rbp + 5]
xor edx, edx
movzx eax, byte [rbx + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14008d680
jmp 0x14008d6b0
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x14008d691
lea rbx, [rbp]
xor edx, edx
movzx eax, byte [rbx + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14008d6a1
cmp byte [0x145d1e959], 0
je 0x14008d745
xor edx, edx
lea rcx, [rbp + 0x8e0]
mov r8d, Ordinal_265
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rbp]
mov r8d, Ordinal_265
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x38], Ordinal_266
lea rax, [rbp]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x48]
lea rax, [rsp + 0x50]
mov r8d, Ordinal_265
mov qword [rsp + 0x28], rax
lea rdx, [rbp + 0x8e0]
lea rax, [rsp + 0x4c]
lea rcx, [0x1400b3e30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov r9d, dword [rsp + 0x48]
lea r8, [rbp + 0x110]
lea rdx, [0x1400b3e34]
lea rcx, [rbp + 0x110]
call fcn.14001e480
xor esi, esi
cmp byte [0x145d1e95a], sil
je 0x14008d8e6
mov eax, dword [0x1400b3e60]
movups xmm0, xmmword [0x1400b3e40]
mov dword [rbp - 0x10], eax
movzx eax, word [0x1400b3e64]
movups xmm1, xmmword [0x1400b3e50]
mov word [rbp - 0xc], ax
xor eax, eax
mov qword [rsp + 0xe38], r12
mov dword [rbp - 0x38], eax
lea rax, [rbp - 0x30]
mov qword [rsp + 0xdf0], r15
mov r15, r14
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x40], rsi
movups xmmword [rbp - 0x20], xmm1
nop
cmp word [rax + r15*2 + 2], si
lea r15, [r15 + 1]
jne 0x14008d7a0
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
lea rcx, [rbp - 0x30]
xor edx, edx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, r14
je 0x14008d8d6
lea r13, [0x1410d15d0]
nop dword [rax]
nop word [rax + rax]
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x30], rax
lea r8, [rbp - 0x40]
mov dword [rsp + 0x28], 0x1000
mov r9d, reloc.WS2_32.dll_inet_ntoa
mov edx, 0x2d1400
mov qword [rsp + 0x20], r13
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14008d8d1
mov eax, dword [0x1410d15e8]
test eax, eax
je 0x14008d88f
mov ebx, eax
lea rdx, [rax + r13]
mov rax, rsi
mov rcx, r14
inc rcx
cmp byte [rdx + rcx], al
jne 0x14008d842
test rcx, rcx
je 0x14008d85e
nop
cmp byte [rax + rdx], 0x20
jne 0x14008d85e
inc rax
cmp rax, rcx
jb 0x14008d850
add rbx, rax
lea rax, [rbp + 0x110]
add rbx, r13
dec rax
nop
cmp byte [rax + 1], sil
lea rax, [rax + 1]
jne 0x14008d870
xor edx, edx
nop dword [rax]
movzx ecx, byte [rbx + rdx]
mov byte [rax + rdx], cl
lea rdx, [rdx + 1]
test cl, cl
jne 0x14008d880
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r9d, r9d
mov qword [rsp + 0x30], rsi
lea eax, [r15 - 1]
mov dword [rsp + 0x28], esi
xor edx, edx
mov dword [rsp + 0x20], 3
inc word [rbp + rax*2 - 0x30]
lea rcx, [rbp - 0x30]
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, r14
jne 0x14008d7f0
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0xe38]
mov r15, qword [rsp + 0xdf0]
cmp byte [0x145d1e95c], sil
je 0x14008d921
lea rcx, [rbp + 0x8e0]
call fcn.14008e690
cmp eax, 1
jle 0x14008d921
lea r9, [rbp + 0x8e0]
lea r8, [rbp + 0x110]
lea rdx, [0x1400b3e68]
lea rcx, [rbp + 0x110]
call fcn.14001e480
cmp byte [0x145d1e958], sil
jne 0x14008d97d
cmp byte [0x145d1e95b], sil
jne 0x14008d97d
cmp byte [0x145d1e959], sil
jne 0x14008d97d
cmp byte [0x145d1e95a], sil
jne 0x14008d97d
cmp byte [0x145d1e95c], sil
jne 0x14008d97d
xor ecx, ecx
mov eax, 1
cpuid
xorps xmm0, xmm0
mov r8d, edx
movups xmmword [rbp - 0x40], xmm0
mov dword [rbp - 0x38], ecx
lea rdx, [0x1400b3e70]
lea rcx, [rbp + 0x110]
mov dword [rbp - 0x3c], ebx
mov r9d, eax
call fcn.14001e480
cmp byte [0x145d1ea64], sil
movzx eax, byte [0x140d5bfcc]
cmove eax, esi
mov byte [0x140d5bfcc], al
test rdi, rdi
je 0x14008da38
lea rcx, [rsp + 0x60]
call fcn.14008f060
lea rax, [rbp + 0x110]
nop
inc r14
cmp byte [rax + r14], sil
jne 0x14008d9b0
mov r8, r14
lea rdx, [rbp + 0x110]
lea rcx, [rsp + 0x60]
call fcn.14008f970
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x60]
call fcn.14008ef40
mov ebx, 0x37
cmp rsi, r13
jae 0x14008da1c
movzx edx, byte [rbp + rsi - 0x40]
mov eax, gethostbyname
mov ecx, edx
and edx, 0xf
shr ecx, 4
cmp ecx, 0xa
cmovae eax, ebx
add al, cl
mov byte [rdi + rsi*2], al
cmp edx, 0xa
mov eax, gethostbyname
cmovae eax, ebx
add al, dl
mov byte [rdi + rsi*2 + 1], al
inc rsi
cmp rsi, 0x10
jb 0x14008d9e0
movzx eax, byte [reloc.WS2_32.dll_socket]
mov ecx, 6
cmp byte [0x145d1ea64], 0
cmove eax, ecx
mov byte [reloc.WS2_32.dll_socket], al
mov rcx, qword [0x1410cdeb0]
mov r14, qword [rsp + 0xdf8]
mov rsi, qword [rsp + 0xe30]
mov rbx, qword [rsp + 0xe28]
nop word [rax + rax]
movzx eax, byte [rdi]
lea rdi, [rdi + 1]
mov byte [rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14008da60
mov rcx, qword [rbp + 0xce0]
xor rcx, rsp
call fcn.140093920
add rsp, 0xe00
pop r13
pop rdi
pop rbp
ret