Function at 0x40ee88
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004038a4
xor eax, eax
push ebp
push 0x40f0f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00403494
mov eax, dword [ebp - 4]
call fcn.004036f0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, 3
cdq
idiv ecx
test edx, edx
jne 0x40eee9
mov eax, dword [ebp - 0xc]
mov ecx, 3
cdq
idiv ecx
jmp 0x40eef5
mov eax, dword [ebp - 0xc]
mov ecx, 3
cdq
idiv ecx
inc eax
mov esi, eax
dec esi
test esi, esi
jl 0x40f0ce
inc esi
xor ebx, ebx
lea edx, [ebx + ebx*2]
mov eax, edx
add eax, 3
cmp eax, dword [ebp - 0xc]
jg 0x40efbb
mov eax, edx
inc eax
mov ecx, dword [ebp - 4]
movzx eax, byte [ecx + eax - 1]
shr eax, 2
mov ecx, dword [0x416328]
mov al, byte [ecx + eax]
mov byte [ebp - 0xd], al
lea eax, [ebx + ebx*2]
inc eax
mov ecx, dword [ebp - 4]
mov al, byte [ecx + eax - 1]
shl eax, 4
and al, 0x30
add edx, 2
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + edx - 1]
shr edx, 4
or al, dl
and eax, 0xff
mov edx, dword [0x416328]
mov al, byte [edx + eax]
mov byte [ebp - 0xe], al
lea eax, [ebx + ebx*2]
add eax, 2
mov edx, dword [ebp - 4]
mov al, byte [edx + eax - 1]
shl eax, 2
and al, 0x3c
lea edx, [ebx + ebx*2]
add edx, 3
mov ecx, dword [ebp - 4]
mov dl, byte [ecx + edx - 1]
xor ecx, ecx
mov cl, dl
shr ecx, 6
or al, cl
and eax, 0xff
mov ecx, dword [0x416328]
mov al, byte [ecx + eax]
mov byte [ebp - 0xf], al
lea eax, [ebx + ebx*2]
add eax, 3
mov ecx, dword [ebp - 4]
mov eax, edx
and al, 0x3f
and eax, 0xff
mov edx, dword [0x416328]
mov al, byte [edx + eax]
mov byte [ebp - 0x10], al
jmp 0x40f07c
mov eax, edx
add eax, 2
cmp eax, dword [ebp - 0xc]
jg 0x40f03b
inc edx
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edx - 1]
shr eax, 2
mov edx, dword [0x416328]
mov al, byte [edx + eax]
mov byte [ebp - 0xd], al
lea eax, [ebx + ebx*2]
inc eax
mov edx, dword [ebp - 4]
mov al, byte [edx + eax - 1]
shl eax, 4
and al, 0x30
lea edx, [ebx + ebx*2]
add edx, 2
mov ecx, dword [ebp - 4]
mov dl, byte [ecx + edx - 1]
xor ecx, ecx
mov cl, dl
shr ecx, 4
or al, cl
and eax, 0xff
mov ecx, dword [0x416328]
mov al, byte [ecx + eax]
mov byte [ebp - 0xe], al
lea eax, [ebx + ebx*2]
add eax, 2
mov ecx, dword [ebp - 4]
mov eax, edx
shl eax, 2
and al, 0x3c
and eax, 0xff
mov edx, dword [0x416328]
mov al, byte [edx + eax]
mov byte [ebp - 0xf], al
mov byte [ebp - 0x10], 0x3d
jmp 0x40f07c
inc edx
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edx - 1]
shr eax, 2
mov edx, dword [0x416328]
mov al, byte [edx + eax]
mov byte [ebp - 0xd], al
lea eax, [ebx + ebx*2]
inc eax
mov edx, dword [ebp - 4]
mov al, byte [edx + eax - 1]
shl eax, 4
and al, 0x30
and eax, 0xff
mov edx, dword [0x416328]
mov al, byte [edx + eax]
mov byte [ebp - 0xe], al
mov byte [ebp - 0xf], 0x3d
mov byte [ebp - 0x10], 0x3d
mov eax, dword [ebp - 8]
push dword [eax]
lea eax, [ebp - 0x14]
mov dl, byte [ebp - 0xd]
call fcn.0040363c
push dword [ebp - 0x14]
lea eax, [ebp - 0x18]
mov dl, byte [ebp - 0xe]
call fcn.0040363c
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
mov dl, byte [ebp - 0xf]
call fcn.0040363c
push dword [ebp - 0x1c]
lea eax, [ebp - 0x20]
mov dl, byte [ebp - 0x10]
call fcn.0040363c
push dword [ebp - 0x20]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.004037b0
inc ebx
dec esi
jne 0x40ef03
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f0f8
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.004034b8
lea eax, [ebp - 4]
call fcn.00403494
ret