Function at 0x52c7e0
Capabilities:
Encode data using base64
Reference http user-agent string

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
lea rax, [rsp - 0x10]
cmp rax, qword [rcx + 0x10]
jbe 0x52cb8c
sub rsp, 0x90
mov qword [rsp + 0x88], rbp
lea rbp, [rsp + 0x88]
mov rax, qword [rsp + 0xa8]
cmp qword [rax + 0x10], 0
jne 0x52cb4a
xor ecx, ecx
test rcx, rcx
jle 0x52cb6f
lea rax, [0x0062df20]
mov qword [rsp], rax
nop
call fcn.0040e560
mov rax, qword [rsp + 8]
mov qword [rsp + 0x60], 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.0051f840
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x60]
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], rdx
lea rdi, [rbx + 8]
mov qword [rsp + 0x80], rdi
cmp dword [0x00811460], 0
jne 0x52cb3d
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.0051b2a0
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x10]
mov rdx, qword [rax + 8]
lea rbx, [rcx - 1]
nop
test rbx, rbx
jl 0x52cb36
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 0x52cb13
mov qword [rsp + 0x50], rcx
lea rax, [0x00614000]
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.0044dcc0
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 + 0x78], rax
jmp 0x52c98e
mov rax, qword [rsp + 0x78]
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.004a2f80
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
cmp qword [rsp + 0x38], 0
jne 0x52cae7
mov rdx, qword [rsp + 0x48]
test rdx, rdx
jbe 0x52cb65
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x58]
cmp rcx, 0x40
sbb rax, rax
mov rbx, qword [rsp + 0x78]
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 + 0x60]
mov rsi, qword [rax + 8]
mov rdi, qword [rax + 0x10]
mov r8, qword [rax + 0x18]
mov qword [rsp], rsi
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], r8
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rdx
call fcn.00529cc0
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x60]
mov qword [rsi + 0x10], rdx
mov qword [rsi + 0x18], rbx
cmp dword [0x00811460], 0
jne 0x52cad5
mov qword [rsi + 8], rax
mov byte [rsi], 0
mov qword [rsp], rsi
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 8], rax
call fcn.0051bc80
cmp qword [rsp + 0x10], 0
jge 0x52c989
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xc0], rax
mov rbp, qword [rsp + 0x88]
add rsp, 0x90
ret
mov rdi, qword [rsp + 0x80]
nop dword [rax]
call fcn.0046c920
jmp 0x52ca79
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], rcx
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 0x52c909
nop dword [rax]
call fcn.0046c920
jmp 0x52c8b0
cmp byte [rax], 0
je 0x52cb5b
mov rcx, 0xffffffffffffffff
jmp 0x52c82b
mov ecx, 1
jmp 0x52c82b
xor eax, eax
mov rcx, rdx
call fcn.0046cdc0
lea rax, [0x00613e40]
mov qword [rsp], rax
lea rax, [0x006a1280]
mov qword [rsp + 8], rax
call fcn.00438920
nop
call fcn.0046abe0
jmp fcn.0052c7e0