Function at 0x475660
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62c919
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x6d45e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x20], 0
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov dword [ebp - 0x28], edi
mov byte [edi], 0
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 1
dec eax
mov dword [ebp + 8], eax
mov al, byte [edx]
inc edx
mov byte [ebp + ebx - 0x14], al
inc ebx
mov ah, byte [ebp - 0x12]
mov ch, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov dword [ebp - 0x24], edx
mov byte [ebp - 0xd], ah
mov byte [ebp - 0x1b], ch
mov byte [ebp - 0x19], cl
cmp ebx, 3
jne 0x4757c6
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, ch
shl cl, 4
shr al, 4
add cl, al
mov al, ah
mov byte [ebp - 0x17], cl
mov cl, ch
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
jmp 0x475720
cmp dword [0x6df508], 0x10
mov ecx, 0x6df4f4
movzx eax, byte [ebp + ebx - 0x18]
cmovae ecx, dword [0x6df4f4]
mov dl, byte [eax + ecx]
or eax, 0xffffffff
mov ecx, dword [edi + 0x10]
sub eax, ecx
mov byte [ebp - 0x1a], dl
cmp eax, 1
jbe 0x4757fb
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x4757fb
mov eax, dword [edi + 0x14]
cmp eax, esi
jae 0x47577f
push ecx
push esi
mov ecx, edi
call fcn.00404cf0
mov dl, byte [ebp - 0x1a]
test esi, esi
je 0x4757b1
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x475799
mov eax, dword [edi]
jmp 0x47579b
test esi, esi
jne 0x475772
mov dword [edi + 0x10], esi
cmp eax, 0x10
jb 0x475792
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x4757b1
mov eax, edi
mov byte [eax], 0
jmp 0x4757b1
mov eax, edi
mov byte [eax + ecx], dl
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x4757ab
mov eax, dword [edi]
jmp 0x4757ad
mov eax, edi
mov byte [eax + esi], 0
inc ebx
cmp ebx, 4
jl 0x475720
mov edx, dword [ebp - 0x24]
xor ebx, ebx
mov ch, byte [ebp - 0x1b]
mov cl, byte [ebp - 0x19]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4756b8
test ebx, ebx
je 0x47596e
mov eax, ebx
cmp ebx, 3
jge 0x47580a
cmp eax, 3
jae 0x475805
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 3
jl 0x4757e3
mov dl, byte [ebp - 0x12]
mov ch, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
jmp 0x47580d
push str.string_too_long
call fcn.0058cb13
call fcn.004c45c8
mov dl, byte [ebp - 0xd]
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, ch
shr al, 4
and ch, 0xf
shl cl, 4
add cl, al
shl ch, 2
mov al, dl
mov byte [ebp - 0x17], cl
shr al, 6
and dl, 0x3f
add ch, al
mov byte [ebp - 0x15], dl
xor edx, edx
mov byte [ebp - 0x16], ch
lea eax, [ebx + 1]
mov dword [ebp - 0x14], edx
test eax, eax
jle 0x4758f2
jmp 0x475850
cmp dword [0x6df508], 0x10
mov ecx, 0x6df4f4
movzx eax, byte [ebp + edx - 0x18]
cmovae ecx, dword [0x6df4f4]
mov al, byte [eax + ecx]
mov ecx, dword [edi + 0x10]
mov byte [ebp - 0xd], al
or eax, 0xffffffff
sub eax, ecx
cmp eax, 1
jbe 0x4757fb
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x4757fb
mov eax, dword [edi + 0x14]
cmp eax, esi
jae 0x4758ab
push ecx
push esi
mov ecx, edi
call fcn.00404cf0
mov edx, dword [ebp - 0x14]
test esi, esi
je 0x4758e3
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x4758c5
mov eax, dword [edi]
jmp 0x4758c7
test esi, esi
jne 0x47589e
mov dword [edi + 0x10], esi
cmp eax, 0x10
jb 0x4758be
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x4758e3
mov eax, edi
mov byte [eax], 0
jmp 0x4758e3
mov eax, edi
mov dl, byte [ebp - 0xd]
mov byte [eax + ecx], dl
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x4758da
mov eax, dword [edi]
jmp 0x4758dc
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 0x475850
cmp ebx, 3
jge 0x47596e
mov ecx, dword [edi + 0x10]
or eax, 0xffffffff
sub eax, ecx
inc ebx
cmp eax, 1
jbe 0x4757fb
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x4757fb
mov eax, dword [edi + 0x14]
cmp eax, esi
jae 0x475936
push ecx
push esi
mov ecx, edi
call fcn.00404cf0
test esi, esi
je 0x475969
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x475950
mov eax, dword [edi]
jmp 0x475952
test esi, esi
jne 0x475929
mov dword [edi + 0x10], esi
cmp eax, 0x10
jb 0x475949
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x475969
mov eax, edi
mov byte [eax], 0
jmp 0x475969
mov eax, edi
mov byte [ecx + eax], 0x3d
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x475963
mov eax, dword [edi]
jmp 0x475965
mov eax, edi
mov byte [esi + eax], 0
cmp ebx, 3
jl 0x4758f7
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