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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1040
call fcn.004385d0
mov eax, dword [0x493018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x103c], eax
add eax, 0x20
mov dword [ebp - 0x1038], eax
mov eax, dword [eax]
test eax, eax
je 0x401a35
push eax
call dword [sym.imp.bcrypt.dll_BCryptDestroyKey]
mov ecx, 0x4990f8
mov dword [ebp - 0x1020], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401a47
push ebx
push esi
push edi
mov edi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
lea eax, [ebp - 0x1020]
push 0
push 0
push eax
push 0
push 7
sub ecx, edx
push ecx
push 0x4990f8
call edi
test eax, eax
je 0x401cbd
push dword [ebp - 0x1020]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp - 0x1020]
mov esi, eax
push 0
push esi
mov dword [ebp - 0x1040], esi
call fcn.0044edc0
add esp, 0xc
lea eax, [ebp - 0x1020]
push 0
push 0
push eax
push esi
push 7
push 0
push 0x4990f8
call edi
test eax, eax
je 0x401cbd
mov edi, dword [sym.imp.CRYPT32.dll_CryptDecodeObjectEx]
lea eax, [ebp - 0x1024]
push eax
push 0
push 0
push 0
push dword [ebp - 0x1020]
mov dword [ebp - 0x1024], 0
push esi
push 0x13
push 0x10001
call edi
test eax, eax
je 0x401cbd
push dword [ebp - 0x1024]
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp - 0x1024]
mov dword [ebp - 0x1028], eax
push 0
push eax
call fcn.0044edc0
add esp, 0xc
lea eax, [ebp - 0x1024]
push eax
push dword [ebp - 0x1028]
push 0
push 0
push dword [ebp - 0x1020]
push esi
push 0x13
push 0x10001
call edi
test eax, eax
je 0x401cbd
push 0x1014
lea eax, [ebp - 0x101c]
push 0
push eax
call fcn.0044edc0
push dword [ebp - 0x1024]
lea eax, [ebp - 0x101c]
push dword [ebp - 0x1028]
push eax
call fcn.0044e840
mov edi, dword [ebp - 0x1010]
add esp, 0x18
mov esi, dword [ebp - 0x100c]
mov dword [ebp - 8], esi
lea edi, [edi + 7]
shr edi, 3
test esi, 0xff000000
je 0x401b9f
mov esi, 4
jmp 0x401bbb
test esi, 0xff0000
je 0x401bae
mov esi, 3
jmp 0x401bbb
and esi, 0xff00
neg esi
sbb esi, esi
neg esi
inc esi
lea eax, [edi + 0x18]
add eax, esi
push eax
push 0
mov dword [ebp - 0x1034], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
lea ecx, [edi + 0x18]
mov dword [ebp - 0x102c], eax
add ecx, esi
push ecx
push 0
push eax
call fcn.0044edc0
mov eax, dword [ebp - 0x102c]
add esp, 0xc
mov ecx, dword [ebp - 0x1010]
mov dword [eax + 4], ecx
xor ecx, ecx
mov dword [eax], 0x31415352
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
add eax, 0x18
add eax, esi
mov dword [ebp - 0x1030], eax
lea edx, [eax - 1]
mov al, byte [ebp + ecx - 8]
lea edx, [edx - 1]
inc ecx
mov byte [edx + 1], al
cmp ecx, esi
jb 0x401c22
xor ecx, ecx
test edi, edi
je 0x401c52
mov edx, dword [ebp - 0x1030]
dec edx
add edx, edi
mov al, byte [ebp + ecx - 0x1008]
lea edx, [edx - 1]
inc ecx
mov byte [edx + 1], al
cmp ecx, edi
jb 0x401c40
mov edi, dword [ebp - 0x102c]
mov eax, dword [ebp - 0x103c]
push 0
push dword [ebp - 0x1034]
push edi
push dword [ebp - 0x1038]
push str.RSAPUBLICBLOB
push 0
push dword [eax + 0x1c]
call dword [sym.imp.bcrypt.dll_BCryptImportKeyPair]
test eax, eax
jne 0x401cbd
push dword [ebp - 0x1040]
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call esi
push dword [ebp - 0x1028]
push 0
call ebx
push eax
call esi
push edi
push 0
call ebx
push eax
call esi
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00437366
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00437366
mov esp, ebp
pop ebp
ret 8