Function at 0x1400a7690
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rbp, r9
mov dword [rsp + 0x24], r8d
mov rsi, rdx
mov r13, rcx
cmp byte [r9 + 0x28], 0
jne 0x1400a76d3
mov rcx, qword [rbp + 0x10]
mov rdi, qword [rbp + 0x20]
cmp rcx, qword [rbp + 0x18]
je 0x1400a785e
mov rax, qword [rbp + 8]
mov qword [rax + rcx*8], rdi
inc qword [rbp + 0x10]
mov rcx, rbp
call fcn.14009f720
xor edi, edi
test rax, rax
je 0x1400a78bc
mov r12, rax
cmp rsi, r13
je 0x1400a79e5
movsxd rdx, dword [rsi + 8]
mov rcx, r13
call fcn.14009d600
test eax, eax
je 0x1400a78bc
movsxd r8, dword [rsi + 8]
test r8, r8
je 0x1400a78f5
shl r8, 3
mov rcx, qword [r13]
mov rdx, qword [rsi]
call fcn.1400f23d0
mov eax, dword [rsi + 8]
mov dword [r13 + 8], eax
mov ecx, dword [rsi + 0x10]
mov dword [r13 + 0x10], ecx
movsxd rdx, eax
mov rcx, r12
call fcn.14009d600
test eax, eax
je 0x1400a78bc
mov edx, dword [r13 + 8]
test edx, edx
je 0x1400a78ee
mov qword [rsp + 0x30], rbp
mov eax, edx
shl eax, 6
mov dword [rsp + 0x20], eax
xor r15d, r15d
mov eax, dword [rsp + 0x24]
mov r14d, eax
mov ecx, r15d
shr r14d, cl
mov eax, 1
shl eax, cl
movsxd rsi, edx
mov rdi, qword [r12]
mov ebx, eax
shr ebx, 6
cmp rsi, rbx
jbe 0x1400a78fc
mov r9, qword [r13]
cmp r15d, 5
jbe 0x1400a7915
mov r8, rsi
sub r8, rbx
je 0x1400a77b0
shl r8, 3
lea rdx, [r9 + rbx*8]
mov rcx, rdi
call fcn.1400f23d0
test ebx, ebx
je 0x1400a77c9
shl rbx, 3
lea rcx, [rdi + rsi*8]
sub rcx, rbx
xor edx, edx
mov r8, rbx
call fcn.1400f27e0
movsxd r8, dword [r13 + 8]
test r8, r8
je 0x1400a7845
and r14d, 1
mov rax, r14
neg rax
mov rdx, qword [r13]
mov rbx, qword [r12]
dec r14
cmp r8d, 1
jne 0x1400a77f1
xor edi, edi
jmp 0x1400a7830
mov rcx, r8
and rcx, 0xfffffffffffffffe
xor edi, edi
mov rbp, qword [rbx + rdi*8]
and rbp, rax
mov rsi, qword [rdx + rdi*8]
and rsi, r14
or rsi, rbp
mov qword [rdx + rdi*8], rsi
mov rbp, qword [rbx + rdi*8 + 8]
and rbp, rax
mov rsi, qword [rdx + rdi*8 + 8]
and rsi, r14
or rsi, rbp
mov qword [rdx + rdi*8 + 8], rsi
add rdi, 2
cmp rcx, rdi
jne 0x1400a77fa
test r8b, 1
je 0x1400a7845
and rax, qword [rbx + rdi*8]
and r14, qword [rdx + rdi*8]
or r14, rax
mov qword [rdx + rdi*8], r14
inc r15d
mov eax, dword [rsp + 0x20]
mov ecx, r15d
shr eax, cl
test eax, eax
je 0x1400a78b2
mov edx, dword [r13 + 8]
jmp 0x1400a7761
lea rax, [rcx + rcx*2]
shr rax, 1
test rcx, rcx
mov ebx, 0x20
cmovne rbx, rax
cmp rbx, rcx
jbe 0x1400a79da
mov rax, rbx
shr rax, 0x3d
jne 0x1400a79da
lea rdx, [rbx*8]
mov rcx, qword [rbp + 8]
call fcn.1400c6860
test rax, rax
je 0x1400a79da
mov qword [rbp + 8], rax
mov qword [rbp + 0x18], rbx
mov rcx, qword [rbp + 0x10]
jmp 0x1400a76cb
mov edi, 1
mov rbp, qword [rsp + 0x30]
cmp byte [rbp + 0x28], 0
jne 0x1400a78db
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x10]
lea rdx, [rcx - 1]
mov qword [rbp + 0x10], rdx
mov rax, qword [rax + rcx*8 - 8]
mov qword [rbp + 0x20], rax
mov eax, edi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov edi, 1
jmp 0x1400a78bc
xor eax, eax
jmp 0x1400a7726
test edx, edx
je 0x1400a77c9
shl rsi, 3
mov rcx, rdi
xor edx, edx
mov r8, rsi
jmp 0x1400a77c4
and eax, 0x3f
lea rbp, [rsi - 1]
mov ecx, eax
sub rbp, rbx
mov qword [rsp + 0x28], rbp
jbe 0x1400a79c4
mov rbp, rcx
mov r10d, 0x40
sub r10d, eax
mov ecx, ebx
not ecx
add ecx, edx
lea r8, [rsi - 2]
mov rdx, rbx
test cl, 1
je 0x1400a7968
mov rax, qword [r9 + rbx*8]
mov ecx, ebp
shr rax, cl
mov r11, qword [r9 + rbx*8 + 8]
mov ecx, r10d
shl r11, cl
lea rdx, [rbx + 1]
or r11, rax
mov qword [rdi], r11
cmp r8, rbx
mov rcx, rbp
je 0x1400a79c4
inc rdx
lea rax, [rbx*8]
mov r11, rdi
sub r11, rax
mov rax, qword [r9 + rdx*8 - 8]
mov ecx, ebp
shr rax, cl
mov r8, qword [r9 + rdx*8]
mov ecx, r10d
shl r8, cl
or r8, rax
mov qword [r11 + rdx*8 - 8], r8
mov r8, qword [r9 + rdx*8]
mov ecx, ebp
shr r8, cl
mov rax, qword [r9 + rdx*8 + 8]
mov ecx, r10d
shl rax, cl
mov rcx, rbp
or rax, r8
mov qword [r11 + rdx*8], rax
add rdx, 2
cmp rsi, rdx
jne 0x1400a7981
mov rax, qword [r9 + rsi*8 - 8]
shr rax, cl
mov rcx, qword [rsp + 0x28]
mov qword [rdi + rcx*8], rax
jmp 0x1400a77b0
mov word [rbp + 0x28], 0x101
jmp 0x1400a76d3
test rsi, rsi
je 0x1400a78bc
mov eax, dword [rsi + 8]
jmp 0x1400a7731