Function at 0x4219c0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x518279
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x559410]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], 0
mov edi, dword [ebp + 8]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 1
test eax, eax
je 0x421cce
mov ecx, dword [ebp + 0xc]
dec eax
mov dword [ebp + 0x10], eax
mov al, byte [ecx]
inc ecx
mov byte [ebp + ebx - 0x14], al
inc ebx
mov ah, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov dh, byte [ebp - 0x14]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x10], ah
mov byte [ebp - 0xe], dl
mov byte [ebp - 0xf], dh
cmp ebx, 3
jne 0x421b26
mov al, dh
mov cl, dh
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov al, dl
shl cl, 4
shr al, 4
add cl, al
mov al, ah
mov byte [ebp - 0x17], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ah
and al, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], al
xor ebx, ebx
cmp dword [0x559014], 0x10
mov ecx, section..data
movzx eax, byte [ebp + ebx - 0x18]
cmovae ecx, dword [section..data]
mov dl, byte [eax + ecx]
or eax, 0xffffffff
mov ecx, dword [edi + 0x10]
sub eax, ecx
mov byte [ebp - 0xd], dl
cmp eax, 1
jbe 0x421b5b
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x421b5b
mov eax, dword [edi + 0x14]
cmp eax, esi
jae 0x421adf
push ecx
push esi
mov ecx, edi
call fcn.00406150
mov dl, byte [ebp - 0xd]
test esi, esi
je 0x421b11
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x421af9
mov eax, dword [edi]
jmp 0x421afb
test esi, esi
jne 0x421ad2
mov dword [edi + 0x10], esi
cmp eax, 0x10
jb 0x421af2
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x421b11
mov eax, edi
mov byte [eax], 0
jmp 0x421b11
mov eax, edi
mov byte [eax + ecx], dl
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x421b0b
mov eax, dword [edi]
jmp 0x421b0d
mov eax, edi
mov byte [eax + esi], 0
inc ebx
cmp ebx, 4
jl 0x421a80
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov dl, byte [ebp - 0xe]
mov dh, byte [ebp - 0xf]
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x421a21
test ebx, ebx
je 0x421cce
mov eax, ebx
cmp ebx, 3
jge 0x421b6a
cmp eax, 3
jae 0x421b65
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 3
jl 0x421b43
mov cl, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov dh, byte [ebp - 0x14]
jmp 0x421b6d
push str.string_too_long
call fcn.00452abb
call fcn.004559ce
mov cl, byte [ebp - 0x10]
mov al, dh
and dh, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl dh, 4
add dh, al
shl dl, 2
mov al, cl
mov byte [ebp - 0x17], dh
shr al, 6
and cl, 0x3f
add dl, al
mov byte [ebp - 0x15], cl
mov byte [ebp - 0x16], dl
lea eax, [ebx + 1]
xor edx, edx
mov dword [ebp - 0x14], edx
test eax, eax
jle 0x421c52
jmp 0x421bb0
cmp dword [0x559014], 0x10
mov ecx, section..data
movzx eax, byte [ebp + edx - 0x18]
cmovae ecx, dword [section..data]
mov al, byte [eax + ecx]
mov ecx, dword [edi + 0x10]
mov byte [ebp + 0x13], al
or eax, 0xffffffff
sub eax, ecx
cmp eax, 1
jbe 0x421b5b
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x421b5b
mov eax, dword [edi + 0x14]
cmp eax, esi
jae 0x421c0b
push ecx
push esi
mov ecx, edi
call fcn.00406150
mov edx, dword [ebp - 0x14]
test esi, esi
je 0x421c43
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x421c25
mov eax, dword [edi]
jmp 0x421c27
test esi, esi
jne 0x421bfe
mov dword [edi + 0x10], esi
cmp eax, 0x10
jb 0x421c1e
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x421c43
mov eax, edi
mov byte [eax], 0
jmp 0x421c43
mov eax, edi
mov dl, byte [ebp + 0x13]
mov byte [eax + ecx], dl
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x421c3a
mov eax, dword [edi]
jmp 0x421c3c
mov eax, edi
mov edx, dword [ebp - 0x14]
mov byte [eax + esi], 0
inc edx
lea eax, [ebx + 1]
mov dword [ebp - 0x14], edx
cmp edx, eax
jl 0x421bb0
cmp ebx, 3
jge 0x421cce
mov ecx, dword [edi + 0x10]
or eax, 0xffffffff
sub eax, ecx
inc ebx
cmp eax, 1
jbe 0x421b5b
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x421b5b
mov eax, dword [edi + 0x14]
cmp eax, esi
jae 0x421c96
push ecx
push esi
mov ecx, edi
call fcn.00406150
test esi, esi
je 0x421cc9
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x421cb0
mov eax, dword [edi]
jmp 0x421cb2
test esi, esi
jne 0x421c89
mov dword [edi + 0x10], esi
cmp eax, 0x10
jb 0x421ca9
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x421cc9
mov eax, edi
mov byte [eax], 0
jmp 0x421cc9
mov eax, edi
mov byte [ecx + eax], 0x3d
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x421cc3
mov eax, dword [edi]
jmp 0x421cc5
mov eax, edi
mov byte [esi + eax], 0
cmp ebx, 3
jl 0x421c57
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret