Function at 0x4059e0
Capabilities:
List user accounts

Disassembly:
sub esp, 0x148
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_wcstombs]
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x20], ecx
mov dword [0x414f10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
lea eax, [esp + 0x20]
push 0xffffffffffffffff
push eax
push 2
push edi
push edi
call sub.NETAPI32.dll_NetUserEnum
mov ebp, eax
cmp ebp, edi
je 0x405a39
cmp ebp, 0xea
jne 0x405a78
mov esi, dword [esp + 0x14]
cmp esi, edi
je 0x405a8e
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x405a7c
mov eax, dword [0x414f10]
push 0x50
lea ecx, [eax + eax*4]
inc eax
mov dword [0x414f10], eax
mov edx, dword [esi]
lea ecx, [ecx + ecx*4]
push edx
lea ecx, [ecx*2 + 0x414f14]
push ecx
call ebx
mov eax, dword [esp + 0x1c]
add esp, 0xc
add esi, 4
inc edi
cmp edi, eax
jb 0x405a49
mov esi, dword [esp + 0x14]
xor edi, edi
cmp esi, edi
je 0x405a8e
push esi
call sub.NETAPI32.dll_NetApiBufferFree
xor esi, esi
mov dword [esp + 0x14], esi
cmp ebp, 0xea
je 0x405a0c
cmp esi, edi
je 0x405aa4
push esi
call sub.NETAPI32.dll_NetApiBufferFree
cmp dword [0x414f10], edi
jne 0x405ab9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x148
ret
push 0x400
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esi], 0x80
mov byte [esp + 0x24], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], esi
stosb byte es:[edi], al
lea eax, [esp + 0x24]
mov dword [esp + 0x10], 1
push eax
call fcn.00406040
mov eax, dword [0x414f10]
mov dword [esp + 0x1c], 0
test eax, eax
jle 0x405c3e
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, 0x414f14
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x59]
mov byte [esp + 0x58], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x58]
push ecx
push ebx
stosb byte es:[edi], al
call fcn.00405800
push ebx
mov dword [esp + 0x24], 0x413180
call fcn.00405960
add esp, 0xc
test eax, eax
je 0x405b55
mov dword [esp + 0x18], 0x413178
push ebx
call ebp
mov edx, dword [esp + 0x10]
mov ecx, eax
mov eax, dword [esp + 0x14]
inc ecx
mov esi, ebx
push ebx
lea edi, [edx + eax]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebp
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x58]
push edx
lea edi, [ecx + eax + 1]
mov dword [esp + 0x14], edi
call ebp
mov ecx, eax
mov eax, dword [esp + 0x14]
inc ecx
lea esi, [esp + 0x58]
mov edx, ecx
add edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x58]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
push esi
lea edi, [ecx + eax + 1]
mov dword [esp + 0x14], edi
call ebp
mov edx, dword [esp + 0x14]
mov ecx, eax
inc ecx
add edi, edx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
push ecx
call ebp
mov edx, dword [esp + 0x10]
lea edi, [edx + eax + 1]
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x14], edi
call ebp
mov edx, dword [esp + 0x14]
mov ecx, eax
inc ecx
lea esi, [esp + 0x24]
mov eax, ecx
add edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
push ecx
call ebp
mov edx, dword [esp + 0x10]
lea eax, [edx + eax + 1]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
mov ecx, dword [0x414f10]
add ebx, 0x32
cmp eax, ecx
jl 0x405b18
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 0x42
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x148
ret