Function at 0x66f52090
Capabilities:
Encode data using base64

Disassembly:
push 0xffffffffffffffff
push 0x66f86d29
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x66fe31a0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov dword [esp + 0x20], 0
mov edi, dword [esp + 0x34]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
mov ebp, dword [esp + 0x3c]
xor ebx, ebx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], 1
test ebp, ebp
je 0x66f523a9
mov ecx, dword [esp + 0x38]
mov al, byte [ecx]
dec ebp
mov byte [esp + ebx + 0x18], al
inc ecx
mov ah, byte [esp + 0x1a]
inc ebx
mov dl, byte [esp + 0x19]
mov dh, byte [esp + 0x18]
mov dword [esp + 0x38], ecx
mov byte [esp + 0x17], ah
mov byte [esp + 0x15], dl
mov byte [esp + 0x16], dh
cmp ebx, 3
jne 0x66f5220b
mov al, dh
mov cl, dh
shr al, 2
and cl, 3
mov byte [esp + 0x1c], al
mov al, dl
shl cl, 4
shr al, 4
add cl, al
mov al, ah
mov byte [esp + 0x1d], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ah
and al, 0x3f
mov byte [esp + 0x1e], cl
mov byte [esp + 0x1f], al
xor ebx, ebx
lea ecx, [ecx]
cmp dword [0x66fe45dc], 0x10
mov ecx, 0x66fe45c8
movzx eax, byte [esp + ebx + 0x1c]
cmovae ecx, dword [0x66fe45c8]
mov dl, byte [eax + ecx]
or eax, 0xffffffff
mov ecx, dword [edi + 0x10]
sub eax, ecx
mov byte [esp + 0x3c], dl
cmp eax, 1
jbe 0x66f52240
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x66f52240
mov eax, dword [edi + 0x14]
cmp eax, esi
jae 0x66f521c1
push ecx
push esi
mov ecx, edi
call fcn.66e021b0
mov dl, byte [esp + 0x3c]
test esi, esi
je 0x66f521f3
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x66f521db
mov eax, dword [edi]
jmp 0x66f521dd
test esi, esi
jne 0x66f521b4
mov dword [edi + 0x10], esi
cmp eax, 0x10
jb 0x66f521d4
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x66f521f3
mov eax, edi
mov byte [eax], 0
jmp 0x66f521f3
mov eax, edi
mov byte [eax + ecx], dl
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x66f521ed
mov eax, dword [edi]
jmp 0x66f521ef
mov eax, edi
mov byte [eax + esi], 0
inc ebx
cmp ebx, 4
jl 0x66f52160
mov ecx, dword [esp + 0x38]
xor ebx, ebx
mov dl, byte [esp + 0x15]
mov dh, byte [esp + 0x16]
test ebp, ebp
jne 0x66f520f6
test ebx, ebx
je 0x66f523a9
mov eax, ebx
cmp ebx, 3
jge 0x66f5224f
cmp eax, 3
jae 0x66f5224a
mov byte [esp + eax + 0x18], 0
inc eax
cmp eax, 3
jl 0x66f52225
mov cl, byte [esp + 0x1a]
mov dl, byte [esp + 0x19]
mov dh, byte [esp + 0x18]
jmp 0x66f52253
push 0x66f8aed0
call fcn.66f5cba1
call fcn.66f2f304
mov cl, byte [esp + 0x17]
mov al, dh
xor ebp, ebp
shr al, 2
and dh, 3
mov byte [esp + 0x1c], al
mov al, dl
shr al, 4
and dl, 0xf
shl dh, 4
add dh, al
shl dl, 2
mov al, cl
mov byte [esp + 0x1d], dh
shr al, 6
and cl, 0x3f
add dl, al
mov byte [esp + 0x1f], cl
lea eax, [ebx + 1]
mov byte [esp + 0x1e], dl
test eax, eax
jle 0x66f5232d
cmp dword [0x66fe45dc], 0x10
mov ecx, 0x66fe45c8
movzx eax, byte [esp + ebp + 0x1c]
cmovae ecx, dword [0x66fe45c8]
mov dl, byte [eax + ecx]
or eax, 0xffffffff
mov ecx, dword [edi + 0x10]
sub eax, ecx
mov byte [esp + 0x38], dl
cmp eax, 1
jbe 0x66f52240
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x66f52240
mov eax, dword [edi + 0x14]
cmp eax, esi
jae 0x66f522ef
push ecx
push esi
mov ecx, edi
call fcn.66e021b0
mov dl, byte [esp + 0x38]
test esi, esi
je 0x66f52321
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x66f52309
mov eax, dword [edi]
jmp 0x66f5230b
test esi, esi
jne 0x66f522e2
mov dword [edi + 0x10], esi
cmp eax, 0x10
jb 0x66f52302
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x66f52321
mov eax, edi
mov byte [eax], 0
jmp 0x66f52321
mov eax, edi
mov byte [eax + ecx], dl
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x66f5231b
mov eax, dword [edi]
jmp 0x66f5231d
mov eax, edi
mov byte [eax + esi], 0
inc ebp
lea eax, [ebx + 1]
cmp ebp, eax
jl 0x66f52292
cmp ebx, 3
jge 0x66f523a9
mov ecx, dword [edi + 0x10]
or eax, 0xffffffff
sub eax, ecx
inc ebx
cmp eax, 1
jbe 0x66f52240
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x66f52240
mov eax, dword [edi + 0x14]
cmp eax, esi
jae 0x66f52371
push ecx
push esi
mov ecx, edi
call fcn.66e021b0
test esi, esi
je 0x66f523a4
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x66f5238b
mov eax, dword [edi]
jmp 0x66f5238d
test esi, esi
jne 0x66f52364
mov dword [edi + 0x10], esi
cmp eax, 0x10
jb 0x66f52384
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x66f523a4
mov eax, edi
mov byte [eax], 0
jmp 0x66f523a4
mov eax, edi
mov byte [ecx + eax], 0x3d
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x66f5239e
mov eax, dword [edi]
jmp 0x66f523a0
mov eax, edi
mov byte [esi + eax], 0
cmp ebx, 3
jl 0x66f52332
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0xc