Function at 0x1400832d0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov rax, qword [0x14031d040]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword [rcx + 0x20]
cmp rax, 0x100
jae 0x140083449
mov rax, qword [rsi]
mov r8, qword [rsi + 0x10]
mov rbx, r8
sub rbx, qword [rsi + 8]
mov rdx, qword [rsi + 0x18]
mov rcx, rdx
sub rcx, rax
cmp rbx, rcx
jae 0x140083344
mov ecx, 0x1000
cmp rdx, r8
je 0x14008357c
call fcn.1401ef3e0
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
mov rcx, rsi
call fcn.14003c710
jmp 0x14008347d
sar rcx, 2
cmp rdx, rax
mov r14d, 1
cmovne r14, rcx
lea rax, [rsi + 0x20]
mov qword [rsp + 0x48], rax
mov rax, r14
shr rax, 0x3d
jne 0x140083648
lea rcx, [r14*8]
call fcn.1401ef3e0
lea rdi, [rsp + 0x28]
mov qword [rdi], rax
add rbx, rax
mov qword [rdi + 0x10], rbx
mov qword [rdi + 8], rbx
lea rax, [rax + r14*8]
mov qword [rdi + 0x18], rax
mov ecx, 0x1000
call fcn.1401ef3e0
lea rdx, [rsp + 0x20]
mov qword [rdx], rax
mov rcx, rdi
call fcn.14003c710
mov rax, qword [rsi + 8]
mov rdi, qword [rsi + 0x10]
cmp rdi, rax
je 0x1400833db
lea rbx, [rsp + 0x28]
add rdi, 0xfffffffffffffff8
mov rcx, rbx
mov rdx, rdi
call fcn.140083650
mov rax, qword [rsi + 8]
cmp rdi, rax
jne 0x1400833bf
mov rdi, qword [rsi + 0x10]
mov rcx, qword [rsi]
mov rdx, qword [rsp + 0x28]
mov qword [rsi], rdx
mov qword [rsp + 0x28], rcx
mov rdx, qword [rsp + 0x30]
mov qword [rsi + 8], rdx
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x38]
mov qword [rsi + 0x10], rdx
mov qword [rsp + 0x38], rdi
mov rdx, qword [rsi + 0x18]
mov r8, qword [rsp + 0x40]
mov qword [rsi + 0x18], r8
mov qword [rsp + 0x40], rdx
jmp 0x14008342a
add rdi, 0xfffffffffffffff8
mov qword [rsp + 0x38], rdi
je 0x14008357a
cmp rdi, rax
jne 0x14008341b
test rcx, rcx
je 0x14008347d
call fcn.1401ef41c
jmp 0x14008347d
mov rcx, r14
call fcn.1401ef41c
mov rdi, qword [rsi + 0x10]
jmp 0x14008346c
add rax, 0xffffffffffffff00
mov qword [rsi + 0x20], rax
mov rbx, qword [rsi + 8]
mov rdi, qword [rsi + 0x10]
mov r15, qword [rbx]
add rbx, 8
mov qword [rsi + 8], rbx
cmp rdi, qword [rsi + 0x18]
je 0x140083499
test rdi, rdi
je 0x14008357a
mov qword [rdi], r15
add qword [rsi + 0x10], 8
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401f08b0
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r14, qword [rsi]
mov rax, rbx
sub rax, r14
jbe 0x1400834f4
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r12, rax
neg r12
shl rax, 3
mov r14, rbx
sub r14, rax
sub rdi, rbx
je 0x1400834e0
mov rcx, r14
mov rdx, rbx
mov r8, rdi
call fcn.1402357f0
mov rbx, qword [rsi + 8]
add rdi, r14
mov qword [rsi + 0x10], rdi
lea rax, [rbx + r12*8]
mov qword [rsi + 8], rax
jmp 0x14008346c
mov rax, rdi
sub rax, r14
sar rax, 2
cmp rdi, r14
mov r12d, 1
cmovne r12, rax
mov rax, r12
shr rax, 0x3d
jne 0x140083648
lea rcx, [r12*8]
call fcn.1401ef3e0
mov rcx, r12
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
mov r8, rdi
mov rdx, rcx
sub r8, rbx
je 0x140083558
xor edx, edx
mov r9, rcx
add r9, rdx
je 0x14008357a
mov r10, qword [rbx + rdx]
mov qword [r9], r10
add rdx, 8
cmp r8, rdx
jne 0x14008353d
add rdx, rcx
lea r8, [rax + r12*8]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
mov qword [rsi + 0x18], r8
cmp rdi, rbx
je 0x14008343b
add rdi, 0xfffffffffffffff8
jne 0x14008356b
ud2
call fcn.1401ef3e0
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
mov rcx, rsi
call fcn.140083650
mov rbx, qword [rsi + 8]
mov rdi, qword [rsi + 0x10]
mov r15, qword [rbx]
add rbx, 8
mov qword [rsi + 8], rbx
cmp rdi, qword [rsi + 0x18]
jne 0x14008346c
mov r14, qword [rsi]
mov rax, rbx
sub rax, r14
ja 0x1400834a4
mov rax, rdi
sub rax, r14
sar rax, 2
cmp rdi, r14
mov r12d, 1
cmovne r12, rax
mov rax, r12
shr rax, 0x3d
jne 0x140083648
lea rcx, [r12*8]
call fcn.1401ef3e0
mov rcx, r12
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
mov r8, rdi
mov rdx, rcx
sub r8, rbx
je 0x140083621
xor edx, edx
mov r9, rcx
add r9, rdx
je 0x14008357a
mov r10, qword [rbx + rdx]
mov qword [r9], r10
add rdx, 8
cmp r8, rdx
jne 0x140083602
add rdx, rcx
lea r8, [rax + r12*8]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
mov qword [rsi + 0x18], r8
cmp rdi, rbx
je 0x14008343b
add rdi, 0xfffffffffffffff8
jne 0x140083634
jmp 0x14008357a
call fcn.140236a70
int3