Function at 0x101a26f0
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x94
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x58], 0x103530e8
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x50], str.called__Option::unwrap____on_a__None__valueIndex_out_of_bounds
mov dword [ebp - 0x4c], 0
lea eax, [ebp - 0x58]
push eax
call fcn.1014bae0
add esp, 4
movsd xmm0, qword [esi]
mov eax, dword [esi + 8]
mov cl, 1
mov dword [ebp - 0x1c], 1
movsd qword [ebp - 0x94], xmm0
test eax, eax
mov dword [ebp - 0x8c], eax
mov edi, dword [ebp - 0x94]
lea esi, [edi + eax]
mov dword [ebp - 0x38], esi
je 0x101a2773
movzx ebx, byte [edi]
test bl, bl
js 0x101a278f
inc edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], edi
jmp 0x101a284b
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
xor eax, eax
jmp 0x101a2863
movzx edx, byte [edi + 1]
mov eax, ebx
and eax, 0x1f
and edx, 0x3f
cmp bl, 0xdf
jbe 0x101a27e8
movzx ecx, byte [edi + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp bl, 0xf0
jb 0x101a27fe
movzx ebx, byte [edi + 3]
and eax, 7
shl ecx, 6
shl eax, 0x12
and ebx, 0x3f
or ebx, ecx
or ebx, eax
cmp ebx, 0x110000
jne 0x101a281c
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
xor eax, eax
mov cl, 1
jmp 0x101a2863
shl eax, 6
add edi, 2
mov dword [ebp - 0x10], 0
or eax, edx
mov dword [ebp - 0x14], edi
mov ebx, eax
jmp 0x101a284b
shl eax, 0xc
add edi, 3
or ecx, eax
mov dword [ebp - 0x14], edi
mov ebx, ecx
cmp ebx, 0xffff
ja 0x101a282a
mov dword [ebp - 0x10], 0
jmp 0x101a284b
add edi, 4
mov dword [ebp - 0x14], edi
cmp ebx, 0xffff
jbe 0x101a2813
lea eax, [ebx + 0xff0000]
and ebx, 0x3ff
shr eax, 0xa
or ebx, 0xdc00
or eax, 0xd800
mov ecx, ebx
mov ebx, eax
mov dword [ebp - 0x10], ecx
mov eax, esi
xor ecx, ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 0
sub eax, dword [ebp - 0x14]
add eax, 3
shr eax, 2
inc eax
cmp eax, 4
mov ebx, 3
cmovae ebx, eax
cmp ebx, 0x3fffffff
setb al
jae 0x101a3149
lea edi, [ebx + ebx + 2]
test edi, edi
js 0x101a3149
mov byte [ebp - 0x18], al
mov eax, dword [0x103564a0]
mov esi, ecx
movzx eax, byte [eax]
mov eax, dword [0x1035648c]
mov eax, dword [eax]
test eax, eax
jne 0x101a28b6
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101a3133
mov ecx, dword [0x1035648c]
mov dword [ecx], eax
push edi
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101a3133
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x10]
inc ebx
mov word [eax], cx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x38]
test edi, edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x50], 1
mov word [ebp - 0x4c], 0
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x44], eax
mov word [ebp - 0x40], dx
je 0x101a2b37
add eax, 3
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x30], eax
jmp 0x101a2939
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x18], ecx
mov word [ecx + edx*2], ax
inc edx
mov eax, esi
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x48]
test edx, edx
cmovne edx, eax
je 0x101a29cb
cmp word [ebp - 0x10], 0
jne 0x101a2a00
mov edi, dword [edx]
cmp edi, dword [ebp - 0x38]
je 0x101a29c4
lea eax, [edi + 1]
mov dword [edx], eax
movzx eax, byte [edi]
test al, al
jns 0x101a2a40
lea ecx, [edi + 2]
mov esi, eax
mov dword [edx], ecx
and esi, 0x1f
movzx ecx, byte [edi + 1]
and ecx, 0x3f
cmp al, 0xdf
jbe 0x101a2a18
mov dword [ebp - 0x14], esi
lea esi, [edi + 3]
shl ecx, 6
mov dword [edx], esi
movzx esi, byte [edi + 2]
and esi, 0x3f
or esi, ecx
cmp al, 0xf0
jb 0x101a2a21
lea eax, [edi + 4]
mov ecx, dword [ebp - 0x14]
shl esi, 6
mov dword [edx], eax
movzx eax, byte [edi + 3]
and ecx, 7
shl ecx, 0x12
and eax, 0x3f
or eax, esi
or eax, ecx
cmp eax, 0x110000
jne 0x101a2a2b
mov dword [ebp - 0x48], 0
cmp dword [ebp - 0x1c], 1
je 0x101a2b44
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 0
mov esi, eax
mov ecx, dword [ebp - 0x48]
cmp dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], ecx
jne 0x101a2920
jmp 0x101a2a54
mov word [ebp - 0x40], 0
xor esi, esi
mov ecx, dword [ebp - 0x48]
cmp dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], ecx
je 0x101a2a54
jmp 0x101a2920
shl esi, 6
or esi, ecx
mov eax, esi
jmp 0x101a2a40
mov eax, dword [ebp - 0x14]
shl eax, 0xc
or esi, eax
mov eax, esi
cmp eax, 0xffff
ja 0x101a2b01
nop word cs:[eax + eax]
xor esi, esi
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x48]
cmp dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], ecx
jne 0x101a2920
test ecx, ecx
je 0x101a2a6e
mov eax, dword [ebp - 0x30]
sub eax, ecx
shr eax, 2
sub eax, dword [ebp - 0x1c]
inc eax
inc eax
add ebx, eax
jae 0x101a2a7f
jmp 0x101a311b
mov eax, 1
sub eax, dword [ebp - 0x1c]
inc eax
add ebx, eax
jb 0x101a311b
mov edi, dword [ebp - 0x28]
mov ecx, 4
lea eax, [edi + edi]
cmp eax, ebx
cmova ebx, eax
cmp ebx, 5
cmovb ebx, ecx
xor edx, edx
cmp ebx, 0x40000000
lea ecx, [ebx + ebx]
setb dl
mov dword [ebp - 0x18], ecx
add edx, edx
test edi, edi
je 0x101a2abe
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], 2
mov dword [ebp - 0x60], eax
jmp 0x101a2ac5
mov dword [ebp - 0x64], 0
lea ecx, [ebp - 0x78]
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x18]
call fcn.1019e440
add esp, 8
cmp dword [ebp - 0x78], 0
mov ecx, dword [ebp - 0x74]
je 0x101a2af6
cmp ecx, 0x80000001
jne 0x101a3117
mov ecx, dword [ebp - 0x2c]
mov ebx, edi
jmp 0x101a2923
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ebx
jmp 0x101a2923
lea ecx, [eax + 0xff0000]
and eax, 0x3ff
shr ecx, 0xa
or eax, 0xdc00
or ecx, 0xd800
mov word [ebp - 0x40], ax
mov esi, eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x48]
cmp dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], ecx
jne 0x101a2920
jmp 0x101a2a54
mov ecx, dword [ebp - 0x1c]
mov eax, esi
test al, al
je 0x101a2d95
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x9c]
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x98]
lea esi, [ebp - 0x88]
push eax
push ecx
push edx
push 0xffffffffffffffff
push esi
push 0
push edi
call sub.netapi32.dll_NetShareEnum
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x88]
test eax, eax
mov dword [ebp - 0xa0], eax
je 0x101a2d02
push ecx
call sub.netapi32.dll_NetApiBufferFree
test eax, eax
mov dword [ebp - 0x68], eax
jne 0x101a3172
lea eax, [ebp - 0x94]
mov dword [ebp - 0x58], 0x1035319c
mov dword [ebp - 0x54], 2
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0xa0]
mov dword [ebp - 0x64], 0x1019efd0
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x5c], 0x1002d590
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], 2
lea eax, [ebp - 0x78]
lea ecx, [ebp - 0x58]
push ecx
push eax
call fcn.1001ac00
add esp, 8
mov eax, dword [ebp - 0x70]
movsd xmm0, qword [ebp - 0x78]
mov dword [ebp - 0x50], eax
mov eax, dword [0x103564a0]
movsd qword [ebp - 0x58], xmm0
movzx eax, byte [eax]
mov eax, dword [0x1035648c]
mov eax, dword [eax]
test eax, eax
jne 0x101a2c47
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101a3150
mov ecx, dword [0x1035648c]
mov dword [ecx], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101a3150
mov esi, eax
mov eax, dword [ebp - 0x50]
mov dword [esi + 8], eax
mov eax, dword [0x103564a0]
movsd xmm0, qword [ebp - 0x58]
movsd qword [esi], xmm0
movzx eax, byte [eax]
mov eax, dword [0x1035648c]
mov eax, dword [eax]
test eax, eax
jne 0x101a2c92
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101a3161
mov ecx, dword [0x1035648c]
mov dword [ecx], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101a3161
cmp dword [ebp - 0x38], 0
mov dword [eax], esi
mov esi, ebx
mov dword [eax + 4], 0x103507b8
mov byte [eax + 8], 0x27
mov dword [ebx + 8], eax
mov dword [ebx + 4], 3
mov dword [ebx], 0
je 0x101a2cd8
push edi
push 0
mov eax, dword [0x1035648c]
push dword [eax]
call sub.KERNEL32.dll_HeapFree
cmp dword [ebp - 0x90], 0
je 0x101a2cf5
push dword [ebp - 0x94]
push 0
mov eax, dword [0x1035648c]
push dword [eax]
call sub.KERNEL32.dll_HeapFree
mov eax, esi
add esp, 0x94
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x84], 4
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x34], edi
test esi, esi
je 0x101a2df8
lea ecx, [ebp - 0x84]
mov edx, esi
call fcn.1019ec10
mov ebx, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x84]
cmp esi, 2
lea eax, [ebx + ebx*2]
mov dword [ebp - 0x18], ecx
lea eax, [ecx + eax*4]
jb 0x101a2d7e
lea ecx, [esi - 1]
nop word cs:[eax + eax]
nop dword [eax]
mov dword [eax], 2
mov dword [eax + 4], 0
mov dword [eax + 8], 0
add eax, 0xc
dec ecx
jne 0x101a2d60
lea ebx, [esi + ebx - 1]
inc ebx
mov dword [eax], 2
mov dword [eax + 4], 0
mov dword [eax + 8], 0
jmp 0x101a2e01
mov edi, ecx
lea eax, [ebp + ecx*2 - 0x4c]
mov esi, 2
xor edi, 1
mov dword [ebp - 0x10], eax
jmp 0x101a2dcd
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
dec edi
lea edx, [ecx + esi + 1]
mov word [eax + esi*2 - 2], bx
mov dword [ebp - 0x24], esi
inc esi
cmp edx, 3
je 0x101a2b44
lea eax, [ecx + esi - 1]
mov ecx, dword [ebp - 0x10]
lea edx, [esi - 1]
mov dword [ebp - 0x54], eax
cmp edx, dword [ebp - 0x28]
movzx ebx, word [ecx + esi*2 - 4]
jne 0x101a2db0
lea ecx, [ebp - 0x2c]
push edi
call fcn.1019eb70
add esp, 4
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], eax
jmp 0x101a2db0
xor ebx, ebx
mov dword [ebp - 0x18], 4
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [ecx + 8]
test eax, eax
je 0x101a2f11
mov ecx, dword [ebp - 0x30]
xor esi, esi
mov edx, dword [ecx]
mov ecx, edx
lea eax, [edx + eax*2]
mov dword [ebp - 0x20], eax
cmp esi, dword [ebp - 0x1c]
jae 0x101a2efc
cmp esi, dword [ebp - 0x3c]
je 0x101a2f11
movzx eax, word [ecx]
mov ebx, ecx
add ebx, 2
test ax, ax
je 0x101a2ece
mov ecx, dword [ebp - 0x18]
mov word [ebp - 0x6c], ax
lea eax, [esi + esi*2]
mov dword [ebp - 0x10], ebx
lea ebx, [ecx + eax*4]
mov edi, dword [ebx + 8]
cmp edi, dword [ebx + 4]
jne 0x101a2e6b
mov ecx, ebx
mov edx, edi
call fcn.1019e980
mov edi, dword [ebx + 8]
mov eax, dword [ebx]
movzx ecx, word [ebp - 0x6c]
mov word [eax + edi*2], cx
mov ecx, dword [ebp - 0x10]
inc edi
mov dword [ebx + 8], edi
cmp ecx, dword [ebp - 0x20]
je 0x101a2f11
mov dword [ebp - 0x14], esi
jmp 0x101a2eab
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebx]
add ecx, 2
mov word [eax + edi*2], si
inc edi
mov esi, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x20]
mov dword [ebx + 8], edi
mov dword [ebp - 0x10], ecx
je 0x101a2f11
cmp esi, dword [ebp - 0x3c]
je 0x101a2f11
mov eax, dword [ebp - 0x10]
movzx esi, word [eax]
test si, si
je 0x101a2edf
cmp edi, dword [ebx + 4]
jne 0x101a2e90
mov ecx, ebx
mov edx, edi
call fcn.1019e980
mov edi, dword [ebx + 8]
jmp 0x101a2e90
xor eax, eax
add esi, eax
cmp ebx, dword [ebp - 0x20]
mov ecx, ebx
jne 0x101a2e24
jmp 0x101a2f11
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
mov eax, 1
add ebx, 2
add esi, eax
cmp ebx, dword [ebp - 0x20]
mov ecx, ebx
jne 0x101a2e24
jmp 0x101a2f11
cmp esi, dword [ebp - 0x3c]
je 0x101a2f11
cmp word [ecx], 0
jne 0x101a319a
mov ebx, ecx
xor eax, eax
jmp 0x101a2eea
mov ecx, dword [ebp - 0x7c]
mov edi, dword [ebp - 0x84]
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x2c], 4
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
lea edx, [ecx + ecx*2]
test ecx, ecx
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x6c], edi
lea edx, [edi + edx*4]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x4c], edx
je 0x101a306d
mov eax, dword [ebp - 0x6c]
xor ebx, ebx
mov esi, 4
lea edi, [eax + 0xc]
jmp 0x101a2f91
mov esi, dword [ebp - 0x1c]
cmp dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x10]
je 0x101a2f7f
nop word [eax + eax]
push eax
push 0
mov eax, dword [0x1035648c]
push dword [eax]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [ebp - 0x14]
add edi, 0xc
add eax, 0xc
cmp eax, dword [ebp - 0x18]
je 0x101a30ae
mov ecx, dword [edi - 0xc]
test ecx, ecx
je 0x101a306d
mov eax, dword [edi - 8]
lea edx, [edi - 0xc]
mov dword [ebp - 0x1c], esi
mov esi, ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x20], eax
mov eax, dword [edx + 8]
mov word [ebp - 0x68], 0
mov dword [ebp - 0x64], ecx
lea eax, [ecx + eax*2]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x78]
lea edx, [ebp - 0x68]
call fcn.101a11d0
cmp dword [ebp - 0x70], 0
mov ebx, esi
je 0x101a3000
mov eax, dword [ebp - 0x70]
movsd xmm0, qword [ebp - 0x78]
cmp ebx, dword [ebp - 0x28]
mov dword [ebp - 0x60], eax
movsd qword [ebp - 0x68], xmm0
jne 0x101a3040
lea ecx, [ebp - 0x2c]
mov edx, ebx
call fcn.1019e8d0
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x24]
jmp 0x101a3043
cmp dword [ebp - 0x74], 0
je 0x101a2f5e
push dword [ebp - 0x78]
push 0
mov eax, dword [0x1035648c]
push dword [eax]
call sub.KERNEL32.dll_HeapFree
mov ebx, esi
mov esi, dword [ebp - 0x1c]
cmp dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x10]
jne 0x101a2f70
jmp 0x101a2f7f
mov esi, dword [ebp - 0x1c]
movsd xmm0, qword [ebp - 0x78]
mov ecx, dword [ebp - 0x70]
lea eax, [ebx + ebx*2]
inc ebx
mov dword [esi + eax*4 + 8], ecx
movsd qword [esi + eax*4], xmm0
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x10]
jne 0x101a2f70
jmp 0x101a2f7f
mov ebx, dword [ebp - 0x18]
mov ecx, 0xaaaaaaab
mov dword [ebp - 0x50], edi
mov eax, ebx
sub eax, edi
mul ecx
cmp ebx, edi
je 0x101a30ae
mov esi, edx
add edi, 4
shr esi, 3
jmp 0x101a3096
add edi, 0xc
dec esi
je 0x101a30ae
cmp dword [edi], 0
je 0x101a3090
push dword [edi - 4]
push 0
mov eax, dword [0x1035648c]
push dword [eax]
call sub.KERNEL32.dll_HeapFree
jmp 0x101a3090
cmp dword [ebp - 0x54], 0
je 0x101a30c5
push dword [ebp - 0x6c]
push 0
mov eax, dword [0x1035648c]
push dword [eax]
call sub.KERNEL32.dll_HeapFree
push dword [ebp - 0x30]
mov esi, dword [ebp - 0x34]
call sub.netapi32.dll_NetApiBufferFree
test eax, eax
mov dword [ebp - 0x68], eax
jne 0x101a3186
cmp dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
movsd xmm0, qword [ebp - 0x2c]
mov dword [ecx + 8], eax
movsd qword [ecx], xmm0
je 0x101a3102
push esi
push 0
mov eax, dword [0x1035648c]
push dword [eax]
call sub.KERNEL32.dll_HeapFree
cmp dword [ebp - 0x90], 0
mov esi, dword [ebp + 8]
jne 0x101a2ce1
jmp 0x101a2cf5
test ecx, ecx
jne 0x101a3125
call fcn.1001a7a0
jmp 0x101a31ab
push dword [ebp - 0x70]
push ecx
call fcn.1001a7e0
add esp, 8
jmp 0x101a31ab
movzx ecx, byte [ebp - 0x18]
xor eax, eax
mov al, cl
add eax, eax
push edi
push eax
call fcn.1001a7e0
add esp, 8
jmp 0x101a31ab
call fcn.1001a7a0
jmp 0x101a31ab
mov dword [ebp - 0x34], edi
push 0xc
push 4
call fcn.1001a7e0
add esp, 8
jmp 0x101a31ab
mov dword [ebp - 0x34], edi
push 0xc
push 4
call fcn.1001a7e0
add esp, 8
jmp 0x101a31ab
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x58]
call fcn.1019cf20
jmp 0x101a31ab
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x58]
call fcn.1019cf20
jmp 0x101a31ab
push 0x1035315c
push dword [ebp - 0x1c]
push esi
call fcn.10026930
add esp, 0xc
ud2