Function at 0x4cea10
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, dword [esi + 0x10]
lea edi, [edx + 2]
mov dword [ebp - 8], edx
mov eax, 0xaaaaaaab
mul edi
shr edx, 1
mov dword [ebp - 4], ecx
lea eax, [ebx + edx*4]
cmp ebx, eax
ja 0x4cea63
cmp dword [esi + 0x14], eax
je 0x4cea63
push 1
push eax
mov ecx, esi
call fcn.0040b560
test al, al
je 0x4cea60
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], ebx
jb 0x4cea58
mov eax, dword [esi]
jmp 0x4cea5a
mov eax, esi
xor ecx, ecx
mov word [eax + ebx*2], cx
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 8]
xor ebx, ebx
lea eax, [edi - 3]
mov dword [ebp + 8], eax
test eax, eax
js 0x4cebc7
jmp 0x4cea83
mov ecx, dword [ebp - 4]
movzx eax, byte [ecx + ebx]
mov edx, dword [esi + 0x14]
shr eax, 2
movsx ax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx edi, ax
cmp edx, 8
jb 0x4ceaa1
mov ecx, dword [esi]
jmp 0x4ceaa3
mov ecx, esi
mov eax, dword [esi + 0x10]
lea eax, [ecx + eax*2]
cmp edx, 8
jb 0x4ceab2
mov ecx, dword [esi]
jmp 0x4ceab4
mov ecx, esi
test eax, eax
je 0x4ceabc
sub eax, ecx
sar eax, 1
push edi
push 1
push eax
mov ecx, esi
call fcn.004d1750
mov eax, dword [ebp - 4]
mov edx, dword [esi + 0x14]
movzx ecx, byte [eax + ebx]
movzx eax, byte [eax + ebx + 1]
and ecx, 3
shr eax, 4
shl ecx, 4
or ecx, eax
movsx ax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx edi, ax
cmp edx, 8
jb 0x4ceaf5
mov ecx, dword [esi]
jmp 0x4ceaf7
mov ecx, esi
mov eax, dword [esi + 0x10]
lea eax, [ecx + eax*2]
cmp edx, 8
jb 0x4ceb06
mov ecx, dword [esi]
jmp 0x4ceb08
mov ecx, esi
test eax, eax
je 0x4ceb10
sub eax, ecx
sar eax, 1
push edi
push 1
push eax
mov ecx, esi
call fcn.004d1750
mov eax, dword [ebp - 4]
mov edx, dword [esi + 0x14]
movzx ecx, byte [eax + ebx + 1]
movzx eax, byte [eax + ebx + 2]
and ecx, 0xf
shr eax, 6
shl ecx, 2
or ecx, eax
movsx ax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx edi, ax
cmp edx, 8
jb 0x4ceb4a
mov ecx, dword [esi]
jmp 0x4ceb4c
mov ecx, esi
mov eax, dword [esi + 0x10]
lea eax, [ecx + eax*2]
cmp edx, 8
jb 0x4ceb5b
mov ecx, dword [esi]
jmp 0x4ceb5d
mov ecx, esi
test eax, eax
je 0x4ceb65
sub eax, ecx
sar eax, 1
push edi
push 1
push eax
mov ecx, esi
call fcn.004d1750
mov ecx, dword [ebp - 4]
mov edx, dword [esi + 0x14]
movzx eax, byte [ecx + ebx + 2]
and eax, 0x3f
movsx ax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx edi, ax
cmp edx, 8
jb 0x4ceb92
mov ecx, dword [esi]
jmp 0x4ceb94
mov ecx, esi
mov eax, dword [esi + 0x10]
lea eax, [ecx + eax*2]
cmp edx, 8
jb 0x4ceba3
mov ecx, dword [esi]
jmp 0x4ceba5
mov ecx, esi
test eax, eax
je 0x4cebad
sub eax, ecx
sar eax, 1
push edi
push 1
push eax
mov ecx, esi
call fcn.004d1750
add ebx, 3
cmp ebx, dword [ebp + 8]
jle 0x4cea80
mov edi, dword [ebp - 8]
mov eax, 0xaaaaaaab
mul edi
shr edx, 1
lea eax, [edx + edx*2]
sub edi, eax
dec edi
je 0x4cecc8
dec edi
jne 0x4cedd2
mov eax, dword [ebp - 4]
mov edx, dword [esi + 0x14]
movzx eax, byte [ebx + eax]
shr eax, 2
movsx ax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx edi, ax
cmp edx, 8
jb 0x4cec04
mov ecx, dword [esi]
jmp 0x4cec06
mov ecx, esi
mov eax, dword [esi + 0x10]
lea eax, [ecx + eax*2]
cmp edx, 8
jb 0x4cec15
mov ecx, dword [esi]
jmp 0x4cec17
mov ecx, esi
test eax, eax
je 0x4cec1f
sub eax, ecx
sar eax, 1
push edi
push 1
push eax
mov ecx, esi
call fcn.004d1750
mov eax, dword [ebp - 4]
mov edx, dword [esi + 0x14]
movzx ecx, byte [ebx + eax]
movzx eax, byte [ebx + eax + 1]
and ecx, 3
shr eax, 4
shl ecx, 4
or ecx, eax
movsx ax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx edi, ax
cmp edx, 8
jb 0x4cec58
mov ecx, dword [esi]
jmp 0x4cec5a
mov ecx, esi
mov eax, dword [esi + 0x10]
lea eax, [ecx + eax*2]
cmp edx, 8
jb 0x4cec69
mov ecx, dword [esi]
jmp 0x4cec6b
mov ecx, esi
test eax, eax
je 0x4cec73
sub eax, ecx
sar eax, 1
push edi
push 1
push eax
mov ecx, esi
call fcn.004d1750
mov ecx, dword [ebp - 4]
mov edx, dword [esi + 0x14]
movzx eax, byte [ebx + ecx + 1]
and eax, 0xf
movsx ax, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx edi, ax
cmp edx, 8
jb 0x4ceca1
mov ecx, dword [esi]
jmp 0x4ceca3
mov ecx, esi
mov eax, dword [esi + 0x10]
lea eax, [ecx + eax*2]
cmp edx, 8
jb 0x4cecb2
mov ecx, dword [esi]
jmp 0x4cecb4
mov ecx, esi
test eax, eax
jne 0x4cecbe
push edi
jmp 0x4ced82
sub eax, ecx
sar eax, 1
push edi
jmp 0x4ced82
mov eax, dword [ebp - 4]
mov edx, dword [esi + 0x14]
movzx eax, byte [ebx + eax]
shr eax, 2
movsx ax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx edi, ax
cmp edx, 8
jb 0x4cece9
mov ecx, dword [esi]
jmp 0x4ceceb
mov ecx, esi
mov eax, dword [esi + 0x10]
lea eax, [ecx + eax*2]
cmp edx, 8
jb 0x4cecfa
mov ecx, dword [esi]
jmp 0x4cecfc
mov ecx, esi
test eax, eax
je 0x4ced04
sub eax, ecx
sar eax, 1
push edi
push 1
push eax
mov ecx, esi
call fcn.004d1750
mov ecx, dword [ebp - 4]
mov edx, dword [esi + 0x14]
movzx eax, byte [ebx + ecx]
and eax, 3
shl eax, 4
movsx ax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx edi, ax
cmp edx, 8
jb 0x4ced33
mov ecx, dword [esi]
jmp 0x4ced35
mov ecx, esi
mov eax, dword [esi + 0x10]
lea eax, [ecx + eax*2]
cmp edx, 8
jb 0x4ced44
mov ecx, dword [esi]
jmp 0x4ced46
mov ecx, esi
test eax, eax
je 0x4ced4e
sub eax, ecx
sar eax, 1
push edi
push 1
push eax
mov ecx, esi
call fcn.004d1750
mov edx, dword [esi + 0x14]
cmp edx, 8
jb 0x4ced65
mov ecx, dword [esi]
jmp 0x4ced67
mov ecx, esi
mov eax, dword [esi + 0x10]
lea eax, [ecx + eax*2]
cmp edx, 8
jb 0x4ced76
mov ecx, dword [esi]
jmp 0x4ced78
mov ecx, esi
test eax, eax
je 0x4ced80
sub eax, ecx
sar eax, 1
push 0x3d
push 1
push eax
mov ecx, esi
call fcn.004d1750
mov edx, dword [esi + 0x14]
cmp edx, 8
jb 0x4ced98
mov ecx, dword [esi]
jmp 0x4ced9a
mov ecx, esi
mov eax, dword [esi + 0x10]
lea eax, [ecx + eax*2]
cmp edx, 8
jb 0x4ceda9
mov ecx, dword [esi]
jmp 0x4cedab
mov ecx, esi
test eax, eax
jne 0x4cedc2
push 0x3d
push 1
push eax
mov ecx, esi
call fcn.004d1750
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub eax, ecx
push 0x3d
sar eax, 1
push 1
push eax
mov ecx, esi
call fcn.004d1750
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret