Function at 0x140128da0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rax, qword [0x1402b3040]
xor rax, rsp
mov qword [rsp + 0x40], rax
test rcx, rcx
je 0x1401293d6
mov rsi, rcx
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
lea rcx, [0x140198dd0]
cmp rax, rcx
jne 0x140128f47
mov rax, qword [rsi + 0x18]
mov rax, qword [rax + 0x10]
mov rdi, qword [rax]
movabs r15, 0xaaaaaaaaaaaaaaaa
mov rbx, qword [0x1402c57f8]
cmp rbx, 1
jbe 0x14012936c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140129140
mov rax, qword [0x1402c57f8]
cmp rax, 1
jbe 0x1401293a0
mov rbp, qword [0x1402c5808]
test rbp, rbp
je 0x14012934e
mov r13, qword [rbp + 8]
movabs rcx, 0x5555555555555555
movabs r10, 0x3333333333333333
movabs r12, 0xf0f0f0f0f0f0f0f
movabs r11, 0x101010101010101
test r13, r13
je 0x140128f01
mov rax, r13
shr rax, 1
and rax, rcx
mov rdx, r13
sub rdx, rax
mov rax, rdx
and rax, r10
shr rdx, 2
and rdx, r10
add rdx, rax
mov rcx, rdx
shr rcx, 4
add rcx, rdx
and rcx, r12
imul rcx, r11
shr rcx, 0x38
cmp rcx, 1
jbe 0x14012914e
mov r15, rdi
cmp rdi, r13
jb 0x140128ec0
mov rax, rdi
xor edx, edx
div r13
mov r15, rdx
mov rax, qword [rbp]
mov rax, qword [rax + r15*8]
test rax, rax
je 0x140128f01
mov r14, qword [rax]
test r14, r14
je 0x140128f01
cmp ecx, 2
jb 0x140129300
mov rax, qword [r14 + 8]
cmp rax, rdi
je 0x140128f58
cmp rax, r13
jb 0x140128ef4
xor edx, edx
div r13
mov rax, rdx
cmp rax, r15
jne 0x140128f01
mov r14, qword [r14]
test r14, r14
jne 0x140128ede
mov ecx, 0x20
call fcn.14019aa78
test rax, rax
je 0x1401293d4
mov r14, rax
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0
mov rax, qword [rbp + 0x18]
inc rax
jns 0x140128f64
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
jmp 0x140128f69
mov rcx, rsi
call qword [0x1402a4958]
mov rdi, rax
jmp 0x140128ded
cmp qword [r14 + 0x10], rdi
je 0x140129016
jmp 0x140128ef9
cvtsi2ss xmm0, rax
movabs r11, 0x101010101010101
movabs r10, 0x3333333333333333
mov rcx, r13
shr rcx, 1
mov eax, r13d
and eax, 1
or rax, rcx
test r13, r13
jns 0x140128fdf
cvtsi2ss xmm1, rax
addss xmm1, xmm1
jmp 0x140128fe4
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 0x140129012
mov rax, qword [rax + 8]
lea rcx, [r13 - 1]
test r13, rcx
je 0x140129332
cmp rax, r13
jb 0x140128fd5
xor edx, edx
div r13
mov rax, rdx
shl rax, 3
add rax, qword [rbp]
jmp 0x14012900f
cvtsi2ss xmm1, r13
movss xmm2, dword [rbp + 0x20]
je 0x14012916a
mulss xmm1, xmm2
ucomiss xmm0, xmm1
ja 0x14012916a
mov rcx, qword [rbp]
mov rax, qword [rcx + r15*8]
test rax, rax
je 0x140128f9c
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 0x140129053
mov qword [r14 + 0x18], rsi
mov r9, qword [0x1402c5808]
mov r8, qword [r9 + 0x30]
test r8, r8
jne 0x14012908e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
cmp rcx, qword [0x1402b3040]
je 0x14012907a
call fcn.14019d280
int3
cmp rsi, r15
je 0x140129033
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rax, qword [rsi]
mov rax, qword [rax]
mov rcx, rsi
mov edx, 1
call qword [0x1402a4958]
mov rsi, r15
jmp 0x14012903c
mov rax, rsi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, r8
shr rax, 1
movabs rcx, 0x5555555555555555
and rax, rcx
mov rcx, r8
sub rcx, rax
mov rax, rcx
and rax, r10
shr rcx, 2
and rcx, r10
add rcx, rax
mov r10, rcx
shr r10, 4
add r10, rcx
and r10, r12
imul r10, r11
shr r10, 0x38
cmp r10, 1
jbe 0x14012944e
mov rcx, rdi
cmp rdi, r8
jb 0x1401290e9
mov rax, rdi
xor edx, edx
div r8
mov rcx, rdx
mov rax, qword [r9 + 0x28]
mov rax, qword [rax + rcx*8]
test rax, rax
je 0x140129033
mov r9, qword [rax]
test r9, r9
je 0x140129033
cmp r10d, 2
jb 0x14012945a
mov rax, qword [r9 + 8]
cmp rdi, rax
je 0x14012933a
cmp rax, r8
jb 0x14012912a
xor edx, edx
div r8
mov rax, rdx
cmp rax, rcx
jne 0x140129033
mov r9, qword [r9]
test r9, r9
jne 0x140129110
jmp 0x140129033
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x140128e19
lea r15, [r13 - 1]
and r15, rdi
jmp 0x140128ec0
mov r15d, 2
jmp 0x1401291d6
mov r15d, 1
jmp 0x1401291ae
divss xmm0, xmm2
call fcn.1401babdc
cvttss2si rcx, xmm0
mov rdx, rcx
sar rdx, 0x3f
subss xmm0, dword [0x140283988]
cvttss2si rax, xmm0
and rax, rdx
or rax, rcx
lea rcx, [r13*2]
cmp r13, 3
jb 0x140129162
lea rdx, [r13 - 1]
xor r15d, r15d
test r13, rdx
setne r15b
or r15, rcx
cmp r15, rax
cmovbe r15, rax
cmp r15, 1
je 0x14012915a
lea rax, [r15 - 1]
test r15, rax
je 0x1401291d6
mov rcx, r15
call fcn.14015cfd0
mov r15, rax
mov r13, qword [rbp + 8]
cmp r15, r13
jbe 0x140129490
mov rax, r15
shr rax, 0x3d
jne 0x140129483
lea rcx, [r15*8]
call fcn.14019aa78
mov rcx, qword [rbp]
mov qword [rbp], rax
test rcx, rcx
je 0x14012920b
call fcn.14019aab4
mov qword [rbp + 8], r15
xor eax, eax
mov rcx, qword [rbp]
mov qword [rcx + rax*8], 0
inc rax
cmp r15, rax
jne 0x140129211
mov r8, qword [rbp + 0x10]
test r8, r8
movabs r11, 0x101010101010101
movabs r10, 0x3333333333333333
je 0x1401292d2
lea r9, [rbp + 0x10]
mov rcx, qword [r8 + 8]
lea rax, [r15 - 1]
test r15, rax
je 0x1401293d9
cmp rcx, r15
jb 0x14012926b
mov rax, rcx
xor edx, edx
div r15
mov rcx, rdx
mov rax, qword [rbp]
mov qword [rax + rcx*8], r9
mov r9, qword [r8]
jmp 0x140129285
mov qword [rdx + rax*8], r8
mov r8, r9
mov r9, qword [r9]
mov rcx, rax
test r9, r9
je 0x1401292d2
mov rax, qword [r9 + 8]
cmp rax, r15
jb 0x14012929b
xor edx, edx
div r15
mov rax, rdx
cmp rax, rcx
je 0x1401292cd
mov rdx, qword [rbp]
cmp qword [rdx + rax*8], 0
je 0x140129278
mov rdx, qword [r9]
mov qword [r8], rdx
mov rdx, qword [rbp]
mov rdx, qword [rdx + rax*8]
mov rdx, qword [rdx]
mov qword [r9], rdx
mov rdx, qword [rbp]
mov rax, qword [rdx + rax*8]
mov qword [rax], r9
mov r9, r8
mov rax, rcx
jmp 0x14012927c
mov r13, qword [rbp + 8]
lea r15, [r13 - 1]
test r13, r15
je 0x1401292f8
cmp rdi, r13
jb 0x140129488
mov rax, rdi
xor edx, edx
div r13
mov r15, rdx
jmp 0x140128ffc
and r15, rdi
jmp 0x140128ffc
lea rax, [r13 - 1]
mov rcx, qword [r14 + 8]
cmp rcx, rdi
je 0x140129326
and rcx, rax
cmp rcx, r15
jne 0x140128f01
mov r14, qword [r14]
test r14, r14
jne 0x140129304
jmp 0x140128f01
cmp qword [r14 + 0x10], rdi
je 0x140129016
jmp 0x140129319
and rax, rcx
jmp 0x140128fd5
cmp qword [r9 + 0x10], rdi
jne 0x140129133
lock or dword [rsi + 0x10], 0x20
jmp 0x140129033
mov ecx, 0xb0
call fcn.14019aa78
mov rcx, rax
call fcn.140007d60
mov rbp, qword [0x1402c5808]
jmp 0x140128e3a
mov ecx, 1
xor eax, eax
lock cmpxchg qword [0x1402c57f8], rcx
jne 0x1401295f1
mov qword [0x1402c5800], 0
lea rbx, [0x1402c5800]
mov qword [0x1402c57f8], rbx
jmp 0x140128e08
mov ecx, 1
xor eax, eax
lock cmpxchg qword [0x1402c57f8], rcx
jne 0x140129672
mov qword [0x1402c5800], 0
lea rax, [0x1402c5800]
mov qword [0x1402c57f8], rax
jmp 0x140128e2a
ud2
int3
and rcx, rax
mov rdx, qword [rbp]
mov qword [rdx + rcx*8], r9
mov rdx, qword [r8]
test rdx, rdx
jne 0x140129416
jmp 0x1401292d2
mov r8, rdx
jmp 0x140129400
mov qword [r10 + r9*8], r8
mov r8, rdx
mov rcx, r9
mov rdx, qword [r8]
test rdx, rdx
movabs r10, 0x3333333333333333
je 0x1401292d2
mov r9, qword [rdx + 8]
and r9, rax
cmp r9, rcx
je 0x1401293f1
mov r10, qword [rbp]
cmp qword [r10 + r9*8], 0
je 0x1401293f6
mov r10, qword [rdx]
mov qword [r8], r10
mov r10, qword [rbp]
mov r10, qword [r10 + r9*8]
mov r10, qword [r10]
mov qword [rdx], r10
mov r10, qword [rbp]
mov r9, qword [r10 + r9*8]
mov qword [r9], rdx
jmp 0x140129400
lea rcx, [r8 - 1]
and rcx, rdi
jmp 0x1401290e9
dec r8
mov rax, qword [r9 + 8]
cmp rdi, rax
je 0x1401296f3
and rax, r8
cmp rax, rcx
jne 0x140129033
mov r9, qword [r9]
test r9, r9
jne 0x14012945d
jmp 0x140129033
call fcn.1401da2d0
mov r15, rdi
jmp 0x140128ffc
mov qword [rsp + 0x28], r15
movabs r11, 0x101010101010101
movabs r10, 0x3333333333333333
jae 0x1401292d2
mov rax, qword [rbp + 0x18]
test rax, rax
jns 0x1401294d2
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
addss xmm0, xmm0
jmp 0x1401294da
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
divss xmm0, dword [rbp + 0x20]
call fcn.1401babdc
cvttss2si rax, xmm0
mov rcx, rax
subss xmm0, dword [0x140283988]
cvttss2si r15, xmm0
sar rcx, 0x3f
and r15, rcx
or r15, rax
cmp r13, 3
jb 0x14012957d
mov rax, r13
shr rax, 1
movabs rcx, 0x5555555555555555
and rax, rcx
mov rcx, r13
sub rcx, rax
mov rax, rcx
shr rax, 2
movabs rdx, 0x3333333333333333
and rcx, rdx
and rax, rdx
add rax, rcx
mov rcx, rax
shr rcx, 4
add rcx, rax
and rcx, r12
movabs rax, 0x101010101010101
imul rcx, rax
shr rcx, 0x38
cmp ecx, 1
ja 0x14012957d
cmp r15, 2
jb 0x140129588
dec r15
bsr rcx, r15
xor ecx, 0x3f
neg cl
mov r15d, 1
shl r15, cl
jmp 0x140129588
mov rcx, r15
call fcn.14015cfd0
mov r15, rax
mov rax, qword [rsp + 0x28]
cmp rax, r15
cmova r15, rax
cmp r15, r13
movabs r11, 0x101010101010101
movabs r10, 0x3333333333333333
jae 0x1401292d2
test r15, r15
jne 0x1401291df
mov rcx, qword [rbp]
mov qword [rbp], 0
test rcx, rcx
je 0x1401295d0
call fcn.14019aab4
mov qword [rbp + 8], 0
movabs r11, 0x101010101010101
movabs r10, 0x3333333333333333
jmp 0x1401292d2
mov rax, qword [0x1402c57f8]
cmp rax, 1
je 0x14012960a
mov rbx, qword [0x1402c57f8]
jmp 0x140128e08
lea rcx, [rsp + 0x38]
mov qword [rcx], r15
call fcn.140198650
lea rbx, [rsp + 0x30]
movabs r14, 0x7fffffffffffffff
jmp 0x14012963a
call fcn.1401ff430
mov rax, qword [0x1402c57f8]
cmp rax, 1
jne 0x1401295fe
mov rcx, rbx
call fcn.140198650
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
xor edx, edx
cmp rax, rcx
setns dl
add rdx, r14
sub rax, rcx
cmovo rax, rdx
cmp rax, 0x3e7
jle 0x140129628
mov ecx, 0x3e8
call fcn.1401ff440
jmp 0x14012962d
mov rax, qword [0x1402c57f8]
cmp rax, 1
je 0x14012968b
mov rax, qword [0x1402c57f8]
jmp 0x140128e2a
lea rcx, [rsp + 0x38]
mov qword [rcx], r15
call fcn.140198650
lea r14, [rsp + 0x30]
movabs r12, 0x7fffffffffffffff
jmp 0x1401296bb
call fcn.1401ff430
mov rax, qword [0x1402c57f8]
cmp rax, 1
jne 0x14012967f
mov rcx, r14
call fcn.140198650
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
xor edx, edx
cmp rax, rcx
setns dl
add rdx, r12
sub rax, rcx
cmovo rax, rdx
cmp rax, 0x3e7
jle 0x1401296a9
mov ecx, 0x3e8
call fcn.1401ff440
jmp 0x1401296ae
cmp qword [r9 + 0x10], rdi
je 0x140129344
jmp 0x140129476