Function at 0x140047ea0
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 rdi, rdx
mov rbp, rcx
mov rax, qword [0x140181040]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, qword [rcx + 0x18]
inc rsi
cmp byte [r8 + 0x17], 0
jns 0x140047f0f
mov rdx, qword [r8]
mov r8, qword [r8 + 8]
lea rcx, [rsp + 0x50]
call fcn.14002164c
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x68], rsi
movsx rdx, byte [rsp + 0x67]
mov rax, qword [rsp + 0x50]
test rdx, rdx
js 0x140048038
lea r15, [rsp + 0x50]
mov r12, rdx
jmp 0x140048040
mov rax, qword [r8 + 0x10]
mov qword [rsp + 0x60], rax
movups xmm0, xmmword [r8]
movaps xmmword [rsp + 0x50], xmm0
jmp 0x140047ee4
cmp r12, 0x40
ja 0x14004859e
test dl, dl
lea r10, [rsp + 0x50]
cmovs r10, rax
mov rdx, qword [r10 + 0x10]
mov r9, qword [r10 + 0x18]
mov rsi, qword [r15 + r12 - 0x10]
lea rcx, [rsi + r12]
movabs rax, 0xc3a5c85c97cb3127
imul rcx, rax
add rcx, qword [r15]
lea r8, [rcx + r9]
rol r8, 0xc
mov r14, rcx
rol r14, 0x1b
add rcx, qword [r10 + 8]
mov r10, rcx
rol r10, 0x39
add rcx, rdx
add rdx, qword [r15 + r12 - 0x20]
mov r11, qword [r15 + r12 - 8]
add r11, r9
lea r13, [r11 + rdx]
rol r13, 0xc
mov rbx, rdx
rol rbx, 0x1b
add rdx, qword [r15 + r12 - 0x18]
add r10, r14
mov r14, rdx
rol r14, 0x39
add rdx, rsi
add r11, rdx
rol rdx, 0x21
add rbx, r9
add rbx, r14
add rbx, r13
add rbx, rdx
add rbx, rcx
rol rcx, 0x21
add r10, r8
add rcx, r10
movabs rdx, 0x9ae16a3b2f90404f
imul rbx, rdx
add r11, rcx
imul r11, rax
add r11, rbx
mov r8, r11
shr r8, 0x2f
xor r8, r11
imul r8, rax
add r8, rcx
mov rbx, r8
shr rbx, 0x2f
xor rbx, r8
imul rbx, rdx
jmp 0x1400480c1
mov eax, dword [r15]
mov ecx, dword [r15 + r12 - 4]
lea rax, [r12 + 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
jmp 0x140047ff8
mov r12, qword [rsp + 0x58]
mov r15, rax
cmp r12, 0x20
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rdx
ja 0x140047f23
cmp r12, 0x10
ja 0x140048197
cmp r12, 9
jae 0x140048150
cmp r12, 4
jae 0x140048001
movabs rbx, 0x9ae16a3b2f90404f
test r12, r12
je 0x1400480c1
movzx eax, byte [r15]
mov rcx, r12
shr rcx, 1
movzx ecx, byte [r15 + rcx]
movzx edx, byte [r15 + r12 - 1]
shl ecx, 8
or rcx, rax
shl edx, 2
or rdx, r12
imul rcx, rbx
movabs rax, 0xc949d7c7509e6557
imul rax, rdx
xor rax, rcx
mov rcx, rax
shr rcx, 0x2f
xor rcx, rax
imul rbx, rcx
mov rsi, qword [rbp + 8]
test rsi, rsi
je 0x14004830e
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 rcx, 0x101010101010101
imul rcx, rax
shr rcx, 0x38
cmp rcx, 1
jbe 0x14004822d
mov r13, rbx
cmp rbx, rsi
jb 0x140048234
mov rax, rbx
xor edx, edx
div rsi
mov r13, rdx
jmp 0x140048234
mov rax, qword [r15 + r12 - 8]
lea rdx, [rax + r12]
mov ecx, r12d
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
jmp 0x1400480c1
movabs rcx, 0xb492b66fbe98f273
imul rcx, qword [r15]
test dl, dl
lea rdx, [rsp + 0x50]
cmovs rdx, rax
mov r8, qword [rdx + 8]
movabs rax, 0x9ae16a3b2f90404f
imul rax, qword [r15 + r12 - 8]
movabs r9, 0xc3a5c85c97cb3127
imul r9, qword [r15 + r12 - 0x10]
movabs rdx, 0xc949d7c7509e6557
xor rdx, r8
rol rdx, 0x2c
add rdx, rcx
add rdx, r12
sub rcx, r8
rol rcx, 0x15
sub rdx, rax
add rcx, r9
rol rax, 0x22
add rax, rcx
xor rax, rdx
movabs rcx, 0x9ddfea08eb382d69
imul rax, rcx
xor rdx, rax
shr rax, 0x2f
xor rax, rdx
imul rax, rcx
mov rbx, rax
shr rbx, 0x2f
xor rbx, rax
jmp 0x1400480bd
lea r13, [rsi - 1]
and r13, rbx
mov rax, qword [rbp]
mov rax, qword [rax + r13*8]
test rax, rax
je 0x140048318
mov r14, qword [rax]
test r14, r14
je 0x140048318
cmp ecx, 2
jae 0x140048283
lea rax, [rsi - 1]
mov qword [rsp + 0x38], rax
jmp 0x1400482cf
cmp rax, rsi
jb 0x14004826e
xor edx, edx
div rsi
mov rax, rdx
cmp rax, r13
jne 0x140048318
mov r14, qword [r14]
test r14, r14
je 0x140048318
mov rax, qword [r14 + 8]
cmp rax, rbx
jne 0x140048261
movzx eax, byte [r14 + 0x27]
test al, al
mov r8, qword [r14 + 0x18]
mov rcx, rax
cmovs rcx, r8
cmp rcx, r12
jne 0x140048277
test al, al
jns 0x14004856a
mov rcx, qword [r14 + 0x10]
mov rdx, r15
call fcn.1400c4c00
test eax, eax
jne 0x140048277
jmp 0x140048307
and rax, qword [rsp + 0x38]
cmp rax, r13
jne 0x140048318
mov r14, qword [r14]
test r14, r14
je 0x140048318
mov rax, qword [r14 + 8]
cmp rax, rbx
jne 0x1400482bd
movzx eax, byte [r14 + 0x27]
test al, al
mov r8, qword [r14 + 0x18]
mov rcx, rax
cmovs rcx, r8
cmp rcx, r12
jne 0x1400482c7
test al, al
jns 0x140048532
mov rcx, qword [r14 + 0x10]
mov rdx, r15
call fcn.1400c4c00
test eax, eax
jne 0x1400482c7
xor ebp, ebp
jmp 0x14004855b
movabs r13, 0xaaaaaaaaaaaaaaaa
mov ecx, 0x30
call fcn.1400919f0
test rax, rax
mov r12, qword [rsp + 0x20]
je 0x140048812
mov r14, rax
xor eax, eax
mov qword [r14], rax
mov qword [r14 + 8], rbx
mov rcx, qword [rsp + 0x60]
mov qword [r14 + 0x20], rcx
movaps xmm0, xmmword [rsp + 0x50]
movups xmmword [r14 + 0x10], xmm0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rax
mov qword [r14 + 0x28], r12
mov rax, qword [rbp + 0x18]
inc rax
jns 0x140048383
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
addss xmm0, xmm0
jmp 0x14004838b
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
mov rcx, rsi
shr rcx, 1
mov eax, esi
and eax, 1
or rax, rcx
test rsi, rsi
jns 0x1400483a9
cvtsi2ss xmm1, rax
addss xmm1, xmm1
jmp 0x1400483ae
cvtsi2ss xmm1, rsi
movss xmm2, dword [rbp + 0x20]
je 0x1400483c2
mulss xmm1, xmm2
ucomiss xmm0, xmm1
jbe 0x140048498
divss xmm0, xmm2
call fcn.1400ac3f0
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x140163d80]
sar rdx, 0x3f
cvttss2si rax, xmm0
and rax, rdx
or rax, rcx
lea rcx, [rsi + rsi]
mov r15d, 1
cmp rsi, 3
jb 0x140048408
lea rdx, [rsi - 1]
xor r15d, r15d
test rsi, rdx
setne r15b
or r15, rcx
cmp r15, rax
cmovbe r15, rax
cmp r15, 1
jne 0x14004891d
mov r15d, 2
cmp rsi, 2
jae 0x14004894c
lea rcx, [r15*8]
call fcn.1400919f0
mov rcx, qword [rbp]
mov qword [rbp], rax
test rcx, rcx
jne 0x140048814
mov qword [rbp + 8], r15
xor eax, eax
mov rcx, qword [rbp]
mov qword [rcx + rax*8], 0
inc rax
cmp r15, rax
jne 0x140048450
mov r8, qword [rbp + 0x10]
test r8, r8
jne 0x14004881e
mov rsi, qword [rbp + 8]
lea r13, [rsi - 1]
test rsi, r13
je 0x140048495
cmp rbx, rsi
jb 0x140048490
mov rax, rbx
xor edx, edx
div rsi
mov r13, rdx
jmp 0x140048498
mov r13, rbx
jmp 0x140048498
and r13, rbx
mov rcx, qword [rbp]
mov rax, qword [rcx + r13*8]
test rax, rax
je 0x1400484f1
mov rcx, qword [rax]
mov qword [r14], rcx
mov qword [rax], r14
inc qword [rbp + 0x18]
mov bpl, 1
mov al, byte [rsp + 0x67]
test al, al
js 0x140048803
test bpl, bpl
je 0x140048595
xor bpl, 1
mov qword [rdi], r12
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140092f10
mov eax, ebp
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [rbp + 0x10]
mov rax, qword [rbp + 0x10]
mov qword [r14], rax
mov qword [rbp + 0x10], r14
mov qword [rcx + r13*8], rdx
test rax, rax
je 0x1400484ae
mov rax, qword [rax + 8]
lea rcx, [rsi - 1]
test rsi, rcx
jne 0x140048523
and rax, rcx
shl rax, 3
add rax, qword [rbp]
jmp 0x1400484ab
cmp rax, rsi
jb 0x140048519
xor edx, edx
div rsi
mov rax, rdx
jmp 0x140048519
test rax, rax
je 0x140048307
xor ecx, ecx
mov dl, byte [r14 + rcx + 0x10]
cmp dl, byte [r15 + rcx]
mov rbp, qword [rsp + 0x30]
jne 0x1400482c7
inc rcx
xor ebp, ebp
cmp rax, rcx
jne 0x14004853d
mov r12, qword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
jmp 0x1400484b9
test rax, rax
je 0x140048307
xor ecx, ecx
mov dl, byte [r14 + rcx + 0x10]
cmp dl, byte [r15 + rcx]
mov rbp, qword [rsp + 0x30]
jne 0x140048277
inc rcx
xor ebp, ebp
cmp rax, rcx
jne 0x140048575
jmp 0x14004855b
mov r12, qword [r14 + 0x28]
jmp 0x1400484ca
mov qword [rsp + 0x40], rdi
movabs rbp, 0xb492b66fbe98f273
movabs rdi, 0x9ddfea08eb382d69
mov r11, qword [r15 + r12 - 0x28]
mov rax, qword [r15 + r12 - 0x10]
mov rcx, qword [r15 + r12 - 0x38]
mov r8, qword [r15 + r12 - 0x30]
lea rdx, [rcx + rax]
mov r10, qword [r15 + r12 - 0x18]
lea rsi, [r8 + r12]
xor rsi, r10
imul rsi, rdi
mov r9, r10
xor r9, rsi
shr rsi, 0x2f
xor rsi, r9
imul rsi, rdi
mov r9, rsi
shr r9, 0x2f
xor r9, rsi
imul r9, rdi
mov rbx, qword [r15 + r12 - 0x40]
add rbx, r12
lea r14, [rbx + r11]
add r14, r9
rol r14, 0x2b
add r8, rcx
add r8, rbx
mov rsi, r8
rol rsi, 0x14
add rsi, rbx
add rsi, r14
add r8, r11
mov rcx, qword [r15 + r12 - 0x20]
add rcx, rdx
mov r14, qword [r15 + r12 - 8]
add rcx, rbp
lea r13, [r14 + r11]
add r13, rcx
rol r13, 0x2b
add r10, rax
add r10, rcx
mov rbx, r10
rol rbx, 0x14
add rbx, rcx
add rbx, r13
imul r11, rbp
add r11, qword [r15]
add r10, r14
lea rax, [r12 - 1]
and rax, 0xffffffffffffffc0
mov qword [rsp + 0x48], rax
xor r13d, r13d
mov rcx, r9
add r11, r8
add r11, rdx
mov rax, qword [r15 + r13 + 8]
mov rbp, qword [r15 + r13 + 0x10]
add r11, rax
rol r11, 0x1b
add rdx, rsi
mov r9, qword [r15 + r13 + 0x30]
mov qword [rsp + 0x38], r9
add rdx, r9
rol rdx, 0x16
movabs r9, 0xb492b66fbe98f273
imul r11, r9
mov rdi, rdx
imul rdi, r9
mov r9, r11
xor r9, rbx
mov r14, qword [r15 + r13 + 0x28]
add r8, r14
mov rdx, r8
add rdx, rdi
add rcx, r10
movabs r8, 0xb492b66fbe98f273
imul rsi, r8
mov rdi, qword [r15 + r13 + 0x18]
add rsi, qword [r15 + r13]
add r10, rdi
add r10, rsi
add r10, r9
rol r10, 0x2b
add rax, rbp
add rax, rsi
mov r8, rax
rol r8, 0x14
add rsi, r8
add rsi, r10
rol rcx, 0x1f
mov r8, rax
mov r11, rcx
movabs rax, 0xb492b66fbe98f273
imul r11, rax
add r8, rdi
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 r14, qword [rsp + 0x38]
add r14, rbx
mov rcx, r14
rol rcx, 0x14
add rbx, rcx
rol rbp, 0x2b
add rbx, rbp
mov r10, r14
add r10, rax
add r13, 0x40
cmp qword [rsp + 0x48], r13
jne 0x140048670
xor rsi, rbx
movabs rdi, 0x9ddfea08eb382d69
imul rsi, rdi
xor rbx, rsi
shr rsi, 0x2f
xor rsi, rbx
imul rsi, rdi
mov rax, rsi
shr rax, 0x2f
xor rax, rsi
imul rax, rdi
add rax, r11
xor r8, r10
imul r8, rdi
xor r10, r8
shr r8, 0x2f
xor r8, r10
imul r8, rdi
mov rcx, r8
shr rcx, 0x2f
xor rcx, r8
imul rcx, rdi
mov r8, rdx
shr r8, 0x2f
xor r8, rdx
movabs rdx, 0xb492b66fbe98f273
imul r8, rdx
add r8, r9
add r8, rcx
xor r8, rax
imul r8, rdi
xor rax, r8
shr r8, 0x2f
xor r8, rax
imul r8, rdi
mov rbx, r8
shr rbx, 0x2f
xor rbx, r8
imul rbx, rdi
mov rdi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x30]
jmp 0x1400480c1
mov rcx, qword [rsp + 0x50]
call fcn.140091a2c
jmp 0x1400484c1
ud2
call fcn.140091a2c
jmp 0x14004844a
lea r10, [rbp + 0x10]
mov rcx, qword [r8 + 8]
mov rax, r15
shr rax, 1
movabs rdx, 0x5555555555555555
and rdx, rax
mov rax, r15
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 0x140048a72
cmp rcx, r15
jb 0x14004889c
mov rax, rcx
xor edx, edx
div r15
mov rcx, rdx
mov rax, qword [rbp]
mov qword [rax + rcx*8], r10
mov r10, qword [r8]
test r10, r10
je 0x140048471
lea r11, [r15 - 1]
mov rax, qword [r10 + 8]
cmp r9d, 1
jbe 0x140048a6a
cmp rax, r15
jb 0x1400488cf
xor edx, edx
div r15
mov rax, rdx
cmp rax, rcx
je 0x140048918
mov rdx, qword [rbp]
cmp qword [rdx + rax*8], 0
jne 0x1400488f6
mov qword [rdx + rax*8], r8
mov r8, r10
mov r10, qword [r10]
mov rcx, rax
test r10, r10
jne 0x1400488b4
jmp 0x140048471
mov rdx, qword [r10]
mov qword [r8], rdx
mov rdx, qword [rbp]
mov rdx, qword [rdx + rax*8]
mov rdx, qword [rdx]
mov qword [r10], rdx
mov rdx, qword [rbp]
mov rax, qword [rdx + rax*8]
mov qword [rax], r10
mov r10, r8
mov rax, rcx
jmp 0x1400488e3
lea rax, [r15 - 1]
test r15, rax
je 0x140048935
mov rcx, r15
call fcn.14003a228
mov r15, rax
mov rsi, qword [rbp + 8]
cmp r15, rsi
jbe 0x14004894c
mov rax, r15
shr rax, 0x3d
je 0x14004842c
call fcn.1400e6945
cmp r15, rsi
jae 0x140048471
mov rax, qword [rbp + 0x18]
test rax, rax
jns 0x140048978
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
addss xmm0, xmm0
jmp 0x140048980
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
mov rax, qword [rsp + 0x30]
divss xmm0, dword [rax + 0x20]
call fcn.1400ac3f0
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x140163d80]
cvttss2si rax, xmm0
sar rdx, 0x3f
and rax, rdx
or rax, rcx
cmp rsi, 3
jb 0x140048a38
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 0x140048a38
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 0x140048a43
mov rcx, rax
call fcn.14003a228
mov rdx, rax
cmp r15, rdx
cmova rdx, r15
cmp rdx, rsi
mov r12, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x30]
jae 0x140048471
mov rcx, rbp
call fcn.140108aa0
jmp 0x140048471
and rax, r11
jmp 0x1400488cf
lea rax, [r15 - 1]
and rcx, rax
jmp 0x14004889c