Function at 0x4026a0
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 4
push 0x3000
push 0x1002
push 0
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFree]
test ebx, ebx
mov ebx, dword [sym.imp.MPR.dll_WNetOpenEnumW]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
jne 0x40287f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 1
push 3
call ebx
test eax, eax
jne 0x40287f
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x1000
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x80
push eax
push dword [ebp - 0x10]
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
jne 0x402876
xor ebx, ebx
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 8], ebx
jbe 0x402840
mov edi, dword [ebp - 0x1c]
add edi, 0x14
cmp dword [edi - 0x10], 1
jne 0x40281b
mov ebx, dword [edi]
push ebx
push 1
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push str.Decrypting_NETWORK_SHARE__ws_r_n
call fcn.004013b0
add esp, 0x14
push 4
push 0x3000
push 0x400
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x4027b1
push ebx
push 0x419060
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov ecx, esi
call fcn.00402370
jmp 0x402807
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
call ebx
push 4
push 0x3000
push str.Memory_error_start_scan
mov esi, eax
call ebx
add eax, esi
lea eax, [eax*2 + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x402815
push str.Memory_error_start_scan
call ebx
push str.Memory_error_start_scan
push 0x418064
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
xor edx, edx
mov ecx, esi
call fcn.00401640
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
test byte [edi - 8], 2
je 0x402830
mov edx, dword [ebp - 0x20]
lea ecx, [edi - 0x14]
push esi
call fcn.004026a0
add esp, 4
inc ebx
add edi, 0x20
mov dword [ebp - 0x14], ebx
cmp ebx, dword [ebp - 8]
jb 0x402755
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x1000
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x80
push eax
push dword [ebp - 0x10]
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
je 0x402741
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ebx, dword [sym.imp.MPR.dll_WNetOpenEnumW]
push dword [ebp - 0x10]
call dword [sym.imp.MPR.dll_WNetCloseEnum]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x24]
push 0
push 1
push 2
call ebx
mov esi, eax
test esi, esi
jne 0x4029fe
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0x1000
push eax
push dword [ebp - 0x10]
mov dword [ebp - 8], 0x80
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
jne 0x4029f3
xor ebx, ebx
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 8], ebx
jbe 0x4029cb
add esi, 0x14
cmp dword [esi - 0x10], 1
jne 0x4029a1
mov ebx, dword [esi]
push ebx
push 1
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push str.Decrypting_NETWORK_SHARE__ws_r_n
call fcn.004013b0
add esp, 0x14
push 4
push 0x3000
push 0x400
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
je 0x402940
push ebx
push 0x419060
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov ecx, edi
call fcn.00402370
push 0x8000
push 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFree]
call edi
jmp 0x40299e
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
call ebx
push 4
push 0x3000
push str.Memory_error_start_scan
mov edi, eax
call ebx
add eax, edi
lea eax, [eax*2 + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
je 0x402998
push str.Memory_error_start_scan
call ebx
push str.Memory_error_start_scan
push 0x418064
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
xor edx, edx
mov ecx, edi
call fcn.00401640
jmp 0x40292e
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ebx, dword [ebp - 0x14]
test byte [esi - 8], 2
je 0x4029b8
push dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
lea ecx, [esi - 0x14]
call fcn.004026a0
add esp, 4
inc ebx
add esi, 0x20
mov dword [ebp - 0x14], ebx
cmp ebx, dword [ebp - 8]
jb 0x4028d4
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x1000
push eax
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x80
push eax
push dword [ebp - 0x10]
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
je 0x4028c3
push dword [ebp - 0x10]
call dword [sym.imp.MPR.dll_WNetCloseEnum]
mov esi, eax
push 0x8000
push 0
push dword [ebp - 0x1c]
call edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004048b1
mov esp, ebp
pop ebp
ret