Function at 0x140005500
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x28]
sub rsp, 0x128
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov r15d, r8d
mov r14, rdx
mov rbx, rcx
xor edi, edi
mov dword [rsp + 0x20], edi
mov qword [rcx + 0x18], 0xf
mov qword [rcx + 0x10], rdi
mov byte [rcx], dil
mov dword [rsp + 0x20], 1
lea rcx, [rsp + 0x50]
call fcn.140004ef0
mov qword [rsp + 0x40], 0xf
mov qword [rsp + 0x38], rdi
mov byte [rsp + 0x28], dil
cmp byte [rax], dil
jne 0x140005573
mov r8d, edi
jmp 0x14000558a
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140005580
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140003f90
nop
lea rdi, [rsp + 0x50]
xor eax, eax
mov ecx, 0x41
rep stosb byte [rdi], al
lea rdi, [rbp - 0x6e]
mov ecx, 0x82
rep stosb byte [rdi], al
xor esi, esi
test r15d, r15d
je 0x14000594a
xor ecx, ecx
nop
dec r15d
movzx eax, byte [r14]
mov byte [rbp + rcx + 0x80], al
inc esi
inc rcx
inc r14
mov qword [rbp + 0x78], r14
movzx edx, byte [rbp + 0x82]
movzx r12d, byte [rbp + 0x81]
movzx r13d, byte [rbp + 0x80]
cmp rcx, 3
jne 0x140005710
movzx eax, r13b
shr al, 2
mov byte [rbp + 0x88], al
movzx ecx, r13b
and cl, 3
shl cl, 4
movzx eax, r12b
shr al, 4
add cl, al
mov byte [rbp + 0x89], cl
movzx ecx, r12b
and cl, 0xf
shl cl, 2
movzx eax, dl
shr al, 6
add cl, al
mov byte [rbp + 0x8a], cl
movzx eax, dl
and al, 0x3f
mov byte [rbp + 0x8b], al
xor esi, esi
nop word [rax + rax]
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rcx, qword [rsp + 0x28]
movzx eax, byte [rbp + rsi + 0x88]
movzx r14d, byte [rax + rcx]
mov r8, qword [rbx + 0x10]
or rax, 0xffffffffffffffff
sub rax, r8
cmp rax, 1
jbe 0x140005727
lea rdi, [r8 + 1]
cmp rdi, 0xfffffffffffffffe
ja 0x14000571a
mov rax, qword [rbx + 0x18]
cmp rax, rdi
jae 0x1400056a7
mov rdx, rdi
mov rcx, rbx
call fcn.140003c80
jmp 0x1400056c1
test rdi, rdi
jne 0x1400056c6
mov qword [rbx + 0x10], rdi
cmp rax, 0x10
jb 0x1400056bb
mov rax, qword [rbx]
jmp 0x1400056be
mov rax, rbx
mov byte [rax], 0
test rdi, rdi
je 0x1400056f4
mov rcx, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x1400056d6
mov rax, qword [rbx]
jmp 0x1400056d9
mov rax, rbx
mov byte [rax + rcx], r14b
mov qword [rbx + 0x10], rdi
cmp qword [rbx + 0x18], 0x10
jb 0x1400056ed
mov rax, qword [rbx]
jmp 0x1400056f0
mov rax, rbx
mov byte [rax + rdi], 0
inc rsi
cmp rsi, 4
jl 0x140005650
xor esi, esi
xor ecx, ecx
mov r14, qword [rbp + 0x78]
movzx edx, byte [rbp + 0x82]
test r15d, r15d
je 0x140005734
jmp 0x1400055c0
lea rcx, str.string_too_long
call fcn.1400cd464
int3
lea rcx, str.string_too_long
call fcn.1400cd464
int3
test esi, esi
je 0x14000594a
cmp esi, 3
jge 0x140005773
mov eax, 3
sub eax, esi
movsxd rcx, eax
movsxd rax, esi
lea rdi, [rbp + 0x80]
add rdi, rax
xor eax, eax
rep stosb byte [rdi], al
movzx edx, byte [rbp + 0x82]
movzx r12d, byte [rbp + 0x81]
movzx r13d, byte [rbp + 0x80]
movzx eax, r13b
shr al, 2
mov byte [rbp + 0x88], al
and r13b, 3
shl r13b, 4
movzx eax, r12b
shr al, 4
add r13b, al
mov byte [rbp + 0x89], r13b
and r12b, 0xf
shl r12b, 2
movzx eax, dl
shr al, 6
add r12b, al
mov byte [rbp + 0x8a], r12b
and dl, 0x3f
mov byte [rbp + 0x8b], dl
xor r14d, r14d
lea r13d, [rsi + 1]
test r13d, r13d
jle 0x140005898
lea r15, [rbp + 0x88]
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rcx, qword [rsp + 0x28]
movzx eax, byte [r15]
movzx r12d, byte [rax + rcx]
mov r8, qword [rbx + 0x10]
or rax, 0xffffffffffffffff
sub rax, r8
cmp rax, 1
jbe 0x14000588b
lea rdi, [r8 + 1]
cmp rdi, 0xfffffffffffffffe
ja 0x14000587e
mov rax, qword [rbx + 0x18]
cmp rax, rdi
jae 0x140005820
mov rdx, rdi
mov rcx, rbx
call fcn.140003c80
jmp 0x14000583a
test rdi, rdi
jne 0x14000583f
mov qword [rbx + 0x10], rdi
cmp rax, 0x10
jb 0x140005834
mov rax, qword [rbx]
jmp 0x140005837
mov rax, rbx
mov byte [rax], 0
test rdi, rdi
je 0x14000586d
mov rcx, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x14000584f
mov rax, qword [rbx]
jmp 0x140005852
mov rax, rbx
mov byte [rax + rcx], r12b
mov qword [rbx + 0x10], rdi
cmp qword [rbx + 0x18], 0x10
jb 0x140005866
mov rax, qword [rbx]
jmp 0x140005869
mov rax, rbx
mov byte [rax + rdi], 0
inc r14d
inc r15
cmp r14d, r13d
jl 0x1400057d1
jmp 0x140005898
lea rcx, str.string_too_long
call fcn.1400cd464
int3
lea rcx, str.string_too_long
call fcn.1400cd464
int3
cmp esi, 3
jge 0x14000594a
inc esi
mov r8, qword [rbx + 0x10]
or rax, 0xffffffffffffffff
sub rax, r8
cmp rax, 1
jbe 0x14000593d
lea rdi, [r8 + 1]
cmp rdi, 0xfffffffffffffffe
ja 0x140005930
mov rax, qword [rbx + 0x18]
cmp rax, rdi
jae 0x1400058d8
mov rdx, rdi
mov rcx, rbx
call fcn.140003c80
jmp 0x1400058f2
test rdi, rdi
jne 0x1400058f7
mov qword [rbx + 0x10], rdi
cmp rax, 0x10
jb 0x1400058ec
mov rax, qword [rbx]
jmp 0x1400058ef
mov rax, rbx
mov byte [rax], 0
test rdi, rdi
je 0x140005925
mov rcx, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140005907
mov rax, qword [rbx]
jmp 0x14000590a
mov rax, rbx
mov byte [rcx + rax], 0x3d
mov qword [rbx + 0x10], rdi
cmp qword [rbx + 0x18], 0x10
jb 0x14000591e
mov rax, qword [rbx]
jmp 0x140005921
mov rax, rbx
mov byte [rdi + rax], 0
cmp esi, 3
jl 0x1400058a1
jmp 0x14000594a
lea rcx, str.string_too_long
call fcn.1400cd464
int3
lea rcx, str.string_too_long
call fcn.1400cd464
nop
cmp qword [rsp + 0x40], 0x10
jb 0x14000595c
mov rcx, qword [rsp + 0x28]
call fcn.1400cd684
mov rax, rbx
add rsp, 0x128
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret