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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], edi
test ecx, ecx
je 0x40a289
mov eax, dword [ebp + 8]
test eax, eax
je 0x40a289
mov esi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
lea edx, [ebp - 0xc]
push edx
lea edx, [ebp - 0x10]
mov dword [ebp - 4], 0x400
push edx
lea edx, [ebp - 4]
mov dword [ebp - 0x10], 0
push edx
push 0
push 1
push ecx
push eax
mov dword [ebp - 0xc], 0
call esi
push dword [ebp - 4]
call fcn.0044f189
push dword [ebp - 4]
mov ebx, eax
push 0
push ebx
call fcn.00451e80
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
push dword [ebp - 4]
call fcn.0045c7d6
mov esi, eax
add esp, 4
test esi, esi
je 0x40a289
push dword [ebp - 4]
push ebx
push esi
call fcn.00451380
push ebx
call fcn.0044f192
xor ecx, ecx
add esp, 0x10
mov dword [ebp + 0xc], ecx
cmp dword [ebp - 4], ecx
jbe 0x40a19f
nop dword [eax + eax]
mov eax, 0xea0ea0eb
mov edi, ecx
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x23
sub edi, eax
mov eax, 0x4bda12f7
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 8]
imul eax, eax, 0x1b
mov bl, byte [edi + edx + 0x34]
mov edi, edx
sub ecx, eax
mov eax, 0x78787879
imul dword [ebp + 0xc]
xor bl, byte [ecx + edi + 0x19]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, eax
shl ecx, 4
add ecx, eax
mov eax, dword [ebp + 0xc]
sub eax, ecx
mov ecx, dword [ebp + 0xc]
xor bl, byte [eax + edi + 8]
mov eax, ecx
and eax, 0x80000007
jns 0x40a190
dec eax
or eax, 0xfffffff8
inc eax
xor bl, byte [eax + edi]
xor byte [ecx + esi], bl
inc ecx
mov dword [ebp + 0xc], ecx
cmp ecx, dword [ebp - 4]
jb 0x40a120
cmp dword [ebp + 0x10], 0
je 0x40a22c
cmp dword [esi], 0x736d6864
jne 0x40a272
cmp dword [esi + 8], 0
jbe 0x40a272
mov eax, dword [esi + 4]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x40a272
lea ebx, [edi + 0x5c]
add eax, 0xfffffff4
mov edi, dword [ebx + 4]
mov ecx, ebx
sub edi, dword [ebx]
push ebx
add eax, edi
push eax
call fcn.00409000
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff4
push eax
lea eax, [esi + 0xc]
push eax
mov eax, dword [ebx]
add eax, edi
push eax
call fcn.00451380
mov edx, dword [ebp - 8]
add esp, 0xc
mov eax, dword [esi + 8]
add dword [edx + 0x58], eax
mov ecx, dword [ebx]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff4
push esi
add dword [ecx + 4], eax
mov eax, dword [edx + 0x58]
mov dword [ecx + 8], eax
call fcn.0045c7d1
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [edi + 0x58], 0
cmp dword [esi], 0x736d6864
jne 0x40a272
cmp dword [esi + 8], 0
jbe 0x40a272
cmp dword [esi + 4], 0
jbe 0x40a272
mov eax, dword [edi + 0x5c]
add edi, 0x5c
push edi
mov ecx, edi
mov dword [edi + 4], eax
push dword [esi + 4]
call fcn.00409000
push dword [esi + 4]
push esi
push dword [edi]
call fcn.00451380
mov edx, dword [ebp - 8]
add esp, 0xc
mov eax, dword [esi + 8]
mov dword [edx + 0x58], eax
push esi
call fcn.0045c7d1
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc