Function at 0x1400a7a60
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov esi, 2
cmp rcx, 1
jne 0x1400a7a9b
mov rbx, qword [0x140169630]
cmp rsi, rbx
ja 0x1400a7b99
jae 0x1400a7b91
mov rax, qword [0x140169640]
test rax, rax
js 0x1400a7ab3
cvtsi2ss xmm0, rax
jmp 0x1400a7ac8
lea rax, [rcx - 1]
test rcx, rax
jne 0x1400a7aa9
mov rsi, rcx
jmp 0x1400a7a72
call fcn.14000d276
mov rsi, rax
jmp 0x1400a7a72
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [0x140169648]
call fcn.1401307a0
cvttss2si rcx, xmm0
movss xmm1, dword [0x140142404]
movaps xmm2, xmm0
subss xmm2, xmm1
cvttss2si rax, xmm2
btc rax, 0x3f
ucomiss xmm0, xmm1
cmovb rax, rcx
cmp rbx, 3
jb 0x1400a7b7d
mov rcx, rbx
shr rcx, 1
movabs rdx, 0x5555555555555555
and rdx, rcx
mov rdi, rbx
sub rdi, rdx
movabs rdx, 0x3333333333333333
mov rcx, rdi
shr rcx, 2
and rdi, rdx
and rcx, rdx
add rcx, rdi
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 0x1400a7b7d
cmp rax, 2
jb 0x1400a7b85
dec rax
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
jmp 0x1400a7b85
mov rcx, rax
call fcn.14000d276
cmp rsi, rax
cmovb rsi, rax
cmp rsi, rbx
jb 0x1400a7b99
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp 0x1400a7bb0
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rcx, rcx
je 0x1400a7c19
mov r14, rcx
mov rax, rcx
shr rax, 0x3d
jne 0x1400a7de3
lea rcx, [r14*8]
call fcn.140105030
mov rcx, qword [0x140169628]
mov qword [0x140169628], rax
test rcx, rcx
je 0x1400a7bf3
call fcn.140105028
test r14, r14
mov edx, 1
cmovne rdx, r14
mov qword [0x140169630], r14
lea rcx, [rdx - 1]
mov eax, edx
and eax, 3
cmp rcx, 3
jae 0x1400a7c4a
xor ecx, ecx
jmp 0x1400a7c8a
mov rcx, qword [0x140169628]
mov qword [0x140169628], 0
test rcx, rcx
je 0x1400a7c35
call fcn.140105028
mov qword [0x140169630], 0
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
and rdx, 0xfffffffffffffffc
xor ebx, ebx
xor ecx, ecx
mov rdi, qword [0x140169628]
mov qword [rdi + rcx*8], rbx
mov rdi, qword [0x140169628]
mov qword [rdi + rcx*8 + 8], rbx
mov rdi, qword [0x140169628]
mov qword [rdi + rcx*8 + 0x10], rbx
mov rdi, qword [0x140169628]
mov qword [rdi + rcx*8 + 0x18], rbx
add rcx, 4
cmp rdx, rcx
jne 0x1400a7c52
test rax, rax
je 0x1400a7ca6
mov rdx, qword [0x140169628]
mov qword [rdx + rcx*8], 0
inc rcx
dec rax
jne 0x1400a7c8f
mov rbx, qword [0x140169638]
test rbx, rbx
je 0x1400a7c40
mov r9, qword [rbx + 8]
mov rax, r14
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, r14
sub rax, rcx
movabs rcx, 0x3333333333333333
mov rdx, rax
and rdx, rcx
shr rax, 2
and rax, rcx
add rax, rdx
mov rcx, rax
shr rcx, 4
add rcx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rcx
movabs r10, 0x101010101010101
imul r10, rax
shr r10, 0x38
cmp r10, 1
ja 0x1400a7dca
lea rax, [r14 - 1]
and r9, rax
mov rax, qword [0x140169628]
lea rcx, [0x140169638]
mov qword [rax + r9*8], rcx
mov rsi, qword [rbx]
test rsi, rsi
je 0x1400a7c40
lea r8, [r14 - 1]
mov rax, qword [rsi + 8]
cmp r10d, 1
ja 0x1400a7d67
and rax, r8
cmp rax, r9
jne 0x1400a7d76
mov rbx, rsi
mov rsi, qword [rbx]
test rsi, rsi
jne 0x1400a7d45
jmp 0x1400a7c40
cmp rax, r14
jb 0x1400a7d52
xor edx, edx
div r14
mov rax, rdx
jmp 0x1400a7d52
mov rcx, qword [0x140169628]
cmp qword [rcx + rax*8], 0
mov rdx, rsi
je 0x1400a7dbe
mov rcx, rdx
mov rdx, qword [rdx]
test rdx, rdx
je 0x1400a7d9a
mov edi, dword [rsi + 0x10]
cmp edi, dword [rdx + 0x10]
je 0x1400a7d87
mov qword [rbx], rdx
mov rdx, qword [0x140169628]
mov rdx, qword [rdx + rax*8]
mov rdx, qword [rdx]
mov qword [rcx], rdx
mov rcx, qword [0x140169628]
mov rax, qword [rcx + rax*8]
mov qword [rax], rsi
jmp 0x1400a7d5a
mov qword [rcx + rax*8], rbx
mov rbx, rsi
mov r9, rax
jmp 0x1400a7d5a
cmp r9, r14
jb 0x1400a7d23
mov rax, r9
xor edx, edx
div r14
mov r9, rdx
jmp 0x1400a7d23
call fcn.140106230
int3