Function at 0x14005b620
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov r13, rdx
mov rax, qword [0x140287028]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rax, [rcx - 8]
mov qword [rsp + 0x30], rax
mov r10, qword [rcx + 0x1b8]
test r10, r10
je 0x14005b780
mov rbp, r9
mov rdi, rcx
mov esi, 0xc54622fd
lea r15, [rcx + 0x1b0]
mov rbx, qword [r13]
mov r11, qword [r13 + 8]
mov rax, rbx
shr rax, 0x20
mov rcx, r11
shr rcx, 0x20
mov edx, ebx
imul rdx, rdx, 0x32348c9d
imul rax, rax, 0x24e62a03
mov r9d, r11d
imul r9, r9, 0x37da1fb9
imul rcx, rsi
add rcx, r9
add rcx, rax
add rcx, rdx
mov rax, r10
shr rax, 1
movabs rdx, 0x5555555555555555
and rax, rdx
mov rdx, r10
sub rdx, rax
movabs r9, 0x3333333333333333
mov rax, rdx
and rax, r9
shr rdx, 2
and rdx, r9
add rdx, rax
mov r14, rdx
shr r14, 4
add r14, rdx
movabs rax, 0xf0f0f0f0f0f0f0f
and r14, rax
movabs rax, 0x101010101010101
imul r14, rax
shr r14, 0x38
cmp r14, 1
jbe 0x14005bde1
mov r9, rcx
cmp rcx, r10
jb 0x14005b729
mov rax, rcx
xor edx, edx
div r10
mov r9, rdx
mov rax, qword [r15]
mov rax, qword [rax + r9*8]
test rax, rax
je 0x14005b780
mov r12, qword [rax]
test r12, r12
je 0x14005b780
lea rsi, [r10 - 1]
mov rax, qword [r12 + 8]
cmp rax, rcx
jne 0x14005b75b
cmp qword [r12 + 0x10], rbx
jne 0x14005b777
cmp qword [r12 + 0x18], r11
je 0x14005b7b3
jmp 0x14005b777
cmp r14d, 1
jbe 0x14005bdf9
cmp rax, r10
jb 0x14005b772
xor edx, edx
div r10
mov rax, rdx
cmp rax, r9
jne 0x14005b780
mov r12, qword [r12]
test r12, r12
jne 0x14005b741
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401756e0
mov rcx, qword [rsp + 0x30]
mov rdx, r13
xor r8d, r8d
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.14000d2b0
cmp qword [r8], rbx
jne 0x14005b780
cmp qword [r8 + 8], r11
jne 0x14005b780
lea rbx, [rdi + 0xd0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14005bead
mov rax, qword [rdi + 0xe0]
test rax, rax
je 0x14005b9ba
lea r8, [rdi + 0xe0]
mov rdx, qword [r13]
mov rcx, qword [r13 + 8]
xor r9d, r9d
mov r10, rax
mov r13, r8
mov rsi, qword [r10 + 0x20]
cmp rsi, rdx
mov r11d, 0
sbb r11d, r11d
cmp rsi, rdx
jne 0x14005b849
mov r11, qword [r10 + 0x28]
cmp r11, rcx
mov esi, 0
sbb esi, esi
or sil, 1
cmp r11, rcx
movzx r11d, sil
cmove r11d, r9d
lea rsi, [r10 + 8]
test r11b, r11b
cmovns rsi, r10
cmovns r13, r10
mov r10, qword [rsi]
test r10, r10
jne 0x14005b7fe
jmp 0x14005b84f
or r11b, 1
jmp 0x14005b830
cmp r13, r8
je 0x14005b9ba
cmp rdx, qword [r13 + 0x20]
setb dl
jne 0x14005b86a
cmp rcx, qword [r13 + 0x28]
setb dl
je 0x14005b872
test dl, dl
jne 0x14005b9ba
mov qword [rsp + 0x38], r15
lea r15, [r13 + 0x20]
mov rcx, rbp
lea rbp, [r13 + 0x30]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rcx]
mov rsi, rax
mov rax, qword [rax + 0x20]
cmp rcx, rax
je 0x14005bef2
jae 0x14005b8a6
mov rax, qword [rsi]
test rax, rax
je 0x14005b8bb
jmp 0x14005b88a
jbe 0x14005b948
mov rax, qword [rsi + 8]
test rax, rax
jne 0x14005b88a
lea r14, [rsi + 8]
jmp 0x14005b8be
mov r14, rsi
mov ecx, 0x48
call fcn.140172a4c
mov rcx, qword [rsp + 0x28]
movups xmm0, xmmword [rcx]
movups xmmword [rax + 0x20], xmm0
mov rcx, qword [r13 + 0x30]
mov qword [rax + 0x30], rcx
lea rcx, [rax + 0x38]
mov rdx, qword [r13 + 0x38]
mov qword [rax + 0x38], rdx
mov r8, qword [r13 + 0x40]
mov qword [rax + 0x40], r8
test r8, r8
je 0x14005bf13
lea r8, [r13 + 0x38]
mov qword [rdx + 0x10], rcx
mov qword [rbp], r8
xorps xmm0, xmm0
movups xmmword [r8], xmm0
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], rsi
mov qword [r14], rax
mov rcx, qword [rdi + 0xd8]
mov rcx, qword [rcx]
test rcx, rcx
je 0x14005b932
mov qword [rdi + 0xd8], rcx
mov rax, qword [r14]
mov rcx, qword [rdi + 0xe0]
mov rdx, rax
call fcn.14012c7d0
inc qword [rdi + 0xe8]
test r13, r13
je 0x14005bf0d
mov rcx, qword [r13 + 8]
test rcx, rcx
jne 0x14005bdd0
mov rcx, r13
mov rax, qword [rcx + 0x10]
cmp qword [rax], rcx
mov rcx, rax
jne 0x14005b961
cmp qword [rdi + 0xd8], r13
jne 0x14005b97d
mov qword [rdi + 0xd8], rax
dec qword [rdi + 0xe8]
mov rcx, qword [rdi + 0xe0]
mov rdx, r13
call fcn.14012dd40
test r15, r15
je 0x14005bf10
mov rdx, qword [r13 + 0x38]
mov rcx, rbp
call fcn.14005bf40
mov rcx, r13
call fcn.140172a44
mov rbp, qword [rsp + 0x28]
mov r15, qword [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rbx, qword [r12 + 0x20]
test rbx, rbx
je 0x14005beba
lock inc dword [rbx + 8]
lea r13, [rsp + 0x68]
mov rcx, r15
mov rdx, r13
mov r8, r12
call fcn.14000e0a0
mov r15, qword [r13]
test r15, r15
mov rsi, qword [rsp + 0x30]
je 0x14005ba0e
cmp byte [rsp + 0x78], 0
je 0x14005ba06
lea rcx, [r15 + 0x10]
call fcn.14000dfe0
mov rcx, r15
call fcn.140172a44
lock inc dword [rbx + 8]
mov byte [rsp + 0x20], 0
mov rcx, rsi
mov rdx, rbp
mov r8, rbx
xor r9d, r9d
call fcn.14000efe0
lea r14, [rdi + 0x138]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14005bed4
mov r12, qword [rdi + 0x140]
mov r13, qword [rdi + 0x148]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
lea r15, [rdi + 0x28]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14005be68
mov r9, qword [rdi + 0x38]
test r9, r9
je 0x14005bb85
mov rax, r12
shr rax, 0x20
mov rcx, r13
shr rcx, 0x20
mov edx, r12d
imul rdx, rdx, 0x32348c9d
imul rax, rax, 0x24e62a03
add rax, rdx
mov edx, r13d
imul rdx, rdx, 0x37da1fb9
add rdx, rax
mov eax, 0xc54622fd
imul rcx, rax
add rcx, rdx
mov rax, r9
shr rax, 1
movabs rdx, 0x5555555555555555
and rax, rdx
mov rdx, r9
sub rdx, rax
mov rax, rdx
movabs r8, 0x3333333333333333
and rax, r8
shr rdx, 2
and rdx, r8
add rdx, rax
mov r10, rdx
shr r10, 4
add r10, rdx
movabs rax, 0xf0f0f0f0f0f0f0f
and r10, rax
movabs rax, 0x101010101010101
imul r10, rax
shr r10, 0x38
cmp r10, 1
jbe 0x14005bded
mov r8, rcx
cmp rcx, r9
jb 0x14005bb2d
mov rax, rcx
xor edx, edx
div r9
mov r8, rdx
mov rax, qword [rdi + 0x30]
mov rax, qword [rax + r8*8]
test rax, rax
je 0x14005bb85
mov r11, qword [rax]
test r11, r11
je 0x14005bb85
lea rsi, [r9 - 1]
mov rax, qword [r11 + 8]
cmp rax, rcx
jne 0x14005bb61
cmp qword [r11 + 0x10], r12
jne 0x14005bb7d
cmp qword [r11 + 0x18], r13
je 0x14005bd4e
jmp 0x14005bb7d
cmp r10d, 1
jbe 0x14005be01
cmp rax, r9
jb 0x14005bb78
xor edx, edx
div r9
mov rax, rdx
cmp rax, r8
jne 0x14005bb85
mov r11, qword [r11]
test r11, r11
jne 0x14005bb46
mov qword [rsp + 0x28], rbp
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
lea r12, [rdi + 0x118]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14005be89
mov r13, qword [rdi + 0x120]
mov rbp, qword [rdi + 0x128]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14005be96
mov r9, qword [rdi + 0x38]
test r9, r9
je 0x14005bceb
mov rax, r13
shr rax, 0x20
mov rcx, rbp
shr rcx, 0x20
mov edx, r13d
imul rdx, rdx, 0x32348c9d
imul rax, rax, 0x24e62a03
add rax, rdx
mov edx, ebp
imul rdx, rdx, 0x37da1fb9
add rdx, rax
mov eax, 0xc54622fd
imul rcx, rax
add rcx, rdx
mov rax, r9
shr rax, 1
movabs rdx, 0x5555555555555555
and rax, rdx
mov rdx, r9
sub rdx, rax
mov rax, rdx
movabs r8, 0x3333333333333333
and rax, r8
shr rdx, 2
and rdx, r8
add rdx, rax
mov r10, rdx
shr r10, 4
add r10, rdx
movabs rax, 0xf0f0f0f0f0f0f0f
and r10, rax
movabs rax, 0x101010101010101
imul r10, rax
shr r10, 0x38
cmp r10, 1
jbe 0x14005be75
mov r8, rcx
cmp rcx, r9
jb 0x14005bc93
mov rax, rcx
xor edx, edx
div r9
mov r8, rdx
mov rax, qword [rdi + 0x30]
mov rax, qword [rax + r8*8]
test rax, rax
je 0x14005bceb
mov r11, qword [rax]
test r11, r11
je 0x14005bceb
lea rsi, [r9 - 1]
mov rax, qword [r11 + 8]
cmp rax, rcx
jne 0x14005bcc7
cmp qword [r11 + 0x10], r13
jne 0x14005bce3
cmp qword [r11 + 0x18], rbp
je 0x14005be09
jmp 0x14005bce3
cmp r10d, 1
jbe 0x14005be81
cmp rax, r9
jb 0x14005bcde
xor edx, edx
div r9
mov rax, rdx
cmp rax, r8
jne 0x14005bceb
mov r11, qword [r11]
test r11, r11
jne 0x14005bcac
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14005bf1c
mov r13, qword [rdi + 0x130]
test r13, r13
jne 0x14005bf29
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, rbx
call fcn.1400b5b50
lea r8, [rsp + 0x40]
mov dword [r8], 0
mov qword [r8 + 8], 0
add rdi, 8
mov rcx, rbx
mov rdx, rdi
mov r9, rax
call fcn.14006ef70
jmp 0x14005bd9c
mov r12, qword [r11 + 0x20]
test r12, r12
je 0x14005bb85
lock inc dword [r12 + 8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
lea rdi, [rsp + 0x50]
mov rcx, rbx
mov rdx, rdi
call fcn.1401b2300
mov rcx, r12
mov rdx, rbp
mov r8, rdi
call fcn.1401b2350
lock dec dword [r12 + 8]
jne 0x14005bd9c
add r12, 8
mov rcx, r12
call fcn.1401afb50
test rbx, rbx
je 0x14005bdab
lock dec dword [rbx + 8]
je 0x14005bee1
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401756e0
nop
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, rcx
mov rcx, qword [rcx]
test rcx, rcx
je 0x14005b96d
jmp 0x14005bdd0
lea r9, [r10 - 1]
and r9, rcx
jmp 0x14005b729
lea r8, [r9 - 1]
and r8, rcx
jmp 0x14005bb2d
and rax, rsi
jmp 0x14005b772
and rax, rsi
jmp 0x14005bb78
mov r13, qword [r11 + 0x20]
test r13, r13
je 0x14005bceb
lock inc dword [r13 + 8]
add r13, 8
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
mov rsi, qword [rsp + 0x28]
je 0x14005bea3
add rdi, 0x150
mov rcx, rdi
mov rdx, rsi
call fcn.1401b6d00
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
lock dec dword [r13]
jne 0x14005bd9c
mov rcx, r13
jmp 0x14005bd97
mov rcx, r15
call fcn.1400ec2e0
jmp 0x14005ba6c
lea r8, [r9 - 1]
and r8, rcx
jmp 0x14005bc93
and rax, rsi
jmp 0x14005bcde
mov rcx, r12
call fcn.1400ec2e0
jmp 0x14005bbab
mov rcx, r15
call fcn.1400ec2e0
jmp 0x14005bbd3
mov rcx, r14
call fcn.1400ec2e0
jmp 0x14005be3a
mov rcx, rbx
call fcn.1400ec2e0
jmp 0x14005b7d6
lea rdx, [rsp + 0x60]
mov rcx, r15
mov r8, r12
call fcn.1401afe10
mov rsi, qword [rsp + 0x30]
jmp 0x14005ba12
mov rcx, r14
call fcn.1400ec2e0
jmp 0x14005ba40
add rbx, 8
mov rcx, rbx
call fcn.1401afb50
jmp 0x14005bdab
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov rdx, qword [rsi + 0x28]
cmp rax, rdx
jae 0x14005b8a6
jmp 0x14005b89c
int3
int3
mov qword [rax + 0x30], rcx
jmp 0x14005b90c
mov rcx, r12
call fcn.1400ec2e0
jmp 0x14005bd05
mov r15, r12
jmp 0x14005be16