Function at 0x1400fb350
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 [0x14029b028]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r15, qword [0x1402b4380]
cmp r15, 1
jbe 0x1400fbae1
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400fbad3
mov rax, qword [0x1402b4380]
cmp rax, 1
jbe 0x1400fbb13
mov rbp, qword [0x1402b4390]
test rbp, rbp
je 0x1400fbba0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1400fbbfa
mov rcx, rbx
call fcn.1401ab6c0
mov r12, rax
test rax, rax
je 0x1400fb8d0
mov eax, r12d
and eax, 7
cmp r12, 8
jae 0x1400fb3ed
xor r14d, r14d
mov rcx, rbx
jmp 0x1400fb47f
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 0x1400fb3fa
test rax, rax
je 0x1400fb4a7
xor edx, edx
nop word cs:[rax + rax]
movsx r8, byte [rcx + rdx]
imul r14, r14, 0x83
add r14, r8
inc rdx
cmp rax, rdx
jne 0x1400fb490
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 0x1400fbac4
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 0x1400fbaa2
mov r13, r14
cmp r14, rsi
jb 0x1400fb53c
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 0x1400fb5b2
mov r15, qword [rax]
test r15, r15
je 0x1400fb5b2
lea rbx, [rsi - 1]
mov rax, qword [r15 + 8]
cmp rax, r14
je 0x1400fb579
cmp edi, 1
jbe 0x1400fba9a
cmp rax, rsi
jb 0x1400fb574
xor edx, edx
div rsi
mov rax, rdx
cmp rax, r13
jne 0x1400fb5b2
cmp qword [r15 + 0x18], r12
je 0x1400fb589
mov r15, qword [r15]
test r15, r15
jne 0x1400fb555
jmp 0x1400fb5b2
test r12, r12
je 0x1400fb5a3
mov rcx, qword [r15 + 0x10]
mov rdx, qword [rsp + 0x28]
mov r8, r12
call fcn.140188e50
test eax, eax
jne 0x1400fb57f
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x28]
jmp 0x1400fb69b
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x28]
mov ecx, 0x28
call fcn.140184834
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
js 0x1400fb5ee
cvtsi2ss xmm0, rax
jmp 0x1400fb603
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rcx, rsi
shr rcx, 1
mov eax, esi
and eax, 1
or rax, rcx
test rsi, rsi
js 0x1400fb61d
cvtsi2ss xmm1, rsi
jmp 0x1400fb626
cvtsi2ss xmm1, rax
addss xmm1, xmm1
movss xmm2, dword [rbp + 0x20]
je 0x1400fb8d8
mulss xmm1, xmm2
ucomiss xmm0, xmm1
ja 0x1400fb8d8
mov rcx, qword [rbp]
mov rax, qword [rcx + r13*8]
test rax, rax
je 0x1400fb653
mov rcx, qword [rax]
mov qword [r15], rcx
jmp 0x1400fb694
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 0x1400fb697
mov rax, qword [rax + 8]
lea rcx, [rsi - 1]
test rsi, rcx
je 0x1400fbbe5
cmp rax, rsi
jb 0x1400fb68c
xor edx, edx
div rsi
mov rax, rdx
shl rax, 3
add rax, qword [rbp]
mov qword [rax], r15
inc qword [rbp + 0x18]
mov rsi, qword [r15 + 0x20]
test rsi, rsi
jne 0x1400fb858
movabs rsi, 0x7fffffffffffffef
mov qword [r15 + 0x20], rdi
mov r13, qword [0x1402b4390]
mov rcx, rbx
call fcn.1401ab6c0
cmp rax, rsi
ja 0x1400fbbfd
mov r14, rax
cmp rax, 0x16
ja 0x1400fb6e2
lea r15, [rsp + 0x40]
mov byte [r15 + 0x17], r14b
jmp 0x1400fb70d
mov r12, r14
or r12, 0xf
inc r12
mov rcx, r12
call fcn.140184834
mov r15, rax
mov qword [rsp + 0x40], rax
add rsi, 0x11
or rsi, r12
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], r14
cmp r15, rbx
ja 0x1400fb721
mov rax, r14
add rax, r15
cmp rax, rbx
ja 0x1400fbc00
mov rcx, r15
mov rdx, rbx
mov r8, r14
call fcn.140188f50
mov byte [r15 + r14], 0
movzx r8d, byte [rsp + 0x57]
test r8b, r8b
jns 0x1400fb74b
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x48]
jmp 0x1400fb750
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x5f]
call fcn.1400fbdb0
mov rsi, qword [r13 + 0x30]
test rsi, rsi
jne 0x1400fb7ac
xor r13d, r13d
cmp byte [rsp + 0x57], 0
jns 0x1400fb777
mov rcx, qword [rsp + 0x40]
call fcn.14018482c
test r13, r13
mov rcx, qword [rsp + 0x38]
jne 0x1400fbb96
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401874c0
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 0x1400fbc03
cmp rbx, rsi
jb 0x1400fbc0f
mov rax, rbx
xor edx, edx
div rsi
mov r14, rdx
mov rax, qword [r13 + 0x28]
mov rax, qword [rax + r14*8]
test rax, rax
je 0x1400fb763
mov rbp, qword [rax]
test rbp, rbp
je 0x1400fb763
movzx r15d, byte [rsp + 0x57]
test r15b, r15b
jns 0x1400fb88d
mov r9, qword [rsp + 0x40]
jmp 0x1400fb892
cmp rsi, rdi
mov rcx, qword [rsp + 0x38]
je 0x1400fb785
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test rdi, rdi
je 0x1400fb885
mov rax, qword [rdi]
mov rax, qword [rax]
mov rcx, rdi
mov edx, 1
call qword [case.0x1401eda70.0]
mov rdi, rsi
jmp 0x1400fb78b
lea r9, [rsp + 0x40]
xor r13d, r13d
mov rax, qword [rbp + 8]
cmp rbx, rax
je 0x1400fbb45
cmp r12d, 1
jbe 0x1400fbc17
cmp rax, rsi
jb 0x1400fb8b9
xor edx, edx
div rsi
mov rax, rdx
cmp rax, r14
jne 0x1400fb766
mov rbp, qword [rbp]
test rbp, rbp
jne 0x1400fb895
jmp 0x1400fb766
xor r14d, r14d
jmp 0x1400fb4a7
divss xmm0, xmm2
call fcn.1401a3294
cvttss2si rcx, xmm0
mov rdx, rcx
sar rdx, 0x3f
subss xmm0, dword [0x140260048]
cvttss2si rax, xmm0
and rax, rdx
or rax, rcx
lea rcx, [rsi + rsi]
cmp rsi, 3
jb 0x1400fbaae
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 0x1400fbab9
lea rax, [r13 - 1]
test r13, rax
je 0x1400fb948
mov rcx, r13
call fcn.140143080
mov r13, rax
mov rsi, qword [rbp + 8]
cmp r13, rsi
jbe 0x1400fbc23
mov r12, r13
mov rax, r12
shr rax, 0x3d
jne 0x1400fbc3c
lea rcx, [r12*8]
call fcn.140184834
mov rcx, qword [rbp]
mov qword [rbp], rax
test rcx, rcx
je 0x1400fb980
call fcn.14018482c
mov qword [rbp + 8], r12
xor eax, eax
mov rcx, qword [rbp]
mov qword [rcx + rax*8], 0
inc rax
cmp r12, rax
jne 0x1400fb986
mov r8, qword [rbp + 0x10]
test r8, r8
je 0x1400fbd60
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 0x1400fbc3f
cmp rcx, r12
jb 0x1400fba25
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]
test r10, r10
je 0x1400fbd60
mov rax, qword [r10 + 8]
cmp r9d, 1
jbe 0x1400fbbed
cmp rax, r12
jb 0x1400fba54
xor edx, edx
div r12
mov rax, rdx
cmp rax, rcx
je 0x1400fba95
mov rdx, qword [rbp]
cmp qword [rdx + rax*8], 0
jne 0x1400fba73
mov qword [rdx + rax*8], r8
mov r8, r10
mov r10, qword [r10]
mov rcx, rax
jmp 0x1400fba30
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 0x1400fba68
and rax, rbx
jmp 0x1400fb574
lea r13, [rsi - 1]
and r13, r14
jmp 0x1400fb53c
mov r13d, 1
jmp 0x1400fb91c
mov r13d, 2
jmp 0x1400fb948
movabs r13, 0xaaaaaaaaaaaaaaaa
jmp 0x1400fb5bc
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x1400fb394
lea rcx, [0x1402b4380]
call fcn.140152110
test al, al
je 0x1400fbd92
mov qword [0x1402b4388], 0
lea r15, [0x1402b4388]
mov qword [0x1402b4380], r15
jmp 0x1400fb383
lea rcx, [0x1402b4380]
call fcn.140152110
test al, al
je 0x1400fbd9e
mov qword [0x1402b4388], 0
lea rax, [0x1402b4388]
mov qword [0x1402b4380], rax
jmp 0x1400fb3a5
mov r8, r15
test r15b, r15b
jns 0x1400fbb52
mov r8, qword [rsp + 0x48]
movzx eax, byte [rbp + 0x27]
mov rcx, rax
test al, al
jns 0x1400fbb61
mov rcx, qword [rbp + 0x18]
cmp rcx, r8
jne 0x1400fb8c2
lea rcx, [rbp + 0x10]
test al, al
jns 0x1400fbb75
mov rcx, qword [rcx]
js 0x1400fbbbe
test rax, rax
je 0x1400fbbdd
xor ecx, ecx
mov dl, byte [rbp + rcx + 0x10]
cmp dl, byte [r9 + rcx]
jne 0x1400fb8c2
inc rcx
cmp rax, rcx
jne 0x1400fbb7e
jmp 0x1400fbbdd
lock or dword [rdi + 0x10], 0x20
jmp 0x1400fb785
mov ecx, 0xa8
call fcn.140184834
mov rcx, rax
call fcn.140021830
mov rbp, qword [0x1402b4390]
jmp 0x1400fb3b5
test r8, r8
je 0x1400fbbdd
mov rdx, r9
mov qword [rsp + 0x28], r9
call fcn.140188e50
mov r9, qword [rsp + 0x28]
test eax, eax
jne 0x1400fb8c2
mov r13, rbp
jmp 0x1400fb766
and rax, rcx
jmp 0x1400fb68c
lea rdx, [r12 - 1]
and rax, rdx
jmp 0x1400fba54
int3
int3
int3
lea r14, [rsi - 1]
and r14, rbx
jmp 0x1400fb829
mov r14, rbx
jmp 0x1400fb829
lea rcx, [rsi - 1]
and rax, rcx
jmp 0x1400fb8b9
jae 0x1400fbd60
mov rax, qword [rbp + 0x18]
test rax, rax
js 0x1400fbc4c
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
jmp 0x1400fbc64
int3
lea rax, [r12 - 1]
and rcx, rax
jmp 0x1400fba25
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rbp + 0x20]
call fcn.1401a3294
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x140260048]
cvttss2si rax, xmm0
sar rdx, 0x3f
and rax, rdx
or rax, rcx
cmp rsi, 3
jb 0x1400fbd18
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 0x1400fbd18
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 0x1400fbd23
mov rcx, rax
call fcn.140143080
mov r12, rax
cmp r13, r12
cmova r12, r13
cmp r12, rsi
mov rdi, qword [rsp + 0x30]
jae 0x1400fbd60
test r12, r12
jne 0x1400fb954
mov rcx, qword [rbp]
mov qword [rbp], 0
test rcx, rcx
je 0x1400fbd53
call fcn.14018482c
mov qword [rbp + 8], 0
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rbp + 8]
lea r13, [rsi - 1]
test rsi, r13
je 0x1400fbd82
cmp r14, rsi
jb 0x1400fbd8a
mov rax, r14
xor edx, edx
div rsi
mov r13, rdx
jmp 0x1400fb63e
and r13, r14
jmp 0x1400fb63e
mov r13, r14
jmp 0x1400fb63e
mov r15, qword [0x1402b4380]
jmp 0x1400fb383
mov rax, qword [0x1402b4380]
jmp 0x1400fb3a5