Function at 0x408fd0
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x85c
mov eax, dword [0x426004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, edx
push str.SW2_TRACE_LEVEL_INFO
push str.__23s::SW2_ReadCertificates__
mov eax, 0x40000
mov edi, ecx
mov dword [ebp - 0x840], esi
call fcn.0040b690
add esp, 8
test edi, edi
je 0x409028
push edi
push str.SOFTWARESecureW2MethodsDefaultProfiles
lea eax, [ebp - 0x828]
push str._s_sRootCACert
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x409042
push str.SOFTWARESecureW2MethodsDefaultProfiles
lea ecx, [ebp - 0x828]
push str._sDEFAULTRootCACert
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [ebp - 0x838]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x828]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409211
push 0x410
push eax
lea ecx, [ebp - 0x418]
push ecx
call fcn.00410110
add esp, 0xc
lea edx, [ebp - 0x418]
push str.Certificate.0
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
mov dword [esi + 0x2e90], 0
mov edi, edi
mov eax, dword [ebp - 0x838]
push eax
lea edi, [ebp - 0x84c]
lea eax, [ebp - 0x83c]
lea ebx, [ebp - 0x418]
call fcn.0040c4e0
xor ecx, ecx
add esp, 4
cmp eax, ecx
jne 0x409204
mov edx, dword [ebp - 0x84c]
mov eax, dword [ebp - 0x83c]
mov dword [ebp - 0x854], edx
lea edx, [ebp - 0x834]
push edx
push 5
push ecx
push ecx
mov dword [ebp - 0x850], eax
lea eax, [ebp - 0x85c]
mov dword [ebp - 0x834], ecx
mov dword [ebp - 0x830], ecx
push eax
lea ecx, [ebp - 0x844]
push ecx
lea edx, [ebp - 0x854]
push edx
mov dword [ebp - 0x858], str.534543555245573252554c455a544845574f524c44574954484f55544245494e474556494c
mov dword [ebp - 0x85c], 0x4b
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x40918c
mov eax, dword [ebp - 0x834]
push eax
lea esi, [ebp - 0x82c]
call fcn.0040bae0
mov edi, eax
add esp, 4
test edi, edi
jne 0x40916c
mov eax, dword [ebp - 0x834]
mov ecx, dword [ebp - 0x830]
mov edx, dword [ebp - 0x82c]
push eax
push ecx
push eax
push edx
mov dword [ebp - 0x848], eax
call fcn.0040f557
add esp, 0x10
mov eax, dword [ebp - 0x844]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
push eax
call esi
mov ecx, dword [ebp - 0x830]
push ecx
call esi
mov esi, dword [ebp - 0x840]
jmp 0x409191
mov edi, 0x1771
lea eax, [ebp - 0x83c]
call fcn.0040bb70
test edi, edi
jne 0x409204
mov eax, dword [esi + 0x2e90]
cmp eax, 0x32
jae 0x409204
cmp dword [ebp - 0x848], 0x14
jne 0x4091d2
mov edx, dword [ebp - 0x82c]
push 0x14
push edx
lea eax, [eax + eax*4]
lea ecx, [esi + eax*4 + 0x2e94]
push 0x14
push ecx
call fcn.0040f557
add esp, 0x10
lea eax, [ebp - 0x82c]
call fcn.0040bb70
inc dword [esi + 0x2e90]
mov eax, dword [esi + 0x2e90]
push eax
lea edx, [ebp - 0x418]
push str.Certificate._ld
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x4090a0
mov eax, dword [ebp - 0x838]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esi + 0x2e90]
push ecx
push 0
push str.SW2_TRACE_LEVEL_INFO
push str.__23s::SW2_ReadCertificates__::returning__ld__found__ld_certificates
mov eax, 0x40000
call fcn.0040b690
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040f43d
mov esp, ebp
pop ebp
ret