Function at 0x1400807d0
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rcx
mov edi, 2
cmp rdx, 1
je 0x1400807ff
lea rax, [rdx - 1]
test rax, rdx
je 0x1400807fc
mov rcx, rdx
call fcn.140050cf0
mov rdi, rax
jmp 0x1400807ff
mov rdi, rdx
mov rbx, qword [rsi + 8]
cmp rdi, rbx
jbe 0x14008081b
mov rcx, rsi
mov rdx, rdi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp 0x1400808e0
jae 0x1400808cc
cmp rbx, 3
jb 0x140080834
lea rax, [rbx - 1]
test rax, rbx
sete bpl
jmp 0x140080836
xor ebp, ebp
mov rax, qword [rsi + 0x18]
test rax, rax
js 0x140080846
cvtsi2ss xmm0, rax
jmp 0x14008085b
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rsi + 0x20]
call fcn.1401ab560
movss xmm1, dword [0x1401c8a60]
movaps xmm2, xmm0
subss xmm2, xmm1
cvttss2si rax, xmm2
movabs rcx, 0x8000000000000000
xor rcx, rax
cvttss2si rax, xmm0
ucomiss xmm0, xmm1
cmovae rax, rcx
test bpl, bpl
je 0x1400808b4
cmp rax, 2
jb 0x1400808bc
add rax, 0xffffffffffffffff
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
jmp 0x1400808bc
mov rcx, rax
call fcn.140050cf0
cmp rdi, rax
cmovb rdi, rax
cmp rdi, rbx
jb 0x140080808
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
test rdx, rdx
je 0x14008093e
mov r14, rdx
mov rax, rdx
shr rax, 0x3d
jne 0x140080a98
lea rcx, [r14*8]
call fcn.140190820
mov rcx, qword [rsi]
mov qword [rsi], rax
test rcx, rcx
je 0x14008091e
call fcn.140190860
mov qword [rsi + 8], r14
lea r8, [r14 - 1]
mov eax, r14d
and eax, 3
cmp r8, 3
jae 0x14008095f
xor ecx, ecx
test rax, rax
jne 0x1400809b0
jmp 0x1400809c5
mov rcx, qword [rsi]
mov qword [rsi], 0
test rcx, rcx
je 0x140080952
call fcn.140190860
mov qword [rsi + 8], 0
jmp 0x140080a8e
mov rdx, r14
sub rdx, rax
xor ecx, ecx
nop word [rax + rax]
mov rbx, qword [rsi]
mov qword [rbx + rcx*8], 0
mov rbx, qword [rsi]
mov qword [rbx + rcx*8 + 8], 0
mov rbx, qword [rsi]
mov qword [rbx + rcx*8 + 0x10], 0
mov rbx, qword [rsi]
mov qword [rbx + rcx*8 + 0x18], 0
add rcx, 4
cmp rdx, rcx
jne 0x140080970
test rax, rax
je 0x1400809c5
nop dword [rax]
mov rdx, qword [rsi]
mov qword [rdx + rcx*8], 0
add rcx, 1
add rax, 0xffffffffffffffff
jne 0x1400809b0
mov r10, qword [rsi + 0x10]
test r10, r10
je 0x140080a8e
lea rcx, [rsi + 0x10]
mov r9, qword [r10 + 8]
test r8, r14
je 0x1400809f1
cmp r9, r14
jb 0x1400809f4
mov rax, r9
xor edx, edx
div r14
mov r9, rdx
jmp 0x1400809f4
and r9, r8
mov rax, qword [rsi]
mov qword [rax + r9*8], rcx
jmp 0x140080a03
mov r10, rcx
mov rcx, qword [r10]
test rcx, rcx
je 0x140080a8e
mov rax, qword [rcx + 8]
test r8, r14
je 0x140080a30
cmp rax, r14
jb 0x140080a25
xor edx, edx
div r14
mov rax, rdx
cmp rax, r9
je 0x140080a00
jmp 0x140080a38
and rax, r8
cmp rax, r9
je 0x140080a00
mov rbx, qword [rsi]
cmp qword [rbx + rax*8], 0
mov rdx, rcx
je 0x140080a7f
nop word cs:[rax + rax]
nop
mov rbx, rdx
mov rdx, qword [rdx]
test rdx, rdx
je 0x140080a63
mov edi, dword [rcx + 0x10]
cmp edi, dword [rdx + 0x10]
je 0x140080a50
mov qword [r10], rdx
mov rdx, qword [rsi]
mov rdx, qword [rdx + rax*8]
mov rdx, qword [rdx]
mov qword [rbx], rdx
mov rdx, qword [rsi]
mov rax, qword [rdx + rax*8]
mov qword [rax], rcx
jmp 0x140080a03
mov qword [rbx + rax*8], r10
mov r10, rcx
mov r9, rax
jmp 0x140080a03
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1401a6a70
ud2