Function at 0x528ec0
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x529178
sub rsp, 0x70
mov qword [rsp + 0x68], rbp
lea rbp, [rsp + 0x68]
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x78], rax
xor edx, edx
jmp 0x528f09
mov rax, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x80]
mov rdx, rdi
mov qword [rsp + 0x60], rdx
mov rcx, qword [rax + 0x30]
mov rax, rbx
call rcx
mov rcx, qword [rax + 8]
mov qword [rsp + 0x50], rcx
mov rdx, qword [rcx + 0x10]
mov rbx, qword [rcx + 8]
lea rsi, [rdx - 1]
test rsi, rsi
jl 0x528f8c
mov rdx, qword [rbx + rdx*8 - 8]
mov rdi, rdx
shr rdx, 1
or rdi, rdx
mov rdx, rdi
shr rdi, 2
or rdx, rdi
mov rdi, rdx
shr rdx, 4
or rdx, rdi
mov rdi, rdx
shr rdx, 8
or rdi, rdx
mov rdx, rdi
shr rdi, 0x10
or rdx, rdi
mov rdi, rdx
shr rdx, 0x20
or rdi, rdx
bsr rdx, rdi
mov rdi, 0xffffffffffffffff
cmove rdx, rdi
shl rsi, 6
inc rdx
add rdx, rsi
jmp 0x528f8e
xor edx, edx
lea rsi, [rdx + 7]
sar rsi, 0x3f
shr rsi, 0x3d
add rsi, 7
lea rcx, [rdx + rsi]
sar rcx, 3
mov qword [rsp + 0x38], rcx
lea rax, [0x005bc280]
mov rbx, rcx
call fcn.004498c0
mov qword [rsp + 0x58], rax
mov rbx, qword [rsp + 0x90]
mov rcx, rax
mov rdi, qword [rsp + 0x38]
mov rsi, rdi
mov r8, rsi
mov rax, qword [rsp + 0x88]
nop dword [rax]
call fcn.0046da40
test rbx, rbx
jne 0x52915e
mov rdx, qword [rsp + 0x50]
mov rsi, qword [rdx + 0x10]
mov rdi, qword [rdx + 8]
lea r8, [rsi - 1]
nop
test r8, r8
jl 0x529062
mov rsi, qword [rdi + rsi*8 - 8]
mov rdi, rsi
shr rsi, 1
or rdi, rsi
mov rsi, rdi
shr rdi, 2
or rsi, rdi
mov rdi, rsi
shr rsi, 4
or rsi, rdi
mov rdi, rsi
shr rsi, 8
or rdi, rsi
mov rsi, rdi
shr rdi, 0x10
or rsi, rdi
mov rdi, rsi
shr rsi, 0x20
or rdi, rsi
bsr rsi, rdi
mov rdi, 0xffffffffffffffff
cmove rsi, rdi
shl r8, 6
inc rsi
add rsi, r8
nop
jmp 0x529064
xor esi, esi
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x30], rbx
mov rdi, qword [rsp + 0x38]
mov r8, rdi
shl rdi, 3
sub rdi, rsi
nop dword [rax]
test rdi, rdi
jle 0x5290a9
test r8, r8
jbe 0x52916d
cmp rdi, 8
sbb esi, esi
mov r9, qword [rsp + 0x58]
movzx r10d, byte [r9]
mov rcx, rdi
shr r10b, cl
and r10d, esi
mov byte [r9], r10b
lea rax, [0x005cd3a0]
call fcn.0040d960
mov qword [rsp + 0x40], rax
mov rcx, qword [rax + 8]
mov rbx, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x38]
mov r8, rsi
mov rax, rcx
mov rcx, rdx
call fcn.005032c0
mov rdi, qword [rsp + 0x40]
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rcx
cmp dword [0x007bbb70], 0
jne 0x5290fa
mov qword [rdi + 8], rax
jmp 0x52910c
lea rcx, [rdi + 8]
mov rdx, rdi
mov rdi, rcx
call fcn.00463920
mov rdi, rdx
mov byte [rdi], 0
cmp qword [rdi + 0x10], 0
setne cl
movzx ecx, cl
nop word [rax + rax]
test rcx, rcx
je 0x528ef9
mov rax, rdi
mov rbx, qword [rsp + 0x50]
call fcn.004f8320
test rax, rax
jl 0x529145
mov rdi, qword [rsp + 0x40]
jmp 0x528ef9
mov rax, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x68]
add rsp, 0x70
ret
mov rax, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x70
ret
xor eax, eax
mov rcx, rax
call fcn.00463dc0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.00461760
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.00528ec0