Function at 0x14001e488
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x618
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x70], rcx
mov r14, qword [rdx]
test r14, r14
je 0x14001ebfb
mov r8, qword [rdx + 8]
test r8, r8
je 0x14001ebfb
mov rax, qword [rdx + 0x10]
test rax, rax
je 0x14001ebfb
mov rcx, r14
add rcx, rax
jb 0x14001ebfb
mov rsi, r14
sub rsi, r8
jb 0x14001ebfb
mov qword [rsp + 0xa8], r8
mov qword [rsp + 0xb0], rax
mov rax, rcx
shr rax, 0x3d
jne 0x14001ebfb
mov qword [rsp + 0xa0], rdx
movzx eax, word [rdx + 0x18]
mov word [rsp + 0x56], ax
movzx edi, ax
movsx rax, di
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rcx
mov edx, edi
call fcn.14001daec
mov rbx, rax
mov r12d, edx
mov rcx, rsi
mov edx, edi
mov r8d, r12d
call fcn.14001db8a
mov qword [rsp + 0x60], rax
mov r15d, edx
mov qword [rsp + 0x88], r14
mov rcx, r14
mov qword [rsp + 0x68], rdi
mov edx, edi
mov r8d, r12d
call fcn.14001db8a
mov r14, rax
mov ebp, edx
mov edx, 0xffffffa0
sub edx, r12d
lea r13, [rsp + 0x378]
mov rcx, r13
call fcn.14001e2dc
movzx eax, word [r13]
mov word [rsp + 0x58], ax
mov rsi, qword [r13 + 8]
movzx r13d, word [r13 + 0x10]
mov rcx, rbx
mov edx, r12d
mov r8, rsi
mov r9d, r13d
call fcn.14001da99
mov r12, rax
mov ebx, edx
mov rcx, qword [rsp + 0x60]
mov edx, r15d
mov r8, rsi
mov r9d, r13d
call fcn.14001da99
mov qword [rsp + 0x60], rax
mov rcx, r14
mov edx, ebp
mov r8, rsi
mov r9d, r13d
call fcn.14001da99
lea rdx, [r12 + 1]
neg ebx
and ebx, 0x3f
mov r15, rdx
mov ecx, ebx
shr r15, cl
mov r8d, 1
shl r8, cl
mov qword [rsp + 0x78], rax
mov qword [rsp + 0xb8], r8
lea r13, [r8 - 1]
mov r14, r13
mov qword [rsp + 0x80], rdx
and r14, rdx
mov ecx, r15d
call fcn.14001e323
mov r10d, edx
movzx edi, al
mov r9d, edi
sub r9w, word [rsp + 0x58]
inc r9d
sub r12, qword [rsp + 0x60]
add r12, 2
mov rbp, r13
and rbp, r12
xor r8d, r8d
mov esi, 0xa
test r10d, r10d
je 0x14001ebfb
mov eax, r15d
xor edx, edx
div r10d
cmp r8, 0x11
je 0x14001ebfb
mov r11d, edx
mov eax, r15d
xor edx, edx
div r10d
mov edx, r11d
mov ecx, ebx
shl rdx, cl
add al, 0x30
mov rcx, qword [rsp + 0x48]
mov byte [rcx + r8], al
add rdx, r14
cmp rdx, r12
jb 0x14001e695
cmp rdi, r8
je 0x14001e6d6
mov eax, r10d
xor edx, edx
div esi
inc r8
mov r15d, r11d
mov r10d, eax
jmp 0x14001e63d
cmp r8, 0x11
jae 0x14001ebfb
inc r8
mov eax, r10d
mov ecx, ebx
shl rax, cl
mov rcx, qword [rsp + 0x80]
sub rcx, qword [rsp + 0x78]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 1
jmp 0x14001e745
inc r8
mov eax, 1
cmp r8, 0x11
je 0x14001ebfb
imul rdx, r14, 0xa
mov r14, rdx
and r14, r13
imul rax, rax, 0xa
imul rbp, rbp, 0xa
mov ecx, ebx
shr rdx, cl
add dl, 0x30
mov rcx, qword [rsp + 0x48]
mov byte [rcx + r8], dl
inc r8
cmp r14, rbp
jae 0x14001e6de
mov rcx, qword [rsp + 0x80]
sub rcx, qword [rsp + 0x78]
imul rcx, rax
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0xc0]
mov rdx, qword [rsp + 0x48]
call fcn.14001e3ae
mov rbx, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
cmp qword [rsp + 0xc0], 0
je 0x14001e793
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x70]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rsp + 0xc0]
movups xmmword [rcx], xmm0
jmp 0x14001ebe7
mov rax, qword [rsp + 0x98]
dec rax
je 0x14001e7aa
bsr rax, rax
xor rax, 0x3f
jmp 0x14001e7af
mov eax, 0x40
mov rcx, qword [rsp + 0xa0]
mov r13b, byte [rcx + 0x1a]
mov rcx, rbx
sub rcx, rax
imul rax, rcx, 0x4d104d42
movabs rdi, 0x1344135080
add rdi, rax
shr rdi, 0x20
lea rcx, [rsp + 0xd8]
call fcn.14001df7f
lea rcx, [rsp + 0x180]
mov rdx, qword [rsp + 0xa8]
call fcn.14001df7f
lea rcx, [rsp + 0x228]
mov rdx, qword [rsp + 0xb0]
call fcn.14001df7f
lea rsi, [rsp + 0x2d4]
mov r8d, 0x9c
mov rcx, rsi
xor edx, edx
call fcn.1401e8980
mov qword [rsi + 0x9c], 1
mov dword [rsi - 4], 1
cmp word [rsp + 0x56], 0
js 0x14001e871
lea rcx, [rsp + 0xd8]
mov rdx, qword [rsp + 0x68]
call fcn.14001dfe4
lea rcx, [rsp + 0x180]
mov rdx, rbx
call fcn.14001dfe4
lea rcx, [rsp + 0x228]
mov rdx, rbx
jmp 0x14001e884
mov rax, qword [rsp + 0x68]
neg eax
movsx rdx, ax
lea rcx, [rsp + 0x2d0]
call fcn.14001dfe4
test di, di
js 0x14001e89b
movzx edx, di
lea rcx, [rsp + 0x2d0]
jmp 0x14001e8ce
mov eax, edi
neg eax
movsx rsi, ax
lea rcx, [rsp + 0xd8]
mov rdx, rsi
call fcn.14001dcac
lea rcx, [rsp + 0x180]
mov rdx, rsi
call fcn.14001dcac
lea rcx, [rsp + 0x228]
mov rdx, rsi
call fcn.14001dcac
lea rdx, [rsp + 0xd8]
mov rax, qword [rdx + 0xa0]
lea rsi, [rsp + 0x378]
mov qword [rsi + 0xa0], rax
mov r8d, 0xa0
mov rcx, rsi
call fcn.1401e82d0
lea rdx, [rsp + 0x228]
mov rcx, rsi
call fcn.14001e0f6
lea rcx, [rsp + 0x2d0]
mov rdx, rsi
call fcn.14001e15c
cmp al, r13b
jge 0x14001e92d
inc edi
mov qword [rsp + 0x58], rdi
jmp 0x14001e968
mov qword [rsp + 0x58], rdi
lea rcx, [rsp + 0xd8]
mov edx, 0xa
call fcn.14001dd76
lea rcx, [rsp + 0x180]
mov edx, 0xa
call fcn.14001dd76
lea rcx, [rsp + 0x228]
mov edx, 0xa
call fcn.14001dd76
lea rdi, [rsp + 0x2d0]
mov rax, qword [rdi + 0xa0]
lea rsi, [rsp + 0x420]
mov qword [rsi + 0xa0], rax
mov r8d, 0xa0
mov rcx, rsi
mov rdx, rdi
call fcn.1401e82d0
mov edx, 1
mov rcx, rsi
call fcn.14001dfe4
mov rax, qword [rdi + 0xa0]
lea rsi, [rsp + 0x4c8]
mov qword [rsi + 0xa0], rax
mov r8d, 0xa0
mov rcx, rsi
mov rdx, rdi
call fcn.1401e82d0
mov edx, 2
mov rcx, rsi
call fcn.14001dfe4
mov rax, qword [rdi + 0xa0]
lea r14, [rsp + 0x570]
mov qword [r14 + 0xa0], rax
mov r8d, 0xa0
mov rcx, r14
mov rdx, rdi
call fcn.1401e82d0
mov edx, 3
mov rcx, r14
call fcn.14001dfe4
xor esi, esi
lea r12, [rsp + 0xd8]
lea rbp, [rsp + 0x378]
lea rbx, [rsp + 0x228]
mov rcx, r12
mov rdx, r14
call fcn.14001e1ca
test al, al
je 0x14001ea45
mov rcx, r12
mov rdx, r14
call fcn.14001e1dd
mov r14b, 8
jmp 0x14001ea48
xor r14d, r14d
mov rcx, r12
lea r15, [rsp + 0x4c8]
mov rdx, r15
call fcn.14001e1ca
test al, al
je 0x14001ea6e
mov rcx, r12
mov rdx, r15
call fcn.14001e1dd
or r14b, 4
lea r15, [rsp + 0x420]
mov rcx, r12
mov rdx, r15
call fcn.14001e1ca
test al, al
je 0x14001ea94
mov rcx, r12
mov rdx, r15
call fcn.14001e1dd
add r14b, 2
mov rcx, r12
mov rdx, rdi
call fcn.14001e1ca
test al, al
je 0x14001eab1
mov rcx, r12
mov rdx, rdi
call fcn.14001e1dd
inc r14b
cmp rsi, 0x11
je 0x14001ebfb
add r14b, 0x30
mov rax, qword [rsp + 0x48]
mov byte [rax + rsi], r14b
mov rcx, r12
lea rdx, [rsp + 0x180]
call fcn.14001e15c
mov r14d, eax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x418], rax
mov r8d, 0xa0
mov rcx, rbp
mov rdx, r12
call fcn.1401e82d0
mov rcx, rbp
mov rdx, rbx
call fcn.14001e0f6
mov rcx, rdi
mov rdx, rbp
call fcn.14001e15c
cmp r14b, r13b
jl 0x14001eb58
cmp al, r13b
jl 0x14001eb58
mov rcx, r12
mov edx, 0xa
call fcn.14001dd76
lea rcx, [rsp + 0x180]
mov edx, 0xa
call fcn.14001dd76
mov rcx, rbx
mov edx, 0xa
call fcn.14001dd76
inc rsi
lea r14, [rsp + 0x570]
jmp 0x14001ea26
lea rdi, [rsi + 1]
cmp al, r13b
jge 0x14001ebc6
cmp r14b, r13b
jge 0x14001eb8f
lea rbx, [rsp + 0xd8]
mov edx, 1
mov rcx, rbx
call fcn.14001dfe4
lea rdx, [rsp + 0x2d0]
mov rcx, rbx
call fcn.14001e1ca
test al, al
je 0x14001ebc6
cmp rsi, 0x11
jae 0x14001ebfb
mov rcx, qword [rsp + 0x48]
mov rdx, rdi
call fcn.14001e236
test al, 1
mov r8, qword [rsp + 0x58]
je 0x14001ebd1
cmp rsi, 0xf
ja 0x14001ebfb
mov rax, qword [rsp + 0x48]
mov byte [rax + rsi + 1], dl
add rsi, 2
inc r8d
mov rdi, rsi
jmp 0x14001ebd1
cmp rsi, 0x11
mov r8, qword [rsp + 0x58]
jae 0x14001ebfb
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
mov qword [rax], rcx
mov qword [rax + 8], rdi
mov word [rax + 0x10], r8w
add rsp, 0x618
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2