Function at 0x40fae0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
jmp 0x40fb04
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
jge 0x40fbd9
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 0x10]
cmp ecx, 2
jl 0x40fb3f
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x10]
movzx eax, byte [edx]
cmp eax, 0x2f72
jne 0x40fb3f
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + 1]
cmp edx, 0x2f6e
jne 0x40fb3f
jmp 0x40fafb
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
movzx ecx, byte [eax]
cmp ecx, 0x2f6e
jne 0x40fb52
jmp 0x40fafb
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x10]
movzx eax, byte [edx]
cmp eax, 0x3d
jne 0x40fb79
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 2
jle 0x40fb79
mov eax, 0xffffffee
jmp 0x40fd11
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x10]
movzx eax, byte [edx]
cmp eax, 0x7f
jg 0x40fb9c
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
movzx edx, byte [ecx]
movzx eax, byte [edx + 0x4c2ad0]
cmp eax, 0x7f
jne 0x40fba6
mov eax, 0xffffffee
jmp 0x40fd11
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
movzx edx, byte [ecx]
movzx eax, byte [edx + 0x4c2ad0]
cmp eax, 0x40
jge 0x40fbcb
cmp dword [ebp - 0x14], 0
je 0x40fbcb
mov eax, 0xffffffee
jmp 0x40fd11
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
jmp 0x40fafb
cmp dword [ebp - 0xc], 0
jne 0x40fbe6
xor eax, eax
jmp 0x40fd11
mov edx, dword [ebp - 0xc]
imul edx, edx, 6
add edx, 7
sar edx, 3
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
cmp ecx, dword [ebp - 0xc]
jge 0x40fc11
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, 0xfffffff0
jmp 0x40fd11
mov dword [ebp - 0x14], 3
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], edx
jmp 0x40fc3f
mov eax, dword [ebp - 0x10]
sub eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
cmp dword [ebp - 0x10], 0
jle 0x40fd04
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
cmp eax, 0x2f72
je 0x40fc64
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx]
cmp edx, 0x2f6e
jne 0x40fc66
jmp 0x40fc2d
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
movzx edx, byte [ecx + 0x4c2ad0]
xor eax, eax
cmp edx, 0x40
sete al
mov ecx, dword [ebp - 0x14]
sub ecx, eax
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 8]
shl edx, 6
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
movzx eax, byte [ecx + 0x4c2ad0]
and eax, 0x3f
or edx, eax
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 4
jne 0x40fcff
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0x14], 0
jle 0x40fcce
mov edx, dword [ebp - 8]
shr edx, 0x10
mov eax, dword [ebp - 4]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x14], 1
jle 0x40fce8
mov edx, dword [ebp - 8]
shr edx, 8
mov eax, dword [ebp - 4]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x14], 2
jle 0x40fcff
mov edx, dword [ebp - 4]
mov al, byte [ebp - 8]
mov byte [edx], al
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x40fc2d
mov edx, dword [ebp - 4]
sub edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
xor eax, eax
mov esp, ebp
pop ebp
ret