Function at 0x1400a8210
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov esi, 2
cmp rcx, 1
jne 0x1400a824b
mov rbx, qword [0x140169658]
cmp rsi, rbx
ja 0x1400a8349
jae 0x1400a8341
mov rax, qword [0x140169668]
test rax, rax
js 0x1400a8263
cvtsi2ss xmm0, rax
jmp 0x1400a8278
lea rax, [rcx - 1]
test rcx, rax
jne 0x1400a8259
mov rsi, rcx
jmp 0x1400a8222
call fcn.14000d276
mov rsi, rax
jmp 0x1400a8222
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [0x140169670]
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 0x1400a832d
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 0x1400a832d
cmp rax, 2
jb 0x1400a8335
dec rax
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
jmp 0x1400a8335
mov rcx, rax
call fcn.14000d276
cmp rsi, rax
cmovb rsi, rax
cmp rsi, rbx
jb 0x1400a8349
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp 0x1400a8360
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
test rcx, rcx
je 0x1400a83d0
mov rdi, rcx
mov rax, rcx
shr rax, 0x3d
jne 0x1400a868e
lea rcx, [rdi*8]
call fcn.140105030
mov rcx, qword [0x140169650]
mov qword [0x140169650], rax
test rcx, rcx
je 0x1400a83aa
call fcn.140105028
test rdi, rdi
mov edx, 1
cmovne rdx, rdi
mov qword [0x140169658], rdi
lea rcx, [rdx - 1]
mov eax, edx
and eax, 3
cmp rcx, 3
jae 0x1400a8408
xor ecx, ecx
jmp 0x1400a8448
mov rcx, qword [0x140169650]
mov qword [0x140169650], 0
test rcx, rcx
je 0x1400a83ec
call fcn.140105028
mov qword [0x140169658], 0
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
and rdx, 0xfffffffffffffffc
xor ebp, ebp
xor ecx, ecx
mov rbx, qword [0x140169650]
mov qword [rbx + rcx*8], rbp
mov rbx, qword [0x140169650]
mov qword [rbx + rcx*8 + 8], rbp
mov rbx, qword [0x140169650]
mov qword [rbx + rcx*8 + 0x10], rbp
mov rbx, qword [0x140169650]
mov qword [rbx + rcx*8 + 0x18], rbp
add rcx, 4
cmp rdx, rcx
jne 0x1400a8410
test rax, rax
je 0x1400a8464
mov rdx, qword [0x140169650]
mov qword [rdx + rcx*8], 0
inc rcx
dec rax
jne 0x1400a844d
mov r8, qword [0x140169660]
test r8, r8
je 0x1400a83f7
mov r9, qword [r8 + 8]
mov rax, rdi
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, rdi
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 0x1400a8675
lea rax, [rdi - 1]
and r9, rax
mov rax, qword [0x140169650]
lea rcx, [0x140169660]
mov qword [rax + r9*8], rcx
mov rbp, qword [r8]
test rbp, rbp
je 0x1400a83f7
lea r11, [rdi - 1]
mov qword [rsp + 0x20], rdi
mov rbx, qword [rbp + 8]
cmp r10d, 1
ja 0x1400a852a
and rbx, r11
cmp rbx, r9
jne 0x1400a853c
mov r8, rbp
mov rbp, qword [r8]
test rbp, rbp
jne 0x1400a8508
jmp 0x1400a83f7
cmp rbx, rdi
jb 0x1400a8515
mov rax, rbx
xor edx, edx
div rdi
mov rbx, rdx
jmp 0x1400a8515
mov rax, qword [0x140169650]
cmp qword [rax + rbx*8], 0
je 0x1400a865e
mov rax, qword [rbp]
test rax, rax
je 0x1400a866d
movzx esi, byte [rbp + 0x27]
mov qword [rsp + 0x28], rsi
test sil, sil
jns 0x1400a8572
mov rcx, qword [rbp + 0x18]
mov qword [rsp + 0x28], rcx
lea r15, [rbp + 0x10]
mov r12, rsi
dec r12
mov r13, rbp
mov r14, r13
mov r13, rax
movzx eax, byte [rax + 0x27]
mov rcx, rax
test al, al
jns 0x1400a8594
mov rcx, qword [r13 + 0x18]
cmp qword [rsp + 0x28], rcx
jne 0x1400a8632
lea rdx, [r13 + 0x10]
test al, al
jns 0x1400a85aa
mov rdx, qword [rdx]
mov rax, qword [r15]
mov rcx, r15
test sil, sil
cmovs rcx, rax
js 0x1400a85d9
je 0x1400a861f
cmp byte [rdx], al
jne 0x1400a8632
xor eax, eax
cmp r12, rax
je 0x1400a861f
mov cl, byte [rbp + rax + 0x11]
lea rdi, [rax + 1]
cmp cl, byte [rdx + rax + 1]
mov rax, rdi
je 0x1400a85c1
jmp 0x1400a8632
cmp qword [rsp + 0x28], 0
je 0x1400a861f
mov qword [rsp + 0x40], r8
mov r8, qword [rsp + 0x28]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rsi
mov r14, r9
mov rdi, r10
mov rsi, r11
call fcn.140109f00
mov r11, rsi
mov r10, rdi
mov r9, r14
mov rsi, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r8, qword [rsp + 0x40]
test eax, eax
jne 0x1400a8632
mov rax, qword [r13]
test rax, rax
jne 0x1400a857f
mov r14, r13
xor r13d, r13d
mov rdi, qword [rsp + 0x20]
mov qword [r8], r13
mov rax, qword [0x140169650]
mov rax, qword [rax + rbx*8]
mov rax, qword [rax]
mov qword [r14], rax
mov rax, qword [0x140169650]
mov rax, qword [rax + rbx*8]
mov qword [rax], rbp
jmp 0x1400a851d
mov qword [rax + rbx*8], r8
mov r8, rbp
mov r9, rbx
jmp 0x1400a851d
mov r14, rbp
xor r13d, r13d
jmp 0x1400a8637
cmp r9, rdi
jb 0x1400a84e1
mov rax, r9
xor edx, edx
div rdi
mov r9, rdx
jmp 0x1400a84e1
call fcn.140106230
int3