Function at 0x525d20
Capabilities:
Encode data using base64

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
lea rax, [rsp - 0x10]
cmp rax, qword [rcx + 0x10]
jbe 0x5260c4
sub rsp, 0x90
mov qword [rsp + 0x88], rbp
lea rbp, [rsp + 0x88]
mov rax, qword [rsp + 0xa8]
cmp qword [rax + 0x10], 0
jne 0x526082
xor ecx, ecx
test rcx, rcx
jle 0x5260a7
lea rax, [0x006960e0]
mov qword [rsp], rax
call fcn.0040cec0
mov rax, qword [rsp + 8]
mov qword [rsp + 0x68], rax
mov rcx, qword [rax + 8]
mov rdx, qword [rax + 0x10]
mov rbx, qword [rax + 0x18]
mov qword [rsp], rcx
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 1
call fcn.004ed0c0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x68]
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], rdx
lea rdi, [rbx + 8]
mov qword [rsp + 0x78], rdi
cmp dword [0x00920560], 0
jne 0x526078
mov qword [rbx + 8], rax
mov byte [rbx], 0
mov qword [rsp], rbx
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.004e8ee0
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax + 0x10]
mov rdx, qword [rax + 8]
lea rbx, [rcx - 1]
test rbx, rbx
jl 0x526071
mov rcx, qword [rdx + rcx*8 - 8]
bsr rcx, rcx
mov rdx, 0xffffffffffffffff
cmove rcx, rdx
shl rbx, 6
lea rcx, [rcx + rbx]
lea rcx, [rcx + 1]
test rcx, rcx
je 0x52604e
mov qword [rsp + 0x50], rcx
lea rax, [0x00671300]
mov qword [rsp], rax
lea rax, [rcx + 7]
sar rax, 0x3f
shr rax, 0x3d
lea rax, [rax + rcx]
lea rax, [rax + 7]
sar rax, 3
mov qword [rsp + 0x48], rax
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rax
call fcn.00449300
mov rax, qword [rsp + 0x50]
mov rcx, rax
sar rax, 0x3f
shr rax, 0x3d
add rax, rcx
sar rax, 3
shl rax, 3
sub rcx, rax
test rcx, rcx
mov eax, 8
cmove rcx, rax
mov qword [rsp + 0x58], rcx
mov rax, qword [rsp + 0x18]
mov qword [rsp + 0x70], rax
jmp 0x525ec9
mov rax, qword [rsp + 0x70]
nop
mov rcx, qword [rsp + 0x98]
mov qword [rsp], rcx
mov rdx, qword [rsp + 0xa0]
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rax
mov rbx, qword [rsp + 0x48]
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rbx
call fcn.00496550
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
jne 0x526022
mov rdx, qword [rsp + 0x48]
test rdx, rdx
jbe 0x52609d
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x60], rcx
mov rcx, qword [rsp + 0x58]
cmp rcx, 0x40
sbb rax, rax
mov rbx, qword [rsp + 0x70]
movzx esi, byte [rbx]
mov edi, 1
shl rdi, cl
and rdi, rax
lea rax, [rdi - 1]
and esi, eax
mov byte [rbx], sil
nop
mov rax, qword [rsp + 0x68]
mov rsi, qword [rax + 0x18]
mov rdi, qword [rax + 0x10]
mov r8, qword [rax + 8]
mov qword [rsp], r8
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rdx
call fcn.004f6f50
mov rax, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x68]
mov qword [rsi + 0x10], rdx
mov qword [rsi + 0x18], rax
cmp dword [0x00920560], 0
jne 0x526013
mov qword [rsi + 8], rbx
mov byte [rsi], 0
mov qword [rsp], rsi
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 8], rax
call fcn.004e9870
cmp qword [rsp + 0x10], 0
jge 0x525ec4
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xc0], rax
mov rbp, qword [rsp + 0x88]
add rsp, 0x90
ret
mov rdi, qword [rsp + 0x78]
mov rax, rbx
call fcn.00462620
jmp 0x525fb4
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], rcx
mov qword [rsp + 0xc0], rax
mov rbp, qword [rsp + 0x88]
add rsp, 0x90
ret
mov qword [rsp + 0xb0], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0xb8], xmm0
mov rbp, qword [rsp + 0x88]
add rsp, 0x90
ret
xor ecx, ecx
jmp 0x525e44
call fcn.00462620
jmp 0x525dec
cmp byte [rax], 0
je 0x526093
mov rcx, 0xffffffffffffffff
jmp 0x525d6b
mov ecx, 1
jmp 0x525d6b
xor eax, eax
mov rcx, rdx
call fcn.00462fe0
lea rax, [0x00671140]
mov qword [rsp], rax
lea rax, [0x0072bc10]
mov qword [rsp + 8], rax
call fcn.004350a0
nop
call fcn.004605f0
jmp fcn.00525d20