Function at 0x525ac0
Capabilities:
Encode data using base64

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
lea rax, [rsp - 0x30]
cmp rax, qword [rcx + 0x10]
jbe 0x525e58
sub rsp, 0xb0
mov qword [rsp + 0xa8], rbp
lea rbp, [rsp + 0xa8]
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rax + 0x30]
mov rdx, qword [rsp + 0xc0]
mov qword [rsp], rdx
call rcx
mov rax, qword [rsp + 8]
mov rax, qword [rax + 8]
mov qword [rsp + 0x60], rax
mov rcx, qword [rax + 0x10]
mov rdx, qword [rax + 8]
lea rbx, [rcx - 1]
test rbx, rbx
jl 0x525e31
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]
mov qword [rsp + 0x50], rcx
lea rax, [0x006a1460]
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.0044dc20
mov rax, qword [rsp + 0x18]
mov qword [rsp + 0x78], rax
xor ecx, ecx
xor edx, edx
xor ebx, ebx
xor esi, esi
jmp 0x525bc0
mov rdx, rcx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x80]
mov rcx, rax
mov rax, qword [rsp + 0x78]
nop dword [rax + rax]
test rcx, rcx
jne 0x525de4
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x68], rdx
nop
mov rcx, qword [rsp + 0xc8]
mov qword [rsp], rcx
mov rdx, qword [rsp + 0xd0]
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.004a3fc0
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
nop word [rax + rax]
test rcx, rcx
jne 0x525d88
mov rbx, qword [rsp + 0x48]
test rbx, rbx
jbe 0x525e4d
mov rsi, qword [rsp + 0x78]
movzx edi, byte [rsi]
mov r8, qword [0x008c2988]
mov r9, qword [0x008c2980]
mov rax, qword [rsp + 0x50]
mov r10, rax
sar rax, 0x3f
shr rax, 0x3d
lea r11, [rax + r10]
sar r11, 3
shl r11, 3
mov rax, r10
sub rax, r11
cmp r8, rax
jbe 0x525e45
movzx r8d, byte [r9 + rax]
and edi, r8d
mov byte [rsi], dil
cmp rbx, 1
jbe 0x525e38
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0x58], rcx
movzx eax, byte [rsi + 1]
xor eax, 0x42
mov byte [rsi + 1], al
mov byte [rsp + 0x88], 0
mov qword [rsp + 0x90], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x98], xmm0
movups xmmword [rsp], xmm0
mov qword [rsp + 0x10], 0
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rbx
nop
call fcn.00520360
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rcx
mov qword [rsp + 0xa0], rdx
mov byte [rsp + 0x88], 0
lea rax, [rsp + 0x88]
mov qword [rsp], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 8], rax
call fcn.00511f20
cmp qword [rsp + 0x10], 0
jl 0x525d46
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
jmp 0x525ba3
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rax + 0x38]
mov rdx, qword [rsp + 0xc0]
mov qword [rsp], rdx
mov rbx, qword [rsp + 0x78]
mov qword [rsp + 8], rbx
mov rsi, qword [rsp + 0x48]
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rsi
call rcx
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
jmp 0x525ba3
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0xd8], rcx
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0xe0], rcx
mov qword [rsp + 0xe8], rcx
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0xf0], rcx
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0xf8], rcx
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x108], rdx
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0xf0], rcx
mov qword [rsp + 0xf8], rdx
mov qword [rsp + 0x100], rbx
mov qword [rsp + 0x108], rsi
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
xor ecx, ecx
jmp 0x525b53
mov eax, 1
mov rcx, rbx
call fcn.0046cb00
mov rcx, r8
call fcn.0046cb00
xor eax, eax
mov rcx, rbx
call fcn.0046cb00
nop
call fcn.0046a920
nop dword [rax]
jmp fcn.00525ac0