Function at 0x1400a0580
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
test rcx, rcx
je 0x1400a0acb
mov rsi, rcx
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1401e8220]
mov rbx, rax
mov rdi, qword [0x1402086c0]
cmp rdi, 1
jbe 0x1400a0a65
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400a0a57
mov rax, qword [0x1402086c0]
cmp rax, 1
jbe 0x1400a0a97
mov rbp, qword [0x1402086d0]
test rbp, rbp
je 0x1400a0a0b
mov r13, qword [rbp + 8]
movabs rdx, 0x5555555555555555
movabs rcx, 0x3333333333333333
movabs r8, 0xf0f0f0f0f0f0f0f
movabs r12, 0x101010101010101
test r13, r13
je 0x1400a06c6
mov rax, r13
shr rax, 1
and rax, rdx
mov rdx, r13
sub rdx, rax
mov rax, rdx
and rax, rcx
shr rdx, 2
and rdx, rcx
add rdx, rax
mov rcx, rdx
shr rcx, 4
add rcx, rdx
and rcx, r8
imul rcx, r12
shr rcx, 0x38
cmp rcx, 1
jbe 0x1400a06b8
mov r15, rbx
cmp rbx, r13
jb 0x1400a0671
mov rax, rbx
xor edx, edx
div r13
mov r15, rdx
mov rax, qword [rbp]
mov rax, qword [rax + r15*8]
test rax, rax
je 0x1400a06d0
mov r14, qword [rax]
test r14, r14
je 0x1400a06d0
lea r8, [r13 - 1]
mov rax, qword [r14 + 8]
cmp rax, rbx
je 0x1400a09fc
cmp ecx, 1
jbe 0x1400a06c1
cmp rax, r13
jb 0x1400a06a9
xor edx, edx
div r13
mov rax, rdx
cmp rax, r15
jne 0x1400a06d0
mov r14, qword [r14]
test r14, r14
jne 0x1400a068a
jmp 0x1400a06d0
lea r15, [r13 - 1]
and r15, rbx
jmp 0x1400a0671
and rax, r8
jmp 0x1400a06a9
movabs r15, 0xaaaaaaaaaaaaaaaa
mov ecx, 0x20
call fcn.1400d2b88
test rax, rax
je 0x1400a0ac9
mov r14, rax
xor eax, eax
mov qword [r14], rax
mov qword [r14 + 8], rbx
mov qword [r14 + 0x10], rbx
mov qword [r14 + 0x18], rax
mov rax, qword [rbp + 0x18]
inc rax
jns 0x1400a0717
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
jmp 0x1400a071c
cvtsi2ss xmm0, rax
mov rcx, r13
shr rcx, 1
mov eax, r13d
and eax, 1
or rax, rcx
test r13, r13
jns 0x1400a073b
cvtsi2ss xmm1, rax
addss xmm1, xmm1
jmp 0x1400a0740
cvtsi2ss xmm1, r13
movss xmm2, dword [rbp + 0x20]
je 0x1400a083d
mulss xmm1, xmm2
ucomiss xmm0, xmm1
ja 0x1400a083d
mov rcx, qword [rbp]
mov rax, qword [rcx + r15*8]
test rax, rax
jne 0x1400a07a4
lea rax, [rbp + 0x10]
mov rdx, qword [rbp + 0x10]
mov qword [r14], rdx
mov qword [rbp + 0x10], r14
mov qword [rcx + r15*8], rax
mov rax, qword [r14]
test rax, rax
je 0x1400a07ad
mov rax, qword [rax + 8]
lea rcx, [r13 - 1]
test r13, rcx
je 0x1400a07f3
cmp rax, r13
jb 0x1400a079a
xor edx, edx
div r13
mov rax, rdx
shl rax, 3
add rax, qword [rbp]
jmp 0x1400a07aa
mov rcx, qword [rax]
mov qword [r14], rcx
mov qword [rax], r14
inc qword [rbp + 0x18]
mov r15, qword [r14 + 0x18]
test r15, r15
jne 0x1400a0a29
mov qword [r14 + 0x18], rsi
mov r10, qword [0x1402086d0]
mov r8, qword [r10 + 0x30]
test r8, r8
jne 0x1400a0ace
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
and rax, rcx
jmp 0x1400a079a
mov r13, qword [rbp + 8]
lea r15, [r13 - 1]
test r13, r15
je 0x1400a0828
cmp rbx, r13
jb 0x1400a0bc7
mov rax, rbx
xor edx, edx
div r13
mov r15, rdx
movabs r12, 0x101010101010101
jmp 0x1400a0758
and r15, rbx
jmp 0x1400a0819
mov r12d, 2
jmp 0x1400a08aa
mov r12d, 1
jmp 0x1400a0881
divss xmm0, xmm2
call fcn.1400f0268
cvttss2si rcx, xmm0
mov rdx, rcx
sar rdx, 0x3f
subss xmm0, dword [0x1401d6658]
cvttss2si rax, xmm0
and rax, rdx
or rax, rcx
lea rcx, [r13*2]
cmp r13, 3
jb 0x1400a0835
lea rdx, [r13 - 1]
xor r12d, r12d
test r13, rdx
setne r12b
or r12, rcx
cmp r12, rax
cmovbe r12, rax
cmp r12, 1
je 0x1400a082d
lea rax, [r12 - 1]
test r12, rax
je 0x1400a08aa
mov rcx, r12
call fcn.14007fd50
mov r12, rax
mov r13, qword [rbp + 8]
cmp r12, r13
jbe 0x1400a0bdb
mov r15, r12
mov rax, r15
shr rax, 0x3d
jne 0x1400a0bc2
lea rcx, [r15*8]
call fcn.1400d2b88
mov rcx, qword [rbp]
mov qword [rbp], rax
test rcx, rcx
je 0x1400a08e2
call fcn.1400d2b80
mov qword [rbp + 8], r15
xor eax, eax
mov rcx, qword [rbp]
mov qword [rcx + rax*8], 0
inc rax
cmp r15, rax
jne 0x1400a08e8
mov r8, qword [rbp + 0x10]
test r8, r8
je 0x1400a07f8
lea r10, [rbp + 0x10]
mov rcx, qword [r8 + 8]
mov rax, r15
shr rax, 1
movabs rdx, 0x5555555555555555
and rax, rdx
mov rdx, r15
sub rdx, rax
mov rax, rdx
movabs r9, 0x3333333333333333
and rax, r9
shr rdx, 2
and rdx, r9
add rdx, rax
mov r9, rdx
shr r9, 4
add r9, rdx
movabs rax, 0xf0f0f0f0f0f0f0f
and r9, rax
movabs rax, 0x101010101010101
imul r9, rax
shr r9, 0x38
cmp r9, 1
jbe 0x1400a0bcf
cmp rcx, r15
jb 0x1400a0987
mov rax, rcx
xor edx, edx
div r15
mov rcx, rdx
mov rax, qword [rbp]
mov qword [rax + rcx*8], r10
mov r10, qword [r8]
jmp 0x1400a09a1
mov qword [rdx + rax*8], r8
mov r8, r10
mov r10, qword [r10]
mov rcx, rax
test r10, r10
je 0x1400a07f8
mov rax, qword [r10 + 8]
cmp r9d, 1
jbe 0x1400a0bb6
cmp rax, r15
jb 0x1400a09c5
xor edx, edx
div r15
mov rax, rdx
cmp rax, rcx
je 0x1400a09f7
mov rdx, qword [rbp]
cmp qword [rdx + rax*8], 0
je 0x1400a0994
mov rdx, qword [r10]
mov qword [r8], rdx
mov rdx, qword [rbp]
mov rdx, qword [rdx + rax*8]
mov rdx, qword [rdx]
mov qword [r10], rdx
mov rdx, qword [rbp]
mov rax, qword [rdx + rax*8]
mov qword [rax], r10
mov r10, r8
mov rax, rcx
jmp 0x1400a0998
cmp qword [r14 + 0x10], rbx
je 0x1400a07b1
jmp 0x1400a06ae
mov ecx, 0xb0
call fcn.1400d2b88
mov rcx, rax
call fcn.1400093b0
mov rbp, qword [0x1402086d0]
jmp 0x1400a05ef
cmp r15, rsi
je 0x1400a07d6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rax, qword [rsi]
mov rax, qword [rax]
mov rcx, rsi
mov edx, 1
call qword [0x1401e8220]
mov rsi, r15
jmp 0x1400a07df
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x1400a05ce
lea rcx, [0x1402086c0]
call fcn.14001e280
test al, al
je 0x1400a0d07
mov qword [0x1402086c8], 0
lea rdi, [0x1402086c8]
mov qword [0x1402086c0], rdi
jmp 0x1400a05bd
lea rcx, [0x1402086c0]
call fcn.14001e280
test al, al
je 0x1400a0d13
mov qword [0x1402086c8], 0
lea rax, [0x1402086c8]
mov qword [0x1402086c0], rax
jmp 0x1400a05df
ud2
int3
mov rax, r8
shr rax, 1
movabs rcx, 0x5555555555555555
and rax, rcx
mov rcx, r8
sub rcx, rax
mov rax, rcx
movabs rdx, 0x3333333333333333
and rax, rdx
shr rcx, 2
and rcx, rdx
add rcx, rax
mov r9, rcx
shr r9, 4
add r9, rcx
movabs rax, 0xf0f0f0f0f0f0f0f
and r9, rax
imul r9, r12
shr r9, 0x38
cmp r9, 1
jbe 0x1400a0b3d
cmp rbx, r8
jb 0x1400a0b38
mov rax, rbx
xor edx, edx
div r8
mov rcx, rdx
jmp 0x1400a0b44
mov rcx, rbx
jmp 0x1400a0b44
lea rcx, [r8 - 1]
and rcx, rbx
mov rax, qword [r10 + 0x28]
mov rax, qword [rax + rcx*8]
test rax, rax
je 0x1400a07d6
mov r10, qword [rax]
test r10, r10
je 0x1400a07d6
lea r11, [r8 - 1]
jmp 0x1400a0b79
cmp qword [r10 + 0x10], rbx
je 0x1400a0ba4
mov r10, qword [r10]
test r10, r10
je 0x1400a07d6
mov rax, qword [r10 + 8]
cmp rbx, rax
je 0x1400a0b67
cmp r9d, 1
ja 0x1400a0b95
and rax, r11
cmp rax, rcx
je 0x1400a0b6d
jmp 0x1400a07d6
cmp rax, r8
jb 0x1400a0b8b
xor edx, edx
div r8
mov rax, rdx
jmp 0x1400a0b8b
mov rcx, rsi
mov edx, 0x20
call fcn.140076aa0
jmp 0x1400a07d6
lea rdx, [r15 - 1]
and rax, rdx
jmp 0x1400a09c5
call fcn.140111390
mov r15, rbx
jmp 0x1400a0819
lea rax, [r15 - 1]
and rcx, rax
jmp 0x1400a0987
jae 0x1400a07f8
mov rax, qword [rbp + 0x18]
test rax, rax
jns 0x1400a0c04
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
addss xmm0, xmm0
jmp 0x1400a0c0c
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
divss xmm0, dword [rbp + 0x20]
call fcn.1400f0268
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x1401d6658]
cvttss2si rax, xmm0
sar rdx, 0x3f
and rax, rdx
or rax, rcx
cmp r13, 3
jb 0x1400a0cc0
mov rcx, r13
shr rcx, 1
movabs rdx, 0x5555555555555555
and rcx, rdx
mov rdx, r13
sub rdx, rcx
mov rcx, rdx
shr rcx, 2
movabs r8, 0x3333333333333333
and rdx, r8
and rcx, r8
add rcx, rdx
mov rdx, rcx
shr rdx, 4
add rdx, rcx
movabs rcx, 0xf0f0f0f0f0f0f0f
and rdx, rcx
movabs rcx, 0x101010101010101
imul rdx, rcx
shr rdx, 0x38
cmp edx, 1
ja 0x1400a0cc0
lea rcx, [rax - 1]
bsr rcx, rcx
xor ecx, 0x3f
neg cl
mov r15d, 1
shl r15, cl
cmp rax, 2
cmovb r15, rax
jmp 0x1400a0ccb
mov rcx, rax
call fcn.14007fd50
mov r15, rax
cmp r12, r15
cmova r15, r12
cmp r15, r13
jae 0x1400a07f8
test r15, r15
jne 0x1400a08b6
mov rcx, qword [rbp]
mov qword [rbp], 0
test rcx, rcx
je 0x1400a0cfa
call fcn.1400d2b80
mov qword [rbp + 8], 0
jmp 0x1400a07f8
mov rdi, qword [0x1402086c0]
jmp 0x1400a05bd
mov rax, qword [0x1402086c0]
jmp 0x1400a05df