Function at 0x64cc80
Capabilities:
Encode data using base64

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x50]
test edi, edi
mov dword [eax], 0
jle 0x64cdb7
mov eax, dword [esp + 0x40]
mov edx, dword [eax + 4]
cmp edx, 0x50
jg 0x64cfae
mov eax, dword [eax]
sub edx, eax
mov ebp, edx
cmp edx, dword [esp + 0x50]
jg 0x64ce46
mov dword [esp + 0x1c], 0
test eax, eax
jne 0x64ce8d
lea esi, [esi]
mov eax, dword [esp + 0x44]
test ebp, ebp
jle 0x64ce81
mov ecx, dword [esp + 0x4c]
cmp ebp, 2
jg 0x64cdc1
xor edi, edi
mov esi, eax
mov dword [esp + 0x18], eax
xor ebx, ebx
lea edx, [esi + 4]
mov bl, byte [ecx]
mov esi, edx
shl ebx, 0x10
cmp ebp, 2
je 0x64cf80
mov eax, ebx
shr eax, 0x12
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx - 4], al
mov eax, ebx
shr eax, 0xc
and eax, 0x3f
cmp ebp, 1
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx - 3], al
je 0x64cf63
shr ebx, 6
mov byte [edx - 1], 0x3d
and ebx, 0x3f
mov eax, dword [esp + 0x18]
sub ebp, 3
add ecx, 3
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx - 2], bl
add edx, edi
sub edx, eax
test ebp, ebp
jg 0x64ccf1
mov eax, dword [esp + 0x44]
add eax, edx
inc edx
mov edi, dword [esp + 0x40]
mov byte [esi], 0
mov esi, dword [esp + 0x50]
mov ebx, dword [esp + 0x4c]
mov ecx, dword [edi + 4]
lea edi, [eax + 1]
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x1c]
add edi, edx
sub esi, ecx
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x40]
mov word [eax], 0xa
add ebx, ecx
mov dword [esp + 0x50], esi
mov eax, dword [esp + 0x1c]
mov ebp, dword [edi + 4]
mov dword [esp + 0x4c], ebx
cmp ebp, dword [esp + 0x50]
mov ebx, eax
jg 0x64cf15
test eax, eax
jns 0x64ccd0
mov eax, dword [esp + 0x48]
mov dword [eax], 0
add esp, 0x2c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
movzx esi, byte [ecx]
xor edx, edx
and esi, 0xff
mov dl, byte [ecx + 1]
add eax, 4
shl esi, 0x10
mov edi, eax
shl edx, 8
sub ebp, 3
or edx, esi
add ecx, 3
movzx esi, byte [ecx - 1]
and esi, 0xff
or edx, esi
mov esi, edx
shr esi, 0x12
mov bl, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov esi, edx
shr esi, 0xc
mov byte [eax - 4], bl
and esi, 0x3f
mov bl, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov esi, edx
shr esi, 6
and edx, 0x3f
and esi, 0x3f
mov byte [eax - 3], bl
mov bl, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax - 2], bl
mov bl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, dword [esp + 0x44]
mov byte [eax - 1], bl
sub edi, edx
cmp ebp, 2
jg 0x64cdc1
test ebp, ebp
jne 0x64cceb
mov esi, eax
mov edx, edi
jmp 0x64cd53
mov edi, dword [esp + 0x40]
lea eax, [edi + eax + 8]
mov edi, dword [esp + 0x50]
mov dword [esp + 8], edi
mov edi, dword [esp + 0x4c]
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x50]
mov esi, dword [eax]
add esi, edi
mov dword [eax], esi
add esp, 0x2c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, eax
mov edx, 1
jmp 0x64cd5a
mov edi, dword [esp + 0x40]
mov dword [esp + 8], edx
lea eax, [edi + eax + 8]
mov edi, dword [esp + 0x4c]
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
add eax, 8
mov ebx, dword [esp + 0x50]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
add ecx, ebp
sub ebx, ebp
mov dword [esp], eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], ecx
call fcn.0064cb30
mov edx, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
add edx, eax
lea ebx, [eax + 1]
mov dword [edi], 0
mov eax, ebx
lea edi, [edx + 1]
mov word [edx], 0xa
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0x1c], ebx
mov ebp, dword [edi + 4]
cmp dword [esp + 0x50], ebp
jge 0x64cda5
test ebx, ebx
js 0x64cdad
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x64cf42
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x50]
mov dword [eax], edi
mov eax, dword [esp + 0x48]
mov dword [eax], ebx
add esp, 0x2c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x40]
add eax, 8
mov dword [esp + 8], edi
mov edi, dword [esp + 0x4c]
mov dword [esp], eax
mov dword [esp + 4], edi
call sub.msvcrt.dll_memcpy
jmp 0x64cf25
mov eax, dword [esp + 0x18]
mov byte [edx - 2], 0x3d
mov byte [edx - 1], 0x3d
lea edx, [edx + edi]
sub edx, eax
jmp 0x64cd53
xor eax, eax
mov al, byte [ecx + 1]
shl eax, 8
or ebx, eax
mov eax, ebx
shr eax, 0x12
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx - 4], al
mov eax, ebx
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx - 3], al
jmp 0x64cd2e
mov dword [esp + 8], 0x86
mov dword [esp + 4], str.crypto_evp_encode.c
mov dword [esp], str.assertion_failed:_ctx__length____int_sizeof_ctx__enc_data_
call fcn.00533360
lea esi, [esi]