Function at 0x14000970d
Capabilities:
Get disk information via ioctl
Terminate process

Disassembly:
push rbp
mov eax, 0x51d0
call fcn.1400aab80
sub rsp, 0x51d0
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x140], rsi
mov qword [rbp + 0x138], rbx
mov rax, qword [0x1400e0a40]
xor rax, rbp
mov qword [rbp + 0x5188], rax
mov dword [rbp + 4], 0
mov dword [rbp + 8], 0
mov dword [rbp + 0xc], 0
mov dword [rbp + 0x10], 0
mov dword [rbp + 0x14], 0x800
mov dword [rbp + 0x18], 0x14
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x60], 0
lea rax, str.Kernel32.dll
mov rdx, qword [sym.imp.orauts.dll_LoadLibraryA]
mov rcx, rax
call rdx
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
mov qword [rbp + 0x70], rax
mov rax, qword [rbp + 0x70]
test rax, rax
jne 0x1400097d9
lea rax, str.cant_load_kernel32.dll_n
mov rcx, rax
call fcn.140001114
mov dword [rbp + 0x1c], eax
mov rax, qword [rbp + 0x5188]
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov eax, 1
mov rdx, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov ecx, eax
call rdx
mov rax, qword [rbp + 0x70]
lea rdx, [0x1400b0c9c]
mov rcx, qword [sym.imp.orauts.dll_GetProcAddress]
mov qword [rbp + 0xf8], rcx
mov rcx, rax
mov rax, qword [rbp + 0xf8]
call rax
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x78]
mov qword [rbp + 0x80], rax
mov rax, qword [rbp + 0x80]
test rax, rax
jne 0x14000985c
mov rax, qword [sym.imp.orauts.dll_GetLastError]
call rax
mov dword [rbp + 0x20], eax
lea rax, str.Error_in_find1stVol_call_with_error:__d
mov edx, dword [rbp + 0x20]
mov rcx, rax
call fcn.140001114
mov dword [rbp + 0x24], eax
mov rax, qword [rbp + 0x5188]
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov eax, 1
mov rdx, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov ecx, eax
call rdx
mov rax, qword [rbp + 0x70]
lea rdx, [0x1400b0cd8]
mov rcx, qword [sym.imp.orauts.dll_GetProcAddress]
mov qword [rbp + 0x100], rcx
mov rcx, rax
mov rax, qword [rbp + 0x100]
call rax
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x88]
mov qword [rbp + 0x90], rax
mov rax, qword [rbp + 0x90]
test rax, rax
jne 0x1400098e5
mov rax, qword [sym.imp.orauts.dll_GetLastError]
call rax
mov dword [rbp + 0x28], eax
lea rax, str.Error_in_find_nect_volume_call_with_error:__d
mov edx, dword [rbp + 0x28]
mov rcx, rax
call fcn.140001114
mov dword [rbp + 0x2c], eax
mov rax, qword [rbp + 0x5188]
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov eax, 1
mov rdx, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov ecx, eax
call rdx
mov rax, qword [rbp + 0x80]
lea rdx, [rbp + 0x148]
mov ecx, dword [rbp + 0x14]
mov dword [rbp + 0x108], ecx
mov rcx, rdx
mov edx, dword [rbp + 0x108]
call rax
mov qword [rbp + 0x98], rax
mov rax, qword [rbp + 0x98]
mov qword [rbp + 0xa0], rax
mov rax, qword [rbp + 0xa0]
cmp rax, 0xffffffffffffffff
jne 0x14000997f
lea rax, str.No_volumes_found__n
mov rcx, rax
call fcn.14000f4d8
mov eax, 0
mov qword [rbp + 0xe0], rax
mov rax, qword [rbp + 0x5188]
mov qword [rbp + 0x5188], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov rax, qword [rbp + 0xe0]
mov rbx, qword [rbp + 0x138]
mov rsi, qword [rbp + 0x140]
lea rsp, [rbp + 0x5190]
pop rbp
ret
lea rax, [rbp + 0x948]
lea rdx, [rbp + 0x148]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov qword [rbp + 0xa8], rax
mov byte [rbp], 0
lea rax, [rbp + 0x148]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rbp + 0xb0], rax
lea rax, [rbp + 0x948]
mov rdx, 0xffffffffffffffff
add rdx, qword [rbp + 0xb0]
add rax, rdx
movsx edx, byte [rbp]
mov byte [rax], dl
lea rax, [rbp + 0x948]
mov edx, 0
mov ecx, 3
mov ebx, 0
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov rsi, qword [sym.imp.orauts.dll_CreateFileA]
mov dword [rbp + 0x110], ecx
mov rcx, rax
mov eax, dword [rbp + 0x110]
mov r8d, eax
mov r9, rbx
call rsi
mov qword [rbp + 0xb8], rax
mov rax, qword [rbp + 0xb8]
mov qword [rbp + 0xc0], rax
mov rax, qword [rbp + 0xc0]
cmp rax, 0xffffffffffffffff
jne 0x140009a57
lea rax, str._n_Cannot_open_handle_to_file_n
mov rcx, rax
call fcn.14000f4d8
jmp 0x140009b6e
mov rax, qword [rbp + 0xc0]
mov edx, 0x2d1080
mov ecx, 0
mov ebx, 0
lea rsi, [rbp + 0x517c]
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x28], reloc.WS2_32.dll_inet_ntoa
lea rsi, [rbp + 0x30]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], 0
mov rsi, qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov qword [rbp + 0x118], rcx
mov rcx, rax
mov rax, qword [rbp + 0x118]
mov r8, rax
mov r9d, ebx
call rsi
mov dword [rbp + 0x34], eax
mov eax, dword [rbp + 0x34]
mov dword [rbp + 0x3c], eax
mov rax, qword [rbp + 0xc0]
mov rdx, qword [sym.imp.orauts.dll_CloseHandle]
mov rcx, rax
call rdx
mov dword [rbp + 0x40], eax
mov eax, dword [rbp + 0x3c]
test eax, eax
je 0x140009b6e
mov eax, dword [rbp + 0x5180]
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 0x5184]
mov dword [rbp + 0x48], eax
mov dword [rbp + 4], 0
mov dword [rbp + 0x4c], 0
mov eax, dword [rbp + 0x4c]
mov edx, dword [rbp + 0x10]
cmp eax, edx
jl 0x140009b16
jmp 0x140009b3c
mov eax, 1
add eax, dword [rbp + 0x4c]
mov dword [rbp + 0x4c], eax
jmp 0x140009afd
lea rax, [rbp + 0x117c]
mov edx, dword [rbp + 0x4c]
movsxd rdx, edx
imul rdx, rdx, 4
add rax, rdx
mov eax, dword [rax]
mov edx, dword [rbp + 0x44]
cmp eax, edx
jne 0x140009b09
mov dword [rbp + 4], 1
jmp 0x140009b09
mov eax, dword [rbp + 4]
test eax, eax
jne 0x140009b6e
lea rax, [rbp + 0x117c]
mov edx, dword [rbp + 0x10]
movsxd rdx, edx
imul rdx, rdx, 4
add rax, rdx
mov edx, dword [rbp + 0x44]
mov dword [rax], edx
mov eax, 1
add eax, dword [rbp + 0x10]
mov dword [rbp + 0x10], eax
mov dword [rbp + 8], 1
mov rax, qword [rbp + 0x90]
mov rdx, qword [rbp + 0xa0]
lea rcx, [rbp + 0x148]
mov ebx, dword [rbp + 0x14]
mov qword [rbp + 0x120], rcx
mov rcx, rdx
mov rdx, qword [rbp + 0x120]
mov r8d, ebx
call rax
mov dword [rbp + 0x38], eax
mov eax, dword [rbp + 0x38]
test eax, eax
jne 0x14000997f
mov eax, 1
add eax, dword [rbp + 0x10]
movsxd rax, eax
mov edx, dword [rbp + 0x18]
movsxd rdx, edx
mov rcx, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov qword [rbp + 0x128], rcx
mov rcx, rax
mov rax, qword [rbp + 0x128]
call rax
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0x60], rax
mov rax, qword [rbp + 0x60]
mov qword [rbp + 0x58], rax
mov rax, qword [rbp + 0x60]
test rax, rax
jne 0x140009c4e
lea rax, str.Couldnt_allocate_memory_to_store_the_name_of_the_physical_drive_n
mov rcx, rax
call fcn.14000f4d8
mov eax, 0
mov qword [rbp + 0xe8], rax
mov rax, qword [rbp + 0x5188]
mov qword [rbp + 0x5188], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov rax, qword [rbp + 0xe8]
mov rbx, qword [rbp + 0x138]
mov rsi, qword [rbp + 0x140]
lea rsp, [rbp + 0x5190]
pop rbp
ret
mov dword [rbp + 0x4c], 0
mov eax, dword [rbp + 0x4c]
mov edx, dword [rbp + 0x10]
cmp eax, edx
jge 0x140009d06
lea rax, [rbp + 0x1148]
lea rdx, [0x1400b0dc0]
lea rcx, [rbp + 0x117c]
mov ebx, dword [rbp + 0x4c]
movsxd rbx, ebx
imul rbx, rbx, 4
add rcx, rbx
mov ecx, dword [rcx]
mov dword [rbp + 0x130], ecx
mov rcx, rax
mov eax, dword [rbp + 0x130]
mov r8d, eax
call fcn.1400012e0
mov dword [rbp + 0x50], eax
mov rax, qword [rbp + 0x58]
lea rdx, [rbp + 0x1148]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov qword [rbp + 0xd0], rax
lea rax, str._Found_disk__s_n
mov rdx, qword [rbp + 0x58]
mov rcx, rax
call fcn.14000f4d8
lea rax, [rbp + 0x1148]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rbp + 0xd8], rax
mov rax, qword [rbp + 0xd8]
add rax, qword [rbp + 0x58]
inc rax
mov qword [rbp + 0x58], rax
mov eax, 1
add eax, dword [rbp + 0x4c]
mov dword [rbp + 0x4c], eax
jmp 0x140009c55
mov rax, qword [rbp + 0x60]
mov qword [rbp + 0xf0], rax
mov rax, qword [rbp + 0x5188]
mov qword [rbp + 0x5188], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov rax, qword [rbp + 0xf0]
mov rbx, qword [rbp + 0x138]
mov rsi, qword [rbp + 0x140]
lea rsp, [rbp + 0x5190]
pop rbp
ret