Function at 0x4ece20
Capabilities:
Encode data using base64

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
lea rax, [rsp - 8]
cmp rax, qword [rcx + 0x10]
jbe 0x4ed3ee
sub rsp, 0x88
mov qword [rsp + 0x80], rbp
lea rbp, [rsp + 0x80]
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xa8]
lea rdx, [rcx + rax]
shr rdx, 1
mov qword [rsp + 0x78], rdx
mov rbx, rcx
sub rcx, rax
mov qword [rsp + 0x70], rcx
cmp rcx, 0x28
jg 0x4ed2fd
mov rcx, qword [rsp + 0x90]
mov qword [rsp], rcx
mov rsi, qword [rsp + 0x98]
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rax
mov qword [rsp + 0x18], rdx
lea rdi, [rbx - 1]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x20], rdi
call fcn.004ecd00
mov rax, qword [rsp + 0xa0]
lea rcx, [rax + 1]
jmp 0x4ecedc
mov rbx, qword [rsp + 0x48]
lea rcx, [rbx + 1]
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x48], rcx
mov rbx, qword [rsp + 0x40]
cmp rcx, rbx
jge 0x4ed2f3
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov rdx, qword [rsp + 0x90]
mov rbx, qword [rdx]
call rbx
lea rax, [rsp + 0x10]
cmp byte [rax], 0
jne 0x4ececb
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
jmp 0x4ecff2
mov rbx, qword [rsp + 0x60]
lea rdx, [rbx + 1]
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdx
cmp rdx, rcx
jge 0x4ecf61
mov rax, qword [rsp + 0xa0]
mov qword [rsp], rax
mov qword [rsp + 8], rdx
mov rcx, qword [rsp + 0x90]
mov rbx, qword [rcx]
mov rdx, rcx
call rbx
lea rax, [rsp + 0x10]
cmp byte [rax], 0
je 0x4ecf1e
mov rcx, qword [rsp + 0x68]
jmp 0x4ecf6d
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x68], rcx
mov rbx, qword [rsp + 0x60]
cmp rbx, rcx
jge 0x4ed2e6
mov rax, qword [rsp + 0xa0]
mov qword [rsp], rax
lea rbx, [rcx - 1]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 8], rbx
mov rdx, qword [rsp + 0x90]
mov rsi, qword [rdx]
call rsi
lea rax, [rsp + 0x10]
cmp byte [rax], 0
jne 0x4ecf68
mov rcx, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
cmp rcx, rbx
jge 0x4ecffc
mov qword [rsp], rcx
lea rax, [rbx - 1]
mov qword [rsp + 0x68], rax
mov qword [rsp + 8], rax
mov rdx, qword [rsp + 0x98]
mov rbx, qword [rdx]
call rbx
mov rax, qword [rsp + 0x60]
lea rdx, [rax + 1]
lea rax, [rsp + 0x10]
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x68], rcx
jmp 0x4ecf2c
mov rsi, qword [rsp + 0xa8]
sub rsi, rbx
cmp rsi, 5
jge 0x4ed164
mov edx, 1
mov qword [rsp + 0x40], rbx
test dl, dl
je 0x4ed15f
mov rdx, qword [rsp + 0x48]
jmp 0x4ed104
mov rdx, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x48], rcx
cmp rdx, rcx
jge 0x4ed077
lea rax, [rcx - 1]
mov qword [rsp + 0x70], rax
mov qword [rsp], rax
mov rbx, qword [rsp + 0xa0]
mov qword [rsp + 8], rbx
mov rdx, qword [rsp + 0x90]
mov rsi, qword [rdx]
call rsi
lea rax, [rsp + 0x10]
cmp byte [rax], 0
je 0x4ed02d
mov rcx, qword [rsp + 0x50]
jmp 0x4ed087
mov rbx, qword [rsp + 0x50]
lea rcx, [rbx + 1]
mov qword [rsp + 0x50], rcx
mov rbx, qword [rsp + 0x48]
cmp rcx, rbx
jge 0x4ed0cb
mov qword [rsp], rcx
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 8], rax
mov rdx, qword [rsp + 0x90]
mov rbx, qword [rdx]
call rbx
lea rax, [rsp + 0x10]
cmp byte [rax], 0
jne 0x4ed07e
mov rcx, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
cmp rcx, rbx
jge 0x4ed10e
mov qword [rsp], rcx
lea rax, [rbx - 1]
mov qword [rsp + 0x48], rax
mov qword [rsp + 8], rax
mov rdx, qword [rsp + 0x98]
mov rbx, qword [rdx]
call rbx
mov rax, qword [rsp + 0x50]
lea rdx, [rax + 1]
lea rax, [rsp + 0x10]
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x50], rdx
jmp 0x4ed03c
mov rax, qword [rsp + 0xa0]
mov qword [rsp], rax
lea rax, [rbx - 1]
mov qword [rsp + 0x70], rax
mov qword [rsp + 8], rax
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rdx]
call rcx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xb8], rax
mov rbp, qword [rsp + 0x80]
add rsp, 0x88
ret
mov rbx, rcx
jmp 0x4ed10e
setl dil
mov r8, qword [rsp + 0x70]
mov r9, r8
sar r8, 0x3f
shr r8, 0x3e
add r8, r9
sar r8, 2
cmp rsi, r8
jl 0x4ed18b
mov edx, edi
jmp 0x4ed016
mov rax, qword [rsp + 0xa0]
mov qword [rsp], rax
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 8], rcx
mov rdx, qword [rsp + 0x90]
mov rbx, qword [rdx]
call rbx
movzx eax, byte [rsp + 0x10]
mov byte [rsp + 0x2f], al
test al, al
je 0x4ed2b8
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x40], rcx
mov rax, qword [rsp + 0x60]
lea rbx, [rax - 1]
mov qword [rsp + 0x70], rbx
mov qword [rsp], rbx
mov rsi, qword [rsp + 0xa0]
mov qword [rsp + 8], rsi
mov rdx, qword [rsp + 0x90]
mov rdi, qword [rdx]
call rdi
movzx eax, byte [rsp + 0x2f]
xor eax, 1
movzx eax, al
lea rcx, [rsp + 0x10]
cmp byte [rcx], 0
je 0x4ed2ab
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x78]
mov qword [rsp], rcx
mov rbx, qword [rsp + 0xa0]
mov qword [rsp + 8], rbx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsi]
mov rdx, rsi
call rdi
lea rax, [rsp + 0x10]
cmp byte [rax], 0
je 0x4ed26e
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x70]
cmp rcx, 1
setg sil
mov rcx, rdx
mov rbx, qword [rsp + 0x40]
mov edx, esi
jmp 0x4ed016
mov rax, qword [rsp + 0x78]
mov qword [rsp], rax
mov rax, qword [rsp + 0x70]
dec rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 8], rax
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rdx]
call rcx
mov rax, qword [rsp + 0x38]
lea rcx, [rax + 1]
lea rax, [rsp + 0x10]
mov rdx, qword [rsp + 0x70]
jmp 0x4ed257
inc rax
mov rdx, qword [rsp + 0x70]
jmp 0x4ed213
mov rax, qword [rsp + 0x68]
mov qword [rsp], rax
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 8], rcx
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rdx]
call rcx
mov rax, qword [rsp + 0x68]
lea rcx, [rax + 1]
jmp 0x4ed1c4
mov rcx, rbx
mov rbx, qword [rsp + 0x68]
jmp 0x4ecfbe
lea rax, [rsp + 0x10]
jmp 0x4ecf0f
mov rdx, qword [rsp + 0x90]
mov qword [rsp], rdx
mov rbx, qword [rsp + 0x98]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rax
mov rsi, rcx
sar rcx, 0x3f
shr rcx, 0x3d
add rcx, rsi
sar rcx, 3
mov qword [rsp + 0x30], rcx
lea rdi, [rcx + rax]
mov qword [rsp + 0x18], rdi
lea rdi, [rax + rcx*2]
mov qword [rsp + 0x20], rdi
call fcn.004ecd00
mov rax, qword [rsp + 0x90]
mov qword [rsp], rax
mov rcx, qword [rsp + 0x98]
mov qword [rsp + 8], rcx
mov rdx, qword [rsp + 0x78]
mov qword [rsp + 0x10], rdx
mov rbx, qword [rsp + 0x30]
mov rsi, rdx
sub rdx, rbx
mov qword [rsp + 0x18], rdx
lea rdx, [rsi + rbx]
mov qword [rsp + 0x20], rdx
call fcn.004ecd00
mov rax, qword [rsp + 0x90]
mov qword [rsp], rax
mov rcx, qword [rsp + 0x98]
mov qword [rsp + 8], rcx
mov rdx, qword [rsp + 0xa8]
lea rbx, [rdx - 1]
mov qword [rsp + 0x10], rbx
mov rsi, qword [rsp + 0x30]
mov rdi, rbx
sub rbx, rsi
mov qword [rsp + 0x18], rbx
shl rsi, 1
sub rdi, rsi
mov qword [rsp + 0x20], rdi
call fcn.004ecd00
mov rax, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0x78]
mov rbx, qword [rsp + 0xa8]
jmp 0x4ece87
call fcn.004559e0
jmp fcn.004ece20