Function at 0x566d10
Capabilities:
Encode data using base64

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
lea rax, [rsp - 0x68]
cmp rax, qword [rcx + 0x10]
jbe 0x567346
sub rsp, 0xe8
mov qword [rsp + 0xe0], rbp
lea rbp, [rsp + 0xe0]
mov rax, qword [rsp + 0xf8]
test rax, rax
jne 0x5671c4
mov rax, qword [rsp + 0x108]
xor ecx, ecx
xor edx, edx
xor ebx, ebx
xor esi, esi
xor edi, edi
test rsi, rsi
jne 0x5671a4
mov rsi, qword [rsp + 0xf0]
mov rdi, qword [rsi]
lea r8, [rax + rcx]
mov r9, qword [rdi + 0x10]
mov rdi, qword [rdi + 8]
lea r10, [r9 - 1]
test r10, r10
jl 0x56719d
mov rdi, qword [rdi + r9*8 - 8]
bsr rdi, rdi
mov r9, 0xffffffffffffffff
cmove rdi, r9
shl r10, 6
lea rdi, [rdi + r10 + 1]
lea r9, [rax + rcx + 0xb]
lea r10, [rdi + 7]
sar r10, 0x3f
shr r10, 0x3d
lea rdi, [r10 + rdi + 7]
sar rdi, 3
cmp rdi, r9
jl 0x56716f
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x88], rdx
mov qword [rsp + 0x48], rbx
mov byte [rsp + 0xc0], 0
mov qword [rsp + 0xc8], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0xd0], xmm0
lea rax, [rsp + 0xc0]
mov qword [rsp], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x18], rax
call fcn.00523a70
mov rax, qword [rsp + 0x20]
mov byte [rsp + 0xa0], 0
mov qword [rsp + 0xa8], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0xb0], xmm0
lea rcx, [rsp + 0xa0]
mov qword [rsp], rcx
mov rcx, qword [rsp + 0xf0]
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rax
call fcn.00569970
mov rax, qword [rsp + 0x18]
mov qword [rsp], rax
call fcn.00523b30
mov rax, qword [rsp + 0x10]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 8]
mov qword [rsp + 0x90], rcx
lea rdx, [0x008569c0]
mov qword [rsp], rdx
mov rdx, qword [rsp + 0x58]
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rdx
call fcn.0043ffb0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
cmp rbx, rsi
mov rdi, rbx
cmovg rbx, rsi
mov r8, rcx
sub rcx, rbx
cmp rcx, r8
ja 0x56731a
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x80], r8
mov qword [rsp + 0x98], rdx
mov rbx, r8
sub r8, rcx
cmp r8, rdi
cmovg r8, rdi
mov rdi, rax
sub rax, rcx
neg rax
sar rax, 0x3f
and rcx, rax
lea rax, [rcx + rdx]
mov rcx, qword [rsp + 0x90]
cmp rax, rcx
jne 0x56713d
test rbx, rbx
jbe 0x567313
movzx eax, byte [rdx]
cmp rbx, 1
jbe 0x56730c
movzx ecx, byte [rdx + 1]
dec eax
shr eax, 0x1f
xor ecx, 1
movzx ecx, cl
dec ecx
shr ecx, 0x1f
and rax, rcx
mov rcx, qword [rsp + 0x68]
mov r8, rsi
sub rsi, rcx
test r8, r8
jl 0x567305
cmp rsi, r8
ja 0x567305
cmp r8, rdi
ja 0x567305
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x78], rsi
sub rdi, rsi
mov rcx, rdi
neg rdi
sar rdi, 0x3f
and rdi, rsi
lea rbx, [rdi + rdx]
mov qword [rsp], rbx
sub r8, rsi
mov qword [rsp + 8], r8
mov qword [rsp + 0x10], rcx
mov rcx, qword [rsp + 0x100]
mov qword [rsp + 0x18], rcx
mov rcx, qword [rsp + 0x108]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x110]
mov qword [rsp + 0x28], rcx
call fcn.0050ed40
mov rax, qword [rsp + 0x50]
and rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x38]
sub rcx, rdx
mov rdx, qword [rsp + 0x78]
test rdx, rdx
jl 0x5672fe
cmp rcx, rdx
ja 0x5672fe
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x78], rcx
mov rax, qword [rsp + 0x70]
sub rax, rcx
mov rbx, rax
neg rax
sar rax, 0x3f
and rax, rcx
mov rsi, qword [rsp + 0x98]
add rax, rsi
mov qword [rsp], rax
sub rdx, rcx
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rbx
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
call fcn.0050ed40
mov rax, qword [rsp + 0x50]
and rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x78]
lea rdx, [rcx - 1]
mov rbx, qword [rsp + 0x80]
cmp rdx, rbx
jae 0x5672f7
mov rbx, qword [rsp + 0x98]
movzx ecx, byte [rcx + rbx - 1]
dec ecx
shr ecx, 0x1f
and rcx, rax
mov eax, 2
jmp 0x5670e9
lea rsi, [rax + 1]
movzx edi, byte [rbx + rax]
xor edi, 0xffffffff
movzx edi, dil
dec edi
shr edi, 0x1f
and rcx, rdi
mov rax, rsi
cmp rax, rdx
jl 0x5670cf
cmp rcx, 1
je 0x567122
mov rax, qword [0x00d674d8]
mov rcx, qword [0x00d674d0]
mov qword [rsp + 0x130], rcx
mov qword [rsp + 0x138], rax
mov rbp, qword [rsp + 0xe0]
add rsp, 0xe8
ret
xorps xmm0, xmm0
movups xmmword [rsp + 0x130], xmm0
mov rbp, qword [rsp + 0xe0]
add rsp, 0xe8
ret
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], r8
call fcn.004585b0
mov rdx, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x70]
jmp 0x566f52
mov rax, qword [0x00d674d8]
mov rcx, qword [0x00d674d0]
mov qword [rsp + 0x130], rcx
mov qword [rsp + 0x138], rax
mov rbp, qword [rsp + 0xe0]
add rsp, 0xe8
ret
xor edi, edi
jmp 0x566db3
mov qword [rsp + 0x130], rsi
mov qword [rsp + 0x138], rdi
mov rbp, qword [rsp + 0xe0]
add rsp, 0xe8
ret
cmp rax, 0x14
jae 0x567328
mov rcx, qword [0x00d59f68]
mov rdx, qword [0x00d59f60]
cmp rax, rcx
jae 0x567321
movzx ecx, byte [rdx + rax]
mov rdx, qword [rsp + 0x108]
cmp rcx, rdx
je 0x567248
lea rax, [0x008932a0]
mov qword [rsp], rax
call fcn.0040c4b0
mov rdi, qword [rsp + 8]
mov qword [rdi + 8], 0x28
cmp dword [0x00d857e0], 0
jne 0x56723a
lea rax, [0x00919a10]
mov qword [rdi], rax
xor eax, eax
xor ecx, ecx
xor edx, edx
xor ebx, ebx
lea rsi, [0x00a2bdc0]
jmp 0x566d69
lea rax, [0x00919a10]
call fcn.00457490
jmp 0x567226
mov qword [rsp + 0x80], rcx
lea rcx, [0x00872ac0]
mov qword [rsp], rcx
mov rcx, qword [0x00d65db8]
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rax
call fcn.00410bd0
mov rax, qword [rsp + 0x18]
mov rcx, qword [rax + 0x10]
mov rdx, qword [rax + 8]
mov rax, qword [rax]
lea rbx, [rsp + 0x20]
cmp byte [rbx], 0
je 0x5672a5
mov rbx, rcx
xor esi, esi
xor edi, edi
mov rcx, rdx
mov rdx, rax
mov rax, qword [rsp + 0x80]
jmp 0x566d69
lea rax, [0x008932a0]
mov qword [rsp], rax
call fcn.0040c4b0
mov rdi, qword [rsp + 8]
mov qword [rdi + 8], 0x25
cmp dword [0x00d857e0], 0
jne 0x5672e9
lea rax, [0x009184f7]
mov qword [rdi], rax
xor eax, eax
xor ecx, ecx
xor edx, edx
xor ebx, ebx
lea rsi, [0x00a2bdc0]
jmp 0x566d69
lea rax, [0x009184f7]
call fcn.00457490
jmp 0x5672d5
call fcn.0042ba70
ud2
call fcn.0042bba0
ud2
call fcn.0042bba0
ud2
call fcn.0042ba70
ud2
call fcn.0042ba70
ud2
call fcn.0042bba0
ud2
call fcn.0042ba70
ud2
lea rax, [0x00856740]
mov qword [rsp], rax
lea rax, [0x00a292d0]
mov qword [rsp + 8], rax
call fcn.0042cbc0
ud2
call fcn.004555f0
jmp fcn.00566d10