Function at 0x18000ad1a
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rdi, rdx
mov rsi, rcx
mov ecx, 3
mov rax, r8
xor edx, edx
div rcx
mov rcx, r8
shr rcx, 0x3e
cmp ecx, 2
ja 0x18000b27b
mov rbx, r8
mov r14, rdx
shl rax, 2
test rdx, rdx
je 0x18000ad6a
cmp rax, 0xfffffffffffffffc
je 0x18000b27b
add rax, 4
lea r15, [rsp + 0x28]
mov rcx, r15
mov rdx, rax
call fcn.180041b56
mov rax, qword [r15 + 8]
mov rcx, qword [r15 + 0x10]
xor edx, edx
mov r9, rbx
mov r8d, 0
sub r9, 0x1a
cmovb r9, rdx
jbe 0x18000b081
mov edx, 0x20
xor r8d, r8d
lea r10, [0x18004350c]
lea r11, [r8 + 0x1a]
cmp r11, rbx
ja 0x18000b27b
test rdx, rdx
je 0x18000b27b
cmp rdx, rcx
ja 0x18000b27b
mov r11, qword [rdi + r8]
bswap r11
mov r15, r11
shr r15, 0x3a
mov bpl, byte [r15 + r10 + 3]
mov byte [rax + rdx - 0x20], bpl
mov r15, r11
shr r15, 0x34
and r15d, 0x3f
mov bpl, byte [r15 + r10 + 3]
mov byte [rax + rdx - 0x1f], bpl
mov r15, r11
shr r15, 0x2e
and r15d, 0x3f
mov bpl, byte [r15 + r10 + 3]
mov byte [rax + rdx - 0x1e], bpl
mov r15, r11
shr r15, 0x28
and r15d, 0x3f
mov bpl, byte [r15 + r10 + 3]
mov byte [rax + rdx - 0x1d], bpl
mov r15, r11
shr r15, 0x22
and r15d, 0x3f
mov bpl, byte [r15 + r10 + 3]
mov byte [rax + rdx - 0x1c], bpl
mov r15, r11
shr r15, 0x1c
and r15d, 0x3f
mov bpl, byte [r15 + r10 + 3]
mov byte [rax + rdx - 0x1b], bpl
mov r15d, r11d
shr r15d, 0x16
and r15d, 0x3f
mov bpl, byte [r15 + r10 + 3]
mov byte [rax + rdx - 0x1a], bpl
shr r11d, 0x10
and r11d, 0x3f
mov r11b, byte [r11 + r10 + 3]
mov byte [rax + rdx - 0x19], r11b
mov r11, qword [rdi + r8 + 6]
bswap r11
mov r15, r11
shr r15, 0x3a
mov bpl, byte [r15 + r10 + 3]
mov byte [rax + rdx - 0x18], bpl
mov r15, r11
shr r15, 0x34
and r15d, 0x3f
mov bpl, byte [r15 + r10 + 3]
mov byte [rax + rdx - 0x17], bpl
mov r15, r11
shr r15, 0x2e
and r15d, 0x3f
mov bpl, byte [r15 + r10 + 3]
mov byte [rax + rdx - 0x16], bpl
mov r15, r11
shr r15, 0x28
and r15d, 0x3f
mov bpl, byte [r15 + r10 + 3]
mov byte [rax + rdx - 0x15], bpl
mov r15, r11
shr r15, 0x22
and r15d, 0x3f
mov bpl, byte [r15 + r10 + 3]
mov byte [rax + rdx - 0x14], bpl
mov r15, r11
shr r15, 0x1c
and r15d, 0x3f
mov bpl, byte [r15 + r10 + 3]
mov byte [rax + rdx - 0x13], bpl
mov r15d, r11d
shr r15d, 0x16
and r15d, 0x3f
mov bpl, byte [r15 + r10 + 3]
mov byte [rax + rdx - 0x12], bpl
shr r11d, 0x10
and r11d, 0x3f
mov r11b, byte [r11 + r10 + 3]
mov byte [rax + rdx - 0x11], r11b
mov r11, qword [rdi + r8 + 0xc]
bswap r11
mov r15, r11
shr r15, 0x3a
mov bpl, byte [r15 + r10 + 3]
mov byte [rax + rdx - 0x10], bpl
mov r15, r11
shr r15, 0x34
and r15d, 0x3f
mov bpl, byte [r15 + r10 + 3]
mov byte [rax + rdx - 0xf], bpl
mov r15, r11
shr r15, 0x2e
and r15d, 0x3f
mov bpl, byte [r15 + r10 + 3]
mov byte [rax + rdx - 0xe], bpl
mov r15, r11
shr r15, 0x28
and r15d, 0x3f
mov bpl, byte [r15 + r10 + 3]
mov byte [rax + rdx - 0xd], bpl
mov r15, r11
shr r15, 0x22
and r15d, 0x3f
mov bpl, byte [r15 + r10 + 3]
mov byte [rax + rdx - 0xc], bpl
mov r15, r11
shr r15, 0x1c
and r15d, 0x3f
mov bpl, byte [r15 + r10 + 3]
mov byte [rax + rdx - 0xb], bpl
mov r15d, r11d
shr r15d, 0x16
and r15d, 0x3f
mov bpl, byte [r15 + r10 + 3]
mov byte [rax + rdx - 0xa], bpl
shr r11d, 0x10
and r11d, 0x3f
mov r11b, byte [r11 + r10 + 3]
mov byte [rax + rdx - 9], r11b
mov r11, qword [rdi + r8 + 0x12]
bswap r11
mov r15, r11
shr r15, 0x3a
mov bpl, byte [r15 + r10 + 3]
mov byte [rax + rdx - 8], bpl
mov r15, r11
shr r15, 0x34
and r15d, 0x3f
mov bpl, byte [r15 + r10 + 3]
mov byte [rax + rdx - 7], bpl
mov r15, r11
shr r15, 0x2e
and r15d, 0x3f
mov bpl, byte [r15 + r10 + 3]
mov byte [rax + rdx - 6], bpl
mov r15, r11
shr r15, 0x28
and r15d, 0x3f
mov bpl, byte [r15 + r10 + 3]
mov byte [rax + rdx - 5], bpl
mov r15, r11
shr r15, 0x22
and r15d, 0x3f
mov bpl, byte [r15 + r10 + 3]
mov byte [rax + rdx - 4], bpl
mov r15, r11
shr r15, 0x1c
and r15d, 0x3f
mov bpl, byte [r15 + r10 + 3]
mov byte [rax + rdx - 3], bpl
mov r15d, r11d
shr r15d, 0x16
and r15d, 0x3f
mov bpl, byte [r15 + r10 + 3]
mov byte [rax + rdx - 2], bpl
shr r11d, 0x10
and r11d, 0x3f
mov r11b, byte [r11 + r10 + 3]
mov byte [rax + rdx - 1], r11b
add r8, 0x18
add rdx, 0x20
cmp r8, r9
jbe 0x18000adaa
add rdx, 0xffffffffffffffe0
mov r10, rbx
sub r10, r14
lea r9, [0x18004350c]
cmp r8, r10
jae 0x18000b13d
mov r11, r8
sub r11, 0xfffffffffffffffd
jae 0x18000b27b
cmp r11, rbx
ja 0x18000b27b
cmp rdx, 0xfffffffffffffffb
ja 0x18000b27b
lea r15, [rdx + 4]
cmp r15, rcx
ja 0x18000b27b
movzx ebp, byte [rdi + r8]
mov r12d, ebp
shr r12d, 2
mov r12b, byte [r12 + r9 + 3]
mov byte [rax + rdx], r12b
mov r12b, byte [rdi + r8 + 1]
shl bpl, 4
mov r13d, r12d
shr r13b, 4
or r13b, bpl
movzx r13d, r13b
and r13d, 0x3f
mov bpl, byte [r13 + r9 + 3]
mov byte [rax + rdx + 1], bpl
movzx r8d, byte [rdi + r8 + 2]
shl r12b, 2
mov ebp, r8d
shr bpl, 6
or bpl, r12b
movzx r12d, bpl
and r12d, 0x3f
mov bpl, byte [r12 + r9 + 3]
mov byte [rax + rdx + 2], bpl
and r8d, 0x3f
mov r8b, byte [r8 + r9 + 3]
mov byte [rax + rdx + 3], r8b
mov rdx, r15
mov r8, r11
jmp 0x18000b08e
cmp r14, 1
je 0x18000b1c9
cmp r14, 2
jne 0x18000b212
cmp rdx, rcx
jae 0x18000b27b
movzx r11d, byte [rdi + r10]
mov r8d, r11d
shr r8d, 2
mov r8b, byte [r8 + r9 + 3]
mov byte [rax + rdx], r8b
inc r10
cmp r10, rbx
jae 0x18000b27b
lea r8, [rdx + 1]
cmp r8, rcx
jae 0x18000b27b
mov r8b, byte [rdi + r10]
mov r10d, r8d
shr r10b, 4
shl r11b, 4
or r11b, r10b
movzx r10d, r11b
and r10d, 0x3f
mov r10b, byte [r10 + r9 + 3]
mov byte [rax + rdx + 1], r10b
lea r10, [rdx + 2]
cmp r10, rcx
jae 0x18000b27b
shl r8b, 2
and r8b, 0x3c
mov r11d, 3
jmp 0x18000b202
cmp rdx, rcx
jae 0x18000b27b
movzx r8d, byte [rdi + r10]
mov r10d, r8d
shr r10d, 2
mov r10b, byte [r10 + r9 + 3]
mov byte [rax + rdx], r10b
lea r10, [rdx + 1]
cmp r10, rcx
jae 0x18000b27b
shl r8b, 4
and r8b, 0x30
mov r11d, 2
movzx r8d, r8b
mov r8b, byte [r8 + r9 + 3]
mov byte [rax + r10], r8b
add rdx, r11
sub rcx, rdx
jb 0x18000b27b
add rax, rdx
mov r8d, edx
neg r8d
and r8d, 3
xor r9d, r9d
cmp r8, r9
je 0x18000b23b
cmp rcx, r9
je 0x18000b27b
mov byte [rax + r9], 0x3d
inc r9
jmp 0x18000b227
add rdx, r8
jb 0x18000b27b
lea rdi, [rsp + 0x40]
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.180009428
xor eax, eax
cmp rax, qword [rdi]
jno 0x18000b27b
mov rax, qword [rsp + 0x58]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rsi], xmm0
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2