Function at 0x56ae18
Capabilities:
Encode data using base64

Disassembly:
push edi
push esi
push ebp
push ebx
push edx
push eax
mov eax, 0x18
call fcn.006021b0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov esi, edx
mov dword [esp + 0x10], ecx
xor ebp, ebp
mov dword [esp + 0x18], ebp
xor ebx, ebx
xor eax, eax
mov dword [esp + 4], eax
mov eax, 0x62cd1c
mov dword [esp + 0x14], eax
lea edx, [esi + 2]
mov eax, 0xaaaaaaab
mul edx
mov ebp, edx
shr ebp, 1
lea eax, [ebp + ebp]
mov dword [esp], eax
mov edi, 0x62cd1c
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x56ae79
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x56ae71
mov ecx, eax
mov edi, dword [esp]
lea edi, [edi + ebp*2 + 0x47]
mov eax, 0x38e38e39
mul edi
shr edx, 4
imul ecx, edx
lea ecx, [ecx + ebp*4 + 1]
mov dword [esp], ecx
call fcn.004dbf60
mov ebp, eax
xor ecx, ecx
mov eax, 0xaaaaaaab
mul esi
shr edx, 1
test edx, edx
jbe 0x56af98
mov dword [esp + 8], esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x1c], ecx
mov esi, ebp
mov ebp, ebx
mov ecx, dword [esp + 4]
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
xor ebx, ebx
mov bl, byte [edi + eax]
xor edx, edx
mov dl, byte [edi + eax + 1]
lea ecx, [edi + 2]
add edi, 3
mov dword [esp + 0x18], edi
movzx ecx, byte [ecx + eax]
mov edi, ebx
and edi, 0xfc
sar edi, 2
mov al, byte [edi + 0x64f680]
mov byte [ebp + esi], al
and ebx, 3
shl ebx, 4
mov edi, edx
and edi, 0xf0
sar edi, 4
or ebx, edi
mov al, byte [ebx + 0x64f680]
mov byte [ebp + esi + 1], al
and edx, 0xf
shl edx, 2
mov edi, ecx
and edi, 0xc0
sar edi, 6
or edx, edi
mov dl, byte [edx + 0x64f680]
mov byte [ebp + esi + 2], dl
and ecx, 0x3f
mov dl, byte [ecx + 0x64f680]
lea ecx, [ebp + 3]
add ebp, 4
mov byte [ecx + esi], dl
mov ecx, dword [esp + 4]
add ecx, 4
lea edx, [ecx + 4]
inc dword [esp + 0x1c]
cmp edx, 0x48
jbe 0x56af80
mov ecx, dword [esp + 0x14]
mov dl, byte [ecx]
mov byte [ebp + esi], dl
mov dl, byte [ecx + 1]
inc ebp
test dl, dl
je 0x56af75
mov ecx, ebp
inc ebp
mov byte [ecx + esi], dl
mov edx, 0x62cd1c
mov dword [esp + 0x14], edx
xor ecx, ecx
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x1c]
cmp edx, edi
jb 0x56aec4
mov ebx, ebp
mov ebp, esi
mov esi, dword [esp + 8]
mov eax, 0xaaaaaaab
mul esi
shr edx, 1
imul ecx, edx, 3
sub esi, ecx
cmp esi, 1
jne 0x56aff1
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
movzx edx, byte [ecx + edx]
mov ecx, edx
and ecx, 0xfc
sar ecx, 2
mov cl, byte [ecx + 0x64f680]
mov byte [ebx + ebp], cl
and edx, 3
lea ecx, [edx + edx]
add ecx, ecx
add ecx, ecx
mov dl, byte [ecx + edx*8 + 0x64f680]
mov byte [ebx + ebp + 1], dl
mov cl, 0x3d
mov byte [ebx + ebp + 2], cl
lea edi, [ebx + 3]
add ebx, 4
mov byte [edi + ebp], cl
jmp 0x56b052
cmp esi, 2
jne 0x56b052
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov cl, byte [edi + edx]
xor eax, eax
mov al, byte [edi + edx + 1]
mov edx, ecx
and edx, 0xfc
sar edx, 2
mov dl, byte [edx + 0x64f680]
mov byte [ebx + ebp], dl
and ecx, 3
shl ecx, 4
mov edx, eax
and edx, 0xf0
sar edx, 4
or ecx, edx
mov dl, byte [ecx + 0x64f680]
mov byte [ebx + ebp + 1], dl
and eax, 0xf
mov dl, byte [eax*4 + 0x64f680]
mov byte [ebx + ebp + 2], dl
lea edi, [ebx + 3]
add ebx, 4
mov byte [edi + ebp], 0x3d
mov edi, dword [esp + 0x14]
mov dl, byte [edi]
lea ecx, [ebx + 1]
mov byte [ebx + ebp], dl
mov bl, byte [edi + 1]
test bl, bl
je 0x56b06b
mov edx, ecx
inc ecx
mov byte [edx + ebp], bl
mov byte [ecx + ebp], 0
mov ecx, dword [esp + 0x34]
mov dword [ecx], ebp
mov eax, dword [esp + 0x38]
mov edx, dword [esp]
mov dword [eax], edx
add esp, 0x20
pop ebx
pop ebp
pop esi
pop edi
ret 8