Function at 0x10021980
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100439ae
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 0x10021bd8
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 0x10021aaa
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 0x10021a5a
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 0x10021a8a
cmp dword [esi + 0x14], 0xf
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
jbe 0x10021a7d
mov eax, dword [esi]
add eax, ecx
mov cl, byte [ebp - 0x1c]
mov byte [eax + 1], 0
mov byte [eax], cl
jmp 0x10021a9f
push dword [ebp - 0x1c]
mov byte [ebp - 0x28], 0
push dword [ebp - 0x28]
push ecx
mov ecx, esi
call fcn.10011710
mov edx, dword [ebp - 0x20]
inc edi
cmp edi, 4
jl 0x10021a50
mov ecx, dword [ebp + 0xc]
xor edi, edi
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x100219f0
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x10021bd8
cmp edi, 3
jge 0x10021ae8
mov eax, 3
sub eax, edi
push eax
lea eax, [ebp - 0x14]
add eax, edi
push 0
push eax
call fcn.100268f0
mov ah, byte [ebp - 0x12]
add esp, 0xc
mov cl, byte [ebp - 0x13]
mov dl, byte [ebp - 0x14]
jmp 0x10021af1
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 0x10021b8c
mov edi, dword [ebp - 0x20]
nop dword [eax]
cmp dword [edi + 0x14], 0xf
mov ecx, edi
jbe 0x10021b3a
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 0x10021b6b
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0xf
jbe 0x10021b5e
mov eax, dword [esi]
add eax, ecx
mov cl, byte [ebp + 0xc]
mov byte [eax + 1], 0
mov byte [eax], cl
jmp 0x10021b7d
push dword [ebp + 0xc]
mov byte [ebp - 0x28], 0
push dword [ebp - 0x28]
push ecx
mov ecx, esi
call fcn.10011710
mov eax, dword [ebp + 0x10]
inc eax
mov dword [ebp + 0x10], eax
cmp eax, dword [ebp - 0x14]
jl 0x10021b30
mov edi, dword [ebp - 0x1c]
cmp edi, 3
jge 0x10021bd8
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 0x10021bc1
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0xf
jbe 0x10021bb9
mov eax, dword [esi]
mov word [eax + ecx], 0x3d
jmp 0x10021bd2
push 0x3d
mov byte [ebp + 0x10], 0
push dword [ebp + 0x10]
push ecx
mov ecx, esi
call fcn.10011710
sub dword [ebp + 0xc], 1
jne 0x10021ba0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc