Function at 0x4fc320
Capabilities:
Encode data using base64

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
lea rax, [rsp - 0x30]
cmp rax, qword [rcx + 0x10]
jbe 0x4fc6b8
sub rsp, 0xb0
mov qword [rsp + 0xa8], rbp
lea rbp, [rsp + 0xa8]
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rax + 0x30]
mov rdx, qword [rsp + 0xc0]
mov qword [rsp], rdx
call rcx
mov rax, qword [rsp + 8]
mov rax, qword [rax + 8]
mov qword [rsp + 0x60], rax
mov rcx, qword [rax + 0x10]
mov rdx, qword [rax + 8]
lea rbx, [rcx - 1]
test rbx, rbx
jl 0x4fc691
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]
mov qword [rsp + 0x50], rcx
lea rax, [0x005ff6c0]
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.0044d8a0
mov rax, qword [rsp + 0x18]
mov qword [rsp + 0x78], rax
xor ecx, ecx
xor edx, edx
xor ebx, ebx
xor esi, esi
jmp 0x4fc420
mov rdx, rcx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x80]
mov rcx, rax
mov rax, qword [rsp + 0x78]
nop dword [rax + rax]
test rcx, rcx
jne 0x4fc644
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x68], rdx
nop
mov rcx, qword [rsp + 0xc8]
mov qword [rsp], rcx
mov rdx, qword [rsp + 0xd0]
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.004856a0
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
nop word [rax + rax]
test rcx, rcx
jne 0x4fc5e8
mov rbx, qword [rsp + 0x48]
test rbx, rbx
jbe 0x4fc6ad
mov rsi, qword [rsp + 0x78]
movzx edi, byte [rsi]
mov r8, qword [0x00791068]
mov r9, qword [0x00791060]
mov rax, qword [rsp + 0x50]
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 0x4fc6a5
movzx r8d, byte [r9 + rax]
and edi, r8d
mov byte [rsi], dil
cmp rbx, 1
jbe 0x4fc698
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0x58], rcx
movzx eax, byte [rsi + 1]
xor eax, 0x42
mov byte [rsi + 1], al
mov byte [rsp + 0x88], 0
mov qword [rsp + 0x90], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x98], xmm0
movups xmmword [rsp], xmm0
mov qword [rsp + 0x10], 0
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rbx
nop
call fcn.004f6a40
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rcx
mov qword [rsp + 0xa0], rdx
mov byte [rsp + 0x88], 0
lea rax, [rsp + 0x88]
mov qword [rsp], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 8], rax
call fcn.004e8820
cmp qword [rsp + 0x10], 0
jl 0x4fc5a6
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
jmp 0x4fc403
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rax + 0x38]
mov rdx, qword [rsp + 0xc0]
mov qword [rsp], rdx
mov rbx, qword [rsp + 0x78]
mov qword [rsp + 8], rbx
mov rsi, qword [rsp + 0x48]
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rsi
call rcx
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
jmp 0x4fc403
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0xd8], rcx
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0xe0], rcx
mov qword [rsp + 0xe8], rcx
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0xf0], rcx
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0xf8], rcx
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x108], rdx
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0xf0], rcx
mov qword [rsp + 0xf8], rdx
mov qword [rsp + 0x100], rbx
mov qword [rsp + 0x108], rsi
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
xor ecx, ecx
jmp 0x4fc3b3
mov eax, 1
mov rcx, rbx
call fcn.0046c0e0
mov rcx, r8
call fcn.0046c0e0
xor eax, eax
mov rcx, rbx
call fcn.0046c0e0
nop
call fcn.00469f00
nop dword [rax]
jmp fcn.004fc320