Function at 0x4a6a10
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x9e94a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push esi
push edi
xor edi, edi
push 0x40
lea eax, [ebp - 0x77]
push edi
push eax
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x78], 0
call fcn.00981700
add esp, 0xc
xor eax, eax
lea ecx, [eax + 0x41]
mov byte [ebp + eax - 0x78], cl
inc eax
cmp eax, 0x1a
jl 0x4a6a48
xor eax, eax
lea edx, [eax + 0x61]
mov byte [ebp + eax - 0x5e], dl
inc eax
cmp eax, 0x1a
jl 0x4a6a57
xor eax, eax
lea ecx, [eax + 0x30]
mov byte [ebp + eax - 0x44], cl
inc eax
cmp eax, 0xa
jl 0x4a6a66
mov word [ebp - 0x3a], 0x2f2b
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x34], 0
xor ebx, ebx
mov dword [ebp - 4], edi
cmp dword [ebp + 0x10], edi
je 0x4a6cc6
mov eax, dword [ebp + 0xc]
movzx edx, byte [eax]
dec dword [ebp + 0x10]
mov byte [ebp + ebx - 0x10], dl
mov dl, byte [ebp - 0xf]
inc ebx
inc eax
mov dword [ebp + 0xc], eax
cmp ebx, 3
jne 0x4a6b67
mov al, byte [ebp - 0x10]
mov cl, al
shr cl, 2
and al, 3
mov byte [ebp - 0x14], cl
shl al, 4
mov cl, dl
shr cl, 4
add al, cl
mov byte [ebp - 0x13], al
mov al, dl
and al, 0xf
add al, al
lea ecx, [eax + eax]
mov al, byte [ebp - 0xe]
mov bl, al
shr bl, 6
and al, 0x3f
mov byte [ebp - 0x11], al
add ecx, ebx
mov byte [ebp - 0x12], cl
xor ecx, ecx
mov dword [ebp - 0x18], ecx
lea ecx, [ecx]
movzx eax, byte [ebp + ecx - 0x14]
mov bl, byte [ebp + eax - 0x78]
or eax, 0xffffffff
sub eax, edi
cmp eax, 1
jbe 0x4a6d52
lea esi, [edi + 1]
cmp esi, 0xfffffffe
ja 0x4a6d52
mov eax, dword [ebp - 0x20]
cmp eax, esi
jae 0x4a6d34
push edi
push esi
lea ecx, [ebp - 0x34]
call fcn.004789a0
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov dl, byte [ebp - 0xf]
mov ecx, dword [ebp - 0x18]
test esi, esi
je 0x4a6b5c
cmp eax, 0x10
mov eax, dword [ebp - 0x34]
jae 0x4a6b43
lea eax, [ebp - 0x34]
mov byte [eax + edi], bl
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x24], esi
jae 0x4a6b55
lea eax, [ebp - 0x34]
mov byte [eax + esi], 0
mov edi, dword [ebp - 0x24]
inc ecx
mov dword [ebp - 0x18], ecx
cmp ecx, 4
jl 0x4a6af0
xor ebx, ebx
cmp dword [ebp + 0x10], 0
jne 0x4a6a95
test ebx, ebx
je 0x4a6cc6
cmp ebx, 3
jge 0x4a6b98
mov ecx, 3
sub ecx, ebx
push ecx
lea eax, [ebp + ebx - 0x10]
push 0
push eax
call fcn.00981700
mov dl, byte [ebp - 0xf]
add esp, 0xc
mov al, byte [ebp - 0x10]
mov cl, al
shr cl, 2
and al, 3
mov byte [ebp - 0x14], cl
mov cl, dl
shl al, 4
shr cl, 4
add al, cl
mov byte [ebp - 0x13], al
mov al, byte [ebp - 0xe]
and dl, 0xf
mov cl, al
add dl, dl
and al, 0x3f
add dl, dl
shr cl, 6
mov byte [ebp - 0x11], al
add dl, cl
lea eax, [ebx + 1]
mov byte [ebp - 0x12], dl
mov dword [ebp + 0xc], 0
test eax, eax
jle 0x4a6c5d
lea ecx, [ecx]
mov edx, dword [ebp + 0xc]
movzx eax, byte [ebp + edx - 0x14]
mov cl, byte [ebp + eax - 0x78]
or edx, 0xffffffff
sub edx, edi
mov byte [ebp + 0x10], cl
cmp edx, 1
jbe 0x4a6d52
lea esi, [edi + 1]
cmp esi, 0xfffffffe
ja 0x4a6d52
mov eax, dword [ebp - 0x20]
cmp eax, esi
jae 0x4a6d5c
push edi
push esi
lea ecx, [ebp - 0x34]
call fcn.004789a0
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
test esi, esi
je 0x4a6c4f
cmp eax, 0x10
mov eax, dword [ebp - 0x34]
jae 0x4a6c33
lea eax, [ebp - 0x34]
mov cl, byte [ebp + 0x10]
mov byte [eax + edi], cl
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x24], esi
jae 0x4a6c48
lea eax, [ebp - 0x34]
mov byte [eax + esi], 0
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp + 0xc]
inc eax
lea ecx, [ebx + 1]
mov dword [ebp + 0xc], eax
cmp eax, ecx
jl 0x4a6be0
cmp ebx, 3
jge 0x4a6cc6
or edx, 0xffffffff
sub edx, edi
inc ebx
cmp edx, 1
jbe 0x4a6d52
lea esi, [edi + 1]
cmp esi, 0xfffffffe
ja 0x4a6d52
mov eax, dword [ebp - 0x20]
cmp eax, esi
jae 0x4a6d7a
push edi
push esi
lea ecx, [ebp - 0x34]
call fcn.004789a0
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
test esi, esi
je 0x4a6cc1
cmp eax, 0x10
mov eax, dword [ebp - 0x34]
jae 0x4a6ca7
lea eax, [ebp - 0x34]
mov byte [eax + edi], 0x3d
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x24], esi
jae 0x4a6cba
lea eax, [ebp - 0x34]
mov byte [esi + eax], 0
mov edi, dword [ebp - 0x24]
cmp ebx, 3
jl 0x4a6c62
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x34]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp esi, eax
je 0x4a6dab
cmp dword [esi + 0x14], 0x10
jb 0x4a6cf6
mov ecx, dword [esi]
push ecx
call fcn.00981a4c
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp dword [ebp - 0x20], 0x10
jae 0x4a6d98
mov edx, dword [ebp - 0x24]
inc edx
push edx
lea eax, [ebp - 0x34]
push eax
push esi
call fcn.009821f0
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], eax
jmp 0x4a6dbd
test esi, esi
jne 0x4a6b38
cmp eax, 0x10
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x24], esi
jae 0x4a6d4a
lea eax, [ebp - 0x34]
mov byte [eax], 0
jmp 0x4a6b59
push str.string_too_long
call fcn.00993bf4
test esi, esi
jne 0x4a6c28
cmp eax, 0x10
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x24], esi
jae 0x4a6d72
lea eax, [ebp - 0x34]
mov byte [eax], 0
jmp 0x4a6c4c
test esi, esi
jne 0x4a6c9c
cmp eax, 0x10
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x24], esi
jae 0x4a6d90
lea eax, [ebp - 0x34]
mov byte [eax], 0
jmp 0x4a6cbe
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov dword [esi], ecx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], eax
jmp 0x4a6dbd
cmp dword [ebp - 0x20], 0x10
jb 0x4a6dbd
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00981a4c
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc