Function at 0x3ff8f3580
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
mov rax, qword [rcx]
mov r15, qword [rsp + 0xf8]
mov qword [rsp + 0x60], rax
mov r12, rdx
mov rbx, r8
mov esi, r9d
mov qword [rsp + 0xd0], rcx
cmp r9d, 0x3e
ja 0x3ff93f538
movsxd rdx, r9d
mov rcx, r12
add rdx, 1
mov rax, rdx
lea r14, [r15 + rdx*8]
xor edx, edx
shl rax, 4
add rax, qword [rsp + 0xf0]
mov qword [rsp + 0x50], rax
lea eax, [r9 + r9 + 2]
cdqe
shl rax, 4
add rax, qword [rsp + 0xf0]
mov qword [rsp + 0x58], rax
call qword [sym.imp.cyggmp_10.dll___gmpz_scan1]
mov rdi, rax
test rax, rax
js 0x3ff93f520
sub rbx, rdi
mov rdx, r12
mov rcx, r12
mov r8, rax
call qword [sym.imp.cyggmp_10.dll___gmpz_tdiv_q_2exp]
mov qword [rsp + 0x40], rbx
mov rcx, qword [rsp + 0x58]
mov rdx, r12
call qword [sym.imp.cyggmp_10.dll___gmpz_set]
cmp esi, 1
jle 0x3ff8f366d
mov rdi, qword [rsp + 0x58]
lea eax, [rsi - 2]
mov rbx, qword [sym.imp.cyggmp_10.dll___gmpz_mul]
shl rax, 4
lea rbp, [rdi + 0x10]
lea rdi, [rdi + rax + 0x20]
nop word [rax + rax]
lea rdx, [rbp - 0x10]
mov rcx, rbp
add rbp, 0x10
mov r8, rdx
call rbx
cmp rbp, rdi
jne 0x3ff8f3658
mov rax, qword [sym.imp.cyggmp_10.dll___gmpz_set_ui]
mov rcx, qword [rsp + 0xf0]
mov edx, 1
mov qword [rsp + 0x68], rax
mov rdi, rax
call rax
mov rcx, qword [rsp + 0x50]
mov edx, 1
call rdi
mov eax, 1
mov ecx, esi
mov qword [r15], 0
shl rax, cl
cmp qword [rsp + 0x60], 0
mov qword [r14], 0
mov qword [rsp + 0x78], rax
jle 0x3ff8f3aca
mov dword [rsp + 0x3c], 0
xor r12d, r12d
mov qword [rsp + 0x48], 1
cmp rax, 1
jbe 0x3ff8f3aca
mov r13, qword [sym.imp.cyggmp_10.dll___gmpz_mul]
nop dword [rax]
mov eax, dword [rsp + 0x3c]
mov rbx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xf0]
mov rbp, qword [rsp + 0x68]
lea r8d, [rax + 1]
mov qword [rsp + 0x70], rbx
add rbx, 1
movsxd rsi, r8d
mov dword [rsp + 0x28], r8d
mov rdx, rbx
mov qword [r14 + rsi*8], 0
shl rsi, 4
add rcx, rsi
mov qword [rsp + 0x48], rbx
call rbp
mov rcx, qword [rsp + 0x50]
mov rdx, rbx
add rcx, rsi
call rbp
mov rax, rbx
mov r8d, dword [rsp + 0x28]
test al, 1
jne 0x3ff8f389b
movsxd rbx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0xf8], r15
mov r15, r14
mov rbp, qword [rsp + 0x58]
mov r14, rax
mov rax, qword [rsp + 0xf8]
mov rdi, rbx
lea rsi, [rcx + rsi - 0x10]
shl rdi, 4
add rdi, qword [rsp + 0xf0]
nop word [rax + rax]
lea r12, [rsi + 0x10]
mov qword [rsp + 0xf8], rax
mov r8, rbp
shr r14, 1
mov rdx, r12
mov rcx, r12
add rbp, 0x10
call r13
lea r10, [rdi + 0x10]
mov rdx, rsi
mov rcx, rsi
mov r8, r10
mov qword [rsp + 0x30], r10
call r13
mov ecx, dword [rsp + 0x3c]
mov r9, qword [rsp + 0x40]
mov rdx, rsi
sub ecx, ebx
shl r9, cl
mov rcx, rsi
mov r8, r9
mov qword [rsp + 0x28], r9
call qword [sym.imp.cyggmp_10.dll___gmpz_mul_2exp]
mov r8, r12
mov rdx, rsi
mov rcx, rsi
call qword [sym.imp.cyggmp_10.dll___gmpz_add]
mov r10, qword [rsp + 0x30]
mov rdx, rdi
mov rcx, rdi
sub rsi, 0x10
sub rdi, 0x10
mov r8, r10
call r13
mov edx, dword [rdi + 0x24]
mov ecx, dword [rdi + 0x24]
mov r8d, dword [rbp - 0xc]
mov r9, qword [rsp + 0x28]
sar edx, 0x1f
mov rax, qword [rsp + 0xf8]
add qword [r15 + rbx*8], 1
xor ecx, edx
sar r8d, 0x1f
sub ecx, edx
mov rdx, qword [rdi + 0x28]
movsxd rcx, ecx
bsr r10, qword [rdx + rcx*8 - 8]
mov edx, dword [rbp - 0xc]
xor r10d, 0x3f
shl rcx, 6
movsxd r10, r10d
xor edx, r8d
sub rcx, r10
sub edx, r8d
mov r8, qword [rbp - 8]
add r9, rcx
movsxd rdx, edx
bsr r8, qword [r8 + rdx*8 - 8]
xor r8d, 0x3f
shl rdx, 6
movsxd r8, r8d
sub rdx, r8
mov r8d, ebx
sub r9, rdx
mov rdx, qword [rax + rbx*8]
lea r12, [r9 + rdx - 1]
mov qword [rax + rbx*8], r12
mov qword [rax + rbx*8 + 8], r12
sub rbx, 1
test r14b, 1
je 0x3ff8f3788
mov r14, r15
mov r15, rax
cmp qword [rsp + 0x60], r12
jle 0x3ff8f38c0
mov rdi, qword [rsp + 0x78]
cmp qword [rsp + 0x48], rdi
jae 0x3ff8f38c0
mov dword [rsp + 0x3c], r8d
jmp 0x3ff8f36e8
mov rax, qword [rsp + 0x70]
imul rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
test r8d, r8d
jle 0x3ff8f3995
mov rax, qword [rsp + 0x50]
movsxd rdx, r8d
mov rbx, qword [sym.imp.cyggmp_10.dll___gmpz_mul]
xor esi, esi
mov r15, qword [rsp + 0xf0]
lea r12, [r14 + rdx*8]
shl rdx, 4
lea rdi, [rax + rdx - 0x10]
lea r14, [rax + rdx]
mov rax, r12
add r15, rdx
lea edx, [r8 - 1]
shl rdx, 4
sub rdi, rdx
mov r12, rdi
mov rdi, rax
nop word [rax + rax]
mov r8, qword [rdi - 8]
lea rbp, [r14 - 0x10]
mov rdx, r14
mov rcx, r14
lea r13, [r15 - 0x10]
sub rdi, 8
shl r8, 4
add r8, qword [rsp + 0x58]
call rbx
mov r8, r15
mov rdx, rbp
mov rcx, rbp
call rbx
mov rcx, qword [rdi + 8]
mov edx, 1
mov r8, qword [rsp + 0x40]
shl rdx, cl
mov rcx, rbp
add rsi, rdx
mov rdx, rbp
imul r8, rsi
call qword [sym.imp.cyggmp_10.dll___gmpz_mul_2exp]
mov r8, r14
mov rdx, rbp
mov rcx, rbp
call qword [sym.imp.cyggmp_10.dll___gmpz_add]
mov r14, rbp
mov r8, r15
mov rdx, r13
mov rcx, r13
mov r15, r13
call rbx
cmp r12, rbp
jne 0x3ff8f3920
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov eax, dword [rdi + 4]
lea r8, [rsi + rsi]
mov edx, eax
mov dword [rsp + 0x30], eax
mov eax, dword [rdi + 4]
sar edx, 0x1f
xor eax, edx
sub eax, edx
mov rdx, qword [rdi + 8]
cdqe
bsr rdx, qword [rdx + rax*8 - 8]
xor edx, 0x3f
shl rax, 6
movsxd rdx, edx
sub rax, rdx
mov rbx, rax
sub rbx, r8
js 0x3ff8f3a96
mov r8, rbx
mov rdx, rdi
mov rcx, rdi
call qword [sym.imp.cyggmp_10.dll___gmpz_fdiv_q_2exp]
mov rax, qword [rsp + 0xf0]
mov rsi, qword [rsp + 0xf0]
mov eax, dword [rax + 4]
mov edx, eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsi + 4]
sar edx, 0x1f
xor eax, edx
sub eax, edx
mov rdx, qword [rsi + 8]
cdqe
bsr rdx, qword [rdx + rax*8 - 8]
xor edx, 0x3f
shl rax, 6
movsxd rdx, edx
sub rax, rdx
mov r8, rax
sub r8, qword [rsp + 0x60]
sub rbx, r8
test r8, r8
jle 0x3ff8f3aac
mov rdx, rsi
mov rcx, rsi
call qword [sym.imp.cyggmp_10.dll___gmpz_fdiv_q_2exp]
mov rdi, qword [rsp + 0x50]
mov r8, qword [rsp + 0xf0]
mov rdx, rdi
mov rcx, rdi
call qword [sym.imp.cyggmp_10.dll___gmpz_tdiv_q]
mov rcx, qword [rsp + 0xd0]
mov r8d, 3
mov rdx, rdi
call sym.cygmpfr_6.dll_mpfr_set_z
mov rax, qword [rsp + 0xd0]
sub rbx, qword [rsp + 0x28]
add qword [rax + 0x10], rbx
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x50]
sub r8, rax
mov rdx, rcx
call qword [sym.imp.cyggmp_10.dll___gmpz_mul_2exp]
jmp 0x3ff8f39ea
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0xf0]
sub r8, rax
mov rcx, rdx
call qword [sym.imp.cyggmp_10.dll___gmpz_mul_2exp]
jmp 0x3ff8f3a42
mov qword [rsp + 0x28], 0
jmp 0x3ff8f3995
mov rcx, r15
call sym.cygmpfr_6.dll_mpfr_mpz_clear
mov rcx, r12
call sym.cygmpfr_6.dll_mpfr_clear
mov rcx, rbp
call sym.cygmpfr_6.dll_mpfr_clear
mov rcx, r14
call sym.cygmpfr_6.dll_mpfr_clear
mov rax, qword [rsp + 0x90]
mov esi, dword [rsp + 0x9c]
mov dword [rax], esi
mov rax, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0xa8]
mov qword [rax], rsi
mov rax, qword [rsp + 0xb8]
mov rsi, qword [rsp + 0xb0]
mov qword [rax], rsi
mov rax, qword [sym.imp.cygwin1.dll___stack_chk_guard]
mov rsi, qword [rsp + 0x138]
xor rsi, qword [rax]
jne 0x3ff8f425e
mov eax, r13d
add rsp, 0x148
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
or dword [rsp + 0x9c], 1
mov r13d, eax
jmp 0x3ff8f40b1
call sub.cygwin1.dll___stack_chk_fail
mov rsi, qword [rsp + 0xa0]
mov rsi, qword [rsi]
lea rdx, [rsi + 1]
mov qword [rsp + 0x38], rsi
cmp rbx, rdx
jne 0x3ff8f41e9
jmp 0x3ff93f58a
lea r8, str.n___0x7fffffffffffffffL
mov edx, 0x3d
lea rcx, str._mnt_share_cygpkgs_mpfr_mpfr.x86_64_src_mpfr_4.0.2_src_exp3.c
call sym.cygmpfr_6.dll_mpfr_assert_fail
lea r8, str._size_t__m___sizeof__long___8___1
mov edx, 0x34
lea rcx, str._mnt_share_cygpkgs_mpfr_mpfr.x86_64_src_mpfr_4.0.2_src_exp3.c
call sym.cygmpfr_6.dll_mpfr_assert_fail
nop
cmp dword [rsp + 0x1a0], 0
mov r14, qword [rsp + 0x70]
je 0x3ff93f5d2
mov edx, dword [rsp + 0x1a0]
mov rcx, qword [rsp + 0x88]
mov r8d, 1
call sym.cygmpfr_6.dll_mpfr_underflow
or dword [rsp + 0x9c], 1
mov r13d, eax
jmp 0x3ff8f40b1
mov rcx, qword [rsp + 0x88]
mov r8d, 1
mov edx, 2
call sym.cygmpfr_6.dll_mpfr_underflow
nop
jmp 0x3ff8f41e9
mov dword [rsp + 0x1a0], 1
jmp 0x3ff93f560