Function at 0x50f320
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x50f5d9
add rsp, 0xffffffffffffff80
mov qword [rsp + 0x78], rbp
lea rbp, [rsp + 0x78]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x98], rcx
mov qword [rsp + 0xa0], rdi
mov rdx, qword [rax + 0x30]
mov rax, rbx
nop
call rdx
mov rcx, qword [rax + 8]
mov qword [rsp + 0x58], rcx
mov rdx, qword [rcx + 0x10]
mov rbx, qword [rcx + 8]
lea rsi, [rdx - 1]
test rsi, rsi
jl 0x50f39e
mov rdx, qword [rbx + rdx*8 - 8]
bsr rdx, rdx
mov rdi, 0xffffffffffffffff
cmove rdx, rdi
shl rsi, 6
lea rdx, [rdx + rsi]
lea rdx, [rdx + 1]
jmp 0x50f3a0
xor edx, edx
mov qword [rsp + 0x30], rdx
lea rsi, [rdx + 7]
sar rsi, 0x3f
shr rsi, 0x3d
lea rcx, [rsi + rdx]
lea rcx, [rcx + 7]
sar rcx, 3
mov qword [rsp + 0x40], rcx
lea rax, [0x00641260]
mov rbx, rcx
call fcn.0044b460
mov qword [rsp + 0x70], rax
xor ecx, ecx
xor edx, edx
xor ebx, ebx
xor esi, esi
nop
jmp 0x50f400
mov rcx, rax
mov rdx, rbx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x50]
mov rax, qword [rsp + 0x70]
nop word [rax + rax]
test rcx, rcx
jne 0x50f59b
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x60], rdx
nop
mov rbx, qword [rsp + 0xa0]
mov rcx, rax
mov rdi, qword [rsp + 0x40]
mov rsi, rdi
mov r8, rsi
mov rax, qword [rsp + 0x98]
call fcn.0048e0a0
nop word [rax + rax]
test rbx, rbx
jne 0x50f574
mov rdx, qword [rsp + 0x40]
test rdx, rdx
jbe 0x50f5ce
mov rsi, qword [rsp + 0x70]
movzx edi, byte [rsi]
mov r8, qword [0x00866a48]
mov r9, qword [0x00866a40]
mov rax, qword [rsp + 0x30]
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 0x50f5c6
movzx r8d, byte [r9 + rax]
and edi, r8d
mov byte [rsi], dil
cmp rdx, 1
jbe 0x50f5b9
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x38], rbx
movzx ecx, byte [rsi + 1]
xor ecx, 0x42
mov byte [rsi + 1], cl
lea rax, [0x0065e020]
call fcn.0040d6a0
mov qword [rsp + 0x48], rax
mov rcx, qword [rax + 8]
mov rbx, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x40]
mov r8, rsi
mov rax, rcx
mov rcx, rdx
call fcn.004dda80
mov rdi, qword [rsp + 0x48]
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rcx
cmp dword [0x008c75e0], 0
jne 0x50f512
mov qword [rdi + 8], rax
jmp 0x50f528
lea rcx, [rdi + 8]
mov rdx, rdi
mov rdi, rcx
nop dword [rax]
call fcn.004647e0
mov rdi, rdx
mov byte [rdi], 0
mov rax, rdi
mov rbx, qword [rsp + 0x58]
call fcn.004d3b40
test rax, rax
jl 0x50f54c
mov rax, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
jmp 0x50f3e2
mov rdx, qword [rsp + 0x88]
mov rsi, qword [rdx + 0x38]
mov rax, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
mov rdi, rcx
call rsi
jmp 0x50f3e2
mov rax, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov r8, rbx
mov r9, rcx
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
mov rbp, qword [rsp + 0x78]
sub rsp, 0xffffffffffffff80
ret
mov rdi, rcx
mov r8, rbx
mov r9, rsi
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
mov rsi, rdx
mov rbp, qword [rsp + 0x78]
sub rsp, 0xffffffffffffff80
ret
mov eax, 1
mov rcx, rax
call fcn.00464c80
mov rcx, r8
call fcn.00464c80
xor eax, eax
mov rcx, rax
call fcn.00464c80
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.004625a0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.0050f320