Function at 0x1400a2f70
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov esi, 2
cmp rcx, 1
jne 0x1400a2fab
mov rbx, qword [0x140173cb0]
cmp rsi, rbx
ja 0x1400a30a9
jae 0x1400a30a1
mov rax, qword [0x140173cc0]
test rax, rax
js 0x1400a2fc3
cvtsi2ss xmm0, rax
jmp 0x1400a2fd8
lea rax, [rcx - 1]
test rcx, rax
jne 0x1400a2fb9
mov rsi, rcx
jmp 0x1400a2f82
call fcn.14002354e
mov rsi, rax
jmp 0x1400a2f82
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [0x140173cc8]
call fcn.140137320
cvttss2si rcx, xmm0
movss xmm1, dword [0x140149f98]
movaps xmm2, xmm0
subss xmm2, xmm1
cvttss2si rax, xmm2
btc rax, 0x3f
ucomiss xmm0, xmm1
cmovb rax, rcx
cmp rbx, 3
jb 0x1400a308d
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 0x1400a308d
cmp rax, 2
jb 0x1400a3095
dec rax
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
jmp 0x1400a3095
mov rcx, rax
call fcn.14002354e
cmp rsi, rax
cmovb rsi, rax
cmp rsi, rbx
jb 0x1400a30a9
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp 0x1400a30c0
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rcx, rcx
je 0x1400a3129
mov r14, rcx
mov rax, rcx
shr rax, 0x3d
jne 0x1400a32f3
lea rcx, [r14*8]
call fcn.14010b888
mov rcx, qword [0x140173ca8]
mov qword [0x140173ca8], rax
test rcx, rcx
je 0x1400a3103
call fcn.14010b880
test r14, r14
mov edx, 1
cmovne rdx, r14
mov qword [0x140173cb0], r14
lea rcx, [rdx - 1]
mov eax, edx
and eax, 3
cmp rcx, 3
jae 0x1400a315a
xor ecx, ecx
jmp 0x1400a319a
mov rcx, qword [0x140173ca8]
mov qword [0x140173ca8], 0
test rcx, rcx
je 0x1400a3145
call fcn.14010b880
mov qword [0x140173cb0], 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 [0x140173ca8]
mov qword [rdi + rcx*8], rbx
mov rdi, qword [0x140173ca8]
mov qword [rdi + rcx*8 + 8], rbx
mov rdi, qword [0x140173ca8]
mov qword [rdi + rcx*8 + 0x10], rbx
mov rdi, qword [0x140173ca8]
mov qword [rdi + rcx*8 + 0x18], rbx
add rcx, 4
cmp rdx, rcx
jne 0x1400a3162
test rax, rax
je 0x1400a31b6
mov rdx, qword [0x140173ca8]
mov qword [rdx + rcx*8], 0
inc rcx
dec rax
jne 0x1400a319f
mov rbx, qword [0x140173cb8]
test rbx, rbx
je 0x1400a3150
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 0x1400a32da
lea rax, [r14 - 1]
and r9, rax
mov rax, qword [0x140173ca8]
lea rcx, [0x140173cb8]
mov qword [rax + r9*8], rcx
mov rsi, qword [rbx]
test rsi, rsi
je 0x1400a3150
lea r8, [r14 - 1]
mov rax, qword [rsi + 8]
cmp r10d, 1
ja 0x1400a3277
and rax, r8
cmp rax, r9
jne 0x1400a3286
mov rbx, rsi
mov rsi, qword [rbx]
test rsi, rsi
jne 0x1400a3255
jmp 0x1400a3150
cmp rax, r14
jb 0x1400a3262
xor edx, edx
div r14
mov rax, rdx
jmp 0x1400a3262
mov rcx, qword [0x140173ca8]
cmp qword [rcx + rax*8], 0
mov rdx, rsi
je 0x1400a32ce
mov rcx, rdx
mov rdx, qword [rdx]
test rdx, rdx
je 0x1400a32aa
mov edi, dword [rsi + 0x10]
cmp edi, dword [rdx + 0x10]
je 0x1400a3297
mov qword [rbx], rdx
mov rdx, qword [0x140173ca8]
mov rdx, qword [rdx + rax*8]
mov rdx, qword [rdx]
mov qword [rcx], rdx
mov rcx, qword [0x140173ca8]
mov rax, qword [rcx + rax*8]
mov qword [rax], rsi
jmp 0x1400a326a
mov qword [rcx + rax*8], rbx
mov rbx, rsi
mov r9, rax
jmp 0x1400a326a
cmp r9, r14
jb 0x1400a3233
mov rax, r9
xor edx, edx
div r14
mov r9, rdx
jmp 0x1400a3233
call fcn.14010cab0
int3