Function at 0x140116be4
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rsi, rcx
mov rax, qword [0x14030f948]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword [rcx + 0x20]
cmp rax, 0x200
jb 0x140116cae
add rax, 0xfffffffffffffe00
mov qword [rsi + 0x20], rax
mov rax, qword [rsi + 8]
mov r13, qword [rsi + 0x10]
mov r15, qword [rax]
mov ebx, 8
add rbx, rax
mov qword [rsi + 8], rbx
mov rax, qword [rsi + 0x18]
cmp r13, rax
jne 0x140116f60
mov r14, qword [rsi]
mov rcx, rbx
sub rcx, r14
jbe 0x140116ec5
sar rcx, 3
lea rax, [rcx + 1]
shr rax, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r12, rax
neg r12
shl rax, 3
mov r14, rbx
sub r14, rax
sub r13, rbx
mov rdi, r13
sar rdi, 3
test r13, r13
je 0x140116c99
mov rcx, r14
mov rdx, rbx
mov r8, r13
call fcn.140186330
mov rbx, qword [rsi + 8]
lea r13, [r14 + rdi*8]
mov qword [rsi + 0x10], r13
lea rax, [rbx + r12*8]
mov qword [rsi + 8], rax
jmp 0x140116f60
mov rax, qword [rsi + 0x10]
mov rbp, qword [rsi + 0x18]
mov rbx, rax
sub rbx, qword [rsi + 8]
sar rbx, 3
mov rcx, rbp
sub rcx, qword [rsi]
mov rdx, rcx
sar rdx, 3
cmp rbx, rdx
jae 0x140116daa
mov ecx, 0x1000
cmp rbp, rax
jne 0x140116eab
call fcn.14018360c
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov rcx, rsi
call fcn.140116f8e
mov rax, qword [rsi + 8]
mov r13, qword [rsi + 0x10]
mov r15, qword [rax]
mov ebx, 8
add rbx, rax
mov qword [rsi + 8], rbx
mov rax, qword [rsi + 0x18]
cmp r13, rax
jne 0x140116f60
mov r14, qword [rsi]
mov rcx, rbx
sub rcx, r14
ja 0x140116c53
sub rax, r14
mov rcx, rax
sar rcx, 2
test rax, rax
mov edi, 1
cmovne rdi, rcx
mov rax, rdi
shr rax, 0x3d
jne 0x140116f88
mov r12, rdi
shr r12, 2
lea rcx, [rdi*8]
call fcn.14018360c
lea r9, [rax + r12*8]
lea r8, [rax + rdi*8]
mov r10, r9
sub r13, rbx
je 0x140116f3b
add r10, r13
sar r13, 3
shl r13, 3
lea rcx, [rax + r12*8]
add rcx, 8
xor edx, edx
mov rbp, r9
mov rdi, qword [rbx + rdx]
mov qword [rbp], rdi
lea rbp, [rcx + rdx]
add rdx, 8
cmp r13, rdx
jne 0x140116d90
jmp 0x140116f38
mov rax, rcx
sar rax, 2
test rcx, rcx
mov edi, 1
cmovne rdi, rax
lea rax, [rsi + 0x20]
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rax
mov rax, rdi
shr rax, 0x3d
jne 0x140116f88
lea rcx, [rdi*8]
call fcn.14018360c
lea r14, [rsp + 0x30]
mov qword [r14], rax
lea rcx, [rax + rbx*8]
mov qword [r14 + 0x10], rcx
mov qword [r14 + 8], rcx
lea rax, [rax + rdi*8]
mov qword [r14 + 0x18], rax
mov ecx, 0x1000
call fcn.14018360c
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
mov rcx, r14
call fcn.14010f10c
mov rax, qword [rsi + 8]
mov rdi, qword [rsi + 0x10]
cmp rdi, rax
je 0x140116e4d
lea rbx, [rsp + 0x30]
add rdi, 0xfffffffffffffff8
mov rcx, rbx
mov rdx, rdi
call fcn.140116f8e
mov rax, qword [rsi + 8]
cmp rdi, rax
jne 0x140116e31
mov rdi, qword [rsi + 0x10]
mov rcx, qword [rsi]
movaps xmm0, xmmword [rsp + 0x30]
mov qword [rsp + 0x30], rcx
movups xmmword [rsi], xmm0
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x40]
mov qword [rsp + 0x40], rdi
mov rdx, qword [rsi + 0x18]
movups xmmword [rsi + 0x10], xmm0
mov qword [rsp + 0x48], rdx
cmp rax, rdi
je 0x140116e98
mov rdx, rdi
sub rdx, rax
add rdx, 0xfffffffffffffff8
shr rdx, 3
not rdx
lea rax, [rdi + rdx*8]
mov qword [rsp + 0x40], rax
test rcx, rcx
je 0x140116f69
call fcn.140183668
jmp 0x140116f69
call fcn.14018360c
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov rcx, rsi
call fcn.14010f10c
jmp 0x140116f69
sub rax, r14
mov rcx, rax
sar rcx, 2
test rax, rax
mov edi, 1
cmovne rdi, rcx
mov rax, rdi
shr rax, 0x3d
jne 0x140116f88
mov r12, rdi
shr r12, 2
lea rcx, [rdi*8]
call fcn.14018360c
lea r9, [rax + r12*8]
lea r8, [rax + rdi*8]
mov r10, r9
sub r13, rbx
je 0x140116f3b
add r10, r13
sar r13, 3
shl r13, 3
lea rcx, [rax + r12*8]
add rcx, 8
xor edx, edx
mov rdi, r9
mov rbp, qword [rbx + rdx]
mov qword [rdi], rbp
lea rdi, [rcx + rdx]
add rdx, 8
cmp r13, rdx
jne 0x140116f24
mov r14, qword [rsi]
mov qword [rsi], rax
mov qword [rsi + 8], r9
mov qword [rsi + 0x10], r10
mov qword [rsi + 0x18], r8
test r14, r14
je 0x140116f5d
mov rcx, r14
call fcn.140183668
mov r13, qword [rsi + 0x10]
jmp 0x140116f60
mov r13, r10
mov qword [r13], r15
add qword [rsi + 0x10], 8
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140183a80
nop
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140199d54
int3