Function at 0x14006f500
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 [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r15, qword [0x140146288]
cmp r15, 1
jbe 0x14006fc8c
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14006fc77
mov rax, qword [0x140146288]
cmp rax, 1
jbe 0x14006fcbe
mov rbp, qword [0x140146298]
test rbp, rbp
je 0x14006fd06
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x14006fdaa
mov rcx, rbx
call fcn.1400b45a0
mov r12, rax
test rax, rax
je 0x14006fa74
mov eax, r12d
and eax, 7
cmp r12, 8
jae 0x14006f59d
xor r14d, r14d
mov rcx, rbx
jmp 0x14006f635
mov rdx, r12
and rdx, 0xfffffffffffffff8
xor r14d, r14d
mov rcx, rbx
nop word [rax + rax]
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 0x14006f5b0
test rax, rax
je 0x14006f653
xor edx, edx
movsx r8, byte [rcx + rdx]
imul r14, r14, 0x83
add r14, r8
inc rdx
cmp rax, rdx
jne 0x14006f63c
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 0x14006fc5d
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 0x14006fc51
mov r13, r14
cmp r14, rsi
jb 0x14006f6e8
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 0x14006f75e
mov r15, qword [rax]
test r15, r15
je 0x14006f75e
lea rbx, [rsi - 1]
mov rax, qword [r15 + 8]
cmp rax, r14
je 0x14006f725
cmp edi, 1
jbe 0x14006fc3e
cmp rax, rsi
jb 0x14006f720
xor edx, edx
div rsi
mov rax, rdx
cmp rax, r13
jne 0x14006f75e
cmp qword [r15 + 0x18], r12
je 0x14006f735
mov r15, qword [r15]
test r15, r15
jne 0x14006f701
jmp 0x14006f75e
test r12, r12
je 0x14006f74f
mov rcx, qword [r15 + 0x10]
mov rdx, qword [rsp + 0x28]
mov r8, r12
call fcn.140099f50
test eax, eax
jne 0x14006f72b
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x28]
jmp 0x14006f846
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x28]
mov ecx, 0x28
call fcn.14009633c
mov r15, rax
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], r12
mov qword [rax + 0x20], 0
mov qword [rax + 8], r14
mov rax, qword [rbp + 0x18]
inc rax
js 0x14006f799
cvtsi2ss xmm0, rax
jmp 0x14006f7ae
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 0x14006f7c8
cvtsi2ss xmm1, rsi
jmp 0x14006f7d1
cvtsi2ss xmm1, rax
addss xmm1, xmm1
movss xmm2, dword [rbp + 0x20]
je 0x14006fa7c
mulss xmm1, xmm2
ucomiss xmm0, xmm1
ja 0x14006fa7c
mov rcx, qword [rbp]
mov rax, qword [rcx + r13*8]
test rax, rax
je 0x14006f7fe
mov rcx, qword [rax]
mov qword [r15], rcx
jmp 0x14006f83f
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 0x14006f842
mov rax, qword [rax + 8]
lea rcx, [rsi - 1]
test rsi, rcx
je 0x14006fc84
cmp rax, rsi
jb 0x14006f837
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 0x14006fa3f
movabs rsi, 0x7fffffffffffffef
mov qword [r15 + 0x20], rdi
mov r13, qword [0x140146298]
mov rcx, rbx
call fcn.1400b45a0
cmp rax, rsi
ja 0x14006fd98
mov r14, rax
cmp rax, 0x16
ja 0x14006f88d
lea rcx, [rsp + 0x40]
mov byte [rcx + 0x17], r14b
jmp 0x14006f8b8
mov r15, r14
or r15, 0xf
inc r15
mov rcx, r15
call fcn.14009633c
mov rcx, rax
mov qword [rsp + 0x40], rax
add rsi, 0x11
or rsi, r15
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], r14
lea rsi, [rcx + r14]
cmp rcx, rbx
ja 0x14006f8ca
cmp rsi, rbx
ja 0x14006fdad
test r14, r14
je 0x14006f8da
mov rdx, rbx
mov r8, r14
call fcn.14009a050
mov byte [rsi], 0
lea rbx, [rsp + 0x40]
movzx eax, byte [rbx + 0x17]
mov r8d, eax
and r8d, 0x7f
test al, al
mov rdx, qword [rbx]
cmovns rdx, rbx
cmovs r8, qword [rbx + 8]
lea rcx, [rsp + 0x58]
call fcn.14007af80
mov rsi, qword [r13 + 0x30]
test rsi, rsi
jne 0x14006f957
xor r13d, r13d
cmp byte [rsp + 0x57], 0
jns 0x14006f922
mov rcx, qword [rsp + 0x40]
call fcn.140096334
test r13, r13
mov rcx, qword [rsp + 0x38]
jne 0x14006fcfc
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400985e0
mov rax, rdi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14, 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 0x14006fdb0
cmp r14, rsi
jb 0x14006fdbc
mov rax, r14
xor edx, edx
div rsi
mov r15, rdx
mov rax, qword [r13 + 0x28]
mov rax, qword [rax + r15*8]
test rax, rax
je 0x14006f90e
mov rbp, qword [rax]
test rbp, rbp
je 0x14006f90e
movzx r9d, byte [rsp + 0x57]
test r9b, r9b
jns 0x14006fa01
mov rbx, qword [rsp + 0x40]
xor r13d, r13d
mov rax, qword [rbp + 8]
cmp r14, rax
je 0x14006fcf0
cmp r12d, 1
jbe 0x14006fdc4
cmp rax, rsi
jb 0x14006fa28
xor edx, edx
div rsi
mov rax, rdx
cmp rax, r15
jne 0x14006f911
mov rbp, qword [rbp]
test rbp, rbp
jne 0x14006fa04
jmp 0x14006f911
cmp rsi, rdi
mov rcx, qword [rsp + 0x38]
je 0x14006f930
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test rdi, rdi
je 0x14006fa6c
mov rax, qword [rdi]
mov rax, qword [rax]
mov rcx, rdi
mov edx, 1
call qword [0x140150008]
mov rdi, rsi
jmp 0x14006f936
xor r14d, r14d
jmp 0x14006f653
divss xmm0, xmm2
call fcn.1400c7a00
cvttss2si rcx, xmm0
mov rdx, rcx
sar rdx, 0x3f
subss xmm0, dword [0x140115450]
cvttss2si rax, xmm0
and rax, rdx
or rax, rcx
lea rcx, [rsi + rsi]
cmp rsi, 3
jb 0x14006fc46
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 0x14006fc6c
lea rax, [r13 - 1]
test r13, rax
je 0x14006faec
mov rcx, r13
call fcn.1400817a0
mov r13, rax
mov rsi, qword [rbp + 8]
cmp r13, rsi
jbe 0x14006fdd0
mov r12, r13
mov rax, r12
shr rax, 0x3d
jne 0x14006fde9
lea rcx, [r12*8]
call fcn.14009633c
mov rcx, qword [rbp]
mov qword [rbp], rax
test rcx, rcx
je 0x14006fb24
call fcn.140096334
mov qword [rbp + 8], r12
xor eax, eax
mov rcx, qword [rbp]
mov qword [rcx + rax*8], 0
inc rax
cmp r12, rax
jne 0x14006fb2a
mov r8, qword [rbp + 0x10]
test r8, r8
je 0x14006ff0f
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 0x14006fdee
cmp rcx, r12
jb 0x14006fbc9
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 0x14006ff0f
mov rax, qword [r10 + 8]
cmp r9d, 1
jbe 0x14006fd9d
cmp rax, r12
jb 0x14006fbf8
xor edx, edx
div r12
mov rax, rdx
cmp rax, rcx
je 0x14006fc39
mov rdx, qword [rbp]
cmp qword [rdx + rax*8], 0
jne 0x14006fc17
mov qword [rdx + rax*8], r8
mov r8, r10
mov r10, qword [r10]
mov rcx, rax
jmp 0x14006fbd4
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 0x14006fc0c
and rax, rbx
jmp 0x14006f720
mov r13d, 1
jmp 0x14006fac0
lea r13, [rsi - 1]
and r13, r14
jmp 0x14006f6e8
movabs r13, 0xaaaaaaaaaaaaaaaa
jmp 0x14006f768
mov r13d, 2
jmp 0x14006faec
mov rcx, r15
call fcn.140062160
jmp 0x14006f544
and rax, rcx
jmp 0x14006f837
lea rcx, [0x140146288]
call fcn.1400099e0
test al, al
je 0x14006ff41
mov qword [0x140146290], 0
lea r15, [0x140146290]
mov qword [0x140146288], r15
jmp 0x14006f533
lea rcx, [0x140146288]
call fcn.1400099e0
test al, al
je 0x14006ff4d
mov qword [0x140146290], 0
lea rax, [0x140146290]
mov qword [0x140146288], rax
jmp 0x14006f555
test r9b, r9b
jns 0x14006fd24
mov r8, qword [rsp + 0x48]
jmp 0x14006fd2b
lock or dword [rdi + 0x10], 0x20
jmp 0x14006f930
mov ecx, 0xa8
call fcn.14009633c
mov rcx, rax
call fcn.14000ce20
mov rbp, qword [0x140146298]
jmp 0x14006f565
mov r8d, r9d
and r8d, 0x7f
movzx edx, byte [rbp + 0x27]
mov eax, edx
and eax, 0x7f
mov rcx, rax
test dl, dl
jns 0x14006fd3f
mov rcx, qword [rbp + 0x18]
cmp rcx, r8
jne 0x14006fa31
lea rcx, [rbp + 0x10]
test dl, dl
jns 0x14006fd53
mov rcx, qword [rcx]
js 0x14006fd78
test al, al
je 0x14006fd70
xor ecx, ecx
mov dl, byte [rbp + rcx + 0x10]
cmp dl, byte [rbx + rcx]
jne 0x14006fa31
inc rcx
cmp rax, rcx
jne 0x14006fd5b
mov r13, rbp
jmp 0x14006f911
mov qword [rsp + 0x28], r9
test r8, r8
je 0x14006fd70
mov rdx, rbx
call fcn.140099f50
test eax, eax
mov r9, qword [rsp + 0x28]
je 0x14006fd70
jmp 0x14006fa31
call fcn.1400ae5f0
lea rdx, [r12 - 1]
and rax, rdx
jmp 0x14006fbf8
int3
int3
lea r15, [rsi - 1]
and r15, r14
jmp 0x14006f9d4
mov r15, r14
jmp 0x14006f9d4
lea rcx, [rsi - 1]
and rax, rcx
jmp 0x14006fa28
jae 0x14006ff0f
mov rax, qword [rbp + 0x18]
test rax, rax
js 0x14006fdfb
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
jmp 0x14006fe13
call fcn.1400c9bf0
lea rax, [r12 - 1]
and rcx, rax
jmp 0x14006fbc9
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.1400c7a00
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x140115450]
cvttss2si rax, xmm0
sar rdx, 0x3f
and rax, rdx
or rax, rcx
cmp rsi, 3
jb 0x14006fec7
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 0x14006fec7
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 0x14006fed2
mov rcx, rax
call fcn.1400817a0
mov r12, rax
cmp r13, r12
cmova r12, r13
cmp r12, rsi
mov rdi, qword [rsp + 0x30]
jae 0x14006ff0f
test r12, r12
jne 0x14006faf8
mov rcx, qword [rbp]
mov qword [rbp], 0
test rcx, rcx
je 0x14006ff02
call fcn.140096334
mov qword [rbp + 8], 0
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rbp + 8]
lea r13, [rsi - 1]
test rsi, r13
je 0x14006ff31
cmp r14, rsi
jb 0x14006ff39
mov rax, r14
xor edx, edx
div rsi
mov r13, rdx
jmp 0x14006f7e9
and r13, r14
jmp 0x14006f7e9
mov r13, r14
jmp 0x14006f7e9
mov r15, qword [0x140146288]
jmp 0x14006f533
mov rax, qword [0x140146288]
jmp 0x14006f555