Function at 0x10021020
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10042efe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov dword [ebp - 0x24], 0
xorps xmm0, xmm0
push esi
mov esi, dword [ebp + 8]
mov edx, ecx
push edi
mov dword [ebp - 0x20], edx
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov eax, dword [ebp + 0x10]
xor edi, edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 1
test eax, eax
je 0x10021278
mov ecx, dword [ebp + 0xc]
nop
dec eax
mov dword [ebp + 0x10], eax
mov al, byte [ecx]
inc ecx
mov byte [ebp + edi - 0x14], al
inc edi
mov al, byte [ebp - 0x12]
mov ah, byte [ebp - 0x13]
mov byte [ebp - 0xe], al
mov al, byte [ebp - 0x14]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0xf], ah
mov byte [ebp - 0xd], al
cmp edi, 3
jne 0x1002114a
mov cl, byte [ebp - 0xd]
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov al, ah
shl cl, 4
shr al, 4
add cl, al
mov al, byte [ebp - 0xe]
mov byte [ebp - 0x17], cl
mov cl, ah
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, byte [ebp - 0xe]
and al, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], al
xor edi, edi
cmp dword [edx + 0x14], 0xf
mov ecx, edx
jbe 0x100210fa
mov ecx, dword [edx]
movzx eax, byte [ebp + edi - 0x18]
mov al, byte [eax + ecx]
mov ecx, dword [esi + 0x10]
mov byte [ebp - 0x1c], al
cmp ecx, dword [esi + 0x14]
jae 0x1002112a
cmp dword [esi + 0x14], 0xf
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
jbe 0x1002111d
mov eax, dword [esi]
add eax, ecx
mov cl, byte [ebp - 0x1c]
mov byte [eax + 1], 0
mov byte [eax], cl
jmp 0x1002113f
push dword [ebp - 0x1c]
mov byte [ebp - 0x28], 0
push dword [ebp - 0x28]
push ecx
mov ecx, esi
call fcn.100111c0
mov edx, dword [ebp - 0x20]
inc edi
cmp edi, 4
jl 0x100210f0
mov ecx, dword [ebp + 0xc]
xor edi, edi
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x10021090
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x10021278
cmp edi, 3
jge 0x10021188
mov eax, 3
sub eax, edi
push eax
lea eax, [ebp - 0x14]
add eax, edi
push 0
push eax
call fcn.10025e00
mov ah, byte [ebp - 0x12]
add esp, 0xc
mov cl, byte [ebp - 0x13]
mov dl, byte [ebp - 0x14]
jmp 0x10021191
mov cl, byte [ebp - 0xf]
mov dl, byte [ebp - 0xd]
mov ah, byte [ebp - 0xe]
mov al, dl
shr ah, 6
shr al, 2
and dl, 3
mov byte [ebp - 0x18], al
mov al, cl
and cl, 0xf
shr al, 4
shl cl, 2
add cl, ah
shl dl, 4
add dl, al
mov byte [ebp - 0x16], cl
lea ecx, [edi + 1]
mov byte [ebp - 0x17], dl
xor eax, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp + 0x10], eax
test ecx, ecx
jle 0x1002122c
mov edi, dword [ebp - 0x20]
nop dword [eax]
cmp dword [edi + 0x14], 0xf
mov ecx, edi
jbe 0x100211da
mov ecx, dword [edi]
movzx eax, byte [ebp + eax - 0x18]
mov edx, dword [esi + 0x14]
mov al, byte [eax + ecx]
mov ecx, dword [esi + 0x10]
mov byte [ebp + 0xc], al
cmp ecx, edx
jae 0x1002120b
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0xf
jbe 0x100211fe
mov eax, dword [esi]
add eax, ecx
mov cl, byte [ebp + 0xc]
mov byte [eax + 1], 0
mov byte [eax], cl
jmp 0x1002121d
push dword [ebp + 0xc]
mov byte [ebp - 0x28], 0
push dword [ebp - 0x28]
push ecx
mov ecx, esi
call fcn.100111c0
mov eax, dword [ebp + 0x10]
inc eax
mov dword [ebp + 0x10], eax
cmp eax, dword [ebp - 0x14]
jl 0x100211d0
mov edi, dword [ebp - 0x1c]
cmp edi, 3
jge 0x10021278
mov eax, 3
sub eax, edi
mov dword [ebp + 0xc], eax
nop dword [eax + eax]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
cmp ecx, edx
jae 0x10021261
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0xf
jbe 0x10021259
mov eax, dword [esi]
mov word [eax + ecx], 0x3d
jmp 0x10021272
push 0x3d
mov byte [ebp + 0x10], 0
push dword [ebp + 0x10]
push ecx
mov ecx, esi
call fcn.100111c0
sub dword [ebp + 0xc], 1
jne 0x10021240
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc