Function at 0x140091374
Capabilities:
Enumerate network shares
Get disk information

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xd48]
sub rsp, 0xe10
mov qword [rbp + 0x90], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xd00], rax
mov r12, r9
mov r13, r8
mov rbx, rdx
mov r14, qword [rbp + 0xd70]
lea rdi, str.base_stor_vssmodulescoord_srchwdelete.cxx
mov qword [rsp + 0x50], rdi
lea rax, str.CVssHardwareProviderWrapper::CollectSharesAndMountPointsOnVolume
mov qword [rsp + 0x58], rax
lea rax, str.CORHDELC
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], 0x3f5
mov esi, 1
mov dword [rsp + 0x6c], esi
mov dword [rsp + 0x70], 0xff
xor r15d, r15d
mov dword [rbp - 0x10], 0x1000000
xor edx, edx
lea r8d, [rsi + 0x77]
lea rcx, [rsp + 0x78]
call sub.msvcrt.dll_memset
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x20]
call fcn.140010990
nop
mov dword [rsp + 0x48], r15d
mov word [rbp + 0x2b0], r15w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x2b2]
call sub.msvcrt.dll_memset
mov qword [rbp + 0x10], r15
lea rax, [0x1400f2350]
mov qword [rbp + 8], rax
mov r8, rbx
mov edx, 0x104
lea rcx, [rbp + 0x2b0]
call fcn.140005350
mov dword [rbp + 0x28], eax
mov qword [rsp + 0x50], rdi
lea rax, str.CVssHardwareProviderWrapper::CollectSharesAndMountPointsOnVolume
mov qword [rsp + 0x58], rax
lea rax, str.CORHDELC
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], 0x400
mov dword [rsp + 0x6c], esi
mov dword [rsp + 0x70], 0xff
mov dword [rbp - 0x10], 0x1000000
xor edx, edx
lea r8d, [rsi + 0x77]
lea rcx, [rsp + 0x78]
call sub.msvcrt.dll_memset
lea r8, str.StringCchCopy_fails_to_copy_volume_name
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x20]
call fcn.140010880
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r15w
jne 0x1400914d1
cmp word [rbx + rax*2 - 2], 0x5c
je 0x14009155d
lea r8, [0x1400f2048]
mov edx, 0x104
lea rcx, [rbp + 0x2b0]
call fcn.140006000
mov dword [rbp + 0x28], eax
mov qword [rsp + 0x50], rdi
lea rbx, str.CVssHardwareProviderWrapper::CollectSharesAndMountPointsOnVolume
mov qword [rsp + 0x58], rbx
lea rax, str.CORHDELC
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], 0x407
mov dword [rsp + 0x6c], esi
mov dword [rsp + 0x70], 0xff
mov dword [rbp - 0x10], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x78]
call sub.msvcrt.dll_memset
lea r8, str.StringCchCat_fails_to_concat_backslash
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x20]
call fcn.140010880
jmp 0x140091564
lea rbx, str.CVssHardwareProviderWrapper::CollectSharesAndMountPointsOnVolume
lea r9, [rsp + 0x48]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x2b0]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetVolumePathNamesForVolumeNameW]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
cmp eax, 0xea
je 0x140091605
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rbx
lea rax, str.CORHDELC
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], 0x40f
mov edi, 6
mov dword [rsp + 0x6c], edi
mov dword [rsp + 0x70], 0xff
mov dword [rbp - 0x10], 0x1000000
xor edx, edx
lea r8d, [rdi + 0x72]
lea rcx, [rsp + 0x78]
call sub.msvcrt.dll_memset
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
test eax, eax
jle 0x1400915e0
movzx eax, ax
or eax, 0x80070000
mov dword [rsp + 0x20], eax
lea r9, [rbp + 0x2b0]
lea r8, str.GetVolumePathNamesForVolumeName__s__failed_with_0x_08lx
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x20]
call fcn.140010920
jmp 0x140091b5f
mov ebx, dword [rsp + 0x48]
lea rcx, [rbp + 8]
call fcn.14001e0e8
lea rdx, [rbx*2 + 2]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov rsi, rax
mov qword [rbp + 0x10], rax
test rax, rax
jne 0x140091648
mov dword [rsp + 0x40], 0x8007000e
lea rdx, [0x140156368]
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll__CxxThrowException
int3
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x48]
mov rdx, rax
lea rcx, [rbp + 0x2b0]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetVolumePathNamesForVolumeNameW]
mov edi, 6
mov ebx, 0x80070000
test eax, eax
jne 0x140091700
lea rsi, str.base_stor_vssmodulescoord_srchwdelete.cxx
mov qword [rsp + 0x50], rsi
lea rax, str.CVssHardwareProviderWrapper::CollectSharesAndMountPointsOnVolume
mov qword [rsp + 0x58], rax
lea rax, str.CORHDELC
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], 0x41c
mov dword [rsp + 0x6c], edi
mov dword [rsp + 0x70], 0xff
mov dword [rbp - 0x10], 0x1000000
xor edx, edx
lea r8d, [rdi + 0x72]
lea rcx, [rsp + 0x78]
call sub.msvcrt.dll_memset
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
test eax, eax
jle 0x1400916d2
movzx eax, ax
or eax, ebx
mov dword [rsp + 0x20], eax
lea r9, [rbp + 0x2b0]
lea r8, str.GetVolumePathNamesForVolumeName__s__failed_with_0x_08lx
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x20]
call fcn.140010920
lea rcx, [rbp + 8]
call fcn.14001e0e8
mov qword [r14], r15
jmp 0x14009170e
mov qword [rbp + 0x10], r15
mov qword [r14], rsi
lea rsi, str.base_stor_vssmodulescoord_srchwdelete.cxx
mov dword [rsp + 0x4c], r15d
mov dword [rbp + 0x18], r15d
mov word [rbp + 0x4c0], r15w
mov r14d, 0x206
mov r8d, r14d
xor edx, edx
lea rcx, [rbp + 0x4c2]
call sub.msvcrt.dll_memset
mov word [rbp + 0x6d0], r15w
mov r8d, r14d
xor edx, edx
lea rcx, [rbp + 0x6d2]
call sub.msvcrt.dll_memset
mov word [rbp + 0x8e0], r15w
mov r8d, r14d
xor edx, edx
lea rcx, [rbp + 0x8e2]
call sub.msvcrt.dll_memset
mov word [rbp + 0xaf0], r15w
mov r8d, r14d
xor edx, edx
lea rcx, [rbp + 0xaf2]
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rbp + 0xaf0]
lea rcx, [rbp + 0x2b0]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x14009181b
mov qword [rsp + 0x50], rsi
lea rax, str.CVssHardwareProviderWrapper::CollectSharesAndMountPointsOnVolume
mov qword [rsp + 0x58], rax
lea rax, str.CORHDELC
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], 0x432
mov dword [rsp + 0x6c], edi
mov dword [rsp + 0x70], 0xff
mov dword [rbp - 0x10], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x78]
call sub.msvcrt.dll_memset
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
test eax, eax
jle 0x1400917f6
movzx eax, ax
or eax, ebx
lea rcx, [rbp + 0x2b0]
mov qword [rsp + 0x20], rcx
lea r9, str.GetVolumeNameForVolumeMountPoint__s_
mov r8d, eax
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x20]
call fcn.1400cf12c
int3
mov qword [rbp], r15
lea rax, [0x1400f23f8]
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.14005ab48
mov qword [rsp + 0x30], r15
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
or r9d, 0xffffffff
lea r8, [rbp]
mov edx, 0x1f6
xor ecx, ecx
call qword [sym.imp.srvcli.dll_NetShareEnum]
mov esi, eax
xor edx, edx
test eax, eax
je 0x1400918d2
lea rax, str.base_stor_vssmodulescoord_srchwdelete.cxx
mov qword [rsp + 0x50], rax
lea rax, str.CVssHardwareProviderWrapper::CollectSharesAndMountPointsOnVolume
mov qword [rsp + 0x58], rax
lea rax, str.CORHDELC
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], 0x443
mov dword [rsp + 0x6c], edi
mov dword [rsp + 0x70], 0xff
mov dword [rbp - 0x10], 0x1000000
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x78]
call sub.msvcrt.dll_memset
mov r9d, esi
lea r8, str.NetShareEnum_failed_with__d
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x20]
call fcn.140010920
jmp 0x140091b49
mov r15, qword [rbp]
mov r14d, edx
cmp dword [rsp + 0x4c], edx
jbe 0x140091b46
mov eax, r14d
lea rcx, [rax + rax*8]
lea rsi, [r15 + rcx*8]
cmp dword [rsi + 8], edx
jne 0x140091b06
mov r8d, 0x104
lea rdx, [rbp + 0x4c0]
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetVolumePathNameW]
test eax, eax
jne 0x140091996
lea rax, str.base_stor_vssmodulescoord_srchwdelete.cxx
mov qword [rsp + 0x50], rax
lea rax, str.CVssHardwareProviderWrapper::CollectSharesAndMountPointsOnVolume
mov qword [rsp + 0x58], rax
lea rax, str.CORHDELC
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], 0x44e
mov dword [rsp + 0x6c], edi
mov dword [rsp + 0x70], 0xff
mov dword [rbp - 0x10], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x78]
call sub.msvcrt.dll_memset
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
test eax, eax
jle 0x140091974
movzx eax, ax
or eax, ebx
mov r9, qword [rsi + 0x28]
lea r8, str.GetVolumePathName__s__failed_with_0x_08lx
mov dword [rsp + 0x20], eax
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x20]
call fcn.140010920
jmp 0x140091b04
mov r8d, 0x104
lea rdx, [rbp + 0x6d0]
lea rcx, [rbp + 0x4c0]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x140091a25
lea rax, str.base_stor_vssmodulescoord_srchwdelete.cxx
mov qword [rsp + 0x50], rax
lea rax, str.CVssHardwareProviderWrapper::CollectSharesAndMountPointsOnVolume
mov qword [rsp + 0x58], rax
lea rax, str.CORHDELC
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], 0x45a
mov dword [rsp + 0x6c], edi
mov dword [rsp + 0x70], 0xff
mov dword [rbp - 0x10], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x78]
call sub.msvcrt.dll_memset
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
test eax, eax
jle 0x140091a12
movzx eax, ax
or eax, ebx
lea r9, [rbp + 0x4c0]
lea r8, str.GetVolumeNameForVolumeMountPoint__s__fails_with_0x_08lx
jmp 0x14009197f
mov r8d, 0x104
lea rdx, [rbp + 0x8e0]
lea rcx, [rbp + 0x6d0]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x140091ab4
lea rax, str.base_stor_vssmodulescoord_srchwdelete.cxx
mov qword [rsp + 0x50], rax
lea rax, str.CVssHardwareProviderWrapper::CollectSharesAndMountPointsOnVolume
mov qword [rsp + 0x58], rax
lea rax, str.CORHDELC
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], 0x45e
mov dword [rsp + 0x6c], edi
mov dword [rsp + 0x70], 0xff
mov dword [rbp - 0x10], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x78]
call sub.msvcrt.dll_memset
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
test eax, eax
jle 0x140091aa1
movzx eax, ax
or eax, ebx
lea r9, [rbp + 0x6d0]
lea r8, str.GetVolumeNameForVolumeMountPoint__s__fail_with_0x_08lx
jmp 0x14009197f
lea rdx, [rbp + 0xaf0]
lea rcx, [rbp + 0x8e0]
call qword [sym.imp.msvcrt.dll__wcsicmp]
xor edx, edx
test eax, eax
jne 0x140091b06
mov qword [rbp + 0xa0], rsi
lea r8, [rbp + 0x4c0]
mov edx, 0x104
lea rcx, [rbp + 0xa8]
call fcn.140005350
test eax, eax
js 0x140091b30
lea rdx, [rbp + 0xa0]
mov rcx, r13
call fcn.14008ed18
test eax, eax
je 0x140091b16
xor edx, edx
inc r14d
cmp r14d, dword [rsp + 0x4c]
jb 0x1400918e3
jmp 0x140091b46
mov dword [rsp + 0x40], 0x8007000e
lea rdx, [0x140156368]
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll__CxxThrowException
int3
mov dword [rsp + 0x40], eax
lea rdx, [0x140156368]
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll__CxxThrowException
int3
xor r15d, r15d
mov rax, qword [rbp]
mov qword [rbp], r15
mov qword [r12], rax
lea rcx, [rbp - 8]
call fcn.14005ab18
nop
lea rcx, [rbp + 8]
call fcn.14000384c
nop
lea rcx, [rbp + 0x20]
call fcn.140010ab0
mov rcx, qword [rbp + 0xd00]
xor rcx, rsp
call fcn.1400305f0
mov rbx, qword [rsp + 0xe50]
add rsp, 0xe10
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret