Function at 0x6be02b5c
Capabilities:
Encode data using base64

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp - 4], 0
mov dword [rbp - 8], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x18], 0
call dbg.b64_buf_malloc
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x6be02c7d
mov eax, 0
jmp 0x6be02dc7
mov rax, qword [rbp + 0x10]
lea rdx, [rax + 1]
mov qword [rbp + 0x10], rdx
mov edx, dword [rbp - 4]
lea ecx, [rdx + 1]
mov dword [rbp - 4], ecx
movzx eax, byte [rax]
movsxd rdx, edx
mov byte [rbp + rdx - 0x1f], al
cmp dword [rbp - 4], 3
jne 0x6be02c7d
movzx eax, byte [rbp - 0x1f]
shr al, 2
mov byte [rbp - 0x1c], al
movzx eax, byte [rbp - 0x1f]
movzx eax, al
shl eax, 4
and eax, 0x30
mov edx, eax
movzx eax, byte [rbp - 0x1e]
shr al, 4
add eax, edx
mov byte [rbp - 0x1b], al
movzx eax, byte [rbp - 0x1e]
movzx eax, al
shl eax, 2
and eax, 0x3c
mov edx, eax
movzx eax, byte [rbp - 0x1d]
shr al, 6
add eax, edx
mov byte [rbp - 0x1a], al
movzx eax, byte [rbp - 0x1d]
and eax, 0x3f
mov byte [rbp - 0x19], al
mov rax, qword [rbp - 0x18]
lea rdx, [rax + 4]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call dbg.b64_buf_realloc
mov qword [rbp - 0x10], rax
mov dword [rbp - 4], 0
jmp 0x6be02c70
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x1c]
movzx ecx, al
mov rax, qword [rbp - 0x18]
lea rdx, [rax + 1]
mov qword [rbp - 0x18], rdx
mov rdx, qword [rbp - 0x10]
add rdx, rax
movsxd rax, ecx
lea rcx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_gobbledygook
movzx eax, byte [rax + rcx]
mov byte [rdx], al
add dword [rbp - 4], 1
cmp dword [rbp - 4], 3
jle 0x6be02c3c
mov dword [rbp - 4], 0
mov rax, qword [rbp + 0x18]
lea rdx, [rax - 1]
mov qword [rbp + 0x18], rdx
test rax, rax
jne 0x6be02ba8
cmp dword [rbp - 4], 0
jle 0x6be02d9d
mov eax, dword [rbp - 4]
mov dword [rbp - 8], eax
jmp 0x6be02cb2
mov eax, dword [rbp - 8]
cdqe
mov byte [rbp + rax - 0x1f], 0
add dword [rbp - 8], 1
cmp dword [rbp - 8], 2
jle 0x6be02ca4
movzx eax, byte [rbp - 0x1f]
shr al, 2
mov byte [rbp - 0x1c], al
movzx eax, byte [rbp - 0x1f]
movzx eax, al
shl eax, 4
and eax, 0x30
mov edx, eax
movzx eax, byte [rbp - 0x1e]
shr al, 4
add eax, edx
mov byte [rbp - 0x1b], al
movzx eax, byte [rbp - 0x1e]
movzx eax, al
shl eax, 2
and eax, 0x3c
mov edx, eax
movzx eax, byte [rbp - 0x1d]
shr al, 6
add eax, edx
mov byte [rbp - 0x1a], al
movzx eax, byte [rbp - 0x1d]
and eax, 0x3f
mov byte [rbp - 0x19], al
mov dword [rbp - 8], 0
jmp 0x6be02d57
mov rax, qword [rbp - 0x18]
lea rdx, [rax + 1]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call dbg.b64_buf_realloc
mov qword [rbp - 0x10], rax
mov eax, dword [rbp - 8]
cdqe
movzx eax, byte [rbp + rax - 0x1c]
movzx ecx, al
mov rax, qword [rbp - 0x18]
lea rdx, [rax + 1]
mov qword [rbp - 0x18], rdx
mov rdx, qword [rbp - 0x10]
add rdx, rax
movsxd rax, ecx
lea rcx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_gobbledygook
movzx eax, byte [rax + rcx]
mov byte [rdx], al
add dword [rbp - 8], 1
mov eax, dword [rbp - 4]
cmp eax, dword [rbp - 8]
jge 0x6be02d0b
jmp 0x6be02d8f
mov rax, qword [rbp - 0x18]
lea rdx, [rax + 1]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call dbg.b64_buf_realloc
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x18]
lea rdx, [rax + 1]
mov qword [rbp - 0x18], rdx
mov rdx, qword [rbp - 0x10]
add rax, rdx
mov byte [rax], 0x3d
mov eax, dword [rbp - 4]
lea edx, [rax + 1]
mov dword [rbp - 4], edx
cmp eax, 2
jle 0x6be02d61
mov rax, qword [rbp - 0x18]
lea rdx, [rax + 1]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call dbg.b64_buf_realloc
mov qword [rbp - 0x10], rax
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 0x18]
add rax, rdx
mov byte [rax], 0
mov rax, qword [rbp - 0x10]
add rsp, 0x40
pop rbp
ret