Function at 0x14005fd10
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 rsi, rcx
mov rax, qword [0x1402cb038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, dword [0x1402db110]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp byte [rax + 0x130], 0
jne 0x14005fdb9
mov eax, dword [0x1402db110]
mov rcx, qword gs:[0x58]
mov rbx, qword [rcx + rax*8]
cmp qword [rbx + 0x178], 0
je 0x14005fdb9
mov eax, dword [0x1402db110]
mov rcx, qword gs:[0x58]
mov r15, qword [rcx + rax*8]
cmp qword [r15 + 0x140], 0
je 0x14005fdb9
mov eax, dword [0x1402db110]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea r14, [rax + 0x128]
mov rdi, qword [r14]
test rdi, rdi
je 0x14005fdd8
mov eax, dword [rsi + 0x33c]
cmp eax, dword [rdi + 0x38]
jne 0x14006051e
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401ce5b0
nop
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [rbx + 0x178]
mov ecx, 0x40
call fcn.1401cbbc4
mov rdi, rax
lea rax, fcn.140208050
mov qword [rdi], rax
lea rax, [0x14029f288]
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], r14
mov rax, qword [r14]
mov qword [r14], rdi
mov qword [rdi + 0x18], rax
mov rax, qword [0x1402cbde0]
and rax, rsi
cmp rax, qword [0x1402cbdc8]
je 0x1400604f6
mov qword [rdi + 0x20], rsi
xorps xmm0, xmm0
movups xmmword [rdi + 0x28], xmm0
mov eax, dword [rsi + 0x33c]
mov dword [rdi + 0x38], eax
mov rbx, qword [rbx]
mov rax, qword [0x1402cbde0]
and rax, rbx
cmp rax, qword [0x1402cbdc8]
jne 0x14005fe58
mov rcx, rbx
call fcn.1401508a0
lea r15, [r15 + 0x140]
lea rcx, [rbx + 0x2e0]
mov rdx, rdi
call fcn.140022b20
mov rax, qword [0x1402cbde0]
and rax, rbx
cmp rax, qword [0x1402cbdc8]
je 0x140060503
call fcn.140002d40
mov rcx, qword [r15]
test rcx, rcx
je 0x1400604cd
mov r9, qword [rcx + 0x10]
test r9, r9
je 0x14005feb6
mov ecx, 1
lock xadd dword [r9 + 8], ecx
cmp ecx, 0x7fffffff
je 0x1400604d0
mov rdx, rdi
add rdx, 8
lea rcx, [rsp + 0x3f]
mov byte [rcx], 1
mov qword [rsp + 0x20], rcx
lea r8, str.ThreadLocalEventBuffer
mov rcx, rax
call fcn.1400151d0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebp, eax
lea r13, [rsi + 8]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140060510
mov rax, qword [r15]
test rax, rax
je 0x1400604d3
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x14005ff20
mov eax, 1
lock xadd dword [rcx + 8], eax
cmp eax, 0x7fffffff
je 0x1400604d6
mov r9d, ebp
mov rbx, qword [rsi + 0x2e8]
test rbx, rbx
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x30], rcx
je 0x140060041
mov rax, rbx
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, rbx
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 rcx, 0x101010101010101
imul rcx, rax
shr rcx, 0x38
cmp rcx, 1
ja 0x14006054e
mov eax, 0xffffffff
add eax, ebx
mov r12d, r9d
and r12d, eax
mov rax, qword [rsi + 0x2e0]
mov rax, qword [rax + r12*8]
test rax, rax
je 0x14005fff2
mov r15, qword [rax]
test r15, r15
je 0x14005fff2
lea r8, [rbx - 1]
mov rax, qword [r15 + 8]
cmp rax, r9
je 0x140060315
cmp ecx, 1
ja 0x1400604dc
and rax, r8
cmp rax, r12
jne 0x14005fff2
mov r15, qword [r15]
test r15, r15
jne 0x14005ffcc
mov ecx, 0x20
call fcn.1401cbbc4
test rax, rax
je 0x1400604d9
mov r15, rax
xor eax, eax
mov qword [r15], rax
mov rcx, qword [rsp + 0x28]
mov qword [r15 + 8], rcx
mov dword [r15 + 0x10], ebp
mov qword [r15 + 0x18], rax
mov rax, qword [rsi + 0x2f8]
inc rax
jns 0x14006004d
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
jmp 0x140060052
movabs r12, 0xaaaaaaaaaaaaaaaa
jmp 0x14005fff2
cvtsi2ss xmm0, rax
mov rcx, rbx
shr rcx, 1
mov eax, ebx
and eax, 1
or rax, rcx
test rbx, rbx
jns 0x140060070
cvtsi2ss xmm1, rax
addss xmm1, xmm1
jmp 0x140060075
cvtsi2ss xmm1, rbx
movss xmm2, dword [rsi + 0x300]
je 0x14006008c
mulss xmm1, xmm2
ucomiss xmm0, xmm1
jbe 0x140060281
mov rbp, r13
divss xmm0, xmm2
call fcn.1401eab74
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x1402a35b8]
sar rdx, 0x3f
cvttss2si rax, xmm0
and rax, rdx
or rax, rcx
lea rdx, [rbx + rbx]
mov ecx, 1
cmp rbx, 3
jae 0x14006053d
or rcx, rdx
cmp rcx, rax
cmovbe rcx, rax
mov r13d, 2
cmp rcx, 1
je 0x1400600fc
lea rax, [rcx - 1]
test rcx, rax
je 0x140060333
call fcn.14018e6e0
mov r13, rax
mov rbx, qword [rsi + 0x2e8]
cmp r13, rbx
jbe 0x140060392
mov r12, r13
mov rax, r12
shr rax, 0x3d
jne 0x1400604f3
lea rcx, [r12*8]
call fcn.1401cbbc4
mov rcx, qword [rsi + 0x2e0]
mov qword [rsi + 0x2e0], rax
test rcx, rcx
je 0x14006013a
call fcn.1401cbbbc
mov qword [rsi + 0x2e8], r12
xor eax, eax
mov rcx, qword [rsi + 0x2e0]
mov qword [rcx + rax*8], 0
inc rax
cmp r12, rax
jne 0x140060143
mov r8, qword [rsi + 0x2f0]
test r8, r8
je 0x140060244
lea r10, [rsi + 0x2f0]
mov rcx, qword [r8 + 8]
mov rax, r12
shr rax, 1
movabs rdx, 0x5555555555555555
and rdx, rax
mov rax, r12
sub rax, rdx
movabs rdx, 0x3333333333333333
mov r9, rax
and r9, rdx
shr rax, 2
and rax, rdx
add rax, r9
mov rdx, rax
shr rdx, 4
add rdx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rdx
movabs r9, 0x101010101010101
imul r9, rax
shr r9, 0x38
cmp r9, 1
jbe 0x140060343
cmp rcx, r12
jb 0x1400601eb
mov rax, rcx
xor edx, edx
div r12
mov rcx, rdx
mov rax, qword [rsi + 0x2e0]
mov qword [rax + rcx*8], r10
mov r10, qword [r8]
test r10, r10
je 0x140060244
mov rax, qword [r10 + 8]
cmp r9d, 1
jbe 0x140060350
cmp rax, r12
jb 0x140060219
xor edx, edx
div r12
mov rax, rdx
cmp rax, rcx
je 0x14006023f
mov rdx, qword [rsi + 0x2e0]
cmp qword [rdx + rax*8], 0
jne 0x140060365
mov qword [rdx + rax*8], r8
mov r8, r10
mov r10, qword [r10]
mov rcx, rax
jmp 0x1400601f9
mov rax, rcx
jmp 0x140060234
mov rbx, qword [rsi + 0x2e8]
lea rax, [rbx - 1]
test rbx, rax
je 0x14006026f
mov rax, qword [rsp + 0x28]
cmp rbx, rax
mov r13, rbp
ja 0x14006033b
xor edx, edx
div rbx
mov r12, rdx
jmp 0x140060281
mov eax, 0xffffffff
add eax, ebx
mov r12, qword [rsp + 0x28]
and r12d, eax
mov r13, rbp
mov rcx, qword [rsi + 0x2e0]
mov rax, qword [rcx + r12*8]
test rax, rax
jne 0x1400602e2
lea rdx, [rsi + 0x2f0]
mov rax, qword [rsi + 0x2f0]
mov qword [r15], rax
mov qword [rsi + 0x2f0], r15
mov qword [rcx + r12*8], rdx
test rax, rax
mov r8, qword [rsp + 0x30]
je 0x1400602f0
mov rax, qword [rax + 8]
lea rcx, [rbx - 1]
test rbx, rcx
je 0x14006035d
cmp rax, rbx
jb 0x1400602d5
xor edx, edx
div rbx
mov rax, rdx
shl rax, 3
add rax, qword [rsi + 0x2e0]
jmp 0x1400602ed
mov rcx, qword [rax]
mov qword [r15], rcx
mov r8, qword [rsp + 0x30]
mov qword [rax], r15
inc qword [rsi + 0x2f8]
mov rcx, qword [r15 + 0x18]
mov qword [r15 + 0x18], r8
test rcx, rcx
jne 0x140060326
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [r14], rdi
jmp 0x14005fdb9
cmp dword [r15 + 0x10], ebp
jne 0x14005ffea
mov r8, qword [rsp + 0x30]
jmp 0x1400602f7
lock dec dword [rcx + 8]
jne 0x140060304
call fcn.140170140
jmp 0x140060304
mov r13, rcx
jmp 0x1400600fc
mov r12, rax
jmp 0x140060281
lea rax, [r12 - 1]
and rcx, rax
jmp 0x1400601eb
lea rdx, [r12 - 1]
and rax, rdx
jmp 0x140060219
and rax, rcx
jmp 0x1400602d5
mov rdx, qword [r10]
mov qword [r8], rdx
mov rdx, qword [rsi + 0x2e0]
mov rdx, qword [rdx + rax*8]
mov rdx, qword [rdx]
mov qword [r10], rdx
mov rdx, qword [rsi + 0x2e0]
mov rax, qword [rdx + rax*8]
mov qword [rax], r10
mov r10, r8
jmp 0x14006023f
jae 0x140060244
mov rax, qword [rsi + 0x2f8]
test rax, rax
jns 0x1400603be
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
addss xmm0, xmm0
jmp 0x1400603c6
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
divss xmm0, dword [rsi + 0x300]
call fcn.1401eab74
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x1402a35b8]
cvttss2si rax, xmm0
sar rdx, 0x3f
and rax, rdx
or rax, rcx
cmp rbx, 3
jb 0x14006047d
mov rcx, rbx
shr rcx, 1
movabs rdx, 0x5555555555555555
and rdx, rcx
mov rcx, rbx
sub rcx, rdx
movabs rdx, 0x3333333333333333
mov r8, rcx
shr r8, 2
and rcx, rdx
and r8, rdx
add r8, rcx
mov rcx, r8
shr rcx, 4
add rcx, r8
movabs rdx, 0xf0f0f0f0f0f0f0f
and rdx, rcx
movabs rcx, 0x101010101010101
imul rcx, rdx
shr rcx, 0x38
cmp ecx, 1
ja 0x14006047d
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 0x140060488
mov rcx, rax
call fcn.14018e6e0
mov r12, rax
cmp r13, r12
cmova r12, r13
cmp r12, rbx
jae 0x140060244
test r12, r12
jne 0x140060108
mov rcx, qword [rsi + 0x2e0]
mov qword [rsi + 0x2e0], 0
test rcx, rcx
je 0x1400604bd
call fcn.1401cbbbc
mov qword [rsi + 0x2e8], 0
jmp 0x140060244
int3
int3
int3
int3
int3
cmp rax, rbx
jb 0x1400604e9
xor edx, edx
div rbx
mov rax, rdx
mov r9, qword [rsp + 0x28]
jmp 0x14005ffe5
int3
mov rcx, rsi
call fcn.1401508a0
jmp 0x14005fe26
mov rcx, rbx
call fcn.1401509f0
jmp 0x14005fe85
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x14005fef6
mov rcx, rdi
call fcn.140230dd0
mov rcx, rdi
call fcn.1401cbbbc
cmp qword [r14], 0
jne 0x14005fdb9
jmp 0x14005fdd8
lea r8, [rbx - 1]
xor ecx, ecx
test rbx, r8
setne cl
jmp 0x1400600ca
mov r12, r9
cmp rbx, r9
ja 0x14005ffb0
mov rax, r9
xor edx, edx
div rbx
mov r12, rdx
jmp 0x14005ffb0