Function at 0x1400a3720
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov esi, 2
cmp rcx, 1
jne 0x1400a375b
mov rbx, qword [0x140173cd8]
cmp rsi, rbx
ja 0x1400a3859
jae 0x1400a3851
mov rax, qword [0x140173ce8]
test rax, rax
js 0x1400a3773
cvtsi2ss xmm0, rax
jmp 0x1400a3788
lea rax, [rcx - 1]
test rcx, rax
jne 0x1400a3769
mov rsi, rcx
jmp 0x1400a3732
call fcn.14002354e
mov rsi, rax
jmp 0x1400a3732
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [0x140173cf0]
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 0x1400a383d
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 0x1400a383d
cmp rax, 2
jb 0x1400a3845
dec rax
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
jmp 0x1400a3845
mov rcx, rax
call fcn.14002354e
cmp rsi, rax
cmovb rsi, rax
cmp rsi, rbx
jb 0x1400a3859
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp 0x1400a3870
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
test rcx, rcx
je 0x1400a38e0
mov rdi, rcx
mov rax, rcx
shr rax, 0x3d
jne 0x1400a3b9e
lea rcx, [rdi*8]
call fcn.14010b888
mov rcx, qword [0x140173cd0]
mov qword [0x140173cd0], rax
test rcx, rcx
je 0x1400a38ba
call fcn.14010b880
test rdi, rdi
mov edx, 1
cmovne rdx, rdi
mov qword [0x140173cd8], rdi
lea rcx, [rdx - 1]
mov eax, edx
and eax, 3
cmp rcx, 3
jae 0x1400a3918
xor ecx, ecx
jmp 0x1400a3958
mov rcx, qword [0x140173cd0]
mov qword [0x140173cd0], 0
test rcx, rcx
je 0x1400a38fc
call fcn.14010b880
mov qword [0x140173cd8], 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 [0x140173cd0]
mov qword [rbx + rcx*8], rbp
mov rbx, qword [0x140173cd0]
mov qword [rbx + rcx*8 + 8], rbp
mov rbx, qword [0x140173cd0]
mov qword [rbx + rcx*8 + 0x10], rbp
mov rbx, qword [0x140173cd0]
mov qword [rbx + rcx*8 + 0x18], rbp
add rcx, 4
cmp rdx, rcx
jne 0x1400a3920
test rax, rax
je 0x1400a3974
mov rdx, qword [0x140173cd0]
mov qword [rdx + rcx*8], 0
inc rcx
dec rax
jne 0x1400a395d
mov r8, qword [0x140173ce0]
test r8, r8
je 0x1400a3907
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 0x1400a3b85
lea rax, [rdi - 1]
and r9, rax
mov rax, qword [0x140173cd0]
lea rcx, [0x140173ce0]
mov qword [rax + r9*8], rcx
mov rbp, qword [r8]
test rbp, rbp
je 0x1400a3907
lea r11, [rdi - 1]
mov qword [rsp + 0x20], rdi
mov rbx, qword [rbp + 8]
cmp r10d, 1
ja 0x1400a3a3a
and rbx, r11
cmp rbx, r9
jne 0x1400a3a4c
mov r8, rbp
mov rbp, qword [r8]
test rbp, rbp
jne 0x1400a3a18
jmp 0x1400a3907
cmp rbx, rdi
jb 0x1400a3a25
mov rax, rbx
xor edx, edx
div rdi
mov rbx, rdx
jmp 0x1400a3a25
mov rax, qword [0x140173cd0]
cmp qword [rax + rbx*8], 0
je 0x1400a3b6e
mov rax, qword [rbp]
test rax, rax
je 0x1400a3b7d
movzx esi, byte [rbp + 0x27]
mov qword [rsp + 0x28], rsi
test sil, sil
jns 0x1400a3a82
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 0x1400a3aa4
mov rcx, qword [r13 + 0x18]
cmp qword [rsp + 0x28], rcx
jne 0x1400a3b42
lea rdx, [r13 + 0x10]
test al, al
jns 0x1400a3aba
mov rdx, qword [rdx]
mov rax, qword [r15]
mov rcx, r15
test sil, sil
cmovs rcx, rax
js 0x1400a3ae9
je 0x1400a3b2f
cmp byte [rdx], al
jne 0x1400a3b42
xor eax, eax
cmp r12, rax
je 0x1400a3b2f
mov cl, byte [rbp + rax + 0x11]
lea rdi, [rax + 1]
cmp cl, byte [rdx + rax + 1]
mov rax, rdi
je 0x1400a3ad1
jmp 0x1400a3b42
cmp qword [rsp + 0x28], 0
je 0x1400a3b2f
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.1401106e0
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 0x1400a3b42
mov rax, qword [r13]
test rax, rax
jne 0x1400a3a8f
mov r14, r13
xor r13d, r13d
mov rdi, qword [rsp + 0x20]
mov qword [r8], r13
mov rax, qword [0x140173cd0]
mov rax, qword [rax + rbx*8]
mov rax, qword [rax]
mov qword [r14], rax
mov rax, qword [0x140173cd0]
mov rax, qword [rax + rbx*8]
mov qword [rax], rbp
jmp 0x1400a3a2d
mov qword [rax + rbx*8], r8
mov r8, rbp
mov r9, rbx
jmp 0x1400a3a2d
mov r14, rbp
xor r13d, r13d
jmp 0x1400a3b47
cmp r9, rdi
jb 0x1400a39f1
mov rax, r9
xor edx, edx
div rdi
mov r9, rdx
jmp 0x1400a39f1
call fcn.14010cab0
int3