Function at 0x401220
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 0x401244
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jge 0x401319
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 4]
cmp ecx, 2
jl 0x40127f
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
cmp eax, 0x2f72
jne 0x40127f
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx + 1]
cmp edx, 0x2f6e
jne 0x40127f
jmp 0x40123b
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
movzx ecx, byte [eax]
cmp ecx, 0x2f6e
jne 0x401292
jmp 0x40123b
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
cmp eax, 0x3d
jne 0x4012b9
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 2
jle 0x4012b9
mov eax, 0xffffffee
jmp 0x40145d
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
cmp eax, 0x7f
jg 0x4012dc
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx]
movzx eax, byte [edx + 0x4cf410]
cmp eax, 0x7f
jne 0x4012e6
mov eax, 0xffffffee
jmp 0x40145d
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx]
movzx eax, byte [edx + 0x4cf410]
cmp eax, 0x40
jge 0x40130b
cmp dword [ebp - 0xc], 0
je 0x40130b
mov eax, 0xffffffee
jmp 0x40145d
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
jmp 0x40123b
cmp dword [ebp - 8], 0
jne 0x401326
xor eax, eax
jmp 0x40145d
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 0x40134f
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov eax, 0xfffffff0
jmp 0x40145d
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 0x40137d
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 0x401450
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
cmp eax, 0x2f72
je 0x4013a2
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx]
cmp edx, 0x2f6e
jne 0x4013a4
jmp 0x40136b
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
movzx edx, byte [ecx + 0x4cf410]
cmp edx, 0x40
jne 0x4013bf
mov dword [ebp - 0x18], 1
jmp 0x4013c6
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 + 0x4cf410]
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 0x40144b
mov dword [ebp - 8], 0
cmp dword [ebp - 0xc], 0
jle 0x40141a
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 0x401434
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 0x40144b
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 0x40136b
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