Function at 0x14008a650
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rsi, r9
mov ebx, r8d
mov r15, rdx
mov r14, rcx
cmp byte [r9 + 0x28], 0
jne 0x14008a6e4
mov rcx, qword [rsi + 0x10]
mov rdi, qword [rsi + 0x20]
cmp rcx, qword [rsi + 0x18]
jne 0x14008a6cd
mov r12, r14
lea rax, [rcx + rcx*2]
shr rax, 1
test rcx, rcx
mov r14d, 0x20
cmovne r14, rax
cmp r14, rcx
jbe 0x14008a6db
mov rax, r14
shr rax, 0x3d
jne 0x14008a6db
lea rdx, [r14*8]
mov rcx, qword [rsi + 8]
call fcn.1400ae2f0
test rax, rax
je 0x14008a6db
mov qword [rsi + 8], rax
mov qword [rsi + 0x18], r14
mov rcx, qword [rsi + 0x10]
mov r14, r12
jmp 0x14008a6d1
mov rax, qword [rsi + 8]
mov qword [rax + rcx*8], rdi
inc qword [rsi + 0x10]
jmp 0x14008a6e4
mov word [rsi + 0x28], 0x101
mov r14, r12
mov rcx, rsi
call fcn.140084300
xor ebp, ebp
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14008a914
cmp r15, r14
je 0x14008a744
movsxd rdx, dword [r15 + 8]
mov rcx, r14
call fcn.140082450
test eax, eax
je 0x14008a914
movsxd r8, dword [r15 + 8]
test r8, r8
je 0x14008a733
shl r8, 3
mov rcx, qword [r14]
mov rdx, qword [r15]
call fcn.14012d9b0
mov eax, dword [r15 + 8]
jmp 0x14008a735
xor eax, eax
mov dword [r14 + 8], eax
mov eax, dword [r15 + 0x10]
mov dword [r14 + 0x10], eax
mov r15, r14
test r15, r15
je 0x14008a914
movsxd rdx, dword [r14 + 8]
mov rcx, qword [rsp + 0x28]
call fcn.140082450
test eax, eax
je 0x14008a914
mov eax, dword [r14 + 8]
test eax, eax
je 0x14008a90f
mov ecx, eax
shl ecx, 6
mov dword [rsp + 0x34], ecx
xor ebp, ebp
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], r14
nop dword [rax + rax]
bt ebx, ebp
mov edi, 0
sbb rdi, rdi
movsxd r15, eax
mov r10d, 1
mov ecx, ebp
shl r10d, cl
mov rcx, qword [rsp + 0x28]
mov r12, qword [rcx]
mov r13d, r10d
shr r13d, 6
cmp r13d, r15d
jae 0x14008a800
mov r9, qword [r14]
cmp ebp, 5
jbe 0x14008a880
mov r8, r15
sub r8, r13
shl r8, 3
lea rdx, [r9 + r13*8]
mov rcx, r12
call fcn.14012d9b0
lea rcx, [r12 + r15*8]
shl r13d, 3
sub rcx, r13
xor edx, edx
mov r8, r13
jmp 0x14008a810
test eax, eax
je 0x14008a815
shl r15, 3
mov rcx, r12
xor edx, edx
mov r8, r15
call fcn.14012e050
movsxd rax, dword [r14 + 8]
test rax, rax
je 0x14008a85d
mov rcx, qword [r14]
mov rdx, qword [rsp + 0x28]
mov rdx, qword [rdx]
mov r8, rdi
not r8
xor r9d, r9d
nop word cs:[rax + rax]
mov r10, qword [rdx + r9*8]
and r10, rdi
mov r11, qword [rcx + r9*8]
and r11, r8
or r11, r10
mov qword [rcx + r9*8], r11
inc r9
cmp rax, r9
jne 0x14008a840
inc ebp
mov eax, dword [rsp + 0x34]
mov ecx, ebp
shr eax, cl
test eax, eax
je 0x14008a90f
mov eax, dword [r14 + 8]
jmp 0x14008a790
and r10d, 0x3f
lea r8, [r15 - 1]
mov eax, r10d
sub r8, r13
jbe 0x14008a8fc
mov edx, 0x40
sub edx, r10d
mov r10, r13
not r10
add r10, r15
lea r11, [r9 + r13*8]
add r11, 8
xor esi, esi
nop dword [rax + rax]
mov r14, qword [r11 + rsi*8 - 8]
mov rbx, qword [r11 + rsi*8]
mov ecx, eax
shr r14, cl
mov ecx, edx
shl rbx, cl
or rbx, r14
mov qword [r12 + rsi*8], rbx
inc rsi
cmp r10, rsi
jne 0x14008a8b0
mov rdx, qword [r9 + r15*8 - 8]
mov ecx, eax
shr rdx, cl
mov qword [r12 + r8*8], rdx
cmp ebp, 6
mov rsi, qword [rsp + 0x40]
mov ebx, dword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
jae 0x14008a7df
jmp 0x14008a815
mov rdx, qword [r9 + r15*8 - 8]
mov ecx, eax
shr rdx, cl
mov qword [r12 + r8*8], rdx
jmp 0x14008a815
mov ebp, 1
cmp byte [rsi + 0x28], 0
jne 0x14008a933
mov rax, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
lea rdx, [rcx - 1]
mov qword [rsi + 0x10], rdx
mov rax, qword [rax + rcx*8 - 8]
mov qword [rsi + 0x20], rax
mov eax, ebp
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret