Function at 0x4015b0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453b49
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, ecx
mov dword [ebp - 0x20], 0
push edi
mov dword [ebp - 0x28], ebx
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 1
test eax, eax
je 0x4018bf
push esi
dec eax
mov dword [ebp + 8], eax
mov al, byte [edx]
inc edx
mov byte [ebp + edi - 0x14], al
inc edi
mov ah, byte [ebp - 0x12]
mov ch, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edx
mov byte [ebp - 0x10], ah
mov byte [ebp - 0xe], ch
mov byte [ebp - 0xf], cl
cmp edi, 3
jne 0x401719
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 edi, edi
jmp 0x401670
cmp dword [0x4679e0], 0x10
mov ecx, 0x4679cc
movzx eax, byte [ebp + edi - 0x18]
cmovae ecx, dword [0x4679cc]
mov dl, byte [eax + ecx]
or eax, 0xffffffff
mov ecx, dword [ebx + 0x10]
sub eax, ecx
mov byte [ebp - 0xd], dl
cmp eax, 1
jbe 0x401759
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x401759
mov eax, dword [ebx + 0x14]
cmp eax, esi
jae 0x4016cf
push ecx
push esi
mov ecx, ebx
call fcn.004024f0
mov dl, byte [ebp - 0xd]
test esi, esi
je 0x401701
cmp dword [ebx + 0x14], 0x10
mov ecx, dword [ebx + 0x10]
jb 0x4016e9
mov eax, dword [ebx]
jmp 0x4016eb
test esi, esi
jne 0x4016c2
mov dword [ebx + 0x10], esi
cmp eax, 0x10
jb 0x4016e2
mov eax, dword [ebx]
mov byte [eax], 0
jmp 0x401701
mov eax, ebx
mov byte [eax], 0
jmp 0x401701
mov eax, ebx
mov byte [eax + ecx], dl
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], esi
jb 0x4016fb
mov eax, dword [ebx]
jmp 0x4016fd
mov eax, ebx
mov byte [eax + esi], 0
inc edi
cmp edi, 4
jl 0x401670
mov edx, dword [ebp - 0x24]
xor edi, edi
mov ch, byte [ebp - 0xe]
mov cl, byte [ebp - 0xf]
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp + 8]
test eax, eax
jne 0x401606
test edi, edi
je 0x4018be
cmp edi, 3
jge 0x401763
mov ecx, 3
lea edx, [ebp - 0x14]
sub ecx, edi
add edi, edx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dl, byte [ebp - 0x12]
mov ch, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov edi, dword [ebp - 0x1c]
jmp 0x401766
push str.string_too_long
call fcn.00431b7f
mov dl, byte [ebp - 0x10]
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, [edi + 1]
mov dword [ebp - 0x14], edx
test eax, eax
jle 0x401842
cmp dword [0x4679e0], 0x10
mov ecx, 0x4679cc
movzx eax, byte [ebp + edx - 0x18]
cmovae ecx, dword [0x4679cc]
mov al, byte [eax + ecx]
mov ecx, dword [ebx + 0x10]
mov byte [ebp + 0xb], al
or eax, 0xffffffff
sub eax, ecx
cmp eax, 1
jbe 0x401759
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x401759
mov eax, dword [ebx + 0x14]
cmp eax, esi
jae 0x4017fb
push ecx
push esi
mov ecx, ebx
call fcn.004024f0
mov edx, dword [ebp - 0x14]
test esi, esi
je 0x401833
cmp dword [ebx + 0x14], 0x10
mov ecx, dword [ebx + 0x10]
jb 0x401815
mov eax, dword [ebx]
jmp 0x401817
test esi, esi
jne 0x4017ee
mov dword [ebx + 0x10], esi
cmp eax, 0x10
jb 0x40180e
mov eax, dword [ebx]
mov byte [eax], 0
jmp 0x401833
mov eax, ebx
mov byte [eax], 0
jmp 0x401833
mov eax, ebx
mov dl, byte [ebp + 0xb]
mov byte [eax + ecx], dl
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], esi
jb 0x40182a
mov eax, dword [ebx]
jmp 0x40182c
mov eax, ebx
mov edx, dword [ebp - 0x14]
mov byte [eax + esi], 0
inc edx
lea eax, [edi + 1]
mov dword [ebp - 0x14], edx
cmp edx, eax
jl 0x4017a4
cmp edi, 3
jge 0x4018be
mov ecx, dword [ebx + 0x10]
or eax, 0xffffffff
sub eax, ecx
inc edi
cmp eax, 1
jbe 0x401759
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x401759
mov eax, dword [ebx + 0x14]
cmp eax, esi
jae 0x401886
push ecx
push esi
mov ecx, ebx
call fcn.004024f0
test esi, esi
je 0x4018b9
cmp dword [ebx + 0x14], 0x10
mov ecx, dword [ebx + 0x10]
jb 0x4018a0
mov eax, dword [ebx]
jmp 0x4018a2
test esi, esi
jne 0x401879
mov dword [ebx + 0x10], esi
cmp eax, 0x10
jb 0x401899
mov eax, dword [ebx]
mov byte [eax], 0
jmp 0x4018b9
mov eax, ebx
mov byte [eax], 0
jmp 0x4018b9
mov eax, ebx
mov byte [ecx + eax], 0x3d
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], esi
jb 0x4018b3
mov eax, dword [ebx]
jmp 0x4018b5
mov eax, ebx
mov byte [esi + eax], 0
cmp edi, 3
jl 0x401847
pop esi
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret