Function at 0x18000e8c0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov r14d, r8d
mov r15, rdx
mov rdi, rcx
mov dword [rsp + 0x24], 0
mov qword [rcx + 0x10], 0
mov qword [rcx + 0x18], 0
mov qword [rcx + 0x18], 0xf
mov qword [rcx + 0x10], 0
cmp qword [rcx + 0x18], 0x10
jb 0x18000e91f
mov rax, qword [rcx]
jmp 0x18000e922
mov rax, rdi
mov byte [rax], 0
mov dword [rsp + 0x24], 1
xor esi, esi
test r8d, r8d
je 0x18000ecc8
xor ecx, ecx
nop word [rax + rax]
dec r14d
movzx eax, byte [r15]
mov byte [rsp + rcx + 0x88], al
inc esi
inc rcx
inc r15
movzx edx, byte [rsp + 0x8a]
movzx r12d, byte [rsp + 0x89]
movzx r13d, byte [rsp + 0x88]
cmp rcx, 3
jne 0x18000ea7e
movzx eax, r13b
shr al, 2
mov byte [rsp + 0x20], al
movzx ecx, r13b
and cl, 3
shl cl, 4
movzx eax, r12b
shr al, 4
add cl, al
mov byte [rsp + 0x21], cl
movzx ecx, r12b
and cl, 0xf
shl cl, 2
movzx eax, dl
shr al, 6
add cl, al
mov byte [rsp + 0x22], cl
movzx eax, dl
and al, 0x3f
mov byte [rsp + 0x23], al
xor esi, esi
nop dword [rax]
movzx ecx, byte [rsp + rsi + 0x20]
lea rax, [0x1800be1c8]
cmp qword [0x1800be1e0], 0x10
cmovae rax, qword [0x1800be1c8]
movzx ebp, byte [rax + rcx]
mov r8, qword [rdi + 0x10]
mov rax, r8
not rax
cmp rax, 1
jbe 0x18000ea95
lea rbx, [r8 + 1]
cmp rbx, 0xfffffffffffffffe
ja 0x18000ea88
cmp qword [rdi + 0x18], rbx
jae 0x18000ea15
mov rdx, rbx
mov rcx, rdi
call fcn.18000dea0
jmp 0x18000ea32
test rbx, rbx
jne 0x18000ea37
mov qword [rdi + 0x10], rbx
cmp qword [rdi + 0x18], 0x10
jb 0x18000ea2a
mov rax, qword [rdi]
jmp 0x18000ea2d
mov rax, rdi
mov byte [rax], 0
jmp 0x18000ea65
test rbx, rbx
je 0x18000ea65
mov rcx, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x18000ea47
mov rax, qword [rdi]
jmp 0x18000ea4a
mov rax, rdi
mov byte [rax + rcx], bpl
mov qword [rdi + 0x10], rbx
cmp qword [rdi + 0x18], 0x10
jb 0x18000ea5e
mov rax, qword [rdi]
jmp 0x18000ea61
mov rax, rdi
mov byte [rax + rbx], 0
inc rsi
cmp rsi, 4
jl 0x18000e9c0
xor esi, esi
xor ecx, ecx
movzx edx, byte [rsp + 0x8a]
test r14d, r14d
je 0x18000eaa2
jmp 0x18000e940
lea rcx, str.string_too_long
call fcn.18003cdec
int3
lea rcx, str.string_too_long
call fcn.18003cdec
int3
test esi, esi
je 0x18000ecc8
movsxd rax, esi
cmp rax, 3
jge 0x18000eae8
jae 0x18000eae2
mov byte [rsp + rax + 0x88], 0
inc rax
cmp rax, 3
jl 0x18000eab3
movzx edx, byte [rsp + 0x8a]
movzx r12d, byte [rsp + 0x89]
movzx r13d, byte [rsp + 0x88]
jmp 0x18000eae8
call fcn.18003fd68
int3
movzx eax, r13b
shr al, 2
mov byte [rsp + 0x20], al
and r13b, 3
shl r13b, 4
movzx eax, r12b
shr al, 4
add r13b, al
mov byte [rsp + 0x21], r13b
and r12b, 0xf
shl r12b, 2
movzx eax, dl
shr al, 6
add r12b, al
mov byte [rsp + 0x22], r12b
and dl, 0x3f
mov byte [rsp + 0x23], dl
xor ebp, ebp
lea r12d, [rsi + 1]
test r12d, r12d
jle 0x18000ec0b
lea r14, [rsp + 0x20]
nop dword [rax + rax]
movzx ecx, byte [r14]
lea rax, [0x1800be1c8]
cmp qword [0x1800be1e0], 0x10
cmovae rax, qword [0x1800be1c8]
movzx r15d, byte [rax + rcx]
mov r8, qword [rdi + 0x10]
mov rax, r8
not rax
cmp rax, 1
jbe 0x18000ebfe
lea rbx, [r8 + 1]
cmp rbx, 0xfffffffffffffffe
ja 0x18000ebf1
cmp qword [rdi + 0x18], rbx
jae 0x18000eb91
mov rdx, rbx
mov rcx, rdi
call fcn.18000dea0
jmp 0x18000ebae
test rbx, rbx
jne 0x18000ebb3
mov qword [rdi + 0x10], rbx
cmp qword [rdi + 0x18], 0x10
jb 0x18000eba6
mov rax, qword [rdi]
jmp 0x18000eba9
mov rax, rdi
mov byte [rax], 0
jmp 0x18000ebe1
test rbx, rbx
je 0x18000ebe1
mov rcx, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x18000ebc3
mov rax, qword [rdi]
jmp 0x18000ebc6
mov rax, rdi
mov byte [rax + rcx], r15b
mov qword [rdi + 0x10], rbx
cmp qword [rdi + 0x18], 0x10
jb 0x18000ebda
mov rax, qword [rdi]
jmp 0x18000ebdd
mov rax, rdi
mov byte [rax + rbx], 0
inc ebp
inc r14
cmp ebp, r12d
jl 0x18000eb40
jmp 0x18000ec0b
lea rcx, str.string_too_long
call fcn.18003cdec
int3
lea rcx, str.string_too_long
call fcn.18003cdec
int3
cmp esi, 3
jge 0x18000ecc8
nop dword [rax]
nop dword [rax + rax]
inc esi
mov r8, qword [rdi + 0x10]
mov rax, r8
not rax
cmp rax, 1
jbe 0x18000ecbb
lea rbx, [r8 + 1]
cmp rbx, 0xfffffffffffffffe
ja 0x18000ecae
cmp qword [rdi + 0x18], rbx
jae 0x18000ec53
mov rdx, rbx
mov rcx, rdi
call fcn.18000dea0
jmp 0x18000ec70
test rbx, rbx
jne 0x18000ec75
mov qword [rdi + 0x10], rbx
cmp qword [rdi + 0x18], 0x10
jb 0x18000ec68
mov rax, qword [rdi]
jmp 0x18000ec6b
mov rax, rdi
mov byte [rax], 0
jmp 0x18000eca3
test rbx, rbx
je 0x18000eca3
mov rcx, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x18000ec85
mov rax, qword [rdi]
jmp 0x18000ec88
mov rax, rdi
mov byte [rcx + rax], 0x3d
mov qword [rdi + 0x10], rbx
cmp qword [rdi + 0x18], 0x10
jb 0x18000ec9c
mov rax, qword [rdi]
jmp 0x18000ec9f
mov rax, rdi
mov byte [rbx + rax], 0
cmp esi, 3
jl 0x18000ec20
jmp 0x18000ecc8
lea rcx, str.string_too_long
call fcn.18003cdec
int3
lea rcx, str.string_too_long
call fcn.18003cdec
int3
mov rax, rdi
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret