Function at 0x140005450
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.140004da0
mov qword [rsp + 0x40], 0xf
mov qword [rsp + 0x38], rdi
mov byte [rsp + 0x28], dil
cmp byte [rax], dil
jne 0x1400054c3
mov r8d, edi
jmp 0x1400054da
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400054d0
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140003e40
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 0x14000589a
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 0x140005660
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 0x140005677
lea rdi, [r8 + 1]
cmp rdi, 0xfffffffffffffffe
ja 0x14000566a
mov rax, qword [rbx + 0x18]
cmp rax, rdi
jae 0x1400055f7
mov rdx, rdi
mov rcx, rbx
call fcn.140003b30
jmp 0x140005611
test rdi, rdi
jne 0x140005616
mov qword [rbx + 0x10], rdi
cmp rax, 0x10
jb 0x14000560b
mov rax, qword [rbx]
jmp 0x14000560e
mov rax, rbx
mov byte [rax], 0
test rdi, rdi
je 0x140005644
mov rcx, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140005626
mov rax, qword [rbx]
jmp 0x140005629
mov rax, rbx
mov byte [rax + rcx], r14b
mov qword [rbx + 0x10], rdi
cmp qword [rbx + 0x18], 0x10
jb 0x14000563d
mov rax, qword [rbx]
jmp 0x140005640
mov rax, rbx
mov byte [rax + rdi], 0
inc rsi
cmp rsi, 4
jl 0x1400055a0
xor esi, esi
xor ecx, ecx
mov r14, qword [rbp + 0x78]
movzx edx, byte [rbp + 0x82]
test r15d, r15d
je 0x140005684
jmp 0x140005510
lea rcx, str.string_too_long
call fcn.1400cc2e8
int3
lea rcx, str.string_too_long
call fcn.1400cc2e8
int3
test esi, esi
je 0x14000589a
cmp esi, 3
jge 0x1400056c3
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 0x1400057e8
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 0x1400057db
lea rdi, [r8 + 1]
cmp rdi, 0xfffffffffffffffe
ja 0x1400057ce
mov rax, qword [rbx + 0x18]
cmp rax, rdi
jae 0x140005770
mov rdx, rdi
mov rcx, rbx
call fcn.140003b30
jmp 0x14000578a
test rdi, rdi
jne 0x14000578f
mov qword [rbx + 0x10], rdi
cmp rax, 0x10
jb 0x140005784
mov rax, qword [rbx]
jmp 0x140005787
mov rax, rbx
mov byte [rax], 0
test rdi, rdi
je 0x1400057bd
mov rcx, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x14000579f
mov rax, qword [rbx]
jmp 0x1400057a2
mov rax, rbx
mov byte [rax + rcx], r12b
mov qword [rbx + 0x10], rdi
cmp qword [rbx + 0x18], 0x10
jb 0x1400057b6
mov rax, qword [rbx]
jmp 0x1400057b9
mov rax, rbx
mov byte [rax + rdi], 0
inc r14d
inc r15
cmp r14d, r13d
jl 0x140005721
jmp 0x1400057e8
lea rcx, str.string_too_long
call fcn.1400cc2e8
int3
lea rcx, str.string_too_long
call fcn.1400cc2e8
int3
cmp esi, 3
jge 0x14000589a
inc esi
mov r8, qword [rbx + 0x10]
or rax, 0xffffffffffffffff
sub rax, r8
cmp rax, 1
jbe 0x14000588d
lea rdi, [r8 + 1]
cmp rdi, 0xfffffffffffffffe
ja 0x140005880
mov rax, qword [rbx + 0x18]
cmp rax, rdi
jae 0x140005828
mov rdx, rdi
mov rcx, rbx
call fcn.140003b30
jmp 0x140005842
test rdi, rdi
jne 0x140005847
mov qword [rbx + 0x10], rdi
cmp rax, 0x10
jb 0x14000583c
mov rax, qword [rbx]
jmp 0x14000583f
mov rax, rbx
mov byte [rax], 0
test rdi, rdi
je 0x140005875
mov rcx, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140005857
mov rax, qword [rbx]
jmp 0x14000585a
mov rax, rbx
mov byte [rcx + rax], 0x3d
mov qword [rbx + 0x10], rdi
cmp qword [rbx + 0x18], 0x10
jb 0x14000586e
mov rax, qword [rbx]
jmp 0x140005871
mov rax, rbx
mov byte [rdi + rax], 0
cmp esi, 3
jl 0x1400057f1
jmp 0x14000589a
lea rcx, str.string_too_long
call fcn.1400cc2e8
int3
lea rcx, str.string_too_long
call fcn.1400cc2e8
nop
cmp qword [rsp + 0x40], 0x10
jb 0x1400058ac
mov rcx, qword [rsp + 0x28]
call fcn.1400cc508
mov rax, rbx
add rsp, 0x128
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret