Function at 0x140132c40
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 [0x1403a7038]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword [rcx + 0x20]
cmp rax, 0x155
jb 0x140132cf8
add rax, 0xfffffffffffffeab
mov qword [rsi + 0x20], rax
mov rdi, qword [rsi + 8]
mov rbp, qword [rsi + 0x10]
mov r15, qword [rdi]
add rdi, 8
mov qword [rsi + 8], rdi
cmp rbp, qword [rsi + 0x18]
jne 0x140132eb3
mov r14, qword [rsi]
mov rax, rdi
sub rax, r14
jbe 0x140132de8
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov rbx, rax
neg rbx
shl rax, 3
mov r14, rdi
sub r14, rax
sub rbp, rdi
je 0x140132ce4
mov rcx, r14
mov rdx, rdi
mov r8, rbp
call fcn.1401d2e10
mov rdi, qword [rsi + 8]
add rbp, r14
mov qword [rsi + 0x10], rbp
lea rax, [rdi + rbx*8]
mov qword [rsi + 8], rax
jmp 0x140132eb3
mov rdi, qword [rsi + 0x10]
mov rax, qword [rsi]
mov r12, qword [rsi + 8]
mov rbx, rdi
sub rbx, r12
mov rdx, qword [rsi + 0x18]
mov rcx, rdx
sub rcx, rax
cmp rbx, rcx
jae 0x140132d40
mov ecx, 0xffc
cmp rdx, rdi
je 0x140132e81
call fcn.1401cfd80
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
mov rcx, rsi
call fcn.140133080
jmp 0x140132fcd
lea r8, [rsi + 0x20]
sar rcx, 2
cmp rdx, rax
mov ebp, 1
cmovne rbp, rcx
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], r8
mov rax, rbp
shr rax, 0x3d
jne 0x140133074
mov r15, rbx
sar r15, 3
lea rcx, [rbp*8]
call fcn.1401cfd80
mov r13, rax
mov qword [rsp + 0x28], rax
add rbx, rax
mov qword [rsp + 0x30], rbx
lea r14, [rax + rbp*8]
mov qword [rsp + 0x40], r14
mov ecx, 0xffc
call fcn.1401cfd80
cmp r15, rbp
jne 0x140132f34
mov rdx, rbx
sub rdx, r13
jbe 0x140132ec1
sar rdx, 3
lea rcx, [rdx + 1]
shr rcx, 0x3f
add rcx, rdx
inc rcx
shl rcx, 2
and rcx, 0xfffffffffffffff8
sub rbx, rcx
mov qword [rsp + 0x30], rbx
jmp 0x140132f34
mov rax, rbp
sub rax, r14
sar rax, 2
cmp rbp, r14
mov ebx, 1
cmovne rbx, rax
mov rax, rbx
shr rax, 0x3d
jne 0x140133074
mov r12, rbx
shr r12, 2
lea rcx, [rbx*8]
call fcn.1401cfd80
lea r9, [rax + r12*8]
lea r8, [rax + rbx*8]
mov r10, r9
sub rbp, rdi
je 0x140132e5c
mov rbx, rbp
sar rbx, 3
and rbp, 0xfffffffffffffff8
mov r10, rbp
add r10, r9
shl rbx, 3
lea rbp, [rax + r12*8]
xor edx, edx
mov rcx, qword [rdi + rdx]
mov qword [rbp + rdx], rcx
add rdx, 8
cmp rbx, rdx
jne 0x140132e4a
mov qword [rsi], rax
mov qword [rsi + 8], r9
mov qword [rsi + 0x10], r10
mov qword [rsi + 0x18], r8
mov rbp, r10
test r14, r14
je 0x140132eb3
mov rcx, r14
call fcn.1401cfdbc
mov rbp, qword [rsi + 0x10]
jmp 0x140132eb3
call fcn.1401cfd80
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
mov rcx, rsi
call fcn.1401331d0
mov rdi, qword [rsi + 8]
mov rbp, qword [rsi + 0x10]
mov r15, qword [rdi]
add rdi, 8
mov qword [rsi + 8], rdi
cmp rbp, qword [rsi + 0x18]
je 0x140132fec
mov qword [rbp], r15
add qword [rsi + 0x10], 8
jmp 0x140132fcd
mov qword [rsp + 0x20], rax
movabs rcx, 0x1fffffffffffffff
sar rdx, 2
cmp rbx, r13
mov ebp, 1
cmovne rbp, rdx
cmp rbp, rcx
ja 0x140133074
mov rbx, rbp
and rbx, 0xfffffffffffffffc
lea rcx, [rbp*8]
call fcn.1401cfd80
mov r15, rax
lea rbx, [rax + rbx*2]
lea r14, [rax + rbp*8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], r14
test r13, r13
je 0x140132f2c
mov rcx, r13
call fcn.1401cfdbc
mov r12, qword [rsi + 8]
mov rdi, qword [rsi + 0x10]
mov r13, r15
mov rax, qword [rsp + 0x20]
mov qword [rbx], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x38], rax
mov rdx, r12
cmp rdi, r12
je 0x140132f7d
lea rbx, [rsp + 0x28]
add rdi, 0xfffffffffffffff8
mov rcx, rbx
mov rdx, rdi
call fcn.1401331d0
cmp rdi, qword [rsi + 8]
jne 0x140132f4d
mov r13, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x30]
mov r12, qword [rsi + 0x10]
mov rax, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
mov rdx, rdi
mov rcx, qword [rsi]
mov qword [rsi], r13
mov qword [rsp + 0x28], rcx
mov qword [rsi + 8], rbx
mov qword [rsp + 0x30], rdx
mov qword [rsi + 0x10], rax
mov qword [rsp + 0x38], r12
mov rax, qword [rsi + 0x18]
mov qword [rsi + 0x18], r14
mov qword [rsp + 0x40], rax
mov rax, r12
sub rax, rdx
je 0x140132fc3
add rax, 0xfffffffffffffff8
shr rax, 3
not rax
lea rax, [r12 + rax*8]
mov qword [rsp + 0x38], rax
test rcx, rcx
je 0x140132fcd
call fcn.1401cfdbc
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401d1390
nop
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14, qword [rsi]
mov rax, rdi
sub rax, r14
ja 0x140132ca8
mov rax, rbp
sub rax, r14
sar rax, 2
cmp rbp, r14
mov ebx, 1
cmovne rbx, rax
mov rax, rbx
shr rax, 0x3d
jne 0x140133074
mov r12, rbx
shr r12, 2
lea rcx, [rbx*8]
call fcn.1401cfd80
lea r9, [rax + r12*8]
lea r8, [rax + rbx*8]
mov r10, r9
sub rbp, rdi
je 0x140132e5c
mov rbx, rbp
sar rbx, 3
and rbp, 0xfffffffffffffff8
mov r10, rbp
add r10, r9
shl rbx, 3
lea rbp, [rax + r12*8]
xor edx, edx
mov rcx, qword [rdi + rdx]
mov qword [rbp + rdx], rcx
add rdx, 8
cmp rbx, rdx
jne 0x14013305d
jmp 0x140132e5c
call fcn.1401e9f10
int3