Function at 0x558e40
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x55914e
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 0x558f3d
cmp rbx, 0x14
jae 0x55913a
mov rdx, qword [0x00909c78]
nop word [rax + rax]
cmp rbx, rdx
jae 0x55912f
mov rdx, qword [0x00909c70]
movzx edx, byte [rdx + rbx]
cmp rdi, rdx
jne 0x558f08
mov qword [rsp + 0x48], rax
mov rdx, qword [0x00914a70]
lea rax, [0x00692a00]
mov rcx, rbx
mov rbx, rdx
call fcn.00467ce0
test bl, bl
je 0x558ed3
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 0x558f42
lea rax, [0x0069c560]
call fcn.0040da40
mov qword [rax + 8], 0x25
lea rcx, [0x006eb86b]
mov qword [rax], rcx
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x0075e520]
mov rsi, rax
xor eax, eax
add rsp, 0x38
pop rbp
ret
lea rax, [0x0069c560]
call fcn.0040da40
mov qword [rax + 8], 0x28
lea rcx, [0x006ecb74]
mov qword [rax], rcx
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x0075e520]
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 0x558fb4
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 0x558fb7
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 0x55901f
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], r8
lea rax, [0x00681020]
mov rcx, rbx
call fcn.0046bf00
mov rcx, qword [rsp + 0x18]
nop
cmp rcx, 1
jbe 0x559125
mov byte [rax + 1], 1
mov rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x20]
mov ebx, 2
jmp 0x559041
mov rdi, qword [0x00907c50]
mov rsi, qword [0x00907c58]
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 0x559060
cmp rbx, rcx
jb 0x55903a
jmp 0x559118
cmp rcx, r9
jb 0x559110
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 0x5590b4
mov rax, r9
mov rbx, r8
nop dword [rax]
call fcn.00473440
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 0x559108
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 0x5590fb
mov rax, r9
mov rcx, r8
call fcn.00473440
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.00472b20
mov rax, r9
call fcn.00472b20
mov rax, rbx
nop dword [rax + rax]
call fcn.00472a60
mov eax, 1
call fcn.00472a60
mov rax, rbx
mov rcx, rdx
call fcn.00472a80
lea rax, [0x00680fa0]
lea rbx, [0x0075d6d0]
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.00470780
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.00558e40