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

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x536f53
sub rsp, 0x78
mov qword [rsp + 0x70], rbp
lea rbp, [rsp + 0x70]
mov qword [rsp + 0xc0], r9
mov qword [rsp + 0xc8], r10
mov qword [rsp + 0xa0], rcx
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0xa8], rdi
mov qword [rsp + 0xb8], r8
mov qword [rsp + 0x90], rax
mov rdx, qword [rsp + 0x80]
mov r11, qword [rdx + 0x28]
mov rax, qword [rsp + 0x88]
call r11
mov rcx, qword [rsp + 0xc8]
cmp rcx, 0xffffffffffffffff
jne 0x536ac2
mov rcx, rax
jmp 0x536acd
mov rcx, rax
mov rax, qword [rsp + 0xc8]
mov r11, qword [rsp + 0xc0]
lea r12, [r11 + 7]
sar r12, 0x3f
shr r12, 0x3d
add r12, 7
lea rbx, [r11 + r12]
sar rbx, 3
mov r12, qword [rsp + 0xb0]
cmp r12, rbx
jne 0x536d49
mov r13, qword [rsp + 0x98]
cmp rcx, r13
jne 0x536d31
lea r15, [rax + 2]
add r15, rcx
cmp r15, rbx
jg 0x536d19
lea r15, [rbx - 1]
cmp r12, r15
jbe 0x536f47
mov r12, qword [rsp + 0xa8]
movzx r13d, byte [rbx + r12 - 1]
nop word [rax + rax]
cmp r13b, 0xbc
jne 0x536d01
mov r9, rbx
sub rbx, rcx
lea rcx, [rbx - 1]
mov r10, qword [rsp + 0xb8]
nop dword [rax]
cmp r10, rcx
jb 0x536f3f
cmp rcx, r15
ja 0x536f34
mov r13, r9
sub r9, rbx
mov r15, r10
sub r10, rbx
inc r10
mov rsi, r10
neg r10
sar r10, 0x3f
and r10, rcx
lea r8, [r12 + r10]
shl r13, 3
sub r13, r11
nop dword [rax]
test r13, r13
jl 0x536f2f
cmp r13, 8
sbb r11d, r11d
mov rdi, rcx
mov rcx, r13
mov edx, 0xffffffff
shr dl, cl
and edx, r11d
movzx r11d, byte [r12]
mov r13d, edx
not edx
test r11b, dl
jne 0x536ce8
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x68], r8
mov byte [rsp + 0x47], r13b
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x50], rax
mov rax, r12
mov rbx, rdi
mov rcx, r15
mov rdi, qword [rsp + 0x80]
mov r10, rsi
mov rsi, qword [rsp + 0x88]
call fcn.00537480
mov rcx, qword [rsp + 0x58]
nop word [rax + rax]
test rcx, rcx
jbe 0x536f25
mov rsi, qword [rsp + 0xa8]
movzx edi, byte [rsi]
movzx r8d, byte [rsp + 0x47]
and r8d, edi
mov byte [rsi], r8b
mov rdi, qword [rsp + 0x50]
test rdi, rdi
jne 0x536ca3
nop
mov qword [rsp], rsi
mov qword [rsp + 8], rcx
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x10], rax
mov byte [rsp + 0x18], 1
call fcn.004032c0
xorps xmm15, xmm15
mov r14, qword [0x00918820]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x20]
test rax, rax
jl 0x536cd0
mov rcx, qword [rsp + 0x60]
sub rcx, rax
lea rax, [rcx - 2]
mov rcx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0xa8]
mov rdi, rax
mov rax, qword [rsp + 0x60]
mov r8, rax
sub rax, rdi
lea rdi, [rax - 2]
mov rdx, qword [rsp + 0xb8]
nop word [rax + rax]
cmp rdx, rdi
jb 0x536f18
xor ebx, ebx
jmp 0x536d80
mov rax, qword [0x008b5c70]
mov rbx, qword [0x008b5c78]
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
ret
mov rax, qword [0x008b5c70]
mov rbx, qword [0x008b5c78]
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
nop
ret
mov rax, qword [0x008b5c70]
mov rbx, qword [0x008b5c78]
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
ret
mov rax, qword [0x008b5c70]
mov rbx, qword [0x008b5c78]
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
ret
mov rax, qword [0x008b5c70]
mov rbx, qword [0x008b5c78]
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
ret
lea rax, [0x0067fd60]
call fcn.0040da20
mov qword [rax + 8], 0x28
lea rcx, [0x006c6e1e]
mov qword [rax], rcx
mov rbx, rax
lea rax, [0x0072e7e0]
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
ret
inc rbx
nop
cmp rbx, rdi
jge 0x536da7
movzx r9d, byte [rsi + rbx]
test r9b, r9b
je 0x536d7b
mov rax, qword [0x008b5c70]
mov rbx, qword [0x008b5c78]
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
ret
cmp rdi, rcx
jae 0x536f10
movzx edi, byte [rax + rsi - 2]
cmp dil, 1
jne 0x536ef0
lea rbx, [rax - 1]
cmp rbx, rcx
ja 0x536f08
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rbx
lea rax, [0x0066a700]
nop dword [rax]
call fcn.0040da20
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rcx + 0x38]
mov rbx, rax
mov edi, 8
mov rax, qword [rsp + 0x88]
mov rcx, rdi
call rdx
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rcx + 0x38]
mov rax, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x90]
mov rdi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x98]
call rdx
mov rdi, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x58]
sub rdi, rcx
mov rdx, qword [rsp + 0x60]
sub rdx, rcx
inc rdi
mov rcx, rdi
neg rdi
sar rdi, 0x3f
mov rbx, qword [rsp + 0x50]
and rbx, rdi
mov rsi, qword [rsp + 0xa8]
add rbx, rsi
mov rsi, qword [rsp + 0x80]
mov rdi, qword [rsi + 0x38]
mov rax, qword [rsp + 0x88]
mov r8, rcx
mov rcx, rdx
mov r9, rdi
mov rdi, r8
call r9
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x30]
mov rax, qword [rsp + 0x88]
xor ebx, ebx
xor edi, edi
mov rdx, rcx
mov rcx, rdi
call rdx
mov rcx, qword [rsp + 0x48]
cmp rbx, rcx
jne 0x536eca
mov rcx, rbx
mov rbx, qword [rsp + 0x68]
call fcn.00402de0
test al, al
jne 0x536ee2
mov rax, qword [0x008b5c70]
mov rbx, qword [0x008b5c78]
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
ret
xor eax, eax
xor ebx, ebx
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
ret
mov rax, qword [0x008b5c70]
mov rbx, qword [0x008b5c78]
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
ret
mov rax, rbx
call fcn.00465b60
mov rax, rdi
call fcn.00465aa0
mov rcx, rdi
nop dword [rax + rax]
call fcn.00465b20
xor eax, eax
mov rcx, rax
call fcn.00465aa0
call fcn.00434ec0
mov rax, rcx
mov rcx, r15
call fcn.00465b60
mov rdx, r10
call fcn.00465b20
mov rax, r15
mov rcx, r12
call fcn.00465aa0
nop
mov qword [rsp + 0x18], rax
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x50], r10
nop dword [rax + rax]
call fcn.00463440
mov rax, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov r8, qword [rsp + 0x40]
mov r9, qword [rsp + 0x48]
mov r10, qword [rsp + 0x50]
jmp fcn.00536a40