Function at 0x5a4700
Capabilities:
Encode data using base64

Disassembly:
lea r12, [rsp - 0x10]
cmp r12, qword [r14 + 0x10]
jbe 0x5a4c26
push rbp
mov rbp, rsp
sub rsp, 0x88
mov qword [rsp + 0xd8], r9
mov qword [rsp + 0xe0], r10
mov qword [rsp + 0xc0], rdi
mov qword [rsp + 0xd0], r8
mov qword [rsp + 0xc8], rsi
mov qword [rsp + 0xb8], rcx
mov qword [rsp + 0xb0], rbx
mov qword [rsp + 0xa8], rax
mov rdx, qword [rsp + 0x98]
mov r11, qword [rdx + 0x28]
mov rax, qword [rsp + 0xa0]
call r11
mov rcx, qword [rsp + 0xe0]
cmp rcx, 0xffffffffffffffff
jne 0x5a4784
mov rcx, rax
jmp 0x5a478f
mov rcx, rax
mov rax, qword [rsp + 0xe0]
mov r11, qword [rsp + 0xd8]
lea r12, [r11 + 7]
sar r12, 0x3f
shr r12, 0x3d
lea rbx, [r12 + r11]
lea rbx, [rbx + 7]
sar rbx, 3
mov r12, qword [rsp + 0xc8]
nop word [rax + rax]
cmp r12, rbx
jne 0x5a4a03
mov r13, qword [rsp + 0xb0]
cmp rcx, r13
jne 0x5a49ec
lea r15, [rax + rcx]
lea r15, [r15 + 2]
cmp r15, rbx
jg 0x5a49d5
lea r15, [rbx - 1]
cmp r12, r15
jbe 0x5a4c15
mov r12, qword [rsp + 0xc0]
movzx edx, byte [rbx + r12 - 1]
cmp dl, 0xbc
jne 0x5a49be
mov r9, rbx
sub rbx, rcx
lea rcx, [rbx - 1]
mov rdx, qword [rsp + 0xd0]
cmp rdx, rcx
jb 0x5a4c10
cmp rcx, r15
ja 0x5a4c05
mov r10, rdx
sub r10, rbx
inc r10
mov r15, r10
neg r15
sar r15, 0x3f
and r15, rcx
mov rsi, r9
shl rsi, 3
sub rsi, r11
sub r9, rbx
lea r8, [r12 + r15]
nop word [rax + rax]
test rsi, rsi
jl 0x5a4c00
mov rdi, rcx
mov rcx, rsi
mov r11d, 0xffffffff
shr r11b, cl
movzx r15d, byte [r12]
cmp rcx, 8
sbb ecx, ecx
and r11d, ecx
mov ecx, r11d
not r11d
test r15b, r11b
jne 0x5a49a7
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x80], r8
mov byte [rsp + 0x47], cl
mov qword [rsp + 0x58], r9
mov qword [rsp + 0x60], rax
mov rax, r12
mov rbx, rdi
mov rcx, rdx
mov rdi, qword [rsp + 0x98]
mov rsi, qword [rsp + 0xa0]
call fcn.005a51c0
mov rcx, qword [rsp + 0x68]
nop dword [rax + rax]
test rcx, rcx
jbe 0x5a4bf5
mov rsi, qword [rsp + 0xc0]
movzx edi, byte [rsi]
movzx r8d, byte [rsp + 0x47]
and r8d, edi
mov byte [rsi], r8b
mov rdi, qword [rsp + 0x60]
test rdi, rdi
jne 0x5a4966
nop
mov qword [rsp], rsi
mov qword [rsp + 8], rcx
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x10], rax
mov byte [rsp + 0x18], 1
call fcn.00403ae0
xorps xmm15, xmm15
mov r14, qword [0x00a78d08]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x20]
test rax, rax
jl 0x5a4990
mov rcx, qword [rsp + 0x70]
mov rsi, rcx
sub rsi, rax
lea rax, [rsi - 2]
mov rcx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0xc0]
mov rdi, rax
mov rax, qword [rsp + 0x70]
mov r8, rax
sub r8, rdi
lea rdi, [r8 - 2]
mov rdx, qword [rsp + 0xd0]
nop dword [rax]
cmp rdx, rdi
jb 0x5a4bed
xor ebx, ebx
jmp 0x5a4a38
mov rax, qword [0x009dd5e0]
mov rbx, qword [0x009dd5e8]
add rsp, 0x88
pop rbp
ret
mov rax, qword [0x009dd5e0]
mov rbx, qword [0x009dd5e8]
add rsp, 0x88
pop rbp
ret
mov rax, qword [0x009dd5e0]
mov rbx, qword [0x009dd5e8]
add rsp, 0x88
pop rbp
ret
mov rax, qword [0x009dd5e0]
mov rbx, qword [0x009dd5e8]
add rsp, 0x88
pop rbp
ret
mov rax, qword [0x009dd5e0]
mov rbx, qword [0x009dd5e8]
add rsp, 0x88
pop rbp
ret
nop
lea rax, [0x006b99e0]
call fcn.0040ea60
mov qword [rax + 8], 0x28
lea rcx, [0x00710633]
mov qword [rax], rcx
mov rbx, rax
lea rax, [0x00783660]
add rsp, 0x88
pop rbp
ret
inc rbx
cmp rbx, rdi
jge 0x5a4a60
movzx r9d, byte [rsi + rbx]
test r9b, r9b
je 0x5a4a35
mov rax, qword [0x009dd5e0]
mov rbx, qword [0x009dd5e8]
add rsp, 0x88
pop rbp
ret
cmp rdi, rcx
jae 0x5a4be5
movzx edi, byte [r8 + rsi - 2]
cmp dil, 1
jne 0x5a4bc1
lea rbx, [r8 - 1]
nop dword [rax]
cmp rbx, rcx
ja 0x5a4bd8
mov qword [rsp + 0x68], r8
mov qword [rsp + 0x60], rbx
lea rax, [0x006a0ea0]
call fcn.0040ea60
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
sub rcx, rdx
mov qword [rsp + 0x48], rcx
mov rbx, qword [rsp + 0xd0]
sub rbx, rdx
lea rdx, [rbx + 1]
mov qword [rsp + 0x50], rdx
neg rdx
sar rdx, 0x3f
mov rsi, qword [rsp + 0x60]
and rsi, rdx
mov rdx, qword [rsp + 0xc0]
add rdx, rsi
mov qword [rsp + 0x78], rdx
mov rsi, qword [rsp + 0x98]
mov rdi, qword [rsi + 0x38]
mov r8, rax
mov rax, qword [rsp + 0xa0]
mov rbx, r8
mov ecx, 8
mov r11, rdi
mov rdi, rcx
call r11
mov rcx, qword [rsp + 0x98]
mov rdx, qword [rcx + 0x38]
mov rax, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb0]
call rdx
mov rcx, qword [rsp + 0x98]
mov rdx, qword [rcx + 0x38]
mov rax, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call rdx
mov rcx, qword [rsp + 0x98]
mov rcx, qword [rcx + 0x30]
mov rax, qword [rsp + 0xa0]
xor ebx, ebx
xor edi, edi
mov rdx, rcx
mov rcx, rdi
call rdx
mov rcx, qword [rsp + 0x58]
cmp rbx, rcx
jne 0x5a4b9d
mov rcx, rbx
mov rbx, qword [rsp + 0x80]
call fcn.004035c0
test al, al
jne 0x5a4bb4
mov rax, qword [0x009dd5e0]
mov rbx, qword [0x009dd5e8]
add rsp, 0x88
pop rbp
ret
xor eax, eax
xor ebx, ebx
add rsp, 0x88
pop rbp
ret
mov rax, qword [0x009dd5e0]
mov rbx, qword [0x009dd5e8]
add rsp, 0x88
pop rbp
ret
mov rax, rbx
nop dword [rax + rax]
call fcn.0046c660
mov rax, rdi
call fcn.0046c5a0
mov rcx, rdi
call fcn.0046c620
xor eax, eax
mov rcx, rax
call fcn.0046c5a0
nop
call fcn.00437b60
mov rax, rcx
mov rcx, r15
call fcn.0046c660
call fcn.0046c620
mov rax, r15
mov rcx, r12
nop dword [rax + rax]
call fcn.0046c5a0
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
call fcn.0046a2c0
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]
nop dword [rax + rax]
jmp fcn.005a4700