Function at 0x50b510
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x671f99
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x705034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x28], edi
mov dword [edi + 0x10], 0
jb 0x50b56d
mov eax, dword [edi]
jmp 0x50b56f
mov eax, edi
mov byte [eax], 0
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 1
test eax, eax
je 0x50b845
nop dword [eax]
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 - 0x20], edx
mov byte [ebp - 0xd], ah
mov byte [ebp - 0x1a], ch
mov byte [ebp - 0x1b], cl
cmp ebx, 3
jne 0x50b694
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
nop dword [eax]
cmp dword [0x717db0], 0x10
mov eax, 0x717d9c
movzx ecx, byte [ebp + ebx - 0x18]
cmovae eax, dword [0x717d9c]
mov dl, byte [eax + ecx]
mov ecx, dword [edi + 0x10]
mov eax, ecx
not eax
mov byte [ebp - 0x19], dl
cmp eax, 1
jbe 0x50b6c9
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x50b6c9
cmp dword [edi + 0x14], esi
jae 0x50b64c
push ecx
push esi
mov ecx, edi
call fcn.004294ba
mov dl, byte [ebp - 0x19]
test esi, esi
je 0x50b67f
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x50b667
mov eax, dword [edi]
jmp 0x50b669
test esi, esi
jne 0x50b63f
mov dword [edi + 0x10], esi
cmp dword [edi + 0x14], 0x10
jb 0x50b660
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x50b67f
mov eax, edi
mov byte [eax], 0
jmp 0x50b67f
mov eax, edi
mov byte [eax + ecx], dl
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x50b679
mov eax, dword [edi]
jmp 0x50b67b
mov eax, edi
mov byte [eax + esi], 0
inc ebx
cmp ebx, 4
jl 0x50b5f0
mov edx, dword [ebp - 0x20]
xor ebx, ebx
mov ch, byte [ebp - 0x1a]
mov cl, byte [ebp - 0x1b]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x50b590
test ebx, ebx
je 0x50b845
mov eax, ebx
cmp ebx, 3
jge 0x50b6d8
cmp eax, 3
jae 0x50b6d3
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 3
jl 0x50b6b1
mov dl, byte [ebp - 0x12]
mov ch, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
jmp 0x50b6db
push str.string_too_long
call fcn.0060c37c
call fcn.006225c8
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 0x50b7c4
nop dword [eax]
cmp dword [0x717db0], 0x10
mov eax, 0x717d9c
movzx ecx, byte [ebp + edx - 0x18]
cmovae eax, dword [0x717d9c]
mov al, byte [eax + ecx]
mov ecx, dword [edi + 0x10]
mov byte [ebp - 0xd], al
mov eax, ecx
not eax
cmp eax, 1
jbe 0x50b6c9
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x50b6c9
cmp dword [edi + 0x14], esi
jae 0x50b77c
push ecx
push esi
mov ecx, edi
call fcn.004294ba
mov edx, dword [ebp - 0x14]
test esi, esi
je 0x50b7b5
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x50b797
mov eax, dword [edi]
jmp 0x50b799
test esi, esi
jne 0x50b76f
mov dword [edi + 0x10], esi
cmp dword [edi + 0x14], 0x10
jb 0x50b790
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x50b7b5
mov eax, edi
mov byte [eax], 0
jmp 0x50b7b5
mov eax, edi
mov dl, byte [ebp - 0xd]
mov byte [ecx + eax], dl
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x50b7ac
mov eax, dword [edi]
jmp 0x50b7ae
mov eax, edi
mov edx, dword [ebp - 0x14]
mov byte [esi + eax], 0
inc edx
lea eax, [ebx + 1]
mov dword [ebp - 0x14], edx
cmp edx, eax
jl 0x50b720
cmp ebx, 3
jge 0x50b845
nop dword [eax]
mov ecx, dword [edi + 0x10]
inc ebx
mov eax, ecx
not eax
cmp eax, 1
jbe 0x50b6c9
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x50b6c9
cmp dword [edi + 0x14], esi
jae 0x50b80c
push ecx
push esi
mov ecx, edi
call fcn.004294ba
test esi, esi
je 0x50b840
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x50b827
mov eax, dword [edi]
jmp 0x50b829
test esi, esi
jne 0x50b7ff
mov dword [edi + 0x10], esi
cmp dword [edi + 0x14], 0x10
jb 0x50b820
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x50b840
mov eax, edi
mov byte [eax], 0
jmp 0x50b840
mov eax, edi
mov byte [ecx + eax], 0x3d
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x50b83a
mov eax, dword [edi]
jmp 0x50b83c
mov eax, edi
mov byte [eax + esi], 0
cmp ebx, 3
jl 0x50b7d0
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