Function at 0x4133f0
Capabilities:
Encode data using base64

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, dword [esp + 0x28]
xor esi, esi
cmp edx, 3
jl 0x413536
mov dword [esp + 8], edx
lea esi, [edx - 3]
mov edx, 0xaaaaaaab
mov eax, esi
mul edx
shr edx, 1
lea eax, [edx + edx*2]
mov dword [esp + 0xc], esi
sub esi, eax
mov dword [esp + 4], esi
add eax, ecx
add eax, 2
lea esi, [edx*4]
mov dword [esp], esi
cmp eax, edi
mov dword [esp + 0x10], ecx
jb 0x4134b4
lea eax, [edi + edx*4]
add eax, 3
cmp eax, ecx
jb 0x4134b4
inc edx
lea ebp, [ecx + 2]
xor eax, eax
nop dword [eax]
movzx ecx, byte [ebp - 2]
shr ecx, 2
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + eax*4], cl
movzx ecx, byte [ebp - 2]
movzx esi, byte [ebp - 1]
shl ecx, 4
and ecx, 0x30
shr esi, 4
movzx ecx, byte [ecx + esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + eax*4 + 1], cl
movzx ecx, byte [ebp - 1]
movzx esi, byte [ebp]
and ecx, 0xf
shr esi, 6
movzx ecx, byte [esi + ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + eax*4 + 2], cl
movzx ecx, byte [ebp]
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + eax*4 + 3], cl
inc eax
add ebp, 3
cmp edx, eax
jne 0x413450
jmp 0x41351b
inc edx
lea eax, [ecx + 2]
xor ebp, ebp
nop word [eax + eax]
movzx esi, byte [eax - 2]
mov ebx, esi
shr ebx, 2
movzx ebx, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + ebp*4], bl
movzx ecx, byte [eax - 1]
mov ebx, ecx
shr ebx, 4
shl esi, 4
and esi, 0x30
movzx ebx, byte [ebx + esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + ebp*4 + 1], bl
movzx esi, byte [eax]
mov ebx, esi
shr ebx, 6
and ecx, 0xf
movzx ecx, byte [ebx + ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + ebp*4 + 2], cl
and esi, 0x3f
movzx ecx, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + ebp*4 + 3], cl
inc ebp
add eax, 3
cmp edx, ebp
jne 0x4134c0
mov eax, dword [esp]
add edi, eax
add edi, 4
mov esi, dword [esp + 0xc]
sub esi, dword [esp + 4]
add esi, 3
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 8]
sub edx, esi
test dl, 2
jne 0x41356e
test dl, 1
je 0x4135b5
movzx eax, byte [ecx + esi]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi], al
movzx eax, byte [ecx + esi]
shl eax, 4
and eax, 0x30
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + 1], al
mov word [edi + 2], 0x3d3d
jmp 0x4135b2
movzx eax, byte [ecx + esi]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi], al
movzx eax, byte [ecx + esi]
shl eax, 4
and eax, 0x30
movzx edx, byte [ecx + esi + 1]
shr edx, 4
movzx eax, byte [eax + edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + 1], al
movzx eax, byte [ecx + esi + 1]
and eax, 0xf
movzx eax, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + 2], al
mov byte [edi + 3], 0x3d
add edi, 4
mov byte [edi], 0
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret