Function at 0x140169920
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rsi, rcx
mov rax, qword [0x14030c028]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword [rcx + 0x20]
cmp rax, 0x11
jb 0x1401699be
add rax, 0xffffffffffffffef
mov qword [rsi + 0x20], rax
mov rdi, qword [rsi + 8]
mov rbx, qword [rsi + 0x10]
mov r14, qword [rdi]
add rdi, 8
mov qword [rsi + 8], rdi
cmp rbx, qword [rsi + 0x18]
jne 0x140169c2a
mov r15, qword [rsi]
mov rax, rdi
sub rax, r15
jbe 0x140169b55
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
lea rbp, [rax + rcx]
inc rbp
shr rbp, 1
shl rbp, 3
mov rcx, rdi
sub rcx, rbp
mov r8, rbx
sub r8, rdi
mov rdx, rdi
call fcn.140258c70
sub rbx, rbp
mov qword [rsi + 0x10], rbx
sub qword [rsi + 8], rbp
jmp 0x140169c2a
mov rdi, qword [rsi + 0x10]
mov rax, qword [rsi]
mov r14, qword [rsi + 8]
mov r12, rdi
sub r12, r14
mov rbx, r12
sar rbx, 3
mov rbp, qword [rsi + 0x18]
mov rdx, rbp
sub rdx, rax
mov rcx, rdx
sar rcx, 3
cmp rbx, rcx
jae 0x140169a16
mov ecx, 0xf68
cmp rbp, rdi
je 0x140169bf6
call fcn.140255d40
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.140169d60
jmp 0x140169c32
lea rcx, [rsi + 0x20]
sar rdx, 2
cmp rbp, rax
mov r13d, 1
cmovne r13, rdx
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rcx
mov rax, r13
shr rax, 0x3d
jne 0x140169d56
lea rcx, [r13*8]
call fcn.140255d40
mov rbp, rax
mov qword [rsp + 0x28], rax
lea r15, [rax + rbx*8]
mov qword [rsp + 0x30], r15
lea rax, [rax + r13*8]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], rax
mov ecx, 0xf68
call fcn.140255d40
cmp rbx, r13
jne 0x140169aae
test r12, r12
jle 0x140169c51
lea rcx, [rbx + 1]
shr rcx, 0x3f
add rcx, rbx
inc rcx
shl rcx, 2
and rcx, 0xfffffffffffffff8
sub r15, rcx
mov qword [rsp + 0x30], r15
mov r13, qword [rsp + 0x20]
mov qword [r15], rax
lea rdx, [r15 + 8]
mov qword [rsp + 0x38], rdx
mov rax, r14
cmp rdi, r14
je 0x140169b00
lea rbx, [rsp + 0x28]
nop dword [rax]
add rdi, 0xfffffffffffffff8
mov rcx, rbx
mov rdx, rdi
call fcn.140169e90
cmp rdi, qword [rsi + 8]
jne 0x140169ad0
mov rbp, qword [rsp + 0x28]
mov r15, qword [rsp + 0x30]
mov r14, qword [rsi + 0x10]
mov rdx, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov rax, rdi
mov rcx, qword [rsi]
mov qword [rsi], rbp
mov qword [rsp + 0x28], rcx
mov qword [rsi + 8], r15
mov qword [rsp + 0x30], rax
mov qword [rsi + 0x10], rdx
mov qword [rsp + 0x38], r14
mov rdx, qword [rsi + 0x18]
mov qword [rsi + 0x18], r13
mov qword [rsp + 0x40], rdx
cmp r14, rax
je 0x140169b42
sub rax, r14
add rax, 7
and rax, 0xfffffffffffffff8
add rax, r14
mov qword [rsp + 0x38], rax
test rcx, rcx
je 0x140169c32
call fcn.140255d7c
jmp 0x140169c32
mov rax, rbx
sub rax, r15
sar rax, 2
cmp rbx, r15
mov ebp, 1
cmovne rbp, rax
mov rax, rbp
shr rax, 0x3d
jne 0x140169d56
lea rcx, [rbp*8]
call fcn.140255d40
mov rcx, rbp
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
lea r8, [rax + rbp*8]
mov r9, rcx
sub rbx, rdi
je 0x140169bd1
mov rbp, rbx
sar rbp, 3
and rbx, 0xfffffffffffffff8
mov r9, rbx
add r9, rcx
shl rbp, 3
xor ebx, ebx
nop word cs:[rax + rax]
mov rdx, qword [rdi + rbx]
mov qword [rcx + rbx], rdx
add rbx, 8
cmp rbp, rbx
jne 0x140169bc0
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], r9
mov qword [rsi + 0x18], r8
mov rbx, r9
test r15, r15
je 0x140169c2a
mov rcx, r15
call fcn.140255d7c
mov rbx, qword [rsi + 0x10]
jmp 0x140169c2a
call fcn.140255d40
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.140169e90
mov rdi, qword [rsi + 8]
mov rbx, qword [rsi + 0x10]
mov r14, qword [rdi]
add rdi, 8
mov qword [rsi + 8], rdi
cmp rbx, qword [rsi + 0x18]
je 0x140169cc6
mov qword [rbx], r14
add qword [rsi + 0x10], 8
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140257200
nop
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x20], rax
movabs rax, 0x1fffffffffffffff
sar r12, 2
cmp rdi, r14
mov ebx, 1
cmovne rbx, r12
cmp rbx, rax
ja 0x140169d56
lea rcx, [rbx*8]
call fcn.140255d40
mov r12, rax
lea r13, [rax + rbx*8]
and rbx, 0xfffffffffffffffc
lea r15, [rax + rbx*2]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x40], r13
test rbp, rbp
je 0x140169cb9
mov rcx, rbp
call fcn.140255d7c
mov r14, qword [rsi + 8]
mov rdi, qword [rsi + 0x10]
mov rbp, r12
mov rax, qword [rsp + 0x20]
jmp 0x140169ab3
mov r15, qword [rsi]
mov rax, rdi
sub rax, r15
ja 0x140169980
mov rax, rbx
sub rax, r15
sar rax, 2
cmp rbx, r15
mov ebp, 1
cmovne rbp, rax
mov rax, rbp
shr rax, 0x3d
jne 0x140169d56
lea rcx, [rbp*8]
call fcn.140255d40
mov rcx, rbp
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
lea r8, [rax + rbp*8]
mov r9, rcx
sub rbx, rdi
je 0x140169bd1
mov rbp, rbx
sar rbp, 3
and rbx, 0xfffffffffffffff8
mov r9, rbx
add r9, rcx
shl rbp, 3
xor ebx, ebx
nop word cs:[rax + rax]
mov rdx, qword [rdi + rbx]
mov qword [rcx + rbx], rdx
add rbx, 8
cmp rbp, rbx
jne 0x140169d40
jmp 0x140169bd1
call fcn.1400207e0
int3