Function at 0x53f680
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x53f98e
push rbp
mov rbp, rsp
sub rsp, 0x38
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x58], rcx
nop dword [rax]
test rbx, rbx
je 0x53f77d
cmp rbx, 0x14
jae 0x53f97a
mov rdx, qword [0x008edeb8]
nop word [rax + rax]
cmp rbx, rdx
jae 0x53f96f
mov rdx, qword [0x008edeb0]
movzx edx, byte [rdx + rbx]
cmp rdi, rdx
jne 0x53f748
mov qword [rsp + 0x48], rax
mov rdx, qword [0x008f8cd8]
lea rax, [0x00682740]
mov rcx, rbx
mov rbx, rdx
call fcn.00467ce0
test bl, bl
je 0x53f713
mov rdx, qword [rax]
mov r8, qword [rax + 8]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
jmp 0x53f782
lea rax, [0x0068bcc0]
call fcn.0040da40
mov qword [rax + 8], 0x25
lea rcx, [0x006d93f2]
mov qword [rax], rcx
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x0074a740]
mov rsi, rax
xor eax, eax
add rsp, 0x38
pop rbp
ret
lea rax, [0x0068bcc0]
call fcn.0040da40
mov qword [rax + 8], 0x28
lea rcx, [0x006da6d4]
mov qword [rax], rcx
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x0074a740]
mov rsi, rax
xor eax, eax
add rsp, 0x38
pop rbp
ret
xor r8d, r8d
xor edx, edx
mov r9, qword [rax]
mov r10, qword [r9 + 0x10]
lea r11, [r10 - 1]
nop
test r11, r11
jl 0x53f7f4
mov r9, qword [r9 + 8]
mov r9, qword [r9 + r10*8 - 8]
mov r10, r9
shr r9, 1
or r9, r10
mov r10, r9
shr r9, 2
or r9, r10
mov r10, r9
shr r9, 4
or r9, r10
mov r10, r9
shr r9, 8
or r9, r10
mov r10, r9
shr r9, 0x10
or r9, r10
mov r10, r9
shr r9, 0x20
or r9, r10
shl r11, 6
bsr r9, r9
mov r10, 0xffffffffffffffff
cmove r9, r10
lea r9, [r9 + r11]
lea r9, [r9 + 1]
jmp 0x53f7f7
xor r9d, r9d
lea r10, [r8 + rdi]
lea r10, [r10 + 0xb]
lea r11, [r9 + 7]
sar r11, 0x3f
shr r11, 0x3d
lea rbx, [r11 + r9]
lea rbx, [rbx + 7]
sar rbx, 3
cmp r10, rbx
jg 0x53f85f
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], r8
lea rax, [0x00671380]
mov rcx, rbx
call fcn.0046bf00
mov rcx, qword [rsp + 0x18]
nop
cmp rcx, 1
jbe 0x53f965
mov byte [rax + 1], 1
mov rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x20]
mov ebx, 2
jmp 0x53f881
mov rdi, qword [0x008ec070]
mov rsi, qword [0x008ec078]
xor eax, eax
xor ebx, ebx
mov rcx, rbx
add rsp, 0x38
pop rbp
ret
mov byte [rax + rbx], 0xff
inc rbx
mov r9, rcx
sub r9, r8
sub r9, rdx
lea r10, [r9 - 1]
cmp rbx, r10
jge 0x53f8a0
cmp rbx, rcx
jb 0x53f87a
jmp 0x53f958
cmp rcx, r9
jb 0x53f950
mov qword [rsp + 0x30], rax
mov rbx, rcx
sub rcx, r9
mov r10, r9
sub r9, rbx
sar r9, 0x3f
and r10, r9
lea r9, [r10 + rax]
cmp r8, rcx
cmovl rcx, r8
mov r8, qword [rsp + 0x28]
cmp r8, r9
je 0x53f8f4
mov rax, r9
mov rbx, r8
nop dword [rax]
call fcn.004732e0
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x18]
mov rcx, rbx
sub rbx, rdx
cmp rcx, rbx
jb 0x53f948
mov r8, rcx
sub r8, rbx
mov r9, rbx
sub rbx, rcx
sar rbx, 0x3f
and r9, rbx
add r9, rax
cmp rdx, r8
cmovl r8, rdx
mov rbx, qword [rsp + 0x58]
cmp rbx, r9
je 0x53f93b
mov rax, r9
mov rcx, r8
call fcn.004732e0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x18]
mov rbx, rcx
xor edi, edi
xor esi, esi
add rsp, 0x38
pop rbp
ret
mov rax, rbx
call fcn.004729e0
mov rax, r9
call fcn.004729e0
mov rax, rbx
nop dword [rax + rax]
call fcn.00472920
mov eax, 1
call fcn.00472920
mov rax, rbx
mov rcx, rdx
call fcn.00472940
lea rax, [0x00671300]
lea rbx, [0x007498e0]
call fcn.0046a260
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rsi
call fcn.00470640
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
jmp fcn.0053f680