Function at 0x1400d1b70
Capabilities:
Encode data using base64

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov r14, rcx
mov edi, 2
cmp rdx, 1
jne 0x1400d1baa
mov rsi, qword [r14 + 8]
cmp rdi, rsi
ja 0x1400d1ca5
jae 0x1400d1c9b
mov rax, qword [r14 + 0x18]
test rax, rax
js 0x1400d1bc5
cvtsi2ss xmm0, rax
jmp 0x1400d1bda
lea rax, [rdx - 1]
test rdx, rax
jne 0x1400d1bb8
mov rdi, rdx
jmp 0x1400d1b87
mov rcx, rdx
call fcn.140041ea2
mov rdi, rax
jmp 0x1400d1b87
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [r14 + 0x20]
call fcn.1400af960
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x140150e20]
cvttss2si rax, xmm0
sar rdx, 0x3f
and rax, rdx
or rax, rcx
cmp rsi, 3
jb 0x1400d1c87
mov rcx, rsi
shr rcx, 1
movabs rdx, 0x5555555555555555
and rdx, rcx
mov rbx, rsi
sub rbx, rdx
movabs rdx, 0x3333333333333333
mov rcx, rbx
shr rcx, 2
and rbx, rdx
and rcx, rdx
add rcx, rbx
mov rdx, rcx
shr rdx, 4
add rdx, rcx
movabs rcx, 0xf0f0f0f0f0f0f0f
and rcx, rdx
movabs rdx, 0x101010101010101
imul rdx, rcx
shr rdx, 0x38
cmp edx, 1
ja 0x1400d1c87
cmp rax, 2
jb 0x1400d1c8f
dec rax
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
jmp 0x1400d1c8f
mov rcx, rax
call fcn.140041ea2
cmp rdi, rax
cmovb rdi, rax
cmp rdi, rsi
jb 0x1400d1ca5
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, r14
mov rdx, rdi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp 0x1400d1cc0
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov r12, rcx
test rdx, rdx
je 0x1400d1e92
mov r15, rdx
mov rax, rdx
shr rax, 0x3d
jne 0x1400d1edb
lea rcx, [r15*8]
call fcn.140082758
mov rcx, qword [r12]
mov qword [r12], rax
test rcx, rcx
je 0x1400d1d0b
call fcn.140082794
mov qword [r12 + 8], r15
xor eax, eax
mov rcx, qword [r12]
mov qword [rcx + rax*8], 0
inc rax
cmp r15, rax
jne 0x1400d1d12
mov rbp, qword [r12 + 0x10]
test rbp, rbp
je 0x1400d1eb1
lea rdi, [r12 + 0x10]
mov rsi, qword [rbp + 8]
mov rax, r15
shr rax, 1
movabs rdx, 0x5555555555555555
and rdx, rax
mov rax, r15
sub rax, rdx
movabs rdx, 0x3333333333333333
mov rbx, rax
and rbx, rdx
shr rax, 2
and rax, rdx
add rax, rbx
mov rdx, rax
shr rdx, 4
add rdx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rdx
movabs rcx, 0x101010101010101
imul rcx, rax
shr rcx, 0x38
cmp rcx, 1
ja 0x1400d1ec2
lea rax, [r15 - 1]
and rsi, rax
mov rax, qword [r12]
mov qword [rax + rsi*8], rdi
mov r14, qword [rbp]
test r14, r14
je 0x1400d1eb1
lea r9, [r15 - 1]
lea rbx, [r12 + 0x24]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r9
mov rdi, qword [r14 + 8]
cmp ecx, 1
ja 0x1400d1df4
and rdi, r9
cmp rdi, rsi
jne 0x1400d1e06
mov rbp, r14
mov r14, qword [rbp]
test r14, r14
jne 0x1400d1dd2
jmp 0x1400d1eb1
cmp rdi, r15
jb 0x1400d1dde
mov rax, rdi
xor edx, edx
div r15
mov rdi, rdx
jmp 0x1400d1dde
mov rax, qword [r12]
cmp qword [rax + rdi*8], 0
je 0x1400d1e49
mov r8, qword [r14]
test r8, r8
je 0x1400d1e55
mov qword [rsp + 0x30], rsi
lea rsi, [r14 + 0x10]
mov r13, r14
add r8, 0x10
mov rcx, rbx
mov rdx, rsi
call fcn.14004dba0
test al, al
je 0x1400d1e5c
mov r13, qword [r13]
mov r8, qword [r13]
test r8, r8
jne 0x1400d1e25
xor eax, eax
jmp 0x1400d1e60
mov qword [rax + rdi*8], rbp
mov rbp, r14
mov rsi, rdi
jmp 0x1400d1de6
xor eax, eax
mov r13, r14
jmp 0x1400d1e6f
mov rax, qword [r13]
mov rsi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
mov r9, qword [rsp + 0x20]
mov qword [rbp], rax
mov rax, qword [r12]
mov rax, qword [rax + rdi*8]
mov rax, qword [rax]
mov qword [r13], rax
mov rax, qword [r12]
mov rax, qword [rax + rdi*8]
mov qword [rax], r14
jmp 0x1400d1de6
mov rcx, qword [r12]
mov qword [r12], 0
test rcx, rcx
je 0x1400d1ea8
call fcn.140082794
mov qword [r12 + 8], 0
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp rsi, r15
jb 0x1400d1daa
mov rax, rsi
xor edx, edx
div r15
mov rsi, rdx
jmp 0x1400d1daa
call fcn.140094740
int3