Function at 0x5657b0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 8
push 0
push 0
dec ecx
jne 0x5657b9
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x565a64
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004053e8
mov edi, 1
mov edx, esi
mov eax, edx
test eax, eax
je 0x5657f5
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x40
je 0x56580e
mov eax, edx
test eax, eax
je 0x565805
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x41
jne 0x565a49
mov eax, edx
test eax, eax
je 0x565819
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x41
jne 0x565827
movzx eax, byte [esi + 0x40]
mov byte [ebp - 0x11], al
jmp 0x56582b
mov byte [ebp - 0x11], 0x3d
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x565837
sub ecx, 4
mov ecx, dword [ecx]
mov eax, ecx
mov ecx, 3
cdq
idiv ecx
test eax, eax
jle 0x565908
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edi - 1]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edi]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edi + 1]
mov dword [ebp - 0x10], eax
add edi, 3
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 8]
shr edx, 2
and edx, 0x3f
movzx edx, byte [esi + edx]
call fcn.004055d0
mov edx, dword [ebp - 0x1c]
mov eax, ebx
call fcn.004056b4
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 8]
shl edx, 4
and edx, 0x30
mov ecx, dword [ebp - 0xc]
shr ecx, 4
and ecx, 0xf
or edx, ecx
movzx edx, byte [esi + edx]
call fcn.004055d0
mov edx, dword [ebp - 0x20]
mov eax, ebx
call fcn.004056b4
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0xc]
add edx, edx
add edx, edx
and edx, 0x3c
mov ecx, dword [ebp - 0x10]
shr ecx, 6
and ecx, 3
or edx, ecx
movzx edx, byte [esi + edx]
call fcn.004055d0
mov edx, dword [ebp - 0x24]
mov eax, ebx
call fcn.004056b4
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
and edx, 0x3f
movzx edx, byte [esi + edx]
call fcn.004055d0
mov edx, dword [ebp - 0x28]
mov eax, ebx
call fcn.004056b4
dec dword [ebp - 0x18]
jne 0x56584c
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x565914
sub ecx, 4
mov ecx, dword [ecx]
mov eax, ecx
mov ecx, 3
cdq
idiv ecx
dec edx
jne 0x565996
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edi - 1]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 8]
shr edx, 2
and edx, 0x3f
movzx edx, byte [esi + edx]
call fcn.004055d0
mov edx, dword [ebp - 0x2c]
mov eax, ebx
call fcn.004056b4
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 8]
shl edx, 4
and edx, 0x30
movzx edx, byte [esi + edx]
call fcn.004055d0
mov edx, dword [ebp - 0x30]
mov eax, ebx
call fcn.004056b4
lea eax, [ebp - 0x34]
movzx edx, byte [ebp - 0x11]
call fcn.004055d0
mov edx, dword [ebp - 0x34]
mov eax, ebx
call fcn.004056b4
lea eax, [ebp - 0x38]
movzx edx, byte [ebp - 0x11]
call fcn.004055d0
mov edx, dword [ebp - 0x38]
mov eax, ebx
call fcn.004056b4
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x5659a2
sub ecx, 4
mov ecx, dword [ecx]
mov eax, ecx
mov ecx, 3
cdq
idiv ecx
cmp edx, 2
jne 0x565a49
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edi - 1]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edi]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 8]
shr edx, 2
and edx, 0x3f
movzx edx, byte [esi + edx]
call fcn.004055d0
mov edx, dword [ebp - 0x3c]
mov eax, ebx
call fcn.004056b4
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 8]
shl edx, 4
and edx, 0x30
mov ecx, dword [ebp - 0xc]
shr ecx, 4
and ecx, 0xf
or edx, ecx
movzx edx, byte [esi + edx]
call fcn.004055d0
mov edx, dword [ebp - 0x40]
mov eax, ebx
call fcn.004056b4
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0xc]
add edx, edx
add edx, edx
and edx, 0x3c
movzx edx, byte [esi + edx]
call fcn.004055d0
mov edx, dword [ebp - 0x44]
mov eax, ebx
call fcn.004056b4
lea eax, [ebp - 0x48]
movzx edx, byte [ebp - 0x11]
call fcn.004055d0
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.004056b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x565a6b
lea eax, [ebp - 0x48]
mov edx, 0xc
call fcn.0040540c
ret