Function at 0x140022de0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1400a7040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r13, rdx
mov rbx, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x28], 0
mov r14, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x140022e28
mov r14, qword [rdx]
mov ebp, dword [rdx + 0x10]
mov qword [rcx], 0
mov qword [rcx + 0x10], 0
mov qword [rcx + 0x18], select
mov byte [rcx], 0
mov dword [rsp + 0x28], 1
xor esi, esi
test ebp, ebp
je 0x14002306a
xor ecx, ecx
nop dword [rax]
dec ebp
movzx eax, byte [r14]
mov byte [rsp + rcx + 0x20], al
inc esi
inc rcx
lea r14, [r14 + 1]
movzx edx, byte [rsp + 0x22]
movzx r15d, byte [rsp + 0x21]
movzx r12d, byte [rsp + 0x20]
cmp rcx, 3
jne 0x140022f38
movzx eax, r12b
shr al, 2
mov byte [rsp + 0x24], al
movzx ecx, r12b
and cl, 3
shl cl, 4
movzx eax, r15b
shr al, 4
add cl, al
mov byte [rsp + 0x25], cl
movzx ecx, r15b
and cl, 0xf
shl cl, 2
movzx eax, dl
shr al, 6
add cl, al
mov byte [rsp + 0x26], cl
movzx eax, dl
and al, 0x3f
mov byte [rsp + 0x27], al
xor edi, edi
lea rcx, [0x1400bfff8]
cmp qword [0x1400c0010], 0x10
cmovae rcx, qword [0x1400bfff8]
movzx eax, byte [rsp + rdi + 0x24]
movzx r9d, byte [rax + rcx]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x140022f1e
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x140022f13
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140022f26
mov rcx, rbx
call fcn.140018330
inc rdi
cmp rdi, 4
jl 0x140022ed1
xor esi, esi
xor ecx, ecx
movzx edx, byte [rsp + 0x22]
test ebp, ebp
jne 0x140022e60
test esi, esi
je 0x14002306a
movsxd rax, esi
cmp rax, 3
jge 0x140022f76
jae 0x1400230de
mov byte [rsp + rax + 0x20], 0
inc rax
cmp rax, 3
jl 0x140022f51
movzx edx, byte [rsp + 0x22]
movzx r15d, byte [rsp + 0x21]
movzx r12d, byte [rsp + 0x20]
movzx eax, r12b
shr al, 2
mov byte [rsp + 0x24], al
and r12b, 3
shl r12b, 4
movzx eax, r15b
shr al, 4
add r12b, al
mov byte [rsp + 0x25], r12b
and r15b, 0xf
shl r15b, 2
shr dl, 6
add r15b, dl
mov byte [rsp + 0x26], r15b
lea eax, [rsi + 1]
movsxd rbp, eax
test eax, eax
jle 0x14002301d
xor edi, edi
nop word [rax + rax]
lea rcx, [0x1400bfff8]
cmp qword [0x1400c0010], 0x10
cmovae rcx, qword [0x1400bfff8]
movzx eax, byte [rsp + rdi + 0x24]
movzx r9d, byte [rax + rcx]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x14002300d
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x140023002
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140023015
mov rcx, rbx
call fcn.140018330
inc rdi
cmp rdi, rbp
jl 0x140022fc0
cmp esi, 3
jge 0x14002306a
mov edi, 3
sub edi, esi
nop dword [rax]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x140023059
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x140023051
mov rax, qword [rbx]
mov word [rax + rcx], 0x3d
jmp 0x140023064
mov r9b, 0x3d
mov rcx, rbx
call fcn.140018330
sub rdi, 1
jne 0x140023030
mov rdx, qword [r13 + 0x18]
cmp rdx, 0x10
jb 0x1400230a1
inc rdx
mov rcx, qword [r13]
cmp rdx, 0x1000
jb 0x14002309c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400230e4
mov rcx, r8
call fcn.140050f70
mov qword [r13 + 0x10], 0
mov qword [r13 + 0x18], select
mov byte [r13], 0
mov rax, rbx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140050f50
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140051678
nop
call fcn.140057640
int3