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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
xor edi, edi
push dword [ebp + 0x10]
mov dword [ebp - 8], edi
push dword [ebp + 0xc]
mov dword [ebp - 0x18], edi
push dword [ebp + 8]
call fcn.00475ea4
add esp, 0x14
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], edi
jne 0x4762af
push esi
mov esi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 8]
push eax
push edi
push 7
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
je 0x47629b
push dword [ebp - 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x4762ae
push ebx
push edi
push edi
lea ecx, [ebp - 8]
push ecx
push eax
push 7
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
je 0x47627c
mov esi, dword [sym.imp.CRYPT32.dll_CryptDecodeObjectEx]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
push edi
mov ebx, 0x8000
push ebx
push dword [ebp - 8]
mov edi, 0x10001
push dword [ebp - 0xc]
push 0x2b
push edi
call esi
test eax, eax
je 0x476164
push str.CAPIPRIVATEBLOB
push dword [ebp - 0x14]
push dword [ebp - 4]
jmp 0x476254
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
push 0
push ebx
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0x52
push edi
call esi
test eax, eax
je 0x47622f
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 4]
lea edi, [ecx + eax + 7]
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x476265
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
cmp eax, 0x20
je 0x4761ca
cmp eax, 0x2a
je 0x4761c2
cmp eax, 0x42
jne 0x4761d0
mov dword [esi], 0x36534345
jmp 0x4761d5
mov dword [esi], 0x34534345
jmp 0x4761d5
mov dword [esi], 0x32534345
cmp dword [esi], 0
je 0x47621b
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
dec ecx
push ecx
inc eax
push eax
lea eax, [esi + 8]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 4]
push dword [eax + 4]
push dword [eax + 8]
mov eax, dword [eax + 0x10]
lea eax, [eax + esi + 7]
push eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push str.ECCPRIVATEBLOB
push edi
push esi
call fcn.00404563
add esp, 0x24
mov dword [ebp - 0x10], eax
jmp 0x476226
push str.ERROR_kuhl_m_crypto_NCrypt_AutoKey___Not_a_PEM_with_256__384_or_521_bits_curve__try_generic_PRIVATE_KEY_or_PKCS8__n
call fcn.00409709
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x476265
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
push 0
push ebx
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0x2c
push edi
call esi
test eax, eax
je 0x476270
push str.PKCS8_PRIVATEKEY
push dword [ebp - 8]
push dword [ebp - 0xc]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
call fcn.00404563
add esp, 0xc
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x47628f
push str.ERROR_kuhl_m_crypto_NCrypt_AutoKey___Unable_to_decode_format_n
call fcn.00409709
jmp 0x47628e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_kuhl_m_crypto_NCrypt_AutoKey___CryptStringToBinaryA_data___0x_08x__n
call fcn.00409709
pop ecx
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebx
jmp 0x4762ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_kuhl_m_crypto_NCrypt_AutoKey___CryptStringToBinaryA_init___0x_08x__n
call fcn.00409709
pop ecx
pop ecx
pop esi
mov eax, dword [ebp - 0x10]
pop edi
leave
ret