Function at 0x140088e10
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rdi, rcx
mov rax, qword [0x140174028]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r15, qword [0x14018a148]
cmp r15, 1
jbe 0x140089774
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140089766
mov rax, qword [0x14018a148]
cmp rax, 1
jbe 0x1400897a6
mov rbp, qword [0x14018a158]
test rbp, rbp
je 0x1400897d8
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1400897fe
mov rcx, rbx
call fcn.1400ddfe0
mov r12, rax
test rax, rax
je 0x140088f3a
mov eax, r12d
and eax, 7
cmp r12, 8
jb 0x140088f3f
mov rdx, r12
and rdx, 0xfffffffffffffff8
xor r14d, r14d
mov rcx, rbx
movsx r8, byte [rcx]
imul r9, r14, 0x83
add r9, r8
movsx r8, byte [rcx + 1]
imul r9, r9, 0x83
add r9, r8
movsx r8, byte [rcx + 2]
imul r9, r9, 0x83
add r9, r8
movsx r8, byte [rcx + 3]
imul r9, r9, 0x83
add r9, r8
movsx r8, byte [rcx + 4]
imul r9, r9, 0x83
add r9, r8
movsx r8, byte [rcx + 5]
imul r9, r9, 0x83
add r9, r8
movsx r8, byte [rcx + 6]
imul r9, r9, 0x83
add r9, r8
movsx r8, byte [rcx + 7]
imul r14, r9, 0x83
add r14, r8
add rcx, 8
add rdx, 0xfffffffffffffff8
jne 0x140088eb3
jmp 0x140088f45
xor r14d, r14d
jmp 0x140088f67
xor r14d, r14d
mov rcx, rbx
test rax, rax
je 0x140088f67
xor edx, edx
nop dword [rax]
movsx r8, byte [rcx + rdx]
imul r14, r14, 0x83
add r14, r8
inc rdx
cmp rax, rdx
jne 0x140088f50
mov rsi, qword [rbp + 8]
movabs rcx, 0x5555555555555555
movabs r9, 0x3333333333333333
movabs r8, 0xf0f0f0f0f0f0f0f
movabs rdx, 0x101010101010101
test rsi, rsi
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], rdi
je 0x140089757
mov qword [rsp + 0x28], rbx
mov rax, rsi
shr rax, 1
and rax, rcx
mov rcx, rsi
sub rcx, rax
mov rax, rcx
and rax, r9
shr rcx, 2
and rcx, r9
add rcx, rax
mov rdi, rcx
shr rdi, 4
add rdi, rcx
and rdi, r8
imul rdi, rdx
shr rdi, 0x38
cmp rdi, 1
jbe 0x14008974b
mov r13, r14
cmp r14, rsi
jb 0x140088ffc
mov rax, r14
xor edx, edx
div rsi
mov r13, rdx
mov rax, qword [rbp]
mov rax, qword [rax + r13*8]
test rax, rax
je 0x140089043
mov r15, qword [rax]
test r15, r15
je 0x140089043
lea rbx, [rsi - 1]
mov rax, qword [r15 + 8]
cmp rax, r14
je 0x140089035
cmp edi, 1
jbe 0x14008908f
cmp rax, rsi
jb 0x140089030
xor edx, edx
div rsi
mov rax, rdx
cmp rax, r13
jne 0x140089043
cmp qword [r15 + 0x18], r12
je 0x140089094
mov r15, qword [r15]
test r15, r15
jne 0x140089015
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x28]
mov ecx, 0x28
call fcn.1400babfc
mov r15, rax
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], r12
xor eax, eax
mov qword [r15 + 0x20], rax
mov qword [r15 + 8], r14
mov qword [r15], rax
mov rax, qword [rbp + 0x18]
inc rax
jns 0x1400890bd
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
jmp 0x1400890c2
and rax, rbx
jmp 0x140089030
test r12, r12
je 0x1400890ae
mov rcx, qword [r15 + 0x10]
mov rdx, qword [rsp + 0x28]
mov r8, r12
call fcn.1400be7b0
test eax, eax
jne 0x14008903b
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x28]
jmp 0x14008915a
cvtsi2ss xmm0, rax
mov rcx, rsi
shr rcx, 1
mov eax, esi
and eax, 1
or rax, rcx
test rsi, rsi
jns 0x140089123
cvtsi2ss xmm1, rax
addss xmm1, xmm1
jmp 0x140089128
lea rax, [rbp + 0x10]
mov rdx, qword [rbp + 0x10]
mov qword [r15], rdx
mov qword [rbp + 0x10], r15
mov qword [rcx + r13*8], rax
mov rax, qword [r15]
test rax, rax
je 0x140089156
mov rax, qword [rax + 8]
lea rcx, [rsi - 1]
test rsi, rcx
je 0x1400897f6
cmp rax, rsi
jb 0x140089119
xor edx, edx
div rsi
mov rax, rdx
shl rax, 3
add rax, qword [rbp]
jmp 0x140089153
cvtsi2ss xmm1, rsi
movss xmm2, dword [rbp + 0x20]
je 0x1400893a2
mulss xmm1, xmm2
ucomiss xmm0, xmm1
ja 0x1400893a2
mov rcx, qword [rbp]
mov rax, qword [rcx + r13*8]
test rax, rax
je 0x1400890e0
mov rcx, qword [rax]
mov qword [r15], rcx
mov qword [rax], r15
inc qword [rbp + 0x18]
mov rsi, qword [r15 + 0x20]
test rsi, rsi
jne 0x1400891bf
movabs rsi, 0x7fffffffffffffef
mov qword [r15 + 0x20], rdi
mov r13, qword [0x14018a158]
mov rcx, rbx
call fcn.1400ddfe0
cmp rax, rsi
ja 0x140089801
mov r15, rax
cmp rax, 0x16
jbe 0x1400891f4
mov r14, r15
or r14, 0xf
inc r14
mov rcx, r14
call fcn.1400babfc
mov r12, rax
mov qword [rsp + 0x40], rax
add rsi, 0x11
or rsi, r14
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], r15
jmp 0x1400891fe
cmp rsi, rdi
mov rcx, qword [rsp + 0x38]
je 0x140089279
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test rdi, rdi
je 0x1400891ec
mov rax, qword [rdi]
mov rax, qword [rax]
mov rcx, rdi
mov edx, 1
call qword [case.0x14010edb0.0]
mov rdi, rsi
jmp 0x14008927f
lea r12, [rsp + 0x40]
mov byte [r12 + 0x17], r15b
cmp r12, rbx
ja 0x140089212
mov rax, r15
add rax, r12
cmp rax, rbx
ja 0x140089804
lea r14, [rsp + 0x40]
mov rcx, r12
mov rdx, rbx
mov r8, r15
call fcn.1400be8b0
mov byte [r12 + r15], 0
movzx eax, byte [r14 + 0x17]
mov r8d, eax
and r8d, 0x7f
test al, al
mov rdx, qword [r14]
cmovns rdx, r14
cmovs r8, qword [r14 + 8]
lea rcx, [rsp + 0x5f]
call fcn.140089860
mov rsi, qword [r13 + 0x30]
test rsi, rsi
jne 0x1400892a0
xor r13d, r13d
cmp byte [rsp + 0x57], 0
jns 0x14008926b
mov rcx, qword [rsp + 0x40]
call fcn.1400bab7c
test r13, r13
mov rcx, qword [rsp + 0x38]
jne 0x140089388
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400bce30
mov rax, rdi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rbx, rax
mov rax, rsi
shr rax, 1
movabs rcx, 0x5555555555555555
and rax, rcx
mov rcx, rsi
sub rcx, rax
mov rax, rcx
movabs rdx, 0x3333333333333333
and rax, rdx
shr rcx, 2
and rcx, rdx
add rcx, rax
mov r12, rcx
shr r12, 4
add r12, rcx
movabs rax, 0xf0f0f0f0f0f0f0f
and r12, rax
movabs rax, 0x101010101010101
imul r12, rax
shr r12, 0x38
cmp r12, 1
jbe 0x14008980f
cmp rbx, rsi
jb 0x140089807
mov rax, rbx
xor edx, edx
div rsi
mov r15, rdx
mov rax, qword [r13 + 0x28]
mov rax, qword [rax + r15*8]
test rax, rax
je 0x140089257
mov rbp, qword [rax]
test rbp, rbp
je 0x140089257
movzx r9d, byte [rsp + 0x57]
test r9b, r9b
jns 0x14008934a
mov r14, qword [rsp + 0x40]
xor r13d, r13d
mov rax, qword [rbp + 8]
cmp rbx, rax
je 0x140089586
cmp r12d, 1
jbe 0x14008981b
cmp rax, rsi
jb 0x140089371
xor edx, edx
div rsi
mov rax, rdx
cmp rax, r15
jne 0x14008925a
mov rbp, qword [rbp]
test rbp, rbp
jne 0x14008934d
jmp 0x14008925a
lock or dword [rdi + 0x10], 0x20
jmp 0x140089279
mov r13d, 2
jmp 0x14008940a
mov r13d, 1
jmp 0x1400893e2
divss xmm0, xmm2
call fcn.1400d62f4
cvttss2si rcx, xmm0
mov rdx, rcx
sar rdx, 0x3f
subss xmm0, dword [0x14014cfc8]
cvttss2si rax, xmm0
and rax, rdx
or rax, rcx
lea rcx, [rsi + rsi]
cmp rsi, 3
jb 0x14008939a
lea rdx, [rsi - 1]
xor r13d, r13d
test rsi, rdx
setne r13b
or r13, rcx
cmp r13, rax
cmovbe r13, rax
cmp r13, 1
je 0x140089392
lea rax, [r13 - 1]
test r13, rax
je 0x14008940a
mov rcx, r13
call fcn.1400a2f80
mov r13, rax
mov rsi, qword [rbp + 8]
cmp r13, rsi
jbe 0x140089615
mov r12, r13
mov rax, r12
shr rax, 0x3d
jne 0x140089827
lea rcx, [r12*8]
call fcn.1400babfc
mov rcx, qword [rbp]
mov qword [rbp], rax
test rcx, rcx
je 0x140089442
call fcn.1400bab7c
mov qword [rbp + 8], r12
xor eax, eax
mov rcx, qword [rbp]
mov qword [rcx + rax*8], 0
inc rax
cmp r12, rax
jne 0x140089448
mov r8, qword [rbp + 0x10]
test r8, r8
je 0x140089558
lea r10, [rbp + 0x10]
mov rcx, qword [r8 + 8]
mov rax, r12
shr rax, 1
movabs rdx, 0x5555555555555555
and rax, rdx
mov rdx, r12
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 0x140089832
cmp rcx, r12
jb 0x1400894e7
mov rax, rcx
xor edx, edx
div r12
mov rcx, rdx
mov rax, qword [rbp]
mov qword [rax + rcx*8], r10
mov r10, qword [r8]
jmp 0x140089501
mov qword [rdx + rax*8], r8
mov r8, r10
mov r10, qword [r10]
mov rcx, rax
test r10, r10
je 0x140089558
mov rax, qword [r10 + 8]
cmp r9d, 1
jbe 0x140089608
cmp rax, r12
jb 0x140089521
xor edx, edx
div r12
mov rax, rdx
cmp rax, rcx
je 0x140089553
mov rdx, qword [rbp]
cmp qword [rdx + rax*8], 0
je 0x1400894f4
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 0x1400894f8
mov rsi, qword [rbp + 8]
lea r13, [rsi - 1]
test rsi, r13
je 0x14008957e
cmp r14, rsi
jb 0x14008982a
mov rax, r14
xor edx, edx
div rsi
mov r13, rdx
jmp 0x140089140
and r13, r14
jmp 0x140089140
test r9b, r9b
js 0x140089594
mov r8d, r9d
and r8d, 0x7f
jmp 0x140089599
mov r8, qword [rsp + 0x48]
movzx edx, byte [rbp + 0x27]
mov eax, edx
and eax, 0x7f
mov rcx, rax
test dl, dl
jns 0x1400895ad
mov rcx, qword [rbp + 0x18]
cmp rcx, r8
jne 0x14008937a
lea rcx, [rbp + 0x10]
test dl, dl
jns 0x1400895c1
mov rcx, qword [rcx]
js 0x1400895e1
test al, al
je 0x140089600
xor ecx, ecx
mov dl, byte [rbp + rcx + 0x10]
cmp dl, byte [r14 + rcx]
jne 0x14008937a
inc rcx
cmp rax, rcx
jne 0x1400895c9
jmp 0x140089600
mov qword [rsp + 0x28], r9
test r8, r8
je 0x140089600
mov rdx, r14
call fcn.1400be7b0
test eax, eax
mov r9, qword [rsp + 0x28]
jne 0x14008937a
mov r13, rbp
jmp 0x14008925a
lea rdx, [r12 - 1]
and rax, rdx
jmp 0x140089521
jae 0x140089558
mov rax, qword [rbp + 0x18]
test rax, rax
jns 0x14008963e
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
addss xmm0, xmm0
jmp 0x140089646
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
divss xmm0, dword [rbp + 0x20]
call fcn.1400d62f4
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x14014cfc8]
cvttss2si rax, xmm0
sar rdx, 0x3f
and rax, rdx
or rax, rcx
cmp rsi, 3
jb 0x1400896fa
mov rcx, rsi
shr rcx, 1
movabs rdx, 0x5555555555555555
and rcx, rdx
mov rdx, rsi
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 0x1400896fa
lea rcx, [rax - 1]
bsr rcx, rcx
xor ecx, 0x3f
neg cl
mov r12d, 1
shl r12, cl
cmp rax, 2
cmovb r12, rax
jmp 0x140089705
mov rcx, rax
call fcn.1400a2f80
mov r12, rax
cmp r13, r12
cmova r12, r13
cmp r12, rsi
mov rdi, qword [rsp + 0x30]
jae 0x140089558
test r12, r12
jne 0x140089416
mov rcx, qword [rbp]
mov qword [rbp], 0
test rcx, rcx
je 0x140089739
call fcn.1400bab7c
mov qword [rbp + 8], 0
mov rdi, qword [rsp + 0x30]
jmp 0x140089558
lea r13, [rsi - 1]
and r13, r14
jmp 0x140088ffc
movabs r13, 0xaaaaaaaaaaaaaaaa
jmp 0x14008904d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x140088e54
lea rcx, [0x14018a148]
call fcn.1400ae930
test al, al
je 0x14008983f
mov qword [0x14018a150], 0
lea r15, [0x14018a150]
mov qword [0x14018a148], r15
jmp 0x140088e43
lea rcx, [0x14018a148]
call fcn.1400ae930
test al, al
je 0x14008984b
mov qword [0x14018a150], 0
lea rax, [0x14018a150]
mov qword [0x14018a148], rax
jmp 0x140088e65
mov ecx, 0xa8
call fcn.1400babfc
mov rcx, rax
call fcn.140015240
mov rbp, qword [0x14018a158]
jmp 0x140088e75
and rax, rcx
jmp 0x140089119
int3
int3
int3
mov r15, rbx
jmp 0x14008931d
lea r15, [rsi - 1]
and r15, rbx
jmp 0x14008931d
lea rcx, [rsi - 1]
and rax, rcx
jmp 0x140089371
int3
mov r13, r14
jmp 0x140089140
lea rax, [r12 - 1]
and rcx, rax
jmp 0x1400894e7
mov r15, qword [0x14018a148]
jmp 0x140088e43
mov rax, qword [0x14018a148]
jmp 0x140088e65