Function at 0x1400152f0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r15, rcx
cmp rdx, 1
jne 0x140015374
mov r8, qword [r15]
cmp r8, 8
je 0x1400153c0
mov rax, qword [r15 + 8]
test rax, rax
je 0x140015432
mov rcx, rax
shr rcx, 0x3b
jne 0x14001536d
mov rdx, rax
shl rdx, 4
lea rcx, [rdx - 1]
bsr rcx, rcx
xor ecx, 0x3f
neg cl
mov ebx, 1
shl rbx, cl
mov ecx, 1
cmp rdx, 1
cmovb rbx, rcx
sub rbx, rdx
xor ecx, ecx
cmp rbx, 7
seta cl
lea r14, [rcx + rax*2]
mov rax, r14
shr rax, 0x3d
je 0x140015438
xor edi, edi
jmp 0x14001559d
xor edi, edi
add rdx, qword [r15 + 8]
jb 0x14001559d
mov rax, rdx
shr rax, 0x3c
jne 0x14001559d
shl rdx, 3
lea rax, [rdx - 1]
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
shr rax, 3
xor r14d, r14d
cmp rdx, 1
cmovae r14, rax
mov r8, qword [r15]
cmp r8, 8
jne 0x140015438
jmp 0x1400153c6
mov r14d, 1
lea r8, [r14*8]
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rcx, qword [rax + 0x30]
xor edi, edi
xor edx, edx
call sub.ntdll.dll_RtlAllocateHeap
test rax, rax
je 0x14001559d
mov rdx, qword [r15 + 8]
test rdx, rdx
jle 0x140015593
mov rcx, qword [r15]
lea rdx, [rcx + rdx*8]
lea rbx, [rcx + 8]
cmp rdx, rbx
mov r9, rbx
cmova r9, rdx
mov rdi, rcx
not rdi
add r9, rdi
shr r9, 3
add r9, 1
cmp r9, 4
jae 0x140015468
mov rbx, rax
jmp 0x140015580
mov r14d, 1
lea r9, [r14*8]
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rcx, qword [rax + 0x30]
xor edi, edi
xor edx, edx
call sub.ntdll.dll_RtlReAllocateHeap
test rax, rax
jne 0x140015593
jmp 0x14001559d
cmp rdx, rbx
cmova rbx, rdx
lea rsi, [rbx + rdi]
and rsi, 0xfffffffffffffff8
add rsi, rcx
add rsi, 8
cmp rax, rsi
jae 0x14001549e
add rbx, rdi
add rbx, 8
and rbx, 0xfffffffffffffff8
add rbx, rax
cmp rbx, rcx
jbe 0x14001549e
mov rbx, rax
jmp 0x140015580
mov r8, r9
and r8, 0xfffffffffffffffc
lea rbx, [r8 - 4]
mov rsi, rbx
shr rsi, 2
add rsi, 1
mov edi, esi
and edi, 3
cmp rbx, 0xc
jae 0x1400154cb
xor esi, esi
test rdi, rdi
jne 0x14001553d
jmp 0x14001556b
mov rbx, rdi
sub rbx, rsi
xor esi, esi
nop word cs:[rax + rax]
nop dword [rax]
movups xmm0, xmmword [rcx + rsi*8]
movups xmm1, xmmword [rcx + rsi*8 + 0x10]
movups xmmword [rax + rsi*8], xmm0
movups xmmword [rax + rsi*8 + 0x10], xmm1
movups xmm0, xmmword [rcx + rsi*8 + 0x20]
movups xmm1, xmmword [rcx + rsi*8 + 0x30]
movups xmmword [rax + rsi*8 + 0x20], xmm0
movups xmmword [rax + rsi*8 + 0x30], xmm1
movups xmm0, xmmword [rcx + rsi*8 + 0x40]
movups xmm1, xmmword [rcx + rsi*8 + 0x50]
movups xmmword [rax + rsi*8 + 0x40], xmm0
movups xmmword [rax + rsi*8 + 0x50], xmm1
movups xmm0, xmmword [rcx + rsi*8 + 0x60]
movups xmm1, xmmword [rcx + rsi*8 + 0x70]
movups xmmword [rax + rsi*8 + 0x60], xmm0
movups xmmword [rax + rsi*8 + 0x70], xmm1
add rsi, 0x10
add rbx, 4
jne 0x1400154e0
test rdi, rdi
je 0x14001556b
lea rbx, [rsi*8 + 0x10]
neg rdi
nop dword [rax + rax]
movups xmm0, xmmword [rcx + rbx - 0x10]
movups xmm1, xmmword [rcx + rbx]
movups xmmword [rax + rbx - 0x10], xmm0
movups xmmword [rax + rbx], xmm1
add rbx, 0x20
inc rdi
jne 0x140015550
cmp r9, r8
je 0x140015593
lea rcx, [rcx + r8*8]
lea rbx, [rax + r8*8]
nop dword [rax + rax]
mov rdi, qword [rcx]
mov qword [rbx], rdi
add rcx, 8
add rbx, 8
cmp rcx, rdx
jb 0x140015580
mov qword [r15], rax
mov qword [r15 + 0x10], r14
mov dil, 1
mov eax, edi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret