Function at 0x5901bb
Capabilities:
Encode data using base64

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov al, byte [rdi + 0x78]
cmp al, 7
jae 0x5901da
cmp al, 1
jne 0x5901dc
jmp 0x5901f4
je 0x59023f
mov rcx, rdi
mov rdx, rsi
call fcn.0059054f
mov rcx, rbx
mov rdx, rax
call fcn.005900a0
jmp 0x5901cd
cmp byte [rbx], 2
je 0x59022d
lea rcx, [0x00616198]
call fcn.0054208a
movzx ecx, byte [rbx]
mov eax, ecx
not al
or al, 0xf8
cmp al, 0xfd
je 0x59022d
mov rdx, qword [0x021297c0]
call fcn.0054a505
lea rcx, [0x006161d8]
mov rdx, rax
call fcn.0054a2dc
mov rax, qword [rbx + 8]
test rax, rax
je 0x590291
mov rcx, qword [rax]
add rcx, 0xc
jmp 0x590296
cmp byte [rbx], 2
je 0x590278
lea rcx, [0x00616198]
call fcn.0054208a
movzx ecx, byte [rbx]
mov eax, ecx
xor al, 0xf8
and al, cl
cmp al, 2
je 0x590278
mov rdx, qword [0x021297c0]
call fcn.0054a505
lea rcx, [0x006161d8]
mov rdx, rax
call fcn.0054a2dc
mov rcx, qword [rdi + 0x60]
mov rdx, qword [rbx + 8]
test rcx, rcx
je 0x5903a7
mov r8, qword [rcx]
jmp 0x5903aa
mov ecx, 0xc
call fcn.00547bef
mov r14, rax
mov rax, qword [rax]
movzx ecx, word [0x00615f68]
mov word [r14 + rax + 0x10], cx
mov cl, byte [0x00615f6a]
mov byte [r14 + rax + 0x12], cl
mov rax, qword [r14]
movabs rcx, 0x93c589e463a586e5
sub rax, rcx
add rax, rcx
add rax, 2
mov qword [r14], rax
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x5902fc
lea rcx, [r14 + rax]
add rcx, 0x10
lea rdx, [rbx + 0x10]
mov r8, qword [rbx]
inc r8
call fcn.005f4c20
mov rax, qword [r14]
add rax, qword [rbx]
mov qword [r14], rax
mov ecx, dword [0x00615f87]
mov dword [r14 + rax + 0x17], ecx
mov rcx, qword [0x00615f80]
mov qword [r14 + rax + 0x10], rcx
add qword [r14], 0xa
mov rcx, rdi
mov rdx, r14
call fcn.0058f285
mov r14, rax
mov rcx, qword [rsi]
mov rdx, qword [0x02129730]
call fcn.00547b0d
mov rcx, rsi
mov rdx, rax
call fcn.00547ea1
mov rax, qword [rsi]
mov rdi, qword [rax]
lea rcx, [rdi + 1]
mov qword [rax], rcx
mov rbx, qword [rax + rdi*8 + 0x10]
mov rcx, r14
call fcn.00547a14
mov rcx, qword [rsi]
mov qword [rcx + rdi*8 + 0x10], rax
test rbx, rbx
je 0x590544
movabs rax, 0x732cdcebac354b23
sub rbx, rax
mov rcx, qword [rbx + rax - 0x10]
add rcx, 0xfffffffffffffff8
mov qword [rbx + rax - 0x10], rcx
cmp rcx, 7
ja 0x590544
lea rdx, [rbx + rax]
add rdx, 0xfffffffffffffff0
mov rcx, qword [0x02129a28]
add rcx, 0x18
jmp 0x590536
xor r8d, r8d
test rdx, rdx
je 0x5903b4
mov rax, qword [rdx]
jmp 0x5903b6
xor eax, eax
cmp r8, rax
jne 0x5903d1
test r8, r8
je 0x59041c
add rcx, 0x10
add rdx, 0x10
call fcn.005f4c28
test eax, eax
je 0x59041c
cmp byte [rbx], 2
je 0x59040a
lea rcx, [0x00616198]
call fcn.0054208a
movzx ecx, byte [rbx]
mov eax, ecx
xor al, 0xf8
and al, cl
cmp al, 2
je 0x59040a
mov rdx, qword [0x021297c0]
call fcn.0054a505
lea rcx, [0x006161d8]
mov rdx, rax
call fcn.0054a2dc
mov rax, qword [rbx + 8]
test rax, rax
je 0x59042d
mov rcx, qword [rax]
add rcx, 0xc
jmp 0x590432
mov rcx, rdi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.0058f027
mov ecx, 0xc
call fcn.00547bef
mov r14, rax
mov rax, qword [rax]
movzx ecx, word [0x00615f68]
mov word [r14 + rax + 0x10], cx
mov cl, byte [0x00615f6a]
mov byte [r14 + rax + 0x12], cl
mov rax, qword [r14]
add rax, 2
mov qword [r14], rax
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x590498
lea rcx, [r14 + rax]
add rcx, 0x10
lea rdx, [rbx + 0x10]
mov rax, qword [rbx]
movabs r8, 0x5165c4d277bc2583
sub rax, r8
add r8, rax
inc r8
call fcn.005f4c20
mov rax, qword [r14]
add rax, qword [rbx]
mov qword [r14], rax
mov ecx, dword [0x00615f87]
mov dword [r14 + rax + 0x17], ecx
mov rcx, qword [0x00615f80]
mov qword [r14 + rax + 0x10], rcx
add qword [r14], 0xa
mov rcx, rdi
mov rdx, r14
call fcn.0058f285
mov r14, rax
mov rcx, qword [rsi]
mov rdx, qword [0x02129730]
call fcn.00547b0d
mov rcx, rsi
mov rdx, rax
call fcn.00547ea1
mov rax, qword [rsi]
mov rbx, qword [rax]
lea rcx, [rbx + 1]
mov qword [rax], rcx
mov rdi, qword [rax + rbx*8 + 0x10]
mov rcx, r14
call fcn.00547a14
mov rcx, qword [rsi]
mov qword [rcx + rbx*8 + 0x10], rax
test rdi, rdi
je 0x590544
mov rax, qword [rdi - 0x10]
movabs rcx, 0x9d12bb96827a1a19
sub rax, rcx
add rax, rcx
add rax, 0xfffffffffffffff8
mov qword [rdi - 0x10], rax
cmp rax, 7
ja 0x590544
add rdi, 0xfffffffffffffff0
mov rcx, qword [0x02129a28]
add rcx, 0x18
mov rdx, rdi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.00545bc7
nop
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret