Function at 0x101c8b60
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x88
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], 1
mov esi, dword [eax]
mov eax, dword [eax + 8]
lea ecx, [esi + eax]
test eax, eax
mov dword [ebp - 0x34], ecx
je 0x101c8b8f
movzx ebx, byte [esi]
test bl, bl
js 0x101c8ba8
inc esi
jmp 0x101c8c09
mov al, 1
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x14], 0
xor esi, esi
xor eax, eax
mov dword [ebp - 0x1c], 0
jmp 0x101c8c26
movzx edx, byte [esi + 1]
mov eax, ebx
and eax, 0x1f
and edx, 0x3f
cmp bl, 0xdf
jbe 0x101c8bff
mov cl, 1
shl edx, 6
mov dword [ebp - 0x30], ecx
movzx ecx, byte [esi + 2]
and ecx, 0x3f
or ecx, edx
cmp bl, 0xf0
jb 0x101c94c7
movzx ebx, byte [esi + 3]
and eax, 7
shl ecx, 6
shl eax, 0x12
and ebx, 0x3f
or ebx, ecx
or ebx, eax
cmp ebx, 0x110000
je 0x101c8b94
add esi, 4
cmp ebx, 0xffff
jbe 0x101c8c09
jmp 0x101c94dd
shl eax, 6
add esi, 2
or eax, edx
mov ebx, eax
mov dword [ebp - 0x1c], ebx
mov eax, 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x34]
mov edi, 3
mov dword [ebp - 0x10], esi
add ecx, 3
mov dword [ebp - 0x38], ecx
sub ecx, esi
shr ecx, 2
test esi, esi
cmove ecx, esi
add ecx, eax
cmp ecx, 4
cmovae edi, ecx
cmp edi, 0x3fffffff
setb al
jae 0x101c954a
lea ebx, [edi + edi + 2]
test ebx, ebx
js 0x101c954a
mov byte [ebp - 0x20], al
mov eax, dword [0x1044f00c]
movzx eax, byte [eax]
mov eax, dword [0x1044eff8]
mov eax, dword [eax]
test eax, eax
jne 0x101c8c8f
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101c9534
mov ecx, dword [0x1044eff8]
mov dword [ecx], eax
push ebx
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101c9534
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
inc edi
mov word [eax], cx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x50], 1
mov word [ebp - 0x4c], 0
mov dword [ebp - 0x48], ecx
test ecx, ecx
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x14]
mov word [ebp - 0x40], ax
je 0x101c8f0f
mov dword [ebp - 0x1c], 1
jmp 0x101c8d19
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
mov word [ecx + edx*2], ax
inc edx
mov eax, esi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x48]
test edx, edx
cmovne edx, eax
je 0x101c8dcc
cmp word [ebp - 0x14], 0
jne 0x101c8d50
mov ebx, dword [edx]
cmp ebx, dword [ebp - 0x34]
je 0x101c8dc5
lea eax, [ebx + 1]
mov dword [edx], eax
movzx eax, byte [ebx]
test al, al
js 0x101c8d69
xor esi, esi
jmp 0x101c8ded
mov word [ebp - 0x40], 0
xor esi, esi
mov ecx, dword [ebp - 0x48]
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], ecx
je 0x101c8dff
jmp 0x101c8d00
lea ecx, [ebx + 2]
mov esi, eax
mov dword [edx], ecx
and esi, 0x1f
movzx ecx, byte [ebx + 1]
and ecx, 0x3f
cmp al, 0xdf
jbe 0x101c8eb6
mov dword [ebp - 0x10], esi
lea esi, [ebx + 3]
shl ecx, 6
mov dword [edx], esi
movzx esi, byte [ebx + 2]
and esi, 0x3f
or esi, ecx
cmp al, 0xf0
jb 0x101c8ec4
lea eax, [ebx + 4]
mov ecx, dword [ebp - 0x10]
shl esi, 6
mov dword [edx], eax
movzx eax, byte [ebx + 3]
and ecx, 7
shl ecx, 0x12
and eax, 0x3f
or eax, esi
or eax, ecx
cmp eax, 0x110000
jne 0x101c8ece
mov dword [ebp - 0x48], 0
mov ecx, dword [ebp - 0x18]
cmp ecx, 1
je 0x101c8f1c
lea eax, [ecx + 1]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x18], eax
movzx ecx, word [ebp + ecx*2 - 0x4c]
mov esi, edx
mov eax, ecx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x48]
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], ecx
jne 0x101c8d00
test ecx, ecx
je 0x101c8e1e
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x54]
sub eax, ecx
mov dword [ebp - 0x18], edx
shr eax, 2
sub eax, edx
inc eax
inc eax
add edi, eax
jae 0x101c8e34
jmp 0x101c951c
mov ecx, dword [ebp - 0x54]
mov eax, 1
mov dword [ebp - 0x18], ecx
sub eax, ecx
inc eax
add edi, eax
jb 0x101c951c
mov ebx, dword [ebp - 0x28]
mov ecx, 4
lea eax, [ebx + ebx]
cmp eax, edi
cmova edi, eax
cmp edi, 5
cmovb edi, ecx
xor edx, edx
cmp edi, 0x40000000
lea ecx, [edi + edi]
setb dl
mov dword [ebp - 0x20], ecx
add edx, edx
test ebx, ebx
je 0x101c8e73
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], 2
mov dword [ebp - 0x60], eax
jmp 0x101c8e7a
mov dword [ebp - 0x64], 0
lea ecx, [ebp - 0x78]
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x20]
call fcn.101aa9c0
add esp, 8
cmp dword [ebp - 0x78], 0
mov ecx, dword [ebp - 0x74]
je 0x101c8eab
cmp ecx, 0x80000001
jne 0x101c9518
mov ecx, dword [ebp - 0x2c]
mov edi, ebx
jmp 0x101c8d03
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], edi
jmp 0x101c8d03
shl esi, 6
or esi, ecx
mov eax, esi
xor esi, esi
jmp 0x101c8ded
mov eax, dword [ebp - 0x10]
shl eax, 0xc
or esi, eax
mov eax, esi
cmp eax, 0xffff
jbe 0x101c8d48
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 - 0x14], ecx
mov ecx, dword [ebp - 0x48]
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], ecx
jne 0x101c8d00
jmp 0x101c8dff
cmp byte [ebp - 0x30], 0
mov ecx, dword [ebp - 0x18]
je 0x101c9135
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x90]
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x8c]
lea esi, [ebp - 0x88]
push eax
push ecx
push edx
push 0xffffffffffffffff
push esi
push 0
mov dword [ebp - 0x38], edi
push edi
call sub.netapi32.dll_NetShareEnum
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 0x88]
test eax, eax
mov dword [ebp - 0x94], eax
je 0x101c90aa
push edi
call sub.netapi32.dll_NetApiBufferFree
test eax, eax
mov dword [ebp - 0x68], eax
jne 0x101c956d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x58], 0x104419d8
mov dword [ebp - 0x54], 2
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x64], 0x101ab600
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x5c], 0x1002e030
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], 2
lea edi, [ebp - 0x58]
lea eax, [ebp - 0x78]
push edi
push eax
call fcn.1001b0a0
add esp, 8
mov eax, dword [ebp - 0x70]
movsd xmm0, qword [ebp - 0x78]
mov dword [ebp - 0x50], eax
mov eax, dword [0x1044f00c]
movsd qword [ebp - 0x58], xmm0
movzx eax, byte [eax]
mov eax, dword [0x1044eff8]
mov eax, dword [eax]
test eax, eax
jne 0x101c901f
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101c9551
mov ecx, dword [0x1044eff8]
mov dword [ecx], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101c9551
mov esi, eax
mov eax, dword [ebp - 0x50]
mov dword [esi + 8], eax
mov eax, dword [0x1044f00c]
movsd xmm0, qword [ebp - 0x58]
movsd qword [esi], xmm0
movzx eax, byte [eax]
mov eax, dword [0x1044eff8]
mov eax, dword [eax]
test eax, eax
jne 0x101c906a
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101c955f
mov ecx, dword [0x1044eff8]
mov dword [ecx], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101c955f
cmp dword [ebp - 0x34], 0
mov dword [eax], esi
mov esi, ebx
mov dword [eax + 4], 0x1043ef0c
mov byte [eax + 8], 0x27
mov dword [ebx + 8], eax
mov dword [ebx + 4], 3
mov dword [ebx], 0
je 0x101c94a1
jmp 0x101c9490
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x84], 4
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x30], edi
test esi, esi
je 0x101c9198
lea ecx, [ebp - 0x84]
mov edx, esi
call fcn.101ab2d0
mov ebx, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x84]
cmp esi, 2
lea eax, [ebx + ebx*2]
mov dword [ebp - 0x20], ecx
lea eax, [ecx + eax*4]
jb 0x101c911e
lea ecx, [esi - 1]
nop word [eax + eax]
mov dword [eax], 2
mov dword [eax + 4], 0
mov dword [eax + 8], 0
add eax, 0xc
dec ecx
jne 0x101c9100
lea ebx, [esi + ebx - 1]
inc ebx
mov dword [eax], 2
mov dword [eax + 4], 0
mov dword [eax + 8], 0
jmp 0x101c91a1
mov edi, ecx
lea eax, [ebp + ecx*2 - 0x4c]
mov esi, 2
xor edi, 1
mov dword [ebp - 0x14], eax
jmp 0x101c9173
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
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 0x101c8f1c
lea eax, [ecx + esi - 1]
mov ecx, dword [ebp - 0x14]
lea edx, [esi - 1]
mov dword [ebp - 0x54], eax
cmp edx, dword [ebp - 0x28]
movzx ebx, word [ecx + esi*2 - 4]
jne 0x101c9156
lea ecx, [ebp - 0x2c]
push edi
call fcn.101ab230
add esp, 4
jmp 0x101c9150
xor ebx, ebx
mov dword [ebp - 0x20], 4
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x18], ebx
mov eax, dword [edi + 8]
test eax, eax
je 0x101c92b1
mov ecx, dword [ebp - 0x30]
xor esi, esi
mov edx, dword [ecx]
mov ecx, edx
lea eax, [edx + eax*2]
mov dword [ebp - 0x1c], eax
cmp esi, dword [ebp - 0x18]
jae 0x101c929c
cmp esi, dword [ebp - 0x3c]
je 0x101c92b1
movzx eax, word [ecx]
mov ebx, ecx
add ebx, 2
test ax, ax
je 0x101c926e
mov ecx, dword [ebp - 0x20]
mov word [ebp - 0x6c], ax
lea eax, [esi + esi*2]
mov dword [ebp - 0x14], ebx
lea ebx, [ecx + eax*4]
mov edi, dword [ebx + 8]
cmp edi, dword [ebx + 4]
jne 0x101c9208
mov ecx, ebx
mov edx, edi
call fcn.101aab40
mov edi, dword [ebx + 8]
mov eax, dword [ebx]
movzx ecx, word [ebp - 0x6c]
mov word [eax + edi*2], cx
mov ecx, dword [ebp - 0x14]
inc edi
mov dword [ebx + 8], edi
cmp ecx, dword [ebp - 0x1c]
je 0x101c92b1
mov dword [ebp - 0x10], esi
jmp 0x101c924e
mov edi, dword [ebx + 8]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebx]
add ecx, 2
mov word [eax + edi*2], si
inc edi
mov esi, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x1c]
mov dword [ebx + 8], edi
mov dword [ebp - 0x14], ecx
je 0x101c92b1
cmp esi, dword [ebp - 0x3c]
je 0x101c92b1
mov eax, dword [ebp - 0x14]
movzx esi, word [eax]
test si, si
je 0x101c927f
cmp edi, dword [ebx + 4]
jne 0x101c9233
mov ecx, ebx
mov edx, edi
call fcn.101aab40
jmp 0x101c9230
xor eax, eax
add esi, eax
cmp ebx, dword [ebp - 0x1c]
mov ecx, ebx
jne 0x101c91c1
jmp 0x101c92b1
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
mov eax, 1
add ebx, 2
add esi, eax
cmp ebx, dword [ebp - 0x1c]
mov ecx, ebx
jne 0x101c91c1
jmp 0x101c92b1
cmp esi, dword [ebp - 0x3c]
je 0x101c92b1
cmp word [ecx], 0
jne 0x101c9595
mov ebx, ecx
xor eax, eax
jmp 0x101c928a
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 - 0x20], edx
mov dword [ebp - 0x4c], edx
je 0x101c940d
mov eax, dword [ebp - 0x6c]
xor esi, esi
mov ebx, 4
lea edi, [eax + 0xc]
jmp 0x101c9331
mov ebx, dword [ebp - 0x18]
cmp dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x14]
je 0x101c931f
nop word [eax + eax]
push eax
push 0
mov eax, dword [0x1044eff8]
push dword [eax]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [ebp - 0x10]
add edi, 0xc
add eax, 0xc
cmp eax, dword [ebp - 0x20]
je 0x101c944e
mov ecx, dword [edi - 0xc]
test ecx, ecx
je 0x101c940d
mov eax, dword [edi - 8]
lea edx, [edi - 0xc]
mov dword [ebp - 0x18], ebx
mov ebx, esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1c], 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.101ae730
cmp dword [ebp - 0x70], 0
mov esi, ebx
je 0x101c93a0
mov eax, dword [ebp - 0x70]
movsd xmm0, qword [ebp - 0x78]
cmp esi, dword [ebp - 0x28]
mov dword [ebp - 0x60], eax
movsd qword [ebp - 0x68], xmm0
jne 0x101c93e0
lea ecx, [ebp - 0x2c]
mov edx, esi
call fcn.101aae70
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x24]
jmp 0x101c93e3
cmp dword [ebp - 0x74], 0
je 0x101c92fe
push dword [ebp - 0x78]
push 0
mov eax, dword [0x1044eff8]
push dword [eax]
call sub.KERNEL32.dll_HeapFree
mov esi, ebx
mov ebx, dword [ebp - 0x18]
cmp dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x14]
jne 0x101c9310
jmp 0x101c931f
mov ebx, dword [ebp - 0x18]
movsd xmm0, qword [ebp - 0x78]
mov ecx, dword [ebp - 0x70]
lea eax, [esi + esi*2]
inc esi
mov dword [ebx + eax*4 + 8], ecx
movsd qword [ebx + eax*4], xmm0
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x14]
jne 0x101c9310
jmp 0x101c931f
mov ebx, dword [ebp - 0x20]
mov ecx, 0xaaaaaaab
mov dword [ebp - 0x50], edi
mov eax, ebx
sub eax, edi
mul ecx
cmp ebx, edi
je 0x101c944e
mov esi, edx
add edi, 4
shr esi, 3
jmp 0x101c9436
add edi, 0xc
dec esi
je 0x101c944e
cmp dword [edi], 0
je 0x101c9430
push dword [edi - 4]
push 0
mov eax, dword [0x1044eff8]
push dword [eax]
call sub.KERNEL32.dll_HeapFree
jmp 0x101c9430
cmp dword [ebp - 0x54], 0
je 0x101c9465
push dword [ebp - 0x6c]
push 0
mov eax, dword [0x1044eff8]
push dword [eax]
call sub.KERNEL32.dll_HeapFree
push dword [ebp - 0x30]
call sub.netapi32.dll_NetApiBufferFree
mov esi, dword [ebp + 8]
test eax, eax
mov dword [ebp - 0x68], eax
jne 0x101c9581
mov eax, dword [ebp - 0x24]
movsd xmm0, qword [ebp - 0x2c]
cmp dword [ebp - 0x34], 0
mov dword [esi + 8], eax
movsd qword [esi], xmm0
je 0x101c94a1
push dword [ebp - 0x38]
push 0
mov eax, dword [0x1044eff8]
push dword [eax]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0
je 0x101c94ba
push dword [eax]
push 0
mov eax, dword [0x1044eff8]
push dword [eax]
call sub.KERNEL32.dll_HeapFree
mov eax, esi
add esp, 0x88
pop esi
pop edi
pop ebx
pop ebp
ret
shl eax, 0xc
add esi, 3
or ecx, eax
mov ebx, ecx
cmp ebx, 0xffff
jbe 0x101c8c09
lea ecx, [ebx + 0xff0000]
and ebx, 0x3ff
mov eax, 1
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x18], 0
or ebx, 0xdc00
shr ecx, 0xa
mov edx, ebx
or ecx, 0xd800
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], edx
jmp 0x101c8c26
test ecx, ecx
jne 0x101c9526
call fcn.1001ac40
jmp 0x101c95a6
push dword [ebp - 0x70]
push ecx
call fcn.1001ac80
add esp, 8
jmp 0x101c95a6
movzx ecx, byte [ebp - 0x20]
xor eax, eax
mov al, cl
add eax, eax
push ebx
push eax
call fcn.1001ac80
add esp, 8
jmp 0x101c95a6
call fcn.1001ac40
jmp 0x101c95a6
push 0xc
push 4
call fcn.1001ac80
add esp, 8
jmp 0x101c95a6
push 0xc
push 4
call fcn.1001ac80
add esp, 8
jmp 0x101c95a6
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x58]
call fcn.101a8b70
jmp 0x101c95a6
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x58]
call fcn.101a8b70
jmp 0x101c95a6
push 0x10441998
push dword [ebp - 0x18]
push esi
call fcn.100273d0
add esp, 0xc
ud2