Function at 0x402f70
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
push esi
push edi
lea edi, [ebp - 0x440]
mov ecx, 0x110
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x410], 0
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x42c], 0
push str.start_...
call fcn.0040104b
add esp, 4
mov eax, dword [ebp + 8]
push eax
push 0x400
lea ecx, [ebp - 0x408]
push ecx
call fcn.00405208
add esp, 0xc
test eax, eax
je 0x4031d5
push str._____BEGIN_CERTIFICATE_____
call fcn.00404830
add esp, 4
push eax
push str._____BEGIN_CERTIFICATE_____
lea edx, [ebp - 0x408]
push edx
call fcn.00405148
add esp, 0xc
test eax, eax
jne 0x403051
push 0x42d7f0
call fcn.0040104b
add esp, 4
mov dword [ebp - 0x410], 1
lea eax, [ebp - 0x420]
push eax
call fcn.0040100f
add esp, 4
jmp 0x4031d0
push str._____END_CERTIFICATE_____
call fcn.00404830
add esp, 4
push eax
push str._____END_CERTIFICATE_____
lea ecx, [ebp - 0x408]
push ecx
call fcn.00405148
add esp, 0xc
test eax, eax
jne 0x4031b1
push 0x42d820
call fcn.0040104b
add esp, 4
mov dword [ebp - 0x410], 0
mov esi, esp
push 0
push 0
lea edx, [ebp - 0x434]
push edx
push 0
push 1
mov eax, dword [ebp - 0x41c]
push eax
mov ecx, dword [ebp - 0x418]
push ecx
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
cmp esi, esp
call fcn.004041c0
test eax, eax
je 0x4031af
mov esi, esp
mov edx, dword [ebp - 0x434]
push edx
call dword [sym.imp.CRYPT32.dll_CryptMemAlloc]
cmp esi, esp
call fcn.004041c0
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0
je 0x4031af
mov esi, esp
push 0
push 0
lea eax, [ebp - 0x434]
push eax
mov ecx, dword [ebp - 0x43c]
push ecx
push 1
mov edx, dword [ebp - 0x41c]
push edx
mov eax, dword [ebp - 0x418]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
cmp esi, esp
call fcn.004041c0
mov esi, esp
push 0
push 1
mov ecx, dword [ebp - 0x434]
push ecx
mov edx, dword [ebp - 0x43c]
push edx
push 1
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.CRYPT32.dll_CertAddEncodedCertificateToStore]
cmp esi, esp
call fcn.004041c0
test eax, eax
je 0x40315c
mov ecx, dword [ebp - 0x428]
add ecx, 1
mov dword [ebp - 0x428], ecx
jmp 0x4031af
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.004041c0
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0x80092005
jne 0x40319b
mov edx, dword [ebp - 0x42c]
add edx, 1
mov dword [ebp - 0x42c], edx
push str.a_matching_certificate_exists.
call fcn.0040104b
add esp, 4
jmp 0x4031af
mov eax, dword [ebp - 0x440]
push eax
push 0x42d8a0
call fcn.0040104b
add esp, 8
jmp 0x4031d0
cmp dword [ebp - 0x410], 0
je 0x4031d0
lea ecx, [ebp - 0x408]
push ecx
lea edx, [ebp - 0x420]
push edx
call fcn.0040100a
add esp, 8
jmp 0x402fe0
mov esi, esp
mov eax, dword [ebp - 0x418]
push eax
call dword [sym.imp.CRYPT32.dll_CryptMemFree]
cmp esi, esp
call fcn.004041c0
mov ecx, dword [ebp - 0x42c]
push ecx
mov edx, dword [ebp - 0x428]
push edx
push str.import__d_certs___d_certs_exists
call fcn.0040104b
add esp, 0xc
mov eax, dword [ebp - 0x42c]
shl eax, 8
or eax, dword [ebp - 0x428]
push edx
mov ecx, ebp
push eax
lea edx, [0x403244]
call fcn.004041e3
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044b7
add esp, 0x440
cmp ebp, esp
call fcn.004041c0
mov esp, ebp
pop ebp
ret