Function at 0x4769e0
Capabilities:
Encode data using base64 via winapi

Disassembly:
push 0x3c
mov eax, 0x51610c
call fcn.004b9729
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
push eax
push 0
push 0x40000001
push dword [ebx]
push edi
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
mov ecx, esi
test eax, eax
jne 0x476a1f
call fcn.0040c934
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x476bd1
push dword [ebp - 0x14]
call fcn.00471c62
lea ecx, [ebp - 0x14]
push ecx
push eax
push 0x40000001
push dword [ebx]
push edi
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
mov ecx, esi
test eax, eax
jne 0x476a4b
push 0xffffffffffffffff
call fcn.004744b2
mov ecx, esi
jmp 0x476a0f
push dword [ebp - 0x14]
call fcn.0040ce98
push dword [0x5b6370]
xor ebx, ebx
push ebx
push ecx
mov ecx, esp
push str.In99EdsvPi2RVHTMW4u3gwH7DqADMTw5hQZT19jCj4yCiEBYxIbiI4Dj4IAyUFLmwvBDVuKzExMSIBdmIEEywYKWgpLh45Lxg4AgZ2EDYNJRwBARoOLjAlKicjeiI5ZjYJJjgcbgINEBwAAABOcreumo54VUUOmWl4lL
call fcn.00409bcc
lea eax, [ebp - 0x24]
push eax
call fcn.00470e1a
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.00410312
push eax
mov ecx, esi
call fcn.004748d7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0040ee7b
cmp dword [ebp + 0x14], ebx
je 0x476bcf
push ebx
push ecx
mov ecx, esp
push str.5kdusuAA1C20aofRDSNB2Pj3rodcUiYlJvUZ2YRCBQGBigGYGYRGmwXGxEYAAUODgEtOSUEBgYBER82NjFmLR9kaj8WDgt6JDsWMiYnLWV6FQBjNxkHEh5sCRcCNisLNBQtYQU7YgE2cgxwMQEdAQ0dJiN9JgB4cDkhNDFqZCA7FWwjAwUVfyUnABErZDEPAgc5ECVsJgEnNRodIB5iNGg6L2YAAACGuVPL1_3AQYT60GYCl_
call fcn.00409bcc
lea eax, [ebp - 0x30]
push eax
call fcn.00470e1a
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.00410312
push eax
push ebx
push ecx
mov ecx, esp
push str._MGzLx_rDkZTIAImg1V3xG1lE78rIFsuqbIfxM8JS0WcxIaFAoDFTYWJGVoKgx7LiQFAiNmYDp_IXg3BWFjEj1mCxoRL2INFh86MwNwfSJ6BjEFYxk6NTwFEBoQND8UGGhpGhF2HRAPBDgcDTEsAyxjG2cIC3gPIiBnewkLPDERZWN2GjI8ECANHjF6BWU7KGknDQMyCywMG2AdPjtuYRIHmpuDyByfWIsMGYmKj04LyERKRILCyA4IjsyLyINejkGFjYMPx4iGzUcf2AeOjgdKWFqMTAZPhIwOGgqBgwyIgp0DQERYz4_AzUsO2AxdAEiMRAHHjw7BiwOPyM6GQkSISV8AwIUAQENGxZsCSQcDSA7PTE7Jjg7FAIgdnkPfTZ9OAwzAygAd2UgfhJlBBAaYGIKGAo2ITUWIwAAASASL1Cf3uoVq_lbmPsaJ
call fcn.00409bcc
lea eax, [ebp - 0x24]
push eax
call fcn.00470e1a
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00410312
push eax
mov ecx, esi
call fcn.004748d7
lea ecx, [ebp - 0x24]
call fcn.0040ee7b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0040ee7b
push ebx
push ecx
mov ecx, esp
push str.RvDuTucdlXiYj3fwqV_qSfe3xTySgTZ036cZ2cTamY7DxM7AQUXBWgeByoDAnshEBdZGEUKwgcDW0mCwE4GzI5F2YAGGIjPhAfLD1uBRc7Px0SGDUMAWM3LQMnCGwYYAoPZDchJTxhcyQcJjwaYTU9MCYmBRw9Fhw4MwoCHTEqJTA3GgpuDjYAAiIhBTEbBzcjdQJ4JSM9dWEiZTYgMykoBAwbIyMzChEWJiwQIWZ7LSBmajRkDCICJDsUCRMjER8jABsvfT4MY2wYFhcCFToxcGM7AxIyJhM0NRQ3MWQgBAs6fQAAAMcNRLkT4Yam1Z3tqr_dl
call fcn.00409bcc
lea eax, [ebp - 0x24]
push eax
call fcn.00470e1a
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 4], 3
call fcn.00410312
push eax
push ebx
push ecx
mov ecx, esp
push str.CBRbX5SVYKM_QaCbzFzZ_tZrvPTx1xGtFk3bQYZMxAWLgwRARcTIRgtLmMyKQ8xcRIMJzcPYwBAzh4PRdrBS4WCjsfMT4lOSkdICE7IxUMIRMWYDUrEDcCcxc5CRsyKik2YQsIPjVhKyUpIiFwOgMSZD4NNTotEjo2JChjHTRsNzwFJQEGCS8CewsGMDk7NiB8CxBgF2Y9FBFgOBVjexIFDzwBci8VBBgfBR5nKyVxejATdhlJyEFAgBtMDkVYRoIM3Y5IBIjHj8uFQIkATEXAz4xNTwSAiMYEQh5OgURNx5yGzsZHjcBHigOdB4gDxEOhMUHQFuPhMuOSZoEgkpPzoLJh8xIyoxBSFlIw09JB0yBAodDg0pHD0ECotOj4NPBgAKhwPOjd4KRgjFwIJQViJxYqPBkRPxYvCGQ9OWUATcuLxZjMAYkcRUDfhsxBiw7JDIbMA0rAAABQAFzVNOFM5y1xCFdrfcF
call fcn.00409bcc
lea eax, [ebp - 0x30]
push eax
call fcn.00470e1a
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00410312
push eax
mov ecx, esi
call fcn.004748d7
lea ecx, [ebp - 0x30]
call fcn.0040ee7b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0040ee7b
push ebx
push ecx
mov ecx, esp
push str.X_ba07WH0ep40E5VXVamnDhS6KkRLFCw1M5Z2cXED43EzwlZxg_Pi0ZBhEbHyQPcQ0NBhIYExoNem0fDjsBLzcjJxhsBiACOhQQfg9yGgEKPxs_FRt7JwwAKwAkcGolNGlsYDkqeh4_Hj4QBiZ8O2QBNhMRITEccR4SJQtIwBoHh0MOWdrHhwcfhM6AQstIjYNO2NgdAwmGDECYGQ9ZgkoEDczARdyKAQsOWNkNRcHFzg9KDoZcRMxMhwUZTsKDTkADhoxDBw6YhMkOCAAAACwHXnZ6OvY0o61WyPVx9
call fcn.00409bcc
lea eax, [ebp - 0x48]
push eax
call fcn.00470e1a
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 4], 5
call fcn.00410312
push eax
push ebx
push ecx
mov ecx, esp
push str.SC2sp8gV_Qv7yGIAx_eeuW0g8oqu1egPW4daTgsMw0OzY1PD0dFDwaHR0LdTwCDgwGNx8zHjJ8NTghIBsDT8DKxsgMhscHmI2CgcleQsmFnk5Ozw4cgIUcSZrDDBgCxMNExkpEj0fIQ0AfwIMADoSYhE8LAInBRkkKDMnGjg0JzAjFGMvfzcyCDAhYTs0CjkbEBA2AWMlczInKRk2MiMJFB4NCwkBISAIMQEHOGYaASQ0dWAmMS0xPiYbLDYnMDwpHBwVCAslI2xlCw8QIBgfFzgQIQ8FIB5jPD4qOWMxCSI3Iy46FBMtKGg8AR9gAzcKejIMfmEzMhsfAwMhPHgsOhoeIx8kOAkIESEmPgoCEDYaNTgRHm0mPmU1CAAAAQIlWd7pJ54PQdIV7IAhc
call fcn.00409bcc
lea eax, [ebp - 0x3c]
push eax
call fcn.00470e1a
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.00410312
push eax
mov ecx, esi
call fcn.004748d7
lea ecx, [ebp - 0x3c]
call fcn.0040ee7b
lea ecx, [ebp - 0x48]
call fcn.0040ee7b
xor eax, eax
call fcn.004b96d8
ret