Function at 0x140156900
Capabilities:
Acquire debug privileges
Get disk information via ioctl

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x5f0]
sub rsp, 0x6f0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x730], rbx
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rbp + 0x5e8], rax
movzx r14d, r8b
mov rdi, rcx
lea rbx, [rcx + 0x18]
mov rcx, rbx
call fcn.14001d690
mov byte [rdi + 0x14], r14b
lea rcx, [rbp - 0x58]
call fcn.14001cac0
nop
lea rcx, [rdi + 0x40]
call fcn.14001f170
mov rcx, rbx
call fcn.14001f680
test al, al
je 0x14015699c
lea rdx, str.disk_name_empty
lea rcx, [rbp - 0x30]
call fcn.14001c950
nop
lea rdx, [rbp - 0x30]
lea rcx, [rdi + 0x40]
call fcn.14001d690
nop
lea rcx, [rbp - 0x30]
call fcn.14001d440
jmp 0x140157128
lea rdx, str.SeDebugPrivilege
lea rcx, [rbp - 8]
call fcn.14001c950
nop
mov dl, 1
lea rcx, [rbp - 8]
call fcn.14002eca0
nop
lea rcx, [rbp - 8]
call fcn.14001d440
mov rcx, rbx
call fcn.140026e10
xor r15d, r15d
cmp eax, 5
jle 0x1401569e3
mov rdx, rbx
lea rcx, [rbp - 0x58]
call fcn.14001d690
jmp 0x140156e6b
lea rdx, [0x1402d1d24]
lea rcx, [rbp + 0x20]
call fcn.14001c950
nop
mov r8d, 1
lea rdx, [rbp + 0x278]
mov rcx, rbx
call fcn.140020a90
mov rbx, rax
lea rdx, str.._
lea rcx, [rbp + 0x250]
call fcn.14001c950
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp + 0x228]
call fcn.14001da00
nop
lea r8, [rbp + 0x20]
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.14001da00
nop
lea rcx, [rbp + 0x228]
call fcn.14001d440
nop
lea rcx, [rbp + 0x250]
call fcn.14001d440
nop
lea rcx, [rbp + 0x278]
call fcn.14001d440
nop
lea rcx, [rbp + 0x20]
call fcn.14001d440
lea rcx, [rbp - 0x80]
call fcn.14002aa20
mov rcx, rax
mov qword [rsp + 0x30], r15
xor r9d, r9d
lea r8d, [r9 + 3]
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r8d
test r14b, r14b
mov edx, 0x80000000
jne 0x140156aa5
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 0x78], rax
mov rcx, rax
cmp rax, 0xffffffffffffffff
jne 0x140156b88
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp + 0x70]
call fcn.14001c660
nop
lea rdx, str._failed__ec
lea rcx, [rbp + 0x48]
call fcn.14001c950
nop
lea rdx, [0x1402ef528]
lea rcx, [rbp + 0x318]
call fcn.14001c950
nop
lea r8, [rbp - 0x80]
mov rdx, rax
lea rcx, [rbp + 0x2f0]
call fcn.14001da00
nop
lea r8, [rbp + 0x48]
mov rdx, rax
lea rcx, [rbp + 0x2c8]
call fcn.14001da00
nop
lea r8, [rbp + 0x70]
mov rdx, rax
lea rcx, [rbp + 0x2a0]
call fcn.14001da00
nop
mov rdx, rax
lea rcx, [rdi + 0x40]
call fcn.14001d690
nop
lea rcx, [rbp + 0x2a0]
call fcn.14001d440
nop
lea rcx, [rbp + 0x2c8]
call fcn.14001d440
nop
lea rcx, [rbp + 0x2f0]
call fcn.14001d440
nop
lea rcx, [rbp + 0x318]
call fcn.14001d440
nop
lea rcx, [rbp + 0x48]
call fcn.14001d440
nop
lea rcx, [rbp + 0x70]
call fcn.14001d440
jmp 0x140156dda
xor eax, eax
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], reloc.ODBC32.dll_SQLExecute
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x2d1080
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140156cab
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp + 0xc0]
call fcn.14001c660
nop
lea rdx, str._failed__ec
lea rcx, [rbp + 0x98]
call fcn.14001c950
nop
lea rdx, str.DeviceIoControl_Get
lea rcx, [rbp + 0x3b8]
call fcn.14001c950
nop
lea r8, [rbp - 0x80]
mov rdx, rax
lea rcx, [rbp + 0x390]
call fcn.14001da00
nop
lea r8, [rbp + 0x98]
mov rdx, rax
lea rcx, [rbp + 0x368]
call fcn.14001da00
nop
lea r8, [rbp + 0xc0]
mov rdx, rax
lea rcx, [rbp + 0x340]
call fcn.14001da00
nop
mov rdx, rax
lea rcx, [rdi + 0x40]
call fcn.14001d690
nop
lea rcx, [rbp + 0x340]
call fcn.14001d440
nop
lea rcx, [rbp + 0x368]
call fcn.14001d440
nop
lea rcx, [rbp + 0x390]
call fcn.14001d440
nop
lea rcx, [rbp + 0x3b8]
call fcn.14001d440
nop
lea rcx, [rbp + 0x98]
call fcn.14001d440
nop
lea rcx, [rbp + 0xc0]
jmp 0x140156dc3
test r14b, r14b
jne 0x140156de8
mov dword [rsp + 0x44], r15d
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
mov edx, 0x90020
mov rcx, qword [rdi + 0x78]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140156de8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp + 0x110]
call fcn.14001c660
nop
lea rdx, str._failed__ec
lea rcx, [rbp + 0xe8]
call fcn.14001c950
nop
lea rdx, str.DeviceIoControl_Lock
lea rcx, [rbp + 0x458]
call fcn.14001c950
nop
lea r8, [rbp - 0x80]
mov rdx, rax
lea rcx, [rbp + 0x430]
call fcn.14001da00
nop
lea r8, [rbp + 0xe8]
mov rdx, rax
lea rcx, [rbp + 0x408]
call fcn.14001da00
nop
lea r8, [rbp + 0x110]
mov rdx, rax
lea rcx, [rbp + 0x3e0]
call fcn.14001da00
nop
mov rdx, rax
lea rcx, [rdi + 0x40]
call fcn.14001d690
nop
lea rcx, [rbp + 0x3e0]
call fcn.14001d440
nop
lea rcx, [rbp + 0x408]
call fcn.14001d440
nop
lea rcx, [rbp + 0x430]
call fcn.14001d440
nop
lea rcx, [rbp + 0x458]
call fcn.14001d440
nop
lea rcx, [rbp + 0xe8]
call fcn.14001d440
nop
lea rcx, [rbp + 0x110]
call fcn.14001d440
mov rcx, qword [rdi + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x78], 0xffffffffffffffff
lea rcx, [rbp - 0x80]
call fcn.14001d440
jmp 0x140157128
mov r8d, reloc.ODBC32.dll_SQLFreeStmt
mov edx, dword [rsp + 0x5c]
lea rcx, [rbp + 0x160]
call fcn.14001c580
nop
lea rdx, str..PhysicalDrive
lea rcx, [rbp + 0x138]
call fcn.14001c950
nop
lea r8, [rbp + 0x160]
lea rdx, [rbp + 0x138]
lea rcx, [rbp + 0x480]
call fcn.14001da00
nop
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.14001d690
nop
lea rcx, [rbp + 0x480]
call fcn.14001d440
nop
lea rcx, [rbp + 0x138]
call fcn.14001d440
nop
lea rcx, [rbp + 0x160]
call fcn.14001d440
nop
lea rcx, [rbp - 0x80]
call fcn.14001d440
lea rcx, [rbp - 0x58]
cmp byte [rdi + 0x14], 0
je 0x140156e81
call fcn.14002aa20
mov edx, 0x80000000
jmp 0x140156e8b
call fcn.14002aa20
mov edx, 0xc0000000
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 3
xor r9d, r9d
lea r8d, [r9 + 3]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rdi + 0x70]
cmp rcx, 0xffffffffffffffff
jne 0x140156f9d
mov edx, eax
lea rcx, [rbp + 0x1b0]
call fcn.14001c660
nop
lea rdx, str._failed__ec
lea rcx, [rbp + 0x188]
call fcn.14001c950
nop
lea rdx, [0x1402ef528]
lea rcx, [rbp + 0x520]
call fcn.14001c950
nop
lea r8, [rbp - 0x58]
mov rdx, rax
lea rcx, [rbp + 0x4f8]
call fcn.14001da00
nop
lea r8, [rbp + 0x188]
mov rdx, rax
lea rcx, [rbp + 0x4d0]
call fcn.14001da00
nop
lea r8, [rbp + 0x1b0]
mov rdx, rax
lea rcx, [rbp + 0x4a8]
call fcn.14001da00
nop
mov rdx, rax
lea rcx, [rdi + 0x40]
call fcn.14001d690
nop
lea rcx, [rbp + 0x4a8]
call fcn.14001d440
nop
lea rcx, [rbp + 0x4d0]
call fcn.14001d440
nop
lea rcx, [rbp + 0x4f8]
call fcn.14001d440
nop
lea rcx, [rbp + 0x520]
call fcn.14001d440
nop
lea rcx, [rbp + 0x188]
call fcn.14001d440
nop
lea rcx, [rbp + 0x1b0]
call fcn.14001d440
jmp 0x140157110
mov dword [rsp + 0x48], r15d
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], reloc.ODBC32.dll_SQLAllocHandle
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x70000
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x14015702b
movsxd rdx, dword [rsp + 0x7c]
mov eax, edx
mov ecx, dword [rsp + 0x78]
imul rax, rcx
mov ecx, dword [rsp + 0x74]
imul rax, rcx
imul rax, qword [rsp + 0x68]
mov qword [rdi], rax
mov dword [rdi + 0x10], edx
mov rcx, rdx
cqo
idiv rcx
mov qword [rdi + 8], rax
mov byte [rdi + 0x68], 1
mov bl, 1
jmp 0x14015712a
mov edx, eax
lea rcx, [rbp + 0x200]
call fcn.14001c660
nop
lea rdx, str._failed__ec
lea rcx, [rbp + 0x1d8]
call fcn.14001c950
nop
lea rdx, [0x1402ef548]
lea rcx, [rbp + 0x5c0]
call fcn.14001c950
nop
lea r8, [rbp - 0x58]
mov rdx, rax
lea rcx, [rbp + 0x598]
call fcn.14001da00
nop
lea r8, [rbp + 0x1d8]
mov rdx, rax
lea rcx, [rbp + 0x570]
call fcn.14001da00
nop
lea r8, [rbp + 0x200]
mov rdx, rax
lea rcx, [rbp + 0x548]
call fcn.14001da00
nop
mov rdx, rax
lea rcx, [rdi + 0x40]
call fcn.14001d690
nop
lea rcx, [rbp + 0x548]
call fcn.14001d440
nop
lea rcx, [rbp + 0x570]
call fcn.14001d440
nop
lea rcx, [rbp + 0x598]
call fcn.14001d440
nop
lea rcx, [rbp + 0x5c0]
call fcn.14001d440
nop
lea rcx, [rbp + 0x1d8]
call fcn.14001d440
nop
lea rcx, [rbp + 0x200]
call fcn.14001d440
mov rcx, qword [rdi + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x70], 0xffffffffffffffff
mov rcx, qword [rdi + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x140157128
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x78], 0xffffffffffffffff
xor bl, bl
lea rcx, [rbp - 0x58]
call fcn.14001d440
movzx eax, bl
mov rcx, qword [rbp + 0x5e8]
xor rcx, rsp
call fcn.140283120
mov rbx, qword [rsp + 0x730]
add rsp, 0x6f0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret