Function at 0x1001e331
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
push ebx
push esi
push edi
xor edi, edi
push 0x3ff
lea eax, [ebp - 0x447]
push edi
push eax
mov dword [ebp - 8], edi
mov byte [ebp - 0x448], 0
call fcn.1003e4bd
add esp, 0xc
cmp dword [ebp + 0x10], edi
je 0x1001e367
sub dword [ebp + 0x10], 0x4c
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x24], 1
xor eax, eax
mov cl, al
add cl, 0x41
mov byte [ebp + eax - 0x48], cl
inc eax
cmp eax, 0x1a
jl 0x1001e373
push 0x1a
pop eax
mov cl, al
add cl, 0x47
mov byte [ebp + eax - 0x48], cl
inc eax
cmp eax, 0x34
jl 0x1001e385
push 0x34
pop eax
mov cl, al
sub cl, 4
mov byte [ebp + eax - 0x48], cl
inc eax
cmp eax, 0x3e
jl 0x1001e397
cmp dword [ebp + 0x1c], edi
je 0x1001e3b5
mov byte [ebp - 0xa], 0x2d
mov byte [ebp - 9], 0x5f
jmp 0x1001e3bd
mov byte [ebp - 0xa], 0x2b
mov byte [ebp - 9], 0x2f
mov eax, dword [ebx]
push 0x36
lea ecx, [ebp - 0x448]
push ecx
mov ecx, ebx
mov byte [ebp + 0xb], 1
call dword [eax + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
cmp eax, edi
je 0x1001e58b
cmp byte [ebp + 0xb], 0
je 0x1001e3eb
mov byte [ebp + 0xb], 0
jmp 0x1001e412
cmp dword [ebp + 0x14], edi
je 0x1001e412
mov eax, dword [esi]
push 0xd
mov ecx, esi
call dword [eax + 0x14]
test eax, eax
jne 0x1001e586
mov eax, dword [esi]
push 0xa
mov ecx, esi
call dword [eax + 0x14]
test eax, eax
jne 0x1001e586
lea edi, [ebp - 0x448]
jmp 0x1001e497
movzx ecx, byte [edi]
mov eax, dword [esi]
shr ecx, 2
movzx ecx, byte [ebp + ecx - 0x48]
push ecx
mov ecx, esi
call dword [eax + 0x14]
test eax, eax
jne 0x1001e4a1
movzx ecx, byte [edi]
movzx edx, byte [edi + 1]
mov eax, dword [esi]
and ecx, 3
shl ecx, 4
shr edx, 4
or ecx, edx
movzx ecx, byte [ebp + ecx - 0x48]
push ecx
mov ecx, esi
call dword [eax + 0x14]
test eax, eax
jne 0x1001e4a1
movzx ecx, byte [edi + 1]
movzx edx, byte [edi + 2]
mov eax, dword [esi]
and ecx, 0xf
shl ecx, 2
shr edx, 6
or ecx, edx
movzx ecx, byte [ebp + ecx - 0x48]
push ecx
mov ecx, esi
call dword [eax + 0x14]
test eax, eax
jne 0x1001e4a1
movzx ecx, byte [edi + 2]
mov eax, dword [esi]
and ecx, 0x3f
movzx ecx, byte [ebp + ecx - 0x48]
push ecx
mov ecx, esi
call dword [eax + 0x14]
test eax, eax
jne 0x1001e4a1
sub dword [ebp - 4], 3
add edi, 3
cmp dword [ebp - 4], 2
jg 0x1001e41a
cmp dword [ebp - 4], 2
jne 0x1001e502
movzx ecx, byte [edi]
mov eax, dword [esi]
shr ecx, 2
movzx ecx, byte [ebp + ecx - 0x48]
push ecx
mov ecx, esi
call dword [eax + 0x14]
movzx ecx, byte [edi]
movzx edx, byte [edi + 1]
mov eax, dword [esi]
and ecx, 3
shl ecx, 4
shr edx, 4
or ecx, edx
movzx ecx, byte [ebp + ecx - 0x48]
push ecx
mov ecx, esi
call dword [eax + 0x14]
movzx ecx, byte [edi + 1]
mov eax, dword [esi]
and ecx, 0xf
movzx ecx, byte [ebp + ecx*4 - 0x48]
push ecx
mov ecx, esi
call dword [eax + 0x14]
cmp dword [ebp + 0x18], 0
je 0x1001e54f
cmp dword [ebp + 0x1c], 0
jne 0x1001e54f
mov eax, dword [esi]
push 0x3d
mov ecx, esi
call dword [eax + 0x14]
cmp dword [ebp - 4], 1
jne 0x1001e54f
movzx ecx, byte [edi]
mov eax, dword [esi]
shr ecx, 2
movzx ecx, byte [ebp + ecx - 0x48]
push ecx
mov ecx, esi
call dword [eax + 0x14]
movzx ecx, byte [edi]
mov eax, dword [esi]
and ecx, 3
shl ecx, 4
movzx ecx, byte [ebp + ecx - 0x48]
push ecx
mov ecx, esi
call dword [eax + 0x14]
cmp dword [ebp + 0x18], 0
je 0x1001e54f
cmp dword [ebp + 0x1c], 0
jne 0x1001e54f
mov eax, dword [esi]
push 0x3d
mov ecx, esi
call dword [eax + 0x14]
mov eax, dword [esi]
push 0x3d
mov ecx, esi
call dword [eax + 0x14]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1001e569
cmp dword [esi + 8], eax
jbe 0x1001e569
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
mov dword [ebp - 8], eax
test eax, eax
jne 0x1001e5a7
mov eax, dword [ebx]
push 0x36
lea ecx, [ebp - 0x448]
push ecx
mov ecx, ebx
call dword [eax + 8]
xor edi, edi
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001e3df
cmp dword [ebp - 8], edi
jne 0x1001e5a9
mov eax, dword [ebx + 0x10]
mov dword [ebx + 0x10], edi
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x1001e5a9
mov eax, dword [esi + 0x10]
mov dword [esi + 0x10], edi
mov dword [ebp - 8], eax
cmp eax, edi
je 0x1001e5ac
jmp 0x1001e5a9
xor edi, edi
mov dword [ebx + 0x24], edi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x18