Function at 0x579820
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 0x57984f
movzx ebx, byte [esi]
test bl, bl
js 0x579868
inc esi
jmp 0x5798c9
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 0x5798e6
movzx edx, byte [esi + 1]
mov eax, ebx
and eax, 0x1f
and edx, 0x3f
cmp bl, 0xdf
jbe 0x5798bf
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 0x57a187
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 0x579854
add esi, 4
cmp ebx, 0xffff
jbe 0x5798c9
jmp 0x57a19d
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 0x57a20a
lea ebx, [edi + edi + 2]
test ebx, ebx
js 0x57a20a
mov byte [ebp - 0x20], al
mov eax, dword [0x607474]
movzx eax, byte [eax]
mov eax, dword [0x607460]
mov eax, dword [eax]
test eax, eax
jne 0x57994f
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x57a1f4
mov ecx, dword [0x607460]
mov dword [ecx], eax
push ebx
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x57a1f4
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 0x579bcf
mov dword [ebp - 0x1c], 1
jmp 0x5799d9
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 0x579a8c
cmp word [ebp - 0x14], 0
jne 0x579a10
mov ebx, dword [edx]
cmp ebx, dword [ebp - 0x34]
je 0x579a85
lea eax, [ebx + 1]
mov dword [edx], eax
movzx eax, byte [ebx]
test al, al
js 0x579a29
xor esi, esi
jmp 0x579aad
mov word [ebp - 0x40], 0
xor esi, esi
mov ecx, dword [ebp - 0x48]
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], ecx
je 0x579abf
jmp 0x5799c0
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 0x579b76
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 0x579b84
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 0x579b8e
mov dword [ebp - 0x48], 0
mov ecx, dword [ebp - 0x18]
cmp ecx, 1
je 0x579bdc
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 0x5799c0
test ecx, ecx
je 0x579ade
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 0x579af4
jmp 0x57a1dc
mov ecx, dword [ebp - 0x54]
mov eax, 1
mov dword [ebp - 0x18], ecx
sub eax, ecx
inc eax
add edi, eax
jb 0x57a1dc
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 0x579b33
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], 2
mov dword [ebp - 0x60], eax
jmp 0x579b3a
mov dword [ebp - 0x64], 0
lea ecx, [ebp - 0x78]
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x20]
call fcn.00566ea0
add esp, 8
cmp dword [ebp - 0x78], 0
mov ecx, dword [ebp - 0x74]
je 0x579b6b
cmp ecx, 0x80000001
jne 0x57a1d8
mov ecx, dword [ebp - 0x2c]
mov edi, ebx
jmp 0x5799c3
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], edi
jmp 0x5799c3
shl esi, 6
or esi, ecx
mov eax, esi
xor esi, esi
jmp 0x579aad
mov eax, dword [ebp - 0x10]
shl eax, 0xc
or esi, eax
mov eax, esi
cmp eax, 0xffff
jbe 0x579a08
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 0x5799c0
jmp 0x579abf
cmp byte [ebp - 0x30], 0
mov ecx, dword [ebp - 0x18]
je 0x579df5
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 0x579d6a
push edi
call sub.netapi32.dll_NetApiBufferFree
test eax, eax
mov dword [ebp - 0x68], eax
jne 0x57a22d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x58], 0x605864
mov dword [ebp - 0x54], 2
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x64], 0x567700
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x5c], 0x42bbb0
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], 2
lea edi, [ebp - 0x58]
lea eax, [ebp - 0x78]
push edi
push eax
call fcn.0041acc0
add esp, 8
mov eax, dword [ebp - 0x70]
movsd xmm0, qword [ebp - 0x78]
mov dword [ebp - 0x50], eax
mov eax, dword [0x607474]
movsd qword [ebp - 0x58], xmm0
movzx eax, byte [eax]
mov eax, dword [0x607460]
mov eax, dword [eax]
test eax, eax
jne 0x579cdf
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x57a211
mov ecx, dword [0x607460]
mov dword [ecx], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x57a211
mov esi, eax
mov eax, dword [ebp - 0x50]
mov dword [esi + 8], eax
mov eax, dword [0x607474]
movsd xmm0, qword [ebp - 0x58]
movsd qword [esi], xmm0
movzx eax, byte [eax]
mov eax, dword [0x607460]
mov eax, dword [eax]
test eax, eax
jne 0x579d2a
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x57a21f
mov ecx, dword [0x607460]
mov dword [ecx], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x57a21f
cmp dword [ebp - 0x34], 0
mov dword [eax], esi
mov esi, ebx
mov dword [eax + 4], 0x6044d0
mov byte [eax + 8], 0x27
mov dword [ebx + 8], eax
mov dword [ebx + 4], 3
mov dword [ebx], 0
je 0x57a161
jmp 0x57a150
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 0x579e58
lea ecx, [ebp - 0x84]
mov edx, esi
call fcn.00567650
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 0x579dde
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 0x579dc0
lea ebx, [esi + ebx - 1]
inc ebx
mov dword [eax], 2
mov dword [eax + 4], 0
mov dword [eax + 8], 0
jmp 0x579e61
mov edi, ecx
lea eax, [ebp + ecx*2 - 0x4c]
mov esi, 2
xor edi, 1
mov dword [ebp - 0x14], eax
jmp 0x579e33
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 0x579bdc
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 0x579e16
lea ecx, [ebp - 0x2c]
push edi
call fcn.005675b0
add esp, 4
jmp 0x579e10
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 0x579f71
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 0x579f5c
cmp esi, dword [ebp - 0x3c]
je 0x579f71
movzx eax, word [ecx]
mov ebx, ecx
add ebx, 2
test ax, ax
je 0x579f2e
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 0x579ec8
mov ecx, ebx
mov edx, edi
call fcn.00567020
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 0x579f71
mov dword [ebp - 0x10], esi
jmp 0x579f0e
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 0x579f71
cmp esi, dword [ebp - 0x3c]
je 0x579f71
mov eax, dword [ebp - 0x14]
movzx esi, word [eax]
test si, si
je 0x579f3f
cmp edi, dword [ebx + 4]
jne 0x579ef3
mov ecx, ebx
mov edx, edi
call fcn.00567020
jmp 0x579ef0
xor eax, eax
add esi, eax
cmp ebx, dword [ebp - 0x1c]
mov ecx, ebx
jne 0x579e81
jmp 0x579f71
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 0x579e81
jmp 0x579f71
cmp esi, dword [ebp - 0x3c]
je 0x579f71
cmp word [ecx], 0
jne 0x57a255
mov ebx, ecx
xor eax, eax
jmp 0x579f4a
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 0x57a0cd
mov eax, dword [ebp - 0x6c]
xor esi, esi
mov ebx, 4
lea edi, [eax + 0xc]
jmp 0x579ff1
mov ebx, dword [ebp - 0x18]
cmp dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x14]
je 0x579fdf
nop word [eax + eax]
push eax
push 0
mov eax, dword [0x607460]
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 0x57a10e
mov ecx, dword [edi - 0xc]
test ecx, ecx
je 0x57a0cd
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.00568590
cmp dword [ebp - 0x70], 0
mov esi, ebx
je 0x57a060
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 0x57a0a0
lea ecx, [ebp - 0x2c]
mov edx, esi
call fcn.005672a0
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x24]
jmp 0x57a0a3
cmp dword [ebp - 0x74], 0
je 0x579fbe
push dword [ebp - 0x78]
push 0
mov eax, dword [0x607460]
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 0x579fd0
jmp 0x579fdf
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 0x579fd0
jmp 0x579fdf
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 0x57a10e
mov esi, edx
add edi, 4
shr esi, 3
jmp 0x57a0f6
add edi, 0xc
dec esi
je 0x57a10e
cmp dword [edi], 0
je 0x57a0f0
push dword [edi - 4]
push 0
mov eax, dword [0x607460]
push dword [eax]
call sub.KERNEL32.dll_HeapFree
jmp 0x57a0f0
cmp dword [ebp - 0x54], 0
je 0x57a125
push dword [ebp - 0x6c]
push 0
mov eax, dword [0x607460]
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 0x57a241
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 0x57a161
push dword [ebp - 0x38]
push 0
mov eax, dword [0x607460]
push dword [eax]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0
je 0x57a17a
push dword [eax]
push 0
mov eax, dword [0x607460]
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 0x5798c9
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 0x5798e6
test ecx, ecx
jne 0x57a1e6
call fcn.0041a880
jmp 0x57a266
push dword [ebp - 0x70]
push ecx
call fcn.0041a8c0
add esp, 8
jmp 0x57a266
movzx ecx, byte [ebp - 0x20]
xor eax, eax
mov al, cl
add eax, eax
push ebx
push eax
call fcn.0041a8c0
add esp, 8
jmp 0x57a266
call fcn.0041a880
jmp 0x57a266
push 0xc
push 4
call fcn.0041a8c0
add esp, 8
jmp 0x57a266
push 0xc
push 4
call fcn.0041a8c0
add esp, 8
jmp 0x57a266
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x58]
call fcn.00566310
jmp 0x57a266
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x58]
call fcn.00566310
jmp 0x57a266
push 0x605824
push dword [ebp - 0x18]
push esi
call fcn.00425270
add esp, 0xc
ud2