Function at 0x140111800
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 [0x140287028]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r15, qword [0x140299be0]
cmp r15, 1
jbe 0x140111f8c
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140111f77
mov rax, qword [0x140299be0]
cmp rax, 1
jbe 0x140111fbe
mov rbp, qword [0x140299bf0]
test rbp, rbp
je 0x140112006
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1401120aa
mov rcx, rbx
call fcn.140198fc0
mov r12, rax
test rax, rax
je 0x140111d74
mov eax, r12d
and eax, 7
cmp r12, 8
jae 0x14011189d
xor r14d, r14d
mov rcx, rbx
jmp 0x140111935
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 0x1401118b0
test rax, rax
je 0x140111953
xor edx, edx
movsx r8, byte [rcx + rdx]
imul r14, r14, 0x83
add r14, r8
inc rdx
cmp rax, rdx
jne 0x14011193c
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 0x140111f5d
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 0x140111f51
mov r13, r14
cmp r14, rsi
jb 0x1401119e8
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 0x140111a5e
mov r15, qword [rax]
test r15, r15
je 0x140111a5e
lea rbx, [rsi - 1]
mov rax, qword [r15 + 8]
cmp rax, r14
je 0x140111a25
cmp edi, 1
jbe 0x140111f3e
cmp rax, rsi
jb 0x140111a20
xor edx, edx
div rsi
mov rax, rdx
cmp rax, r13
jne 0x140111a5e
cmp qword [r15 + 0x18], r12
je 0x140111a35
mov r15, qword [r15]
test r15, r15
jne 0x140111a01
jmp 0x140111a5e
test r12, r12
je 0x140111a4f
mov rcx, qword [r15 + 0x10]
mov rdx, qword [rsp + 0x28]
mov r8, r12
call fcn.140177050
test eax, eax
jne 0x140111a2b
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x28]
jmp 0x140111b46
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x28]
mov ecx, 0x28
call fcn.140172a4c
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 0x140111a99
cvtsi2ss xmm0, rax
jmp 0x140111aae
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 0x140111ac8
cvtsi2ss xmm1, rsi
jmp 0x140111ad1
cvtsi2ss xmm1, rax
addss xmm1, xmm1
movss xmm2, dword [rbp + 0x20]
je 0x140111d7c
mulss xmm1, xmm2
ucomiss xmm0, xmm1
ja 0x140111d7c
mov rcx, qword [rbp]
mov rax, qword [rcx + r13*8]
test rax, rax
je 0x140111afe
mov rcx, qword [rax]
mov qword [r15], rcx
jmp 0x140111b3f
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 0x140111b42
mov rax, qword [rax + 8]
lea rcx, [rsi - 1]
test rsi, rcx
je 0x140111f84
cmp rax, rsi
jb 0x140111b37
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 0x140111d3f
movabs rsi, 0x7fffffffffffffef
mov qword [r15 + 0x20], rdi
mov r13, qword [0x140299bf0]
mov rcx, rbx
call fcn.140198fc0
cmp rax, rsi
ja 0x140112098
mov r14, rax
cmp rax, 0x16
ja 0x140111b8d
lea rcx, [rsp + 0x40]
mov byte [rcx + 0x17], r14b
jmp 0x140111bb8
mov r15, r14
or r15, 0xf
inc r15
mov rcx, r15
call fcn.140172a4c
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 0x140111bca
cmp rsi, rbx
ja 0x1401120ad
test r14, r14
je 0x140111bda
mov rdx, rbx
mov r8, r14
call fcn.140177150
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.140138330
mov rsi, qword [r13 + 0x30]
test rsi, rsi
jne 0x140111c57
xor r13d, r13d
cmp byte [rsp + 0x57], 0
jns 0x140111c22
mov rcx, qword [rsp + 0x40]
call fcn.140172a44
test r13, r13
mov rcx, qword [rsp + 0x38]
jne 0x140111ffc
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401756e0
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 0x1401120b0
cmp r14, rsi
jb 0x1401120bc
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 0x140111c0e
mov rbp, qword [rax]
test rbp, rbp
je 0x140111c0e
movzx r9d, byte [rsp + 0x57]
test r9b, r9b
jns 0x140111d01
mov rbx, qword [rsp + 0x40]
xor r13d, r13d
mov rax, qword [rbp + 8]
cmp r14, rax
je 0x140111ff0
cmp r12d, 1
jbe 0x1401120c4
cmp rax, rsi
jb 0x140111d28
xor edx, edx
div rsi
mov rax, rdx
cmp rax, r15
jne 0x140111c11
mov rbp, qword [rbp]
test rbp, rbp
jne 0x140111d04
jmp 0x140111c11
cmp rsi, rdi
mov rcx, qword [rsp + 0x38]
je 0x140111c30
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test rdi, rdi
je 0x140111d6c
mov rax, qword [rdi]
mov rax, qword [rax]
mov rcx, rdi
mov edx, 1
call qword [case.0x1401d7990.0]
mov rdi, rsi
jmp 0x140111c36
xor r14d, r14d
jmp 0x140111953
divss xmm0, xmm2
call fcn.140190fd4
cvttss2si rcx, xmm0
mov rdx, rcx
sar rdx, 0x3f
subss xmm0, dword [0x14024eb68]
cvttss2si rax, xmm0
and rax, rdx
or rax, rcx
lea rcx, [rsi + rsi]
cmp rsi, 3
jb 0x140111f46
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 0x140111f6c
lea rax, [r13 - 1]
test r13, rax
je 0x140111dec
mov rcx, r13
call fcn.14010a4c0
mov r13, rax
mov rsi, qword [rbp + 8]
cmp r13, rsi
jbe 0x1401120d0
mov r12, r13
mov rax, r12
shr rax, 0x3d
jne 0x1401120e9
lea rcx, [r12*8]
call fcn.140172a4c
mov rcx, qword [rbp]
mov qword [rbp], rax
test rcx, rcx
je 0x140111e24
call fcn.140172a44
mov qword [rbp + 8], r12
xor eax, eax
mov rcx, qword [rbp]
mov qword [rcx + rax*8], 0
inc rax
cmp r12, rax
jne 0x140111e2a
mov r8, qword [rbp + 0x10]
test r8, r8
je 0x14011220f
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 0x1401120ee
cmp rcx, r12
jb 0x140111ec9
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 0x14011220f
mov rax, qword [r10 + 8]
cmp r9d, 1
jbe 0x14011209d
cmp rax, r12
jb 0x140111ef8
xor edx, edx
div r12
mov rax, rdx
cmp rax, rcx
je 0x140111f39
mov rdx, qword [rbp]
cmp qword [rdx + rax*8], 0
jne 0x140111f17
mov qword [rdx + rax*8], r8
mov r8, r10
mov r10, qword [r10]
mov rcx, rax
jmp 0x140111ed4
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 0x140111f0c
and rax, rbx
jmp 0x140111a20
mov r13d, 1
jmp 0x140111dc0
lea r13, [rsi - 1]
and r13, r14
jmp 0x1401119e8
movabs r13, 0xaaaaaaaaaaaaaaaa
jmp 0x140111a68
mov r13d, 2
jmp 0x140111dec
mov rcx, r15
call fcn.1400ec2e0
jmp 0x140111844
and rax, rcx
jmp 0x140111b37
lea rcx, [0x140299be0]
call fcn.140007880
test al, al
je 0x140112241
mov qword [0x140299be8], 0
lea r15, [0x140299be8]
mov qword [0x140299be0], r15
jmp 0x140111833
lea rcx, [0x140299be0]
call fcn.140007880
test al, al
je 0x14011224d
mov qword [0x140299be8], 0
lea rax, [0x140299be8]
mov qword [0x140299be0], rax
jmp 0x140111855
test r9b, r9b
jns 0x140112024
mov r8, qword [rsp + 0x48]
jmp 0x14011202b
lock or dword [rdi + 0x10], 0x20
jmp 0x140111c30
mov ecx, 0xa8
call fcn.140172a4c
mov rcx, rax
call fcn.14001c360
mov rbp, qword [0x140299bf0]
jmp 0x140111865
mov r8d, r9d
and r8d, 0x7f
movzx edx, byte [rbp + 0x27]
mov eax, edx
and eax, 0x7f
mov rcx, rax
test dl, dl
jns 0x14011203f
mov rcx, qword [rbp + 0x18]
cmp rcx, r8
jne 0x140111d31
lea rcx, [rbp + 0x10]
test dl, dl
jns 0x140112053
mov rcx, qword [rcx]
js 0x140112078
test al, al
je 0x140112070
xor ecx, ecx
mov dl, byte [rbp + rcx + 0x10]
cmp dl, byte [rbx + rcx]
jne 0x140111d31
inc rcx
cmp rax, rcx
jne 0x14011205b
mov r13, rbp
jmp 0x140111c11
mov qword [rsp + 0x28], r9
test r8, r8
je 0x140112070
mov rdx, rbx
call fcn.140177050
test eax, eax
mov r9, qword [rsp + 0x28]
je 0x140112070
jmp 0x140111d31
call fcn.14018c460
lea rdx, [r12 - 1]
and rax, rdx
jmp 0x140111ef8
int3
int3
lea r15, [rsi - 1]
and r15, r14
jmp 0x140111cd4
mov r15, r14
jmp 0x140111cd4
lea rcx, [rsi - 1]
and rax, rcx
jmp 0x140111d28
jae 0x14011220f
mov rax, qword [rbp + 0x18]
test rax, rax
js 0x1401120fb
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
jmp 0x140112113
call fcn.1401b3360
lea rax, [r12 - 1]
and rcx, rax
jmp 0x140111ec9
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.140190fd4
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x14024eb68]
cvttss2si rax, xmm0
sar rdx, 0x3f
and rax, rdx
or rax, rcx
cmp rsi, 3
jb 0x1401121c7
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 0x1401121c7
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 0x1401121d2
mov rcx, rax
call fcn.14010a4c0
mov r12, rax
cmp r13, r12
cmova r12, r13
cmp r12, rsi
mov rdi, qword [rsp + 0x30]
jae 0x14011220f
test r12, r12
jne 0x140111df8
mov rcx, qword [rbp]
mov qword [rbp], 0
test rcx, rcx
je 0x140112202
call fcn.140172a44
mov qword [rbp + 8], 0
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rbp + 8]
lea r13, [rsi - 1]
test rsi, r13
je 0x140112231
cmp r14, rsi
jb 0x140112239
mov rax, r14
xor edx, edx
div rsi
mov r13, rdx
jmp 0x140111ae9
and r13, r14
jmp 0x140111ae9
mov r13, r14
jmp 0x140111ae9
mov r15, qword [0x140299be0]
jmp 0x140111833
mov rax, qword [0x140299be0]
jmp 0x140111855