Function at 0x14005db60
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 rdi, r9
mov r14d, r8d
mov r15, rdx
mov rbx, rcx
cmp byte [r9 + 0x28], 0
jne 0x14005dbfd
mov rcx, qword [rdi + 0x10]
mov rsi, qword [rdi + 0x20]
cmp rcx, qword [rdi + 0x18]
jne 0x14005dbe2
mov ebp, r14d
mov r14, rdi
lea rax, [rcx + rcx*2]
shr rax, 1
test rcx, rcx
mov edi, 0x20
cmovne rdi, rax
cmp rdi, rcx
jbe 0x14005dbf0
mov rax, rdi
shr rax, 0x3d
jne 0x14005dbf0
lea rdx, [rdi*8]
mov rcx, qword [r14 + 8]
call fcn.140094100
test rax, rax
je 0x14005dbf0
mov qword [r14 + 8], rax
mov qword [r14 + 0x18], rdi
mov rdi, r14
mov rcx, qword [r14 + 0x10]
mov r14d, ebp
jmp 0x14005dbe6
mov rax, qword [rdi + 8]
mov qword [rax + rcx*8], rsi
inc qword [rdi + 0x10]
jmp 0x14005dbfd
mov rdi, r14
mov word [r14 + 0x28], 0x101
mov r14d, ebp
mov rcx, rdi
call fcn.140055f00
xor ebp, ebp
test rax, rax
je 0x14005e023
mov rsi, rax
cmp r15, rbx
je 0x14005dc4a
movsxd rdx, dword [r15 + 8]
mov rcx, rbx
call fcn.140053ff0
test eax, eax
je 0x14005e023
movsxd r8, dword [r15 + 8]
test r8, r8
je 0x14005dc59
shl r8, 3
mov rcx, qword [rbx]
mov rdx, qword [r15]
call fcn.140269610
mov eax, dword [r15 + 8]
jmp 0x14005dc5b
test r15, r15
je 0x14005e023
mov eax, dword [r15 + 8]
jmp 0x14005dc65
xor eax, eax
mov dword [rbx + 8], eax
mov ecx, dword [r15 + 0x10]
mov dword [rbx + 0x10], ecx
movsxd rdx, eax
mov rcx, rsi
call fcn.140053ff0
test eax, eax
je 0x14005e023
mov r10d, dword [rbx + 8]
test r10d, r10d
je 0x14005e055
mov qword [rsp + 0x30], rdi
mov eax, r10d
shl eax, 6
mov dword [rsp + 0x2c], eax
xor ebp, ebp
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x38], rsi
xor edi, edi
bt r14d, ebp
setb al
movsxd r15, r10d
mov r11d, 1
mov ecx, ebp
shl r11d, cl
mov r12, qword [rsi]
mov r13d, r11d
shr r13d, 6
cmp r13d, r15d
mov byte [rsp + 0x27], al
jae 0x14005dd00
mov r9, qword [rbx]
cmp ebp, 5
jbe 0x14005ddf0
mov r8, r15
sub r8, r13
shl r8, 3
lea rdx, [r9 + r13*8]
mov rcx, r12
call fcn.140269610
lea rcx, [r12 + r15*8]
shl r13d, 3
sub rcx, r13
xor edx, edx
mov r8, r13
jmp 0x14005dd11
test r10d, r10d
je 0x14005dd16
shl r15, 3
mov rcx, r12
xor edx, edx
mov r8, r15
call fcn.140269450
movsxd rax, dword [rbx + 8]
test rax, rax
je 0x14005ddc6
movzx ecx, byte [rsp + 0x27]
mov dil, cl
mov rcx, rdi
neg rcx
mov rdx, qword [rbx]
mov r8, qword [rsi]
dec rdi
cmp eax, 6
jb 0x14005dd59
lea r9, [r8 + rax*8]
cmp rdx, r9
jae 0x14005df89
lea r9, [rdx + rax*8]
cmp r8, r9
jae 0x14005df89
xor r9d, r9d
mov r10, r9
test al, 1
je 0x14005dd7f
mov r10, qword [r8 + r9*8]
and r10, rcx
mov r11, qword [rdx + r9*8]
and r11, rdi
or r11, r10
mov qword [rdx + r9*8], r11
mov r10, r9
or r10, 1
mov r11, rax
neg r11
xor r9, r11
cmp r9, 0xffffffffffffffff
je 0x14005ddc6
nop
mov r9, qword [r8 + r10*8]
and r9, rcx
mov r11, qword [rdx + r10*8]
and r11, rdi
or r11, r9
mov qword [rdx + r10*8], r11
mov r9, qword [r8 + r10*8 + 8]
and r9, rcx
mov r11, qword [rdx + r10*8 + 8]
and r11, rdi
or r11, r9
mov qword [rdx + r10*8 + 8], r11
add r10, 2
cmp rax, r10
jne 0x14005dd90
inc ebp
mov eax, dword [rsp + 0x2c]
mov ecx, ebp
shr eax, cl
test eax, eax
je 0x14005e019
mov r10d, dword [rbx + 8]
jmp 0x14005dca0
and r11d, 0x3f
lea r8, [r15 - 1]
mov eax, r11d
sub r8, r13
jbe 0x14005e006
mov qword [rsp + 0x40], r8
mov edx, 0x40
sub edx, r11d
mov r14, r13
not r14
add r14, r15
mov r11, r13
cmp r14, 8
jb 0x14005ded2
lea rcx, [r9 + r15*8]
cmp r12, rcx
jae 0x14005de56
lea rcx, [r15*8]
lea r8, [r13*8]
sub rcx, r8
add rcx, r12
add rcx, 0xfffffffffffffff8
lea r8, [r9 + r13*8]
mov r11, r13
cmp r8, rcx
jb 0x14005ded2
mov rcx, r14
and rcx, 0xfffffffffffffffc
lea r11, [rcx + r13]
movd xmm0, eax
movd xmm1, edx
lea r8, [r9 + r13*8]
add r8, 0x18
xor esi, esi
nop word cs:[rax + rax]
movdqu xmm2, xmmword [r8 + rsi*8 - 0x18]
movdqu xmm3, xmmword [r8 + rsi*8 - 0x10]
movdqu xmm4, xmmword [r8 + rsi*8 - 8]
movdqu xmm5, xmmword [r8 + rsi*8]
psrlq xmm2, xmm0
psrlq xmm4, xmm0
psllq xmm3, xmm1
por xmm3, xmm2
psllq xmm5, xmm1
por xmm5, xmm4
movdqu xmmword [r12 + rsi*8], xmm3
movdqu xmmword [r12 + rsi*8 + 0x10], xmm5
add rsi, 4
cmp rcx, rsi
jne 0x14005de80
cmp r14, rcx
je 0x14005df5e
mov ecx, r11d
not ecx
add ecx, r10d
mov r10, r11
test cl, 1
je 0x14005df06
mov r8, qword [r9 + r11*8]
mov rsi, qword [r9 + r11*8 + 8]
mov ecx, eax
shr r8, cl
lea r10, [r11 + 1]
mov ecx, edx
shl rsi, cl
or rsi, r8
mov rcx, r11
sub rcx, r13
mov qword [r12 + rcx*8], rsi
lea rcx, [r15 - 2]
cmp rcx, r11
je 0x14005df5e
inc r10
lea ecx, [r13*8]
mov r11, r12
sub r11, rcx
mov r8, qword [r9 + r10*8 - 8]
mov rsi, qword [r9 + r10*8]
mov ecx, eax
shr r8, cl
mov ecx, edx
shl rsi, cl
or rsi, r8
mov qword [r11 + r10*8 - 8], rsi
mov r8, qword [r9 + r10*8]
mov rsi, qword [r9 + r10*8 + 8]
mov ecx, eax
shr r8, cl
mov ecx, edx
shl rsi, cl
or rsi, r8
mov qword [r11 + r10*8], rsi
add r10, 2
cmp r15, r10
jne 0x14005df20
mov rdx, qword [r9 + r15*8 - 8]
mov ecx, eax
shr rdx, cl
mov rax, qword [rsp + 0x40]
mov qword [r12 + rax*8], rdx
cmp ebp, 6
mov r14d, dword [rsp + 0x28]
mov rsi, qword [rsp + 0x38]
jae 0x14005dcec
jmp 0x14005dd16
mov r9, rax
and r9, 0xfffffffffffffffc
movq xmm0, rcx
pshufd xmm0, xmm0, 0x44
movq xmm1, rdi
pshufd xmm1, xmm1, 0x44
xor r10d, r10d
nop word [rax + rax]
movdqu xmm2, xmmword [rdx + r10*8]
movdqu xmm3, xmmword [rdx + r10*8 + 0x10]
movdqu xmm4, xmmword [r8 + r10*8]
movdqu xmm5, xmmword [r8 + r10*8 + 0x10]
pand xmm4, xmm0
pand xmm5, xmm0
pand xmm2, xmm1
por xmm2, xmm4
pand xmm3, xmm1
por xmm3, xmm5
movdqu xmmword [rdx + r10*8], xmm2
movdqu xmmword [rdx + r10*8 + 0x10], xmm3
add r10, 4
cmp r9, r10
jne 0x14005dfb0
cmp r9, rax
je 0x14005ddc6
jmp 0x14005dd5c
mov rdx, qword [r9 + r15*8 - 8]
mov ecx, eax
shr rdx, cl
mov qword [r12 + r8*8], rdx
jmp 0x14005dd16
mov ebp, 1
mov rdi, qword [rsp + 0x30]
cmp byte [rdi + 0x28], 0
jne 0x14005e042
mov rax, qword [rdi + 8]
mov rcx, qword [rdi + 0x10]
lea rdx, [rcx - 1]
mov qword [rdi + 0x10], rdx
mov rax, qword [rax + rcx*8 - 8]
mov qword [rdi + 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
mov ebp, 1
cmp byte [rdi + 0x28], 0
jne 0x14005e042
jmp 0x14005e029