Function at 0x140081ca0
Capabilities:
Encode data using base64

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x260
mov rax, qword [0x140479080]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r8d, dword [rcx + 0x18]
mov r12, rdx
mov rax, qword [rcx + 0x10]
mov rbx, rcx
mov qword [rsp + 0x38], rdx
cmp r8d, 3
jge 0x140081ceb
mov edx, 3
call fcn.14007b9c0
mov r8d, dword [rbx + 0x18]
lea rcx, [rax*8]
mov ebp, 0x40
shr rax, 0x3d
mov qword [rbx + 0x10], rcx
sub ebp, eax
lea ecx, [r8 - 3]
mov edi, eax
mov dword [rbx + 0x18], ecx
xor esi, esi
nop dword [rax]
mov rax, qword [rbx + 0x10]
test edi, edi
jne 0x140081d1c
xor al, al
jmp 0x140081d4e
mov r8d, dword [rbx + 0x18]
cmp r8d, edi
jge 0x140081d33
mov edx, edi
mov rcx, rbx
call fcn.14007b9c0
mov r8d, dword [rbx + 0x18]
lea rdx, [rax + rax]
sub r8d, edi
lea rcx, [rdi - 1]
mov dword [rbx + 0x18], r8d
shl rdx, cl
mov ecx, ebp
shr rax, cl
mov qword [rbx + 0x10], rdx
mov byte [rsi + r12 + 0x100], al
inc rsi
cmp rsi, 0x40
jl 0x140081d10
mov edx, dword [rbx + 0x18]
mov rax, qword [rbx + 0x10]
cmp edx, 4
jge 0x140081d7b
mov edx, 4
mov rcx, rbx
call fcn.14007b9c0
mov edx, dword [rbx + 0x18]
mov rcx, rax
lea rsi, [r12 + 0x80]
shl rcx, 4
mov r14d, 0x40
shr rax, 0x3c
mov ebp, 0x40
mov r15d, eax
mov qword [rbx + 0x10], rcx
lea ecx, [rdx - 4]
mov dword [rbx + 0x18], ecx
lea edi, [r15 + 1]
sub r14d, edi
nop dword [rax]
mov eax, dword [rbx + 0x18]
mov r8, qword [rbx + 0x10]
cmp eax, edi
jge 0x140081dcb
mov edx, edi
mov rcx, rbx
call fcn.14007b9c0
mov r8, rax
mov eax, dword [rbx + 0x18]
lea rdx, [r8 + r8]
mov rcx, r15
shl rdx, cl
sub eax, edi
mov ecx, r14d
mov qword [rbx + 0x10], rdx
shr r8, cl
mov dword [rbx + 0x18], eax
mov word [rsi], r8w
add rsi, 2
sub rbp, 1
jne 0x140081db0
mov r8d, dword [rbx + 0x18]
mov rax, qword [rbx + 0x10]
cmp r8d, 4
jge 0x140081e0f
lea edx, [rbp + 4]
mov rcx, rbx
call fcn.14007b9c0
mov r8d, dword [rbx + 0x18]
mov rcx, rax
mov ebp, 0x40
shl rcx, 4
shr rax, 0x3c
mov r14d, eax
mov qword [rbx + 0x10], rcx
lea ecx, [r8 - 4]
mov dword [rbx + 0x18], ecx
lea esi, [r14 + 1]
sub ebp, esi
xor edi, edi
mov eax, dword [rbx + 0x18]
mov r8, qword [rbx + 0x10]
cmp eax, esi
jge 0x140081e50
mov edx, esi
mov rcx, rbx
call fcn.14007b9c0
mov r8, rax
mov eax, dword [rbx + 0x18]
lea rdx, [r8 + r8]
mov rcx, r14
shl rdx, cl
sub eax, esi
mov ecx, ebp
mov qword [rbx + 0x10], rdx
shr r8, cl
mov dword [rbx + 0x18], eax
mov word [r12 + rdi*2], r8w
inc rdi
cmp rdi, 0x40
jl 0x140081e35
mov edx, dword [rbx + 0x18]
mov rax, qword [rbx + 0x10]
cmp edx, 9
jge 0x140081e92
mov edx, 9
mov rcx, rbx
call fcn.14007b9c0
mov edx, dword [rbx + 0x18]
mov rcx, rax
shr rax, 0x37
shl rcx, 9
mov qword [rbx + 0x10], rcx
lea ecx, [rdx - 9]
mov dword [rbx + 0x18], ecx
mov ecx, eax
lea r14d, [rcx + 1]
inc rcx
shl rcx, 6
mov dword [rsp + 0x30], r14d
call fcn.14026737c
mov qword [rsp + 0x28], rax
test rax, rax
jne 0x140081ed2
mov eax, 0xffffffff
jmp 0x1400822a4
mov qword [rsp + 0x2b0], r13
mov ebp, r14d
test r14d, r14d
je 0x140081f39
mov rsi, rax
nop word [rax + rax]
xor edi, edi
mov edx, dword [rbx + 0x18]
mov rax, qword [rbx + 0x10]
cmp edx, 8
jge 0x140081f0e
mov edx, 8
mov rcx, rbx
call fcn.14007b9c0
mov edx, dword [rbx + 0x18]
mov rcx, rax
shr rax, 0x38
shl rcx, 8
mov qword [rbx + 0x10], rcx
lea ecx, [rdx - 8]
mov dword [rbx + 0x18], ecx
mov byte [rsi + rdi], al
inc rdi
cmp rdi, 0x40
jl 0x140081ef2
add rsi, 0x40
sub rbp, 1
jne 0x140081ef0
lea eax, [r14 - 1]
xor r15d, r15d
test eax, eax
je 0x140081f4b
inc r15d
shr eax, 1
jne 0x140081f44
xor ebp, ebp
lea eax, [r15 - 1]
mov r12d, 0x40
movsxd r13, eax
sub r12d, r15d
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x20], r12d
mov dword [rsp + 0x24], ebp
nop dword [rax + rax]
mov eax, 0x55555556
mov edi, ebp
imul ebp
mov esi, edx
shr esi, 0x1f
add esi, edx
lea eax, [rsi + rsi*2]
sub edi, eax
movsxd rax, esi
lea rcx, [rax + rax*2]
movsxd rax, edi
add rcx, rax
lea r14, [rcx + rcx*2]
mov rcx, qword [rsp + 0x38]
lea r14, [r14 + 0x28]
lea r14, [rcx + r14*8]
mov qword [rsp + 0x48], r14
test ebp, ebp
jle 0x14008206d
mov edx, dword [rbx + 0x18]
mov rcx, qword [rbx + 0x10]
cmp edx, 1
jge 0x140081fcf
mov edx, 1
mov rcx, rbx
call fcn.14007b9c0
mov edx, dword [rbx + 0x18]
mov rcx, rax
lea rax, [rcx + rcx]
dec edx
shr rcx, 0x3f
mov qword [rbx + 0x10], rax
mov dword [rbx + 0x18], edx
test cl, cl
jne 0x14008206d
test esi, esi
jle 0x14008201c
cmp edx, 1
jge 0x140082001
mov edx, 1
mov rcx, rbx
call fcn.14007b9c0
mov edx, dword [rbx + 0x18]
lea rcx, [rax + rax]
shr rax, 0x3f
mov qword [rbx + 0x10], rcx
lea ecx, [rdx - 1]
mov dword [rbx + 0x18], ecx
test al, al
je 0x14008201c
lea edx, [rsi - 1]
jmp 0x140082032
lea edi, [rbp - 1]
mov eax, 0x55555556
imul edi
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
sub edi, eax
mov r8, qword [rsp + 0x28]
movsxd rax, edx
lea rcx, [rax + rax*2]
movsxd rax, edi
add rcx, rax
lea rax, [rcx + rcx*2]
mov rcx, qword [rsp + 0x38]
movups xmm0, xmmword [rcx + rax*8 + 0x140]
movups xmmword [r14], xmm0
movsd xmm1, qword [rcx + rax*8 + 0x150]
movsd qword [r14 + 0x10], xmm1
jmp 0x140082261
mov r9, qword [rbx + 0x10]
mov r8d, dword [rbx + 0x18]
test r15d, r15d
jne 0x14008207e
xor eax, eax
jmp 0x1400820b6
cmp r8d, r15d
jge 0x140082095
mov edx, r15d
mov rcx, rbx
call fcn.14007b9c0
mov r8d, dword [rbx + 0x18]
mov r9, rax
lea rdx, [r9 + r9]
mov rcx, r13
shl rdx, cl
sub r8d, r15d
mov rax, r9
mov qword [rbx + 0x10], rdx
mov ecx, r12d
mov dword [rbx + 0x18], r8d
shr rax, cl
mov r9, rdx
xor r12d, r12d
mov dword [rsp + 0x50], eax
xor esi, esi
xor r13d, r13d
xor r14d, r14d
nop word [rax + rax]
mov eax, 0x3e
mov edx, 0
sub eax, r13d
je 0x1400820ee
nop
inc edx
shr eax, 1
jne 0x1400820e0
mov r9, qword [rbx + 0x10]
mov r8d, dword [rbx + 0x18]
mov r10, r9
test edx, edx
jne 0x1400820fa
xor r10d, r10d
jmp 0x14008212d
cmp r8d, edx
jge 0x14008210e
mov rcx, rbx
call fcn.14007b9c0
mov r8d, dword [rbx + 0x18]
mov r10, rax
lea ecx, [rdx - 1]
sub r8d, edx
lea r9, [r10 + r10]
mov dword [rbx + 0x18], r8d
shl r9, cl
mov ecx, 0x40
sub ecx, edx
mov qword [rbx + 0x10], r9
shr r10, cl
lea eax, [r10 + 1]
mov dword [rsp + r14 + 0x150], eax
lea ebp, [r10 + r13]
lea r13d, [rbp + 1]
mov rax, r9
test r15d, r15d
jne 0x14008214d
xor eax, eax
jmp 0x14008217f
cmp r8d, r15d
jge 0x140082161
mov edx, r15d
mov rcx, rbx
call fcn.14007b9c0
mov r8d, dword [rbx + 0x18]
mov rcx, qword [rsp + 0x40]
lea r9, [rax + rax]
shl r9, cl
sub r8d, r15d
mov ecx, dword [rsp + 0x20]
mov qword [rbx + 0x10], r9
shr rax, cl
mov dword [rbx + 0x18], r8d
inc rsi
lea rdi, [rsp + 0x50]
inc r12d
lea r14, [rsi*4]
add rdi, r14
mov dword [rdi], eax
cmp r13d, 0x3f
jl 0x1400820d0
cmp ebp, 0x3f
jge 0x14008228d
mov r13, qword [rsp + 0x48]
movsxd rbp, r12d
mov dword [r13], r12d
lea r14, [rbp*4]
mov rcx, r14
call fcn.14026737c
mov qword [r13 + 8], rax
test rax, rax
je 0x14008227c
mov r8, r14
lea rdx, [rsp + 0x150]
mov rcx, rax
call fcn.14025df20
lea rcx, [rbp + 1]
shl rcx, 6
call fcn.14026737c
test rax, rax
je 0x14008227c
mov ecx, dword [rsp + 0x30]
mov r8, qword [rsp + 0x28]
shl rsi, 6
add rsi, rax
mov qword [r13 + 0x10], rax
movsxd rax, dword [rdi]
cmp eax, ecx
jge 0x14008228d
shl rax, 6
sub rdi, 4
movups xmm0, xmmword [rax + r8]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rax + r8 + 0x10]
movups xmmword [rsi + 0x10], xmm1
movups xmm0, xmmword [rax + r8 + 0x20]
movups xmmword [rsi + 0x20], xmm0
movups xmm1, xmmword [rax + r8 + 0x30]
mov eax, r12d
dec r12d
movups xmmword [rsi + 0x30], xmm1
sub rsi, 0x40
test eax, eax
jg 0x140082210
mov ebp, dword [rsp + 0x24]
mov r12d, dword [rsp + 0x20]
mov r13, qword [rsp + 0x40]
inc ebp
mov dword [rsp + 0x24], ebp
cmp ebp, 6
jl 0x140081f70
mov rcx, r8
call fcn.1402670a8
xor eax, eax
jmp 0x14008229c
mov rcx, qword [rsp + 0x28]
call fcn.1402670a8
mov eax, 0xffffffff
jmp 0x14008229c
mov rcx, qword [rsp + 0x28]
call fcn.1402670a8
mov eax, 0xffffffec
mov r13, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14023ed20
add rsp, 0x260
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret