Function at 0x140082120
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 0x14008214f
lea rax, [rdx - 1]
test rax, rdx
je 0x14008214c
mov rcx, rdx
call fcn.140050cf0
mov rdi, rax
jmp 0x14008214f
mov rdi, rdx
mov rbx, qword [rsi + 8]
cmp rdi, rbx
jbe 0x14008216b
mov rcx, rsi
mov rdx, rdi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp 0x140082230
jae 0x14008221c
cmp rbx, 3
jb 0x140082184
lea rax, [rbx - 1]
test rax, rbx
sete bpl
jmp 0x140082186
xor ebp, ebp
mov rax, qword [rsi + 0x18]
test rax, rax
js 0x140082196
cvtsi2ss xmm0, rax
jmp 0x1400821ab
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 0x140082204
cmp rax, 2
jb 0x14008220c
add rax, 0xffffffffffffffff
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
jmp 0x14008220c
mov rcx, rax
call fcn.140050cf0
cmp rdi, rax
cmovb rdi, rax
cmp rdi, rbx
jb 0x140082158
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 0x14008228e
mov r14, rdx
mov rax, rdx
shr rax, 0x3d
jne 0x1400823ea
lea rcx, [r14*8]
call fcn.140190820
mov rcx, qword [rsi]
mov qword [rsi], rax
test rcx, rcx
je 0x14008226e
call fcn.140190860
mov qword [rsi + 8], r14
lea r8, [r14 - 1]
mov eax, r14d
and eax, 3
cmp r8, 3
jae 0x1400822af
xor ecx, ecx
test rax, rax
jne 0x140082300
jmp 0x140082315
mov rcx, qword [rsi]
mov qword [rsi], 0
test rcx, rcx
je 0x1400822a2
call fcn.140190860
mov qword [rsi + 8], 0
jmp 0x1400823e0
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 0x1400822c0
test rax, rax
je 0x140082315
nop dword [rax]
mov rdx, qword [rsi]
mov qword [rdx + rcx*8], 0
add rcx, 1
add rax, 0xffffffffffffffff
jne 0x140082300
mov r10, qword [rsi + 0x10]
test r10, r10
je 0x1400823e0
lea rcx, [rsi + 0x10]
mov r9, qword [r10 + 8]
test r8, r14
je 0x140082341
cmp r9, r14
jb 0x140082344
mov rax, r9
xor edx, edx
div r14
mov r9, rdx
jmp 0x140082344
and r9, r8
mov rax, qword [rsi]
mov qword [rax + r9*8], rcx
jmp 0x140082353
mov r10, rcx
mov rcx, qword [r10]
test rcx, rcx
je 0x1400823e0
mov rax, qword [rcx + 8]
test r8, r14
je 0x140082380
cmp rax, r14
jb 0x140082375
xor edx, edx
div r14
mov rax, rdx
cmp rax, r9
je 0x140082350
jmp 0x140082388
and rax, r8
cmp rax, r9
je 0x140082350
mov rbx, qword [rsi]
cmp qword [rbx + rax*8], 0
mov rdx, rcx
je 0x1400823d1
nop word cs:[rax + rax]
nop
mov rbx, rdx
mov rdx, qword [rdx]
test rdx, rdx
je 0x1400823b5
mov rdi, qword [rcx + 0x10]
cmp rdi, qword [rdx + 0x10]
je 0x1400823a0
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 0x140082353
mov qword [rbx + rax*8], r10
mov r10, rcx
mov r9, rax
jmp 0x140082353
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1401a6a70
ud2