Function at 0x140023610
Capabilities:
Encode data using base64
Encode data using xor

Disassembly:
push rbx
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x4a8
mov rax, qword [0x1401d5e90]
xor rax, rsp
mov qword [rsp + 0x490], rax
mov rbx, qword [rsp + 0x500]
mov r13, r9
mov r12, r8
mov r14, rdx
mov r15, rcx
mov qword [rsp + 0x20], rbx
call fcn.140023360
xor ebp, ebp
test al, al
jne 0x1400236e3
mov qword [rsp + 0x4e0], rsi
mov qword [rsp + 0x4a0], rdi
lea rdi, [rsp + 0x30]
mov esi, ebp
mov r10d, ebp
nop word [rax + rax]
mov r8d, dword [0x1401ddd80]
lea ecx, [rsi + 1]
lea ebx, [r10 + 1]
mov eax, r8d
cdq
idiv ecx
mov eax, r8d
mov ecx, r8d
sub ecx, esi
mov r9d, edx
cdq
idiv ebx
imul r9d, ecx
lea rcx, [0x14015e8c4]
add r9d, eax
sub r9d, r10d
mov edx, r9d
call fcn.1400d7c60
add rdi, 4
mov r10d, ebx
cmp ebx, 0x1c
jl 0x140023680
inc esi
cmp esi, 0xa
jl 0x140023673
mov rbx, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x4a0]
mov rsi, qword [rsp + 0x4e0]
mov rcx, r14
call fcn.140023530
mov r10, rax
test r15, r15
je 0x1400238b8
test r12, r12
je 0x1400238b8
cmp rax, r13
ja 0x1400238b8
mov rcx, rbp
lea r11, [0x140000000]
test r14, r14
je 0x1400237bd
mov r8, r12
cmp rcx, r14
jae 0x14002372e
movzx eax, byte [rcx + r15]
inc rcx
jmp 0x140023730
mov eax, ebp
cmp rcx, r14
jae 0x14002373f
movzx r9d, byte [rcx + r15]
inc rcx
jmp 0x140023742
mov r9d, ebp
cmp rcx, r14
jae 0x140023751
movzx edx, byte [rcx + r15]
inc rcx
jmp 0x140023753
mov edx, ebp
shl eax, 8
add r8, 4
add eax, r9d
shl eax, 8
add eax, edx
mov edx, eax
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rax + r11 + 0x1d8d50]
mov byte [r8 - 4], al
mov eax, edx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + r11 + 0x1d8d50]
mov byte [r8 - 3], al
mov eax, edx
and edx, 0x3f
shr rax, 6
and eax, 0x3f
movzx eax, byte [rax + r11 + 0x1d8d50]
mov byte [r8 - 2], al
movzx eax, byte [rdx + r11 + 0x1d8d50]
mov byte [r8 - 1], al
cmp rcx, r14
jb 0x140023724
movabs rax, 0xaaaaaaaaaaaaaaab
mov ecx, ebp
mul r14
shr rdx, 1
lea rax, [rdx + rdx*2]
sub r14, rax
lea rdx, [r14*4 + 0x1694b8]
cmp dword [rdx + r11], ecx
jle 0x1400237ff
lea rax, [r12 - 1]
add rax, r10
nop dword [rax]
mov byte [rax], 0x3d
inc ecx
lea rax, [rax - 1]
cmp ecx, dword [rdx + r11]
jl 0x1400237f0
mov edx, dword [0x1401ddd80]
mov qword [rbx], r10
mov eax, edx
imul eax, edx
and eax, 0x8000000f
jge 0x14002381b
dec eax
or eax, 0xfffffff0
inc eax
cmp eax, 0xc
jne 0x1400238b4
mov ecx, ebp
mov eax, ebp
inc ebp
sar eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, edx
xor ecx, eax
mov eax, ecx
sar ecx, 1
and eax, 1
dec eax
not eax
and eax, edx
xor eax, ecx
mov ecx, eax
sar eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, edx
xor ecx, eax
mov eax, ecx
sar ecx, 1
and eax, 1
dec eax
not eax
and eax, edx
xor eax, ecx
mov ecx, eax
sar eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, edx
xor ecx, eax
mov eax, ecx
sar ecx, 1
and eax, 1
dec eax
not eax
and eax, edx
xor eax, ecx
mov ecx, eax
sar eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, edx
xor ecx, eax
mov eax, ecx
sar ecx, 1
and eax, 1
dec eax
not eax
and eax, edx
xor eax, ecx
add edx, eax
cmp ebp, 0x100
jl 0x140023824
mov dword [0x1401ddd80], edx
mov al, 1
jmp 0x1400238ba
xor al, al
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.1400d72a0
add rsp, 0x4a8
pop r15
pop r14
pop r13
pop r12
pop rbp
pop rbx
ret