Function at 0x589a20
Capabilities:
Encode data using base64

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
lea rax, [rsp - 0x28]
cmp rax, qword [rcx + 0x10]
jbe 0x589f69
sub rsp, 0xa8
mov qword [rsp + 0xa0], rbp
lea rbp, [rsp + 0xa0]
mov rax, qword [rsp + 0xc8]
nop
test rax, rax
jne 0x589e29
xor eax, eax
mov rcx, qword [rsp + 0xd8]
xor edx, edx
xor ebx, ebx
xor esi, esi
nop dword [rax]
test rdx, rdx
jne 0x589df2
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 0x589deb
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 0x589da6
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, [0x006b0d80]
mov qword [rsp], rax
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rsi
call fcn.0044dd40
mov rax, qword [rsp + 0x18]
mov rcx, qword [rsp + 0x60]
cmp rcx, 1
jbe 0x589f3d
mov byte [rax + 1], 1
mov rbx, qword [rsp + 0x48]
mov edx, 2
jmp 0x589b57
mov byte [rax + rdx], 0xff
inc rdx
mov rcx, rsi
mov rsi, rcx
sub rcx, rbx
lea rdi, [rcx - 1]
cmp rdx, rdi
jge 0x589b70
cmp rsi, rdx
ja 0x589b4d
jmp 0x589f32
mov rbx, qword [rsp + 0x58]
mov rdx, rsi
sub rsi, rbx
nop dword [rax + rax]
cmp rdx, rsi
jb 0x589f2a
cmp rcx, rsi
ja 0x589f1f
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 0x589d7a
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 0x589d58
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.00559ec0
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.0058c8a0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
cmp qword [rsp + 0x28], 0
je 0x589cf4
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.0054bf60
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.0046d700
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x60]
jmp 0x589bff
mov qword [rsp + 0x68], rbx
mov qword [rsp], rcx
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
call fcn.0046d700
mov rax, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
jmp 0x589bc9
mov rax, qword [0x008f59e0]
mov rcx, qword [0x008f59e8]
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 0x589acd
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 0x589f4c
mov rcx, qword [0x008ea568]
mov rdx, qword [0x008ea560]
cmp rax, rcx
jae 0x589f47
movzx ecx, byte [rdx + rax]
mov rdx, qword [rsp + 0xd8]
cmp rdx, rcx
je 0x589e96
nop
lea rax, [0x006ca180]
mov qword [rsp], rax
call fcn.0040e660
mov rsi, qword [rsp + 8]
mov qword [rsi + 8], 0x28
lea rax, [0x0071ae4a]
mov qword [rsi], rax
xor eax, eax
xor ecx, ecx
lea rdx, [0x00774cc0]
xor ebx, ebx
jmp 0x589a80
mov qword [rsp + 0x68], rcx
mov rcx, qword [0x008f3bf8]
lea rdx, [0x006be0e0]
mov qword [rsp], rdx
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rax
call fcn.00412d20
mov rax, qword [rsp + 0x18]
mov rcx, qword [rax]
mov rax, qword [rax + 8]
cmp byte [rsp + 0x20], 0
je 0x589ee5
xor edx, edx
mov rbx, rcx
xor esi, esi
mov rcx, qword [rsp + 0x68]
nop dword [rax + rax]
jmp 0x589a80
nop
lea rax, [0x006ca180]
mov qword [rsp], rax
call fcn.0040e660
mov rsi, qword [rsp + 8]
mov qword [rsi + 8], 0x25
lea rax, [0x00719adc]
mov qword [rsi], rax
xor eax, eax
xor ecx, ecx
lea rdx, [0x00774cc0]
xor ebx, ebx
jmp 0x589a80
mov rax, rcx
mov rcx, rsi
call fcn.0046cea0
mov rcx, rsi
call fcn.0046ce60
mov rax, rdx
mov rcx, rsi
call fcn.0046cde0
mov eax, 1
call fcn.0046cde0
call fcn.0046ce00
lea rax, [0x006b0b80]
mov qword [rsp], rax
lea rax, [0x007701a0]
mov qword [rsp + 8], rax
call fcn.004389a0
nop
call fcn.0046ac00
jmp fcn.00589a20