Function at 0x1400d7fc0
Capabilities:
Encode data using base64
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov qword [rsp + 0x48], rdx
mov rdi, rcx
mov rax, qword [0x140327038]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r12, qword [rcx + 0x18]
cmp byte [r8 + 0x17], 0
js 0x1400d8006
mov rax, qword [r8 + 0x10]
mov qword [rsp + 0x60], rax
movups xmm0, xmmword [r8]
movaps xmmword [rsp + 0x50], xmm0
jmp 0x1400d8078
mov r14, qword [r8]
mov rbx, qword [r8 + 8]
cmp rbx, 0x16
jbe 0x1400d8a08
movabs rsi, 0x7fffffffffffffef
cmp rbx, rsi
ja 0x1400d89f1
mov r15, rbx
or r15, 0xf
inc r15
mov rcx, r15
call fcn.14013a6b4
mov qword [rsp + 0x50], rax
add rsi, 0x11
or rsi, r15
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x58], rbx
cmp rax, r14
ja 0x1400d8067
lea rcx, [rax + rbx]
inc rcx
cmp rcx, r14
ja 0x1400d8a15
inc rbx
mov rcx, rax
mov rdx, r14
mov r8, rbx
call fcn.14013efb0
inc r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x68], r12
movzx r13d, byte [rsp + 0x67]
mov r14d, r13d
and r14d, 0x7f
test r13b, r13b
mov r9, qword [rsp + 0x50]
lea rdx, [rsp + 0x50]
mov r15, rdx
cmovs r15, r9
cmovs r14, qword [rsp + 0x58]
cmp r14, 0x20
mov qword [rsp + 0x30], r13
jbe 0x1400d81ad
cmp r14, 0x40
ja 0x1400d86ec
movabs rax, 0xc3a5c85c97cb3127
test r13b, r13b
jns 0x1400d89f4
lea r10, [r9 + 0x18]
movabs rcx, 0x9ae16a3b2f90404f
mov rsi, qword [r15 + r14 - 0x10]
lea r8, [rsi + r14]
imul r8, rax
add r8, qword [r15]
mov r11, qword [r10]
lea rbx, [r8 + r11]
rol rbx, 0xc
mov r12, r8
rol r12, 0x1b
test r13b, r13b
jns 0x1400d89fe
lea r10, [r9 + 8]
add r8, qword [r10]
mov r10, r8
rol r10, 0x39
test r13b, r13b
cmovs rdx, r9
mov r9, qword [rdx + 0x10]
add r8, r9
mov r13, r8
rol r13, 0x21
add r10, r12
add r9, qword [r15 + r14 - 0x20]
mov rdx, qword [r15 + r14 - 8]
add rdx, r11
lea r12, [rdx + r9]
rol r12, 0xc
add r10, rbx
mov rbx, r9
rol rbx, 0x1b
add r10, r13
add r9, qword [r15 + r14 - 0x18]
mov r13, r9
rol r13, 0x39
add r9, rsi
add rdx, r9
rol r9, 0x21
add rbx, r11
add rbx, r13
add rbx, r12
add rbx, r9
add rbx, r8
imul rbx, rcx
add rdx, r10
imul rdx, rax
add rdx, rbx
mov r8, rdx
shr r8, 0x2f
xor r8, rdx
imul r8, rax
add r8, r10
mov rbx, r8
shr rbx, 0x2f
xor rbx, r8
imul rbx, rcx
jmp 0x1400d8203
cmp r14, 0x10
ja 0x1400d894c
cmp r14, 9
jb 0x1400d8a18
mov rax, qword [r15 + r14 - 8]
lea rdx, [rax + r14]
mov ecx, r14d
ror rdx, cl
mov rcx, qword [r15]
xor rcx, rdx
movabs r8, 0x9ddfea08eb382d69
imul rcx, r8
xor rdx, rcx
shr rcx, 0x2f
xor rcx, rdx
imul rcx, r8
mov rbx, rcx
shr rbx, 0x2f
xor rbx, rcx
imul rbx, r8
xor rbx, rax
mov rsi, qword [rdi + 8]
test rsi, rsi
jne 0x1400d84ae
movabs r13, 0xaaaaaaaaaaaaaaaa
mov ecx, 0x30
call fcn.14013a6b4
mov r12, rax
mov rdx, qword [rsp + 0x38]
test rdx, rdx
jns 0x1400d824d
mov rax, rdx
shr rax, 1
mov ecx, edx
and ecx, 1
or rcx, rax
xorps xmm0, xmm0
cvtsi2ss xmm0, rcx
addss xmm0, xmm0
jmp 0x1400d8255
xorps xmm0, xmm0
cvtsi2ss xmm0, rdx
mov rcx, rsi
shr rcx, 1
mov eax, esi
and eax, 1
or rax, rcx
mov rcx, qword [rsp + 0x60]
mov qword [r12 + 0x20], rcx
movaps xmm1, xmmword [rsp + 0x50]
movups xmmword [r12 + 0x10], xmm1
xorps xmm1, xmm1
movaps xmmword [rsp + 0x50], xmm1
mov qword [rsp + 0x60], 0
mov qword [r12 + 0x28], rdx
mov qword [r12 + 8], rbx
mov qword [r12], 0
test rsi, rsi
js 0x1400d82b1
xorps xmm1, xmm1
cvtsi2ss xmm1, rsi
movss xmm2, dword [rdi + 0x20]
jne 0x1400d82c4
jmp 0x1400d82d1
xorps xmm1, xmm1
cvtsi2ss xmm1, rax
addss xmm1, xmm1
movss xmm2, dword [rdi + 0x20]
je 0x1400d82d1
mulss xmm1, xmm2
ucomiss xmm0, xmm1
jbe 0x1400d8387
divss xmm0, xmm2
call fcn.14015c3fc
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x1402d4098]
sar rdx, 0x3f
cvttss2si rax, xmm0
and rax, rdx
or rax, rcx
lea rcx, [rsi + rsi]
mov r14d, 1
cmp rsi, 3
jae 0x1400d8432
or r14, rcx
cmp r14, rax
cmovbe r14, rax
cmp r14, 1
jne 0x1400d8463
mov r14d, 2
cmp rsi, 2
jae 0x1400d8ab7
lea rcx, [r14*8]
call fcn.14013a6b4
mov rcx, qword [rdi]
mov qword [rdi], rax
test rcx, rcx
jne 0x1400d8405
mov qword [rdi + 8], r14
xor eax, eax
mov rcx, qword [rdi]
mov qword [rcx + rax*8], 0
inc rax
cmp r14, rax
jne 0x1400d8353
mov r8, qword [rdi + 0x10]
test r8, r8
jne 0x1400d85f8
mov rsi, qword [rdi + 8]
lea r13, [rsi - 1]
test rsi, r13
jne 0x1400d8445
and r13, rbx
mov rcx, qword [rdi]
mov rax, qword [rcx + r13*8]
test rax, rax
jne 0x1400d83f9
lea rax, [rdi + 0x10]
mov rdx, qword [rdi + 0x10]
mov qword [r12], rdx
mov qword [rdi + 0x10], r12
mov qword [rcx + r13*8], rax
mov rax, qword [r12]
test rax, rax
jne 0x1400d840f
inc qword [rdi + 0x18]
xor ebp, ebp
movzx eax, byte [rsp + 0x67]
test al, al
js 0x1400d89e2
test bpl, bpl
jne 0x1400d8496
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14013d520
mov eax, ebp
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rax]
mov qword [r12], rcx
mov qword [rax], r12
jmp 0x1400d83b0
call fcn.14013a6ac
jmp 0x1400d834d
mov rax, qword [rax + 8]
lea rcx, [rsi - 1]
test rsi, rcx
je 0x1400d845e
cmp rax, rsi
jb 0x1400d8429
xor edx, edx
div rsi
mov rax, rdx
shl rax, 3
add rax, qword [rdi]
jmp 0x1400d8400
lea rdx, [rsi - 1]
xor r14d, r14d
test rsi, rdx
setne r14b
jmp 0x1400d830d
cmp rbx, rsi
jb 0x1400d8bc6
mov rax, rbx
xor edx, edx
div rsi
mov r13, rdx
jmp 0x1400d8387
and rax, rcx
jmp 0x1400d8429
lea rax, [r14 - 1]
test r14, rax
je 0x1400d847b
mov rcx, r14
call fcn.1400cd977
mov r14, rax
mov rsi, qword [rdi + 8]
cmp r14, rsi
jbe 0x1400d8ab7
mov rax, r14
shr rax, 0x3d
je 0x1400d8331
jmp 0x1400d8bce
mov rax, qword [r12 + 0x28]
mov qword [rsp + 0x38], rax
jmp 0x1400d83cc
lea r13, [rsi - 1]
and r13, rbx
jmp 0x1400d8523
mov rax, rsi
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, rsi
sub rax, rcx
movabs rcx, 0x3333333333333333
mov rdx, rax
and rdx, rcx
shr rax, 2
and rax, rcx
add rax, rdx
mov rcx, rax
shr rcx, 4
add rcx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rcx
movabs r8, 0x101010101010101
imul r8, rax
shr r8, 0x38
cmp r8, 1
jbe 0x1400d84a5
mov r13, rbx
cmp rbx, rsi
jb 0x1400d8523
mov rax, rbx
xor edx, edx
div rsi
mov r13, rdx
mov rax, qword [rdi]
mov rax, qword [rax + r13*8]
test rax, rax
je 0x1400d821a
mov r12, qword [rax]
test r12, r12
je 0x1400d821a
lea rax, [rsi - 1]
mov qword [rsp + 0x20], rax
mov rax, qword [r12 + 8]
cmp rax, rbx
je 0x1400d856e
cmp r8d, 1
jbe 0x1400d8598
cmp rax, rsi
jb 0x1400d8565
xor edx, edx
div rsi
mov rax, rdx
cmp rax, r13
jne 0x1400d821a
movzx edx, byte [r12 + 0x27]
mov eax, edx
and eax, 0x7f
mov rcx, rax
test dl, dl
jns 0x1400d8585
mov rcx, qword [r12 + 0x18]
cmp rcx, r14
je 0x1400d859f
mov r12, qword [r12]
test r12, r12
jne 0x1400d8548
jmp 0x1400d821a
and rax, qword [rsp + 0x20]
jmp 0x1400d8565
mov qword [rsp + 0x28], r8
lea rcx, [r12 + 0x10]
test dl, dl
jns 0x1400d85b0
mov rcx, qword [rcx]
mov bpl, 1
jns 0x1400d85d0
test r14, r14
je 0x1400d85ee
mov rdx, r15
mov r8, r14
call fcn.14013eeb0
test eax, eax
mov r8, qword [rsp + 0x28]
jne 0x1400d858a
jmp 0x1400d85ee
test al, al
je 0x1400d85ee
xor ecx, ecx
mov r8, qword [rsp + 0x28]
mov dl, byte [r12 + rcx + 0x10]
cmp dl, byte [r15 + rcx]
jne 0x1400d858a
inc rcx
cmp rax, rcx
jne 0x1400d85db
mov rax, qword [rsp + 0x30]
jmp 0x1400d83bb
lea r10, [rdi + 0x10]
mov rcx, qword [r8 + 8]
mov rax, r14
shr rax, 1
movabs rdx, 0x5555555555555555
and rdx, rax
mov rax, r14
sub rax, rdx
movabs rdx, 0x3333333333333333
mov r9, rax
and r9, rdx
shr rax, 2
and rax, rdx
add rax, r9
mov rdx, rax
shr rdx, 4
add rdx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rdx
movabs r9, 0x101010101010101
imul r9, rax
shr r9, 0x38
cmp r9, 1
jbe 0x1400d8bd1
cmp rcx, r14
jb 0x1400d8676
mov rax, rcx
xor edx, edx
div r14
mov rcx, rdx
mov rax, qword [rdi]
mov qword [rax + rcx*8], r10
mov r10, qword [r8]
jmp 0x1400d86ae
mov rdx, qword [r10]
mov qword [r8], rdx
mov rdx, qword [rdi]
mov rdx, qword [rdx + rax*8]
mov rdx, qword [rdx]
mov qword [r10], rdx
mov rdx, qword [rdi]
mov rax, qword [rdx + rax*8]
mov qword [rax], r10
mov r10, r8
mov rax, rcx
mov r8, r10
mov r10, qword [r10]
mov rcx, rax
test r10, r10
je 0x1400d8373
mov rax, qword [r10 + 8]
cmp r9d, 1
jbe 0x1400d86e3
cmp rax, r14
jb 0x1400d86ce
xor edx, edx
div r14
mov rax, rdx
cmp rax, rcx
je 0x1400d86a2
mov rdx, qword [rdi]
cmp qword [rdx + rax*8], 0
jne 0x1400d8682
mov qword [rdx + rax*8], r8
jmp 0x1400d86a5
lea rdx, [r14 - 1]
and rax, rdx
jmp 0x1400d86ce
movabs rbp, 0xb492b66fbe98f273
movabs rbx, 0x9ddfea08eb382d69
mov r11, qword [r15 + r14 - 0x28]
mov r8, qword [r15 + r14 - 0x10]
mov r9, qword [r15 + r14 - 0x38]
mov rcx, qword [r15 + r14 - 0x30]
lea rdx, [r9 + r8]
mov r10, qword [r15 + r14 - 0x18]
lea rsi, [rcx + r14]
xor rsi, r10
imul rsi, rbx
mov rax, r10
xor rax, rsi
shr rsi, 0x2f
xor rsi, rax
imul rsi, rbx
mov rax, rsi
shr rax, 0x2f
xor rax, rsi
imul rax, rbx
mov rbx, qword [r15 + r14 - 0x40]
add rbx, r14
lea r12, [rbx + r11]
mov qword [rsp + 0x20], rax
add r12, rax
rol r12, 0x2b
add rcx, r9
add rcx, rbx
mov rsi, rcx
rol rsi, 0x14
add rsi, rbx
add rsi, r12
add rcx, r11
mov r9, qword [r15 + r14 - 0x20]
add r9, rdx
mov r12, qword [r15 + r14 - 8]
add r9, rbp
lea r13, [r12 + r11]
add r13, r9
rol r13, 0x2b
add r10, r8
add r10, r9
mov rbx, r10
rol rbx, 0x14
add rbx, r9
add rbx, r13
imul r11, rbp
add r11, qword [r15]
add r10, r12
lea rax, [r14 - 1]
and rax, 0xffffffffffffffc0
mov qword [rsp + 0x40], rax
xor r13d, r13d
mov r9, qword [rsp + 0x20]
add r11, rcx
add r11, rdx
mov r8, qword [r15 + r13 + 8]
mov rbp, qword [r15 + r13 + 0x10]
add r11, r8
rol r11, 0x1b
add rdx, rsi
mov rax, qword [r15 + r13 + 0x30]
mov qword [rsp + 0x28], rax
add rdx, rax
rol rdx, 0x16
movabs r12, 0xb492b66fbe98f273
imul r11, r12
mov rax, rdx
imul rax, r12
xor r11, rbx
mov r12, qword [r15 + r13 + 0x28]
add rcx, r12
mov rdx, rcx
add rdx, rax
add r9, r10
movabs rax, 0xb492b66fbe98f273
imul rsi, rax
mov rax, qword [r15 + r13 + 0x18]
add rsi, qword [r15 + r13]
add r10, rax
add r10, rsi
mov qword [rsp + 0x20], r11
add r10, r11
rol r10, 0x2b
add r8, rbp
add r8, rsi
mov rcx, r8
rol rcx, 0x14
add rsi, rcx
add rsi, r10
rol r9, 0x1f
mov rcx, r8
mov r11, r9
movabs r8, 0xb492b66fbe98f273
imul r11, r8
add rcx, rax
add rbx, r11
mov rax, qword [r15 + r13 + 0x38]
add rbx, qword [r15 + r13 + 0x20]
add rbp, rax
add rbp, rdx
add rbp, rbx
add r12, qword [rsp + 0x28]
add r12, rbx
mov r8, r12
rol r8, 0x14
add rbx, r8
rol rbp, 0x2b
add rbx, rbp
mov r10, r12
add r10, rax
add r13, 0x40
cmp qword [rsp + 0x40], r13
jne 0x1400d87bd
xor rsi, rbx
movabs r9, 0x9ddfea08eb382d69
imul rsi, r9
xor rbx, rsi
shr rsi, 0x2f
xor rsi, rbx
imul rsi, r9
mov r8, rsi
shr r8, 0x2f
xor r8, rsi
imul r8, r9
add r8, r11
xor rcx, r10
imul rcx, r9
xor r10, rcx
shr rcx, 0x2f
xor rcx, r10
imul rcx, r9
mov rax, rcx
shr rax, 0x2f
xor rax, rcx
imul rax, r9
mov rcx, rdx
shr rcx, 0x2f
xor rcx, rdx
movabs rdx, 0xb492b66fbe98f273
imul rcx, rdx
add rcx, qword [rsp + 0x20]
add rcx, rax
xor rcx, r8
imul rcx, r9
xor r8, rcx
shr rcx, 0x2f
xor rcx, r8
imul rcx, r9
mov rbx, rcx
shr rbx, 0x2f
xor rbx, rcx
imul rbx, r9
jmp 0x1400d8203
movabs rcx, 0xb492b66fbe98f273
imul rcx, qword [r15]
test r13b, r13b
cmovs rdx, r9
mov rdx, qword [rdx + 8]
movabs rax, 0x9ae16a3b2f90404f
imul rax, qword [r15 + r14 - 8]
movabs r8, 0xc3a5c85c97cb3127
imul r8, qword [r15 + r14 - 0x10]
movabs r9, 0xc949d7c7509e6557
xor r9, rdx
rol r9, 0x2c
add r9, rcx
add r9, r14
sub rcx, rdx
rol rcx, 0x15
sub r9, rax
add rcx, r8
rol rax, 0x22
add rax, rcx
xor rax, r9
movabs rcx, 0x9ddfea08eb382d69
imul rax, rcx
xor r9, rax
shr rax, 0x2f
xor rax, r9
imul rax, rcx
mov rbx, rax
shr rbx, 0x2f
xor rbx, rax
imul rbx, rcx
jmp 0x1400d8203
mov rcx, qword [rsp + 0x50]
call fcn.14013a6ac
jmp 0x1400d83c3
int3
lea r10, [rsp + 0x68]
jmp 0x1400d80dc
lea r10, [rsp + 0x58]
jmp 0x1400d8115
lea rax, [rsp + 0x50]
mov byte [rax + 0x17], bl
jmp 0x1400d8052
int3
cmp r14, 4
jae 0x1400d8a79
movabs rbx, 0x9ae16a3b2f90404f
test r14, r14
je 0x1400d8203
movzx eax, byte [r15]
mov rcx, r14
shr rcx, 1
movzx ecx, byte [r15 + rcx]
movzx edx, byte [r14 + r15 - 1]
shl rcx, 8
or rcx, rax
lea rax, [r14 + rdx*4]
imul rcx, rbx
movabs rdx, 0xc949d7c7509e6557
imul rdx, rax
xor rdx, rcx
mov rax, rdx
shr rax, 0x2f
xor rax, rdx
imul rbx, rax
jmp 0x1400d8203
mov eax, dword [r15]
mov ecx, dword [r15 + r14 - 4]
lea rax, [r14 + rax*8]
xor rax, rcx
movabs rdx, 0x9ddfea08eb382d69
imul rax, rdx
xor rcx, rax
shr rax, 0x2f
xor rax, rcx
imul rax, rdx
mov rbx, rax
shr rbx, 0x2f
xor rbx, rax
imul rbx, rdx
jmp 0x1400d8203
cmp r14, rsi
jae 0x1400d8373
mov rax, qword [rdi + 0x18]
test rax, rax
jns 0x1400d8ae3
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
addss xmm0, xmm0
jmp 0x1400d8aeb
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
divss xmm0, dword [rdi + 0x20]
call fcn.14015c3fc
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x1402d4098]
cvttss2si rax, xmm0
sar rdx, 0x3f
and rax, rdx
or rax, rcx
cmp rsi, 3
jb 0x1400d8b9e
mov rcx, rsi
shr rcx, 1
movabs rdx, 0x5555555555555555
and rdx, rcx
mov rcx, rsi
sub rcx, rdx
movabs rdx, 0x3333333333333333
mov r8, rcx
shr r8, 2
and rcx, rdx
and r8, rdx
add r8, rcx
mov rcx, r8
shr rcx, 4
add rcx, r8
movabs rdx, 0xf0f0f0f0f0f0f0f
and rdx, rcx
movabs rcx, 0x101010101010101
imul rcx, rdx
shr rcx, 0x38
cmp ecx, 1
ja 0x1400d8b9e
lea rcx, [rax - 1]
bsr rcx, rcx
xor ecx, 0x3f
neg cl
mov edx, 1
shl rdx, cl
cmp rax, 2
cmovb rdx, rax
jmp 0x1400d8ba9
mov rcx, rax
call fcn.1400cd977
mov rdx, rax
cmp r14, rdx
cmova rdx, r14
cmp rdx, rsi
jae 0x1400d8373
mov rcx, rdi
call fcn.1401f4c00
jmp 0x1400d8373
mov r13, rbx
jmp 0x1400d8387
int3
lea rax, [r14 - 1]
and rcx, rax
jmp 0x1400d8676