Function at 0x52f9b0
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x90], edx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x8c], eax
mov eax, dword [0x6f11c8]
cmp eax, 2
jbe 0x52fa86
lea eax, [ebp - 0x90]
mov ecx, str._cargo_registry_src_github.com_1ecc6299db9ec823_utfx_0.1.0_src_ucstr.rs
lea edx, [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0x5c1350
mov eax, dword [0x6f1080]
mov dword [ebp - 0x6c], 3
mov dword [ebp - 0x68], str.locker::core::os::windows::sambasrc_core_os_windows_samba.rsenum_servers_sync::server
mov dword [ebp - 0x64], 0x20
mov dword [ebp - 0x60], 0x6854d0
mov dword [ebp - 0x5c], 1
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x50], edx
lea edx, [ebp - 0x6c]
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x40], 0x20
mov dword [ebp - 0x44], str.locker::core::os::windows::sambasrc_core_os_windows_samba.rsenum_servers_sync::server
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x34], 0x1c
mov dword [ebp - 0x38], 0x685438
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 0x83
cmp eax, 2
mov eax, 0x6857f8
cmove eax, dword [0x605020]
cmove ecx, dword [str._cargo_registry_src_github.com_1ecc6299db9ec823_utfx_0.1.0_src_ucstr.rs]
push edx
push ecx
call dword [eax + 0x14]
add esp, 8
mov eax, dword [0x6d6b64]
lea esi, [ebp - 0xbc]
mov dword [ebp - 0x98], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x8c]
lea ecx, [ebp - 0x28]
add eax, edx
push 0
push eax
call fcn.005079e0
add esp, 8
mov eax, dword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x28]
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x64], eax
movsd qword [ebp - 0x6c], xmm0
call fcn.004d5680
mov ecx, eax
lea eax, [ebp - 0xac]
mov dword [ebp - 0x84], edx
push eax
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x98]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x94]
push eax
push 1
mov dword [ebp - 0x9c], ecx
push ecx
call sub.NETAPI32.dll_NetShareEnum
mov edi, eax
test eax, eax
mov dword [ebp - 0x70], eax
je 0x52fb3d
cmp edi, 0xea
jne 0x52fdd3
mov eax, dword [ebp - 0x98]
shl eax, 2
lea eax, [eax + eax*2]
test eax, eax
je 0x52fdd3
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x88], ecx
jmp 0x52fb75
mov eax, dword [ebp - 0xa4]
lea esi, [ebp - 0xbc]
add eax, 0xfffffff4
je 0x52fdd0
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x88]
mov ecx, dword [eax]
call fcn.004d5570
mov ebx, edx
mov edi, eax
mov ecx, esi
mov edx, eax
push ebx
call fcn.00600b20
add esp, 4
test ebx, 0x7fffffff
mov word [edi], 0
je 0x52fbb4
push edi
push 0
push dword [0x6f1130]
call sub.KERNEL32.dll_HeapFree
lea eax, [ebp - 0x90]
mov dword [ebp - 0x6c], 0x6854d8
mov dword [ebp - 0x68], 2
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
lea ecx, [ebp - 0xb0]
mov edx, 0x608338
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x24], 0x5c1350
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0x41e510
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x58], 2
push eax
call fcn.0045b0f0
add esp, 4
test al, al
jne 0x530023
mov edi, dword [ebp - 0x74]
add dword [ebp - 0x88], 0xc
test edi, edi
js 0x530045
mov esi, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0xa0], eax
je 0x52fc80
mov eax, dword [0x6f1130]
test eax, eax
jne 0x52fc68
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x53004c
mov dword [0x6f1130], eax
push edi
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
mov ebx, eax
test eax, eax
jne 0x52fc85
jmp 0x53004c
mov ebx, 1
push edi
push esi
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp dword [ebp - 0xa0], 0
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
je 0x52fcb0
push esi
push 0
push dword [0x6f1130]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [0x6f11c8]
cmp eax, 2
jbe 0x52fd68
lea eax, [ebp - 0x28]
mov ecx, 0x6857f8
mov edx, str._cargo_registry_src_github.com_1ecc6299db9ec823_utfx_0.1.0_src_ucstr.rs
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], 0x41e510
mov eax, dword [0x6f1080]
mov dword [ebp - 0x6c], 3
mov dword [ebp - 0x68], str.locker::core::os::windows::sambasrc_core_os_windows_samba.rsenum_servers_sync::server
mov dword [ebp - 0x64], 0x20
mov dword [ebp - 0x60], 0x685500
mov dword [ebp - 0x5c], 1
mov dword [ebp - 0x58], 0
cmp eax, 2
mov eax, dword [0x605020]
cmovne eax, ecx
mov ecx, dword [str._cargo_registry_src_github.com_1ecc6299db9ec823_utfx_0.1.0_src_ucstr.rs]
cmovne ecx, edx
lea edx, [ebp - 0x7c]
mov dword [ebp - 0x50], edx
lea edx, [ebp - 0x6c]
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x40], 0x20
mov dword [ebp - 0x44], str.locker::core::os::windows::sambasrc_core_os_windows_samba.rsenum_servers_sync::server
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x34], 0x1c
mov dword [ebp - 0x38], 0x685438
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 0x9d
push edx
push ecx
call dword [eax + 0x14]
add esp, 8
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x28]
cmp edx, dword [ebp - 0x14]
mov dword [ebp - 0x64], eax
movsd qword [ebp - 0x6c], xmm0
jne 0x52fd8b
lea ecx, [ebp - 0x18]
call fcn.0047de40
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x64]
lea ecx, [edx + edx*2]
inc edx
mov dword [eax + ecx*4 + 8], esi
movsd xmm0, qword [ebp - 0x6c]
movsd qword [eax + ecx*4], xmm0
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0xb8], 0
je 0x52fb60
push dword [ebp - 0xbc]
push 0
push dword [0x6f1130]
call sub.KERNEL32.dll_HeapFree
jmp 0x52fb60
mov edi, dword [ebp - 0x70]
lea eax, [ebp - 0x94]
push eax
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, dword [ebp - 0x9c]
cmp edi, 0xea
mov word [eax], 0
jne 0x52fe15
test dword [ebp - 0x84], 0x7fffffff
je 0x52fac0
push eax
push 0
push dword [0x6f1130]
call sub.KERNEL32.dll_HeapFree
jmp 0x52fac0
test dword [ebp - 0x84], 0x7fffffff
je 0x52fe2f
push eax
push 0
push dword [0x6f1130]
call sub.KERNEL32.dll_HeapFree
cmp dword [ebp - 0x70], 0
je 0x52ff5d
mov eax, dword [0x6f11c8]
cmp eax, 2
jbe 0x52feee
lea eax, [ebp - 0x70]
mov ecx, str._cargo_registry_src_github.com_1ecc6299db9ec823_utfx_0.1.0_src_ucstr.rs
lea edx, [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0x45a1b0
mov eax, dword [0x6f1080]
mov dword [ebp - 0x6c], 3
mov dword [ebp - 0x68], str.locker::core::os::windows::sambasrc_core_os_windows_samba.rsenum_servers_sync::server
mov dword [ebp - 0x64], 0x20
mov dword [ebp - 0x60], 0x685520
mov dword [ebp - 0x5c], 1
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x50], edx
lea edx, [ebp - 0x6c]
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x40], 0x20
mov dword [ebp - 0x44], str.locker::core::os::windows::sambasrc_core_os_windows_samba.rsenum_servers_sync::server
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x34], 0x1c
mov dword [ebp - 0x38], 0x685438
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 0xa9
cmp eax, 2
mov eax, 0x6857f8
cmove eax, dword [0x605020]
cmove ecx, dword [str._cargo_registry_src_github.com_1ecc6299db9ec823_utfx_0.1.0_src_ucstr.rs]
push edx
push ecx
call dword [eax + 0x14]
add esp, 8
mov eax, dword [ebp - 0x80]
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x52ff2f
mov esi, dword [ebp - 0x18]
shl eax, 2
lea edi, [eax + eax*2]
add esi, 4
jmp 0x52ff18
add esi, 0xc
add edi, 0xfffffff4
je 0x52ff2f
cmp dword [esi], 0
je 0x52ff10
push dword [esi - 4]
push 0
push dword [0x6f1130]
call sub.KERNEL32.dll_HeapFree
jmp 0x52ff10
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x530018
shl eax, 2
lea eax, [eax + eax*2]
test eax, eax
je 0x530018
push dword [ebp - 0x18]
push 0
push dword [0x6f1130]
call sub.KERNEL32.dll_HeapFree
jmp 0x530018
mov eax, dword [0x6f11c8]
cmp eax, 2
jbe 0x530006
mov eax, dword [0x6f1080]
mov ecx, str._cargo_registry_src_github.com_1ecc6299db9ec823_utfx_0.1.0_src_ucstr.rs
lea edx, [ebp - 0x6c]
mov dword [ebp - 0x6c], 3
mov dword [ebp - 0x68], str.locker::core::os::windows::sambasrc_core_os_windows_samba.rsenum_servers_sync::server
mov dword [ebp - 0x64], 0x20
mov dword [ebp - 0x60], 0x68553c
mov dword [ebp - 0x5c], 1
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x50], str._cargo_registry_src_github.com_1ecc6299db9ec823_utfx_0.1.0_src_ucstr.rs
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x40], 0x20
mov dword [ebp - 0x44], str.locker::core::os::windows::sambasrc_core_os_windows_samba.rsenum_servers_sync::server
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x34], 0x1c
mov dword [ebp - 0x38], 0x685438
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 0xad
cmp eax, 2
mov eax, 0x6857f8
cmove eax, dword [0x605020]
cmove ecx, dword [str._cargo_registry_src_github.com_1ecc6299db9ec823_utfx_0.1.0_src_ucstr.rs]
push edx
push ecx
call dword [eax + 0x14]
add esp, 8
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x80]
movsd xmm0, qword [ebp - 0x18]
mov dword [ecx + 8], eax
movsd qword [ecx], xmm0
add esp, 0xb0
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, str.a_formatting_trait_implementation_returned_an_errorlibrary_alloc_src_fmt.rs
mov edx, 0x33
push 0x6083e8
push 0x608360
lea eax, [ebp - 0x6c]
push eax
call fcn.0045d480
add esp, 0xc
ud2
call fcn.0040a620
ud2
mov ecx, edi
mov edx, 1
call fcn.0040a640
ud2