Function at 0x14006b850
Capabilities:
Encode data using base64

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov qword [r11 - 0x80], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rax, qword [0x1402bb010]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r14, rdx
mov rdi, rcx
mov qword [r11 - 0x78], rcx
xor esi, esi
mov dword [rsp + 0x20], esi
mov qword [r11 - 0x58], rsi
mov qword [r11 - 0x50], 0xf
mov byte [rsp + 0x50], sil
lea r8d, [rsi + 0x40]
lea rdx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea rcx, [r11 - 0x68]
call fcn.140047980
nop
mov rax, qword [r14 + 0x10]
mov qword [rsp + 0x30], rax
mov r12d, esi
mov ebx, esi
mov dword [rsp + 0x48], ebx
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 0xf
mov byte [rdi], bl
xor r8d, r8d
lea rdx, [0x1401b5426]
mov rcx, rdi
call fcn.140047980
mov dword [rsp + 0x20], 1
mov rax, qword [rsp + 0x30]
test eax, eax
je 0x14006bba1
mov ebp, esi
mov qword [rsp + 0x28], rsi
movzx r13d, byte [rsp + 0x4a]
movzx r15d, byte [rsp + 0x49]
dec eax
mov qword [rsp + 0x30], rax
mov rax, r14
mov rcx, qword [r14 + 0x18]
cmp rcx, 0x10
jb 0x14006b927
mov rax, qword [r14]
cmp byte [rsi + rax], 0x3d
je 0x14006babe
mov rax, r14
cmp rcx, 0x10
jb 0x14006b93d
mov rax, qword [r14]
movzx esi, byte [rsi + rax]
mov ecx, esi
call qword [0x1401a9c88]
test eax, eax
jne 0x14006b95b
sub sil, 0x2b
test sil, 0xfb
jne 0x14006babe
mov rax, r14
cmp qword [r14 + 0x18], 0x10
jb 0x14006b968
mov rax, qword [r14]
lea rbx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rbx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x28]
test r8, r8
je 0x14006b99e
movsx edx, byte [rsi + rax]
mov rcx, rbx
call fcn.140170975
test rax, rax
je 0x14006b99e
sub rax, rbx
jmp 0x14006b9a5
mov rax, 0xffffffffffffffff
mov byte [rsp + rbp + 0x48], al
inc r12d
inc rbp
inc rsi
mov qword [rsp + 0x28], rsi
mov ebx, dword [rsp + 0x48]
movzx r13d, byte [rsp + 0x4a]
movzx r15d, byte [rsp + 0x49]
cmp rbp, 4
jne 0x14006bab1
movzx r9d, r15b
shr r9b, 4
and r9b, 3
movzx eax, bl
shl al, 2
or r9b, al
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x14006ba12
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x14006ba07
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14006ba1a
mov rcx, rdi
call fcn.14005be10
movzx r9d, r13b
shr r9b, 2
and r9b, 0xf
movzx eax, r15b
shl al, 4
or r9b, al
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x14006ba5c
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x14006ba51
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14006ba64
mov rcx, rdi
call fcn.14005be10
movzx r9d, byte [rsp + 0x4b]
and r9b, 0x3f
movzx eax, r13b
shl al, 6
or r9b, al
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x14006baa4
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x14006ba99
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14006baac
mov rcx, rdi
call fcn.14005be10
xor r12d, r12d
xor ebp, ebp
mov rax, qword [rsp + 0x30]
test eax, eax
jne 0x14006b910
cmp r12d, 2
jne 0x14006bb0a
shr r15b, 4
and r15b, 3
shl bl, 2
or r15b, bl
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x14006bb01
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x14006baf3
mov rax, qword [rdi]
mov byte [rax + rcx], r15b
mov byte [rax + rcx + 1], 0
jmp 0x14006bba1
movzx r9d, r15b
jmp 0x14006bb98
cmp r12d, 3
jne 0x14006bba1
movzx r9d, r15b
shr r9b, 4
and r9b, r12b
shl bl, 2
or r9b, bl
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x14006bb51
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x14006bb46
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14006bb59
mov rcx, rdi
call fcn.14005be10
shr r13b, 2
and r13b, 0xf
shl r15b, 4
or r13b, r15b
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x14006bb94
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x14006bb89
mov rax, qword [rdi]
mov byte [rax + rcx], r13b
mov byte [rax + rcx + 1], 0
jmp 0x14006bba1
movzx r9d, r13b
mov rcx, rdi
call fcn.14005be10
nop
lea rcx, [rsp + 0x50]
call fcn.140047920
mov rax, rdi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14016ee40
mov rbx, qword [rsp + 0xd0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret