Function at 0x406960
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
jmp 0x406984
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jge 0x406a59
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 4]
cmp ecx, 2
jl 0x4069bf
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
cmp eax, 0x2f72
jne 0x4069bf
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx + 1]
cmp edx, 0x2f6e
jne 0x4069bf
jmp 0x40697b
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
movzx ecx, byte [eax]
cmp ecx, 0x2f6e
jne 0x4069d2
jmp 0x40697b
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
cmp eax, 0x3d
jne 0x4069f9
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 2
jle 0x4069f9
mov eax, 0xffffffee
jmp 0x406b9d
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
cmp eax, 0x7f
jg 0x406a1c
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx]
movzx eax, byte [edx + 0x41a1b0]
cmp eax, 0x7f
jne 0x406a26
mov eax, 0xffffffee
jmp 0x406b9d
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx]
movzx eax, byte [edx + 0x41a1b0]
cmp eax, 0x40
jge 0x406a4b
cmp dword [ebp - 0xc], 0
je 0x406a4b
mov eax, 0xffffffee
jmp 0x406b9d
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
jmp 0x40697b
cmp dword [ebp - 8], 0
jne 0x406a66
xor eax, eax
jmp 0x406b9d
imul edx, dword [ebp - 8], 6
add edx, 7
sar edx, 3
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
cmp ecx, dword [ebp - 8]
jge 0x406a8f
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov eax, 0xfffffff0
jmp 0x406b9d
mov dword [ebp - 0xc], 3
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
jmp 0x406abd
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
cmp dword [ebp - 4], 0
jle 0x406b90
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
cmp eax, 0x2f72
je 0x406ae2
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx]
cmp edx, 0x2f6e
jne 0x406ae4
jmp 0x406aab
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
movzx edx, byte [ecx + 0x41a1b0]
cmp edx, 0x40
jne 0x406aff
mov dword [ebp - 0x18], 1
jmp 0x406b06
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x14]
shl ecx, 6
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
movzx edx, byte [eax + 0x41a1b0]
and edx, 0x3f
or ecx, edx
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 4
jne 0x406b8b
mov dword [ebp - 8], 0
cmp dword [ebp - 0xc], 0
jle 0x406b5a
mov ecx, dword [ebp - 0x14]
shr ecx, 0x10
mov edx, dword [ebp - 0x10]
mov byte [edx], cl
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 1
jle 0x406b74
mov ecx, dword [ebp - 0x14]
shr ecx, 8
mov edx, dword [ebp - 0x10]
mov byte [edx], cl
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 2
jle 0x406b8b
mov ecx, dword [ebp - 0x10]
mov dl, byte [ebp - 0x14]
mov byte [ecx], dl
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x406aab
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret