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

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
lea rax, [rsp - 0x28]
cmp rax, qword [rcx + 0x10]
jbe 0x59cac9
sub rsp, 0xa8
mov qword [rsp + 0xa0], rbp
lea rbp, [rsp + 0xa0]
mov rax, qword [rsp + 0xc8]
nop
test rax, rax
jne 0x59c989
xor eax, eax
mov rcx, qword [rsp + 0xd8]
xor edx, edx
xor ebx, ebx
xor esi, esi
nop dword [rax]
test rdx, rdx
jne 0x59c952
mov rdx, qword [rsp + 0xc0]
mov rsi, qword [rdx]
lea rdi, [rcx + rax]
mov r8, qword [rsi + 0x10]
mov rsi, qword [rsi + 8]
lea r9, [r8 - 1]
test r9, r9
jl 0x59c94b
mov rsi, qword [rsi + r8*8 - 8]
bsr rsi, rsi
mov r8, 0xffffffffffffffff
cmove rsi, r8
shl r9, 6
lea rsi, [rsi + r9]
lea rsi, [rsi + 1]
lea r8, [rcx + rax]
lea r8, [r8 + 0xb]
lea r9, [rsi + 7]
sar r9, 0x3f
shr r9, 0x3d
lea rsi, [r9 + rsi]
lea rsi, [rsi + 7]
sar rsi, 3
cmp rsi, r8
jl 0x59c906
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x70], rbx
lea rax, [0x00614000]
mov qword [rsp], rax
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rsi
call fcn.0044dcc0
mov rax, qword [rsp + 0x18]
mov rcx, qword [rsp + 0x60]
cmp rcx, 1
jbe 0x59ca9d
mov byte [rax + 1], 1
mov rbx, qword [rsp + 0x48]
mov edx, 2
jmp 0x59c6b7
mov byte [rax + rdx], 0xff
inc rdx
mov rcx, rsi
mov rsi, rcx
sub rcx, rbx
lea rdi, [rcx - 1]
cmp rdx, rdi
jge 0x59c6d0
cmp rsi, rdx
ja 0x59c6ad
jmp 0x59ca92
mov rbx, qword [rsp + 0x58]
mov rdx, rsi
sub rsi, rbx
nop dword [rax + rax]
cmp rdx, rsi
jb 0x59ca8a
cmp rcx, rsi
ja 0x59ca7f
mov qword [rsp + 0x78], rax
mov rbx, rsi
sub rsi, rcx
mov rdi, qword [rsp + 0x50]
cmp rsi, rdi
cmovg rsi, rdi
mov rdi, rcx
sub rcx, rdx
sar rcx, 0x3f
and rcx, rdi
add rcx, rax
mov rdi, qword [rsp + 0x70]
nop
cmp rcx, rdi
jne 0x59c8da
mov rcx, rdx
sub rdx, rbx
mov rsi, qword [rsp + 0xd8]
cmp rsi, rdx
cmovl rdx, rsi
mov rsi, rbx
sub rbx, rcx
sar rbx, 0x3f
and rbx, rsi
add rbx, rax
mov rsi, qword [rsp + 0xd0]
cmp rsi, rbx
jne 0x59c8b8
mov byte [rsp + 0x80], 0
mov qword [rsp + 0x88], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp], xmm0
mov qword [rsp + 0x10], 0
mov qword [rsp + 0x18], rax
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rcx
call fcn.00529cc0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rcx
mov qword [rsp + 0x98], rdx
mov byte [rsp + 0x80], 0
mov rax, qword [rsp + 0xb0]
mov qword [rsp], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x10], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x18], rax
call fcn.0059f880
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
cmp qword [rsp + 0x28], 0
je 0x59c854
mov qword [rsp + 0xe8], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0xf0], xmm0
mov qword [rsp + 0x100], rcx
mov qword [rsp + 0x108], rdx
mov rbp, qword [rsp + 0xa0]
add rsp, 0xa8
ret
mov qword [rsp], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x10], rax
mov qword [rsp + 0x18], rax
call fcn.0051bf40
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0xf0], rcx
mov qword [rsp + 0xf8], rdx
xorps xmm0, xmm0
movups xmmword [rsp + 0x100], xmm0
mov rbp, qword [rsp + 0xa0]
add rsp, 0xa8
ret
mov qword [rsp], rbx
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdx
call fcn.0046d6c0
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x60]
jmp 0x59c75f
mov qword [rsp + 0x68], rbx
mov qword [rsp], rcx
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
call fcn.0046d6c0
mov rax, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
jmp 0x59c729
mov rax, qword [0x007ccbd0]
mov rcx, qword [0x007ccbd8]
mov qword [rsp + 0xe8], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0xf0], xmm0
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x108], rcx
mov rbp, qword [rsp + 0xa0]
add rsp, 0xa8
ret
xor esi, esi
jmp 0x59c62d
mov qword [rsp + 0xe8], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0xf0], xmm0
mov qword [rsp + 0x100], rdx
mov qword [rsp + 0x108], rsi
mov rbp, qword [rsp + 0xa0]
add rsp, 0xa8
ret
nop
cmp rax, 0x14
jae 0x59caac
mov rcx, qword [0x007c4128]
mov rdx, qword [0x007c4120]
cmp rax, rcx
jae 0x59caa7
movzx ecx, byte [rdx + rax]
mov rdx, qword [rsp + 0xd8]
cmp rdx, rcx
je 0x59c9f6
nop
lea rax, [0x00625ba0]
mov qword [rsp], rax
call fcn.0040e560
mov rsi, qword [rsp + 8]
mov qword [rsi + 8], 0x28
lea rax, [0x00665de7]
mov qword [rsi], rax
xor eax, eax
xor ecx, ecx
lea rdx, [0x006a4760]
xor ebx, ebx
jmp 0x59c5e0
mov qword [rsp + 0x68], rcx
mov rcx, qword [0x007cb6c8]
lea rdx, [0x0061c900]
mov qword [rsp], rdx
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rax
call fcn.00412aa0
mov rax, qword [rsp + 0x18]
mov rcx, qword [rax]
mov rax, qword [rax + 8]
cmp byte [rsp + 0x20], 0
je 0x59ca45
xor edx, edx
mov rbx, rcx
xor esi, esi
mov rcx, qword [rsp + 0x68]
nop dword [rax + rax]
jmp 0x59c5e0
nop
lea rax, [0x00625ba0]
mov qword [rsp], rax
call fcn.0040e560
mov rsi, qword [rsp + 8]
mov qword [rsi + 8], 0x25
lea rax, [0x0066515c]
mov qword [rsi], rax
xor eax, eax
xor ecx, ecx
lea rdx, [0x006a4760]
xor ebx, ebx
jmp 0x59c5e0
mov rax, rcx
mov rcx, rsi
call fcn.0046ce80
mov rcx, rsi
call fcn.0046ce40
mov rax, rdx
mov rcx, rsi
call fcn.0046cdc0
mov eax, 1
call fcn.0046cdc0
call fcn.0046cde0
lea rax, [0x00613e40]
mov qword [rsp], rax
lea rax, [0x006a1160]
mov qword [rsp + 8], rax
call fcn.00438920
nop
call fcn.0046abe0
jmp fcn.0059c580