Function at 0x140019db0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov r13, r8
mov rsi, rcx
mov r12, qword [rcx]
mov rcx, qword [rcx + 8]
mov rdi, rdx
sub rdi, r12
mov r10, rdi
sar r10, 3
mov rbp, rdi
and rbp, 0xfffffffffffffff8
lea r15, [r12 + rbp]
mov rax, qword [rsi + 0x10]
cmp rcx, rax
jae 0x140019e4f
cmp r15, rcx
je 0x140019ec5
mov r8, rcx
sub r8, r15
add r8, 0xfffffffffffffff8
mov rax, r8
sar rax, 3
lea rdx, [rcx - 8]
mov r9, rcx
cmp rdx, rcx
jae 0x14001a103
mov rbx, r10
lea r9, [r8 + rbp]
lea r11, [r12 + r9]
add r11, 8
cmp rcx, r11
cmova r11, rcx
mov r10, r12
not r10
add r10, r11
sub r10, r9
cmp r10, 0x98
jae 0x14001a082
mov r9, rcx
jmp 0x14001a0f0
mov r14, rdx
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r15
sub rcx, r12
sar rcx, 3
inc rcx
mov rdx, rcx
shr rdx, 0x3d
jne 0x14001a144
movabs rdx, 0x1fffffffffffffff
sub rax, r12
mov r13, rax
shr r13, 2
cmp r13, rcx
cmovbe r13, rcx
movabs rcx, 0x7ffffffffffffff8
cmp rax, rcx
cmovae r13, rdx
test r13, r13
je 0x140019ed9
cmp r13, rdx
ja 0x14001a14c
mov rbx, r10
lea rcx, [r13*8]
call fcn.1400731c0
mov r15, rax
mov r10, rbx
jmp 0x140019edc
mov rax, qword [r13]
mov qword [r15], rax
lea rax, [r15 + 8]
mov qword [rsi + 8], rax
jmp 0x14001a130
xor r15d, r15d
lea rbx, [r15 + r10*8]
lea rax, [r15 + r13*8]
cmp r10, r13
jne 0x140019f13
test rdi, rdi
mov r13, qword [rsp + 0x38]
jle 0x140019f1f
mov qword [rsp + 0x28], rax
lea rax, [r10 + 1]
shr rax, 0x3f
add rax, r10
inc rax
shl rax, 2
and rax, 0xfffffffffffffff8
sub rbx, rax
jmp 0x140019f7b
mov qword [rsp + 0x28], rax
mov r13, qword [rsp + 0x38]
jmp 0x140019f7b
mov qword [rsp + 0x30], r10
sar rdi, 2
cmp r12, r14
mov r14d, 1
cmovne r14, rdi
movabs rax, 0x1fffffffffffffff
cmp r14, rax
ja 0x14001a151
lea rcx, [r14*8]
call fcn.1400731c0
mov rcx, r14
and rcx, 0xfffffffffffffffc
lea rbx, [rax + rcx*2]
lea rax, [rax + r14*8]
mov qword [rsp + 0x28], rax
test r15, r15
je 0x140019f76
mov rcx, r15
call fcn.140073240
mov r10, qword [rsp + 0x30]
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov qword [rbx], rax
lea r15, [rbx + 8]
mov rax, qword [rsi]
mov rdi, rbx
cmp rax, r13
je 0x14001a045
add rbp, r12
mov rdx, rbp
sub rdx, rax
add rdx, 0xfffffffffffffff8
mov rdi, rbx
mov rcx, r13
cmp rdx, 0x98
jb 0x14001a030
sub rbp, rbx
mov rdi, rbx
mov rcx, r13
cmp rbp, 0x20
jb 0x14001a030
shr rdx, 3
inc rdx
mov r8, rdx
and r8, 0xfffffffffffffffc
lea r9, [r8*8]
mov rdi, rbx
sub rdi, r9
mov rcx, r13
sub rcx, r9
lea r9, [r12 + r10*8]
add r9, 0xfffffffffffffff0
mov r10, r8
neg r10
xor r11d, r11d
nop word [rax + rax]
movups xmm0, xmmword [r9 + r11*8 - 0x10]
movups xmm1, xmmword [r9 + r11*8]
movups xmmword [rbx + r11*8 - 0x10], xmm1
movups xmmword [rbx + r11*8 - 0x20], xmm0
add r11, 0xfffffffffffffffc
cmp r10, r11
jne 0x14001a000
cmp rdx, r8
je 0x14001a045
nop word cs:[rax + rax]
mov rdx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
mov qword [rdi - 8], rdx
add rdi, 0xfffffffffffffff8
cmp rcx, rax
jne 0x14001a030
mov r14, qword [rsi + 8]
sub r14, r13
mov rcx, r15
mov rdx, r13
mov r8, r14
call sub.msvcrt.dll_memmove
add r14, r15
mov rcx, qword [rsi]
mov qword [rsi], rdi
mov qword [rsi + 8], r14
mov rax, qword [rsp + 0x28]
mov qword [rsi + 0x10], rax
test rcx, rcx
je 0x14001a07a
call fcn.140073240
mov r15, rbx
jmp 0x14001a130
add rbp, r12
add rbp, r8
mov r9, rcx
sub r9, rbp
cmp r9, 0x20
jae 0x14001a099
mov r9, rcx
jmp 0x14001a0f0
shr r10, 3
inc r10
mov r11, r10
and r11, 0xfffffffffffffffc
lea rdx, [rdx + r11*8]
lea r9, [rcx + r11*8]
lea rdi, [rax*8]
lea rdi, [rdi + rbx*8]
add rdi, r12
add rdi, 0x10
xor ebx, ebx
nop word cs:[rax + rax]
movups xmm0, xmmword [rdi + rbx*8 - 0x10]
movups xmm1, xmmword [rdi + rbx*8]
movups xmmword [rcx + rbx*8], xmm0
movups xmmword [rcx + rbx*8 + 0x10], xmm1
add rbx, 4
cmp r11, rbx
jne 0x14001a0d0
cmp r10, r11
je 0x14001a103
mov r10, qword [rdx]
mov qword [r9], r10
add rdx, 8
add r9, 8
cmp rdx, rcx
jb 0x14001a0f0
mov qword [rsi + 8], r9
shl rax, 3
sub rcx, rax
mov rdx, r15
call sub.msvcrt.dll_memmove
cmp r15, r13
setbe al
cmp qword [rsi + 8], r13
seta cl
and cl, al
movzx eax, cl
mov rax, qword [r13 + rax*8]
mov qword [r15], rax
mov rax, r15
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rsi
call fcn.14003e380
call fcn.140002ba0
call fcn.140002ba0
mov rsi, rax
test r15, r15
je 0x14001a166
mov rcx, r15
call fcn.140073240
mov rcx, rsi
call fcn.14009d370
int3