Function at 0x4810f8
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x48136f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
shl eax, 2
mov ecx, 3
cdq
idiv ecx
mov ebx, eax
add ebx, 2
mov edx, ebx
lea eax, [ebp - 0x10]
call fcn.00404104
lea eax, [ebp - 0x10]
call fcn.00403fa4
push eax
mov edx, ebx
xor ecx, ecx
pop eax
call fcn.00402cd8
cmp byte [ebp - 1], 0
jne 0x481174
lea eax, [ebp - 0x10]
call fcn.00403fa4
mov edx, esi
dec edx
and dl, 0x3f
add dl, 0x21
mov byte [eax], dl
lea eax, [esi + 2]
mov ecx, 3
cdq
idiv ecx
lea eax, [eax + eax*2]
mov esi, eax
mov byte [ebp - 9], 2
mov byte [ebp - 0xa], 0
xor ebx, ebx
mov al, byte [ebp - 1]
sub al, 1
jb 0x48118b
sub al, 2
jb 0x48118f
jmp 0x481191
mov bl, 2
jmp 0x481191
mov bl, 1
lea eax, [ebp - 0x10]
call fcn.00403fa4
xor edx, edx
mov dl, bl
mov byte [eax + edx - 1], 0
jmp 0x481299
movsx eax, byte [ebp - 9]
test ax, ax
jle 0x481202
lea eax, [ebp - 0x10]
call fcn.00403fa4
xor edx, edx
mov dl, bl
lea eax, [eax + edx - 1]
push eax
mov cl, byte [ebp - 9]
mov eax, 0x3f
shl eax, cl
mov edx, dword [ebp - 8]
movzx edx, byte [edx + edi]
and eax, edx
mov cl, byte [ebp - 9]
shr eax, cl
xor edx, edx
mov dl, bl
mov ecx, dword [ebp - 0x10]
or al, byte [ecx + edx - 1]
pop edx
mov byte [edx], al
sub byte [ebp - 9], 6
inc ebx
lea eax, [ebp - 0x10]
call fcn.00403fa4
xor edx, edx
mov dl, bl
mov byte [eax + edx - 1], 0
jmp 0x481299
test ax, ax
jge 0x481256
movsx eax, byte [ebp - 9]
cdq
xor eax, edx
sub eax, edx
mov byte [ebp - 9], al
lea eax, [ebp - 0x10]
call fcn.00403fa4
xor edx, edx
mov dl, bl
lea eax, [eax + edx - 1]
push eax
mov cl, byte [ebp - 9]
mov eax, 0x3f
shr eax, cl
mov edx, dword [ebp - 8]
mov dl, byte [edx + edi]
and al, dl
mov cl, byte [ebp - 9]
shl al, cl
xor edx, edx
mov dl, bl
mov ecx, dword [ebp - 0x10]
or al, byte [ecx + edx - 1]
pop edx
mov byte [edx], al
mov al, 8
sub al, byte [ebp - 9]
mov byte [ebp - 9], al
inc byte [ebp - 0xa]
jmp 0x481299
lea eax, [ebp - 0x10]
call fcn.00403fa4
xor edx, edx
mov dl, bl
lea eax, [eax + edx - 1]
push eax
xor eax, eax
mov al, bl
mov edx, dword [ebp - 0x10]
mov al, byte [edx + eax - 1]
mov edx, dword [ebp - 8]
mov dl, byte [edx + edi]
and dl, 0x3f
or al, dl
pop edx
mov byte [edx], al
inc ebx
inc byte [ebp - 0xa]
lea eax, [ebp - 0x10]
call fcn.00403fa4
xor edx, edx
mov dl, bl
mov byte [eax + edx - 1], 0
mov byte [ebp - 9], 2
movzx edi, byte [ebp - 0xa]
cmp esi, edi
jg 0x4811a7
mov al, byte [ebp - 1]
sub al, 1
jb 0x4812b5
sub al, 2
jb 0x4812f3
jmp 0x481344
dec ebx
mov eax, ebx
sub al, 2
jb 0x481344
inc eax
mov byte [ebp - 0x11], al
mov byte [ebp - 0xb], 2
lea eax, [ebp - 0x10]
call fcn.00403fa4
movzx esi, byte [ebp - 0xb]
mov edx, dword [ebp - 0x10]
movzx edx, byte [edx + esi - 1]
mov ecx, dword [0x4a42c0]
mov dl, byte [ecx + edx]
mov byte [eax + esi - 1], dl
inc byte [ebp - 0xb]
dec byte [ebp - 0x11]
jne 0x4812c8
jmp 0x481344
dec ebx
test bl, bl
jbe 0x48133c
mov byte [ebp - 0x11], bl
mov byte [ebp - 0xb], 1
lea eax, [ebp - 0x10]
call fcn.00403fa4
movzx esi, byte [ebp - 0xb]
mov edx, dword [ebp - 0x10]
movzx edx, byte [edx + esi - 1]
mov ecx, dword [0x4a42c4]
mov dl, byte [ecx + edx]
mov byte [eax + esi - 1], dl
inc byte [ebp - 0xb]
dec byte [ebp - 0x11]
jne 0x4812ff
jmp 0x48133c
inc ebx
lea eax, [ebp - 0x10]
call fcn.00403fa4
xor edx, edx
mov dl, bl
mov byte [eax + edx - 1], 0x3d
mov eax, ebx
and al, 4
cmp al, 4
jne 0x48132a
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov cl, bl
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.00403fd8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481376
lea eax, [ebp - 0x10]
call fcn.00403b58
ret