Function at 0x140041330
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 rsi, rdx
mov rdi, rcx
mov rax, qword [0x14018c040]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, qword [rcx + 0x18]
inc rbx
cmp byte [r8 + 0x17], 0
js 0x140041377
mov rax, qword [r8 + 0x10]
mov qword [rsp + 0x60], rax
movups xmm0, xmmword [r8]
movaps xmmword [rsp + 0x50], xmm0
jmp 0x140041388
mov rdx, qword [r8]
mov r8, qword [r8 + 8]
lea rcx, [rsp + 0x50]
call fcn.140020908
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x68], rbx
movsx rdx, byte [rsp + 0x67]
mov rax, qword [rsp + 0x50]
test rdx, rdx
js 0x140041487
lea r14, [rsp + 0x50]
mov r15, rdx
jmp 0x14004148f
mov eax, dword [r14]
mov ecx, dword [r14 + r15 - 4]
lea rax, [r15 + 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 0x140041514
movabs rcx, 0xb492b66fbe98f273
imul rcx, qword [r14]
test dl, dl
lea rdx, [rsp + 0x50]
cmovs rdx, rax
mov r8, qword [rdx + 8]
movabs rax, 0x9ae16a3b2f90404f
imul rax, qword [r14 + r15 - 8]
movabs r9, 0xc3a5c85c97cb3127
imul r9, qword [r14 + r15 - 0x10]
movabs rdx, 0xc949d7c7509e6557
xor rdx, r8
rol rdx, 0x2c
add rdx, rcx
add rdx, r15
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 0x140041510
mov r15, qword [rsp + 0x58]
mov r14, rax
cmp r15, 0x20
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdx
ja 0x1400418e3
cmp r15, 0x10
ja 0x1400413f1
cmp r15, 9
jae 0x140041598
cmp r15, 4
jae 0x1400413b3
movabs rbx, 0x9ae16a3b2f90404f
test r15, r15
je 0x140041514
movzx eax, byte [r14]
mov rcx, r15
shr rcx, 1
movzx ecx, byte [r14 + rcx]
movzx edx, byte [r14 + r15 - 1]
shl ecx, 8
or rcx, rax
shl edx, 2
or rdx, r15
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 rbp, qword [rdi + 8]
test rbp, rbp
je 0x140041679
mov rax, rbp
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, rbp
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 rsi, 0x101010101010101
imul rsi, rax
shr rsi, 0x38
cmp rsi, 1
jbe 0x1400415df
mov r13, rbx
cmp rbx, rbp
jb 0x1400415e6
mov rax, rbx
xor edx, edx
div rbp
mov r13, rdx
jmp 0x1400415e6
mov rax, qword [r14 + r15 - 8]
lea rdx, [rax + r15]
mov ecx, r15d
ror rdx, cl
mov rcx, qword [r14]
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 0x140041514
lea r13, [rbp - 1]
and r13, rbx
mov rax, qword [rdi]
mov rax, qword [rax + r13*8]
test rax, rax
je 0x140041683
mov r12, qword [rax]
test r12, r12
je 0x140041683
lea rax, [rbp - 1]
mov qword [rsp + 0x20], rax
jmp 0x140041638
cmp rax, rbp
jb 0x14004162a
xor edx, edx
div rbp
mov rax, rdx
jmp 0x14004162a
cmp esi, 1
ja 0x14004160d
and rax, qword [rsp + 0x20]
cmp rax, r13
jne 0x140041683
mov r12, qword [r12]
test r12, r12
je 0x140041683
mov rax, qword [r12 + 8]
cmp rax, rbx
jne 0x140041620
movzx eax, byte [r12 + 0x27]
test al, al
mov r8, qword [r12 + 0x18]
mov rcx, rax
cmovs rcx, r8
cmp rcx, r15
jne 0x14004162f
test al, al
jns 0x1400416f3
mov rcx, qword [r12 + 0x10]
mov rdx, r14
call fcn.1400c4d90
test eax, eax
jne 0x14004162f
jmp 0x140041718
movabs r13, 0xaaaaaaaaaaaaaaaa
mov ecx, 0x30
call fcn.14008eaa0
test rax, rax
mov r15, qword [rsp + 0x28]
je 0x140041c2b
mov r12, rax
xor eax, eax
mov qword [r12], rax
mov qword [r12 + 8], rbx
mov rcx, qword [rsp + 0x60]
mov qword [r12 + 0x20], rcx
movaps xmm0, xmmword [rsp + 0x50]
movups xmmword [r12 + 0x10], xmm0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rax
mov qword [r12 + 0x28], r15
mov rax, qword [rdi + 0x18]
inc rax
jns 0x14004172e
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
addss xmm0, xmm0
jmp 0x140041736
test rax, rax
je 0x140041718
xor ecx, ecx
nop word [rax + rax]
movzx edx, byte [r12 + rcx + 0x10]
cmp dl, byte [r14 + rcx]
jne 0x14004162f
inc rcx
cmp rax, rcx
jne 0x140041700
xor edi, edi
mov rsi, qword [rsp + 0x30]
mov r15, qword [rsp + 0x28]
mov rax, qword [rsp + 0x38]
jmp 0x14004186a
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
mov rcx, rbp
shr rcx, 1
mov eax, ebp
and eax, 1
or rax, rcx
test rbp, rbp
jns 0x140041754
cvtsi2ss xmm1, rax
addss xmm1, xmm1
jmp 0x140041759
cvtsi2ss xmm1, rbp
movss xmm2, dword [rdi + 0x20]
je 0x14004176d
mulss xmm1, xmm2
ucomiss xmm0, xmm1
jbe 0x140041844
divss xmm0, xmm2
call fcn.1400a979c
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x14016cce0]
sar rdx, 0x3f
cvttss2si rax, xmm0
and rax, rdx
or rax, rcx
lea rcx, [rbp*2]
mov r14d, 1
cmp rbp, 3
jb 0x1400417b7
lea rdx, [rbp - 1]
xor r14d, r14d
test rbp, rdx
setne r14b
or r14, rcx
cmp r14, rax
cmovbe r14, rax
cmp r14, 1
jne 0x140041d41
mov r14d, 2
cmp rbp, 2
jae 0x140041d70
lea rcx, [r14*8]
call fcn.14008eaa0
mov rcx, qword [rdi]
mov qword [rdi], rax
test rcx, rcx
jne 0x140041c3c
mov qword [rdi + 8], r14
xor eax, eax
mov rcx, qword [rdi]
mov qword [rcx + rax*8], 0
inc rax
cmp r14, rax
jne 0x1400417fd
mov r8, qword [rdi + 0x10]
test r8, r8
jne 0x140041c46
mov rbp, qword [rdi + 8]
lea r13, [rbp - 1]
test rbp, r13
je 0x140041841
cmp rbx, rbp
jb 0x14004183c
mov rax, rbx
xor edx, edx
div rbp
mov r13, rdx
jmp 0x140041844
mov r13, rbx
jmp 0x140041844
and r13, rbx
mov rcx, qword [rdi]
mov rax, qword [rcx + r13*8]
test rax, rax
mov rsi, qword [rsp + 0x30]
je 0x1400418a2
mov rcx, qword [rax]
mov qword [r12], rcx
mov qword [rax], r12
inc qword [rdi + 0x18]
mov dil, 1
mov al, byte [rsp + 0x67]
test al, al
js 0x140041c2d
test dil, dil
je 0x140041c21
xor dil, 1
mov qword [rsi], r15
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14008ffc0
mov eax, edi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [rdi + 0x10]
mov rax, qword [rdi + 0x10]
mov qword [r12], rax
mov qword [rdi + 0x10], r12
mov qword [rcx + r13*8], rdx
test rax, rax
je 0x14004185f
mov rax, qword [rax + 8]
lea rcx, [rbp - 1]
test rbp, rcx
jne 0x1400418d4
and rax, rcx
shl rax, 3
add rax, qword [rdi]
jmp 0x14004185c
cmp rax, rbp
jb 0x1400418cb
xor edx, edx
div rbp
mov rax, rdx
jmp 0x1400418cb
cmp r15, 0x40
ja 0x1400419c1
test dl, dl
lea r10, [rsp + 0x50]
cmovs r10, rax
mov rdx, qword [r10 + 0x10]
mov r9, qword [r10 + 0x18]
mov rsi, qword [r14 + r15 - 0x10]
lea rcx, [rsi + r15]
movabs rax, 0xc3a5c85c97cb3127
imul rcx, rax
add rcx, qword [r14]
lea r8, [rcx + r9]
rol r8, 0xc
mov r12, rcx
rol r12, 0x1b
add rcx, qword [r10 + 8]
mov r10, rcx
rol r10, 0x39
add rcx, rdx
add rdx, qword [r14 + r15 - 0x20]
mov r11, qword [r14 + r15 - 8]
add r11, r9
lea r13, [r11 + rdx]
rol r13, 0xc
mov rbx, rdx
rol rbx, 0x1b
add rdx, qword [r14 + r15 - 0x18]
add r10, r12
mov r12, rdx
rol r12, 0x39
add rdx, rsi
add r11, rdx
rol rdx, 0x21
add rbx, r9
add rbx, r12
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 0x140041514
movabs rbp, 0xb492b66fbe98f273
movabs rbx, 0x9ddfea08eb382d69
mov r11, qword [r14 + r15 - 0x28]
mov rax, qword [r14 + r15 - 0x10]
mov rcx, qword [r14 + r15 - 0x38]
mov r8, qword [r14 + r15 - 0x30]
lea rdx, [rcx + rax]
mov r10, qword [r14 + r15 - 0x18]
lea rsi, [r8 + r15]
xor rsi, r10
imul rsi, rbx
mov r9, r10
xor r9, rsi
shr rsi, 0x2f
xor rsi, r9
imul rsi, rbx
mov r9, rsi
shr r9, 0x2f
xor r9, rsi
imul r9, rbx
mov rsi, qword [r14 + r15 - 0x40]
add rsi, r15
lea r12, [rsi + r11]
mov qword [rsp + 0x20], r9
add r12, r9
rol r12, 0x2b
add r8, rcx
add r8, rsi
mov rbx, r8
rol rbx, 0x14
add rbx, rsi
add rbx, r12
add r8, r11
mov rcx, qword [r14 + r15 - 0x20]
add rcx, rdx
mov rsi, qword [r14 + r15 - 8]
add rcx, rbp
lea r13, [rsi + r11]
add r13, rcx
rol r13, 0x2b
add r10, rax
add r10, rcx
mov r12, r10
rol r12, 0x14
add r12, rcx
add r12, r13
imul r11, rbp
add r11, qword [r14]
add r10, rsi
lea rax, [r15 - 1]
and rax, 0xffffffffffffffc0
mov qword [rsp + 0x40], rax
xor r13d, r13d
mov rcx, qword [rsp + 0x20]
add r11, r8
add r11, rdx
mov rax, qword [r14 + r13 + 8]
mov rbp, qword [r14 + r13 + 0x10]
add r11, rax
rol r11, 0x1b
add rdx, rbx
mov r9, qword [r14 + r13 + 0x30]
mov qword [rsp + 0x48], r9
add rdx, r9
rol rdx, 0x16
movabs rsi, 0xb492b66fbe98f273
imul r11, rsi
mov r9, rdx
imul r9, rsi
xor r11, r12
mov rsi, qword [r14 + r13 + 0x28]
add r8, rsi
mov rdx, r8
add rdx, r9
add rcx, r10
movabs r8, 0xb492b66fbe98f273
imul rbx, r8
mov r9, qword [r14 + r13 + 0x18]
add rbx, qword [r14 + r13]
add r10, r9
add r10, rbx
mov qword [rsp + 0x20], r11
add r10, r11
rol r10, 0x2b
add rax, rbp
add rax, rbx
mov r8, rax
rol r8, 0x14
add rbx, r8
add rbx, r10
rol rcx, 0x1f
mov r8, rax
mov r11, rcx
movabs rax, 0xb492b66fbe98f273
imul r11, rax
add r8, r9
add r12, r11
mov rax, qword [r14 + r13 + 0x38]
add r12, qword [r14 + r13 + 0x20]
add rbp, rax
add rbp, rdx
add rbp, r12
add rsi, qword [rsp + 0x48]
add rsi, r12
mov rcx, rsi
rol rcx, 0x14
add r12, rcx
rol rbp, 0x2b
add r12, rbp
mov r10, rsi
add r10, rax
add r13, 0x40
cmp qword [rsp + 0x40], r13
jne 0x140041a92
xor rbx, r12
movabs r9, 0x9ddfea08eb382d69
imul rbx, r9
xor r12, rbx
shr rbx, 0x2f
xor rbx, r12
imul rbx, r9
mov rax, rbx
shr rax, 0x2f
xor rax, rbx
imul rax, r9
add rax, r11
xor r8, r10
imul r8, r9
xor r10, r8
shr r8, 0x2f
xor r8, r10
imul r8, r9
mov rcx, r8
shr rcx, 0x2f
xor rcx, r8
imul rcx, r9
mov r8, rdx
shr r8, 0x2f
xor r8, rdx
movabs rdx, 0xb492b66fbe98f273
imul r8, rdx
add r8, qword [rsp + 0x20]
add r8, rcx
xor r8, rax
imul r8, r9
xor rax, r8
shr r8, 0x2f
xor r8, rax
imul r8, r9
mov rbx, r8
shr rbx, 0x2f
xor rbx, r8
imul rbx, r9
jmp 0x140041514
mov r15, qword [r12 + 0x28]
jmp 0x14004187b
ud2
mov rcx, qword [rsp + 0x50]
call fcn.14008eadc
jmp 0x140041872
call fcn.14008eadc
jmp 0x1400417f7
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 0x140041e88
cmp rcx, r14
jb 0x140041cc4
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]
test r10, r10
je 0x14004181d
lea r11, [r14 - 1]
mov rax, qword [r10 + 8]
cmp r9d, 1
jbe 0x140041e80
cmp rax, r14
jb 0x140041cf6
xor edx, edx
div r14
mov rax, rdx
cmp rax, rcx
je 0x140041d3c
mov rdx, qword [rdi]
cmp qword [rdx + rax*8], 0
jne 0x140041d1c
mov qword [rdx + rax*8], r8
mov r8, r10
mov r10, qword [r10]
mov rcx, rax
test r10, r10
jne 0x140041cdb
jmp 0x14004181d
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
jmp 0x140041d09
lea rax, [r14 - 1]
test r14, rax
je 0x140041d59
mov rcx, r14
call fcn.140035f02
mov r14, rax
mov rbp, qword [rdi + 8]
cmp r14, rbp
jbe 0x140041d70
mov rax, r14
shr rax, 0x3d
je 0x1400417db
call fcn.1400e3605
cmp r14, rbp
jae 0x14004181d
mov rax, qword [rdi + 0x18]
test rax, rax
jns 0x140041d9c
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
addss xmm0, xmm0
jmp 0x140041da4
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
divss xmm0, dword [rdi + 0x20]
call fcn.1400a979c
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x14016cce0]
cvttss2si rax, xmm0
sar rdx, 0x3f
and rax, rdx
or rax, rcx
cmp rbp, 3
jb 0x140041e34
mov rcx, rbp
shr rcx, 1
movabs rdx, 0x5555555555555555
and rdx, rcx
mov rcx, rbp
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
jbe 0x140041e41
mov rcx, rax
call fcn.140035f02
mov rdx, rax
jmp 0x140041e5e
lea rcx, [rax - 1]
bsr rcx, rcx
xor ecx, 0x3f
neg cl
mov edx, 1
shl rdx, cl
cmp rax, 2
cmovb rdx, rax
cmp r14, rdx
cmova rdx, r14
cmp rdx, rbp
mov r15, qword [rsp + 0x28]
jae 0x14004181d
mov rcx, rdi
call fcn.14010c1a0
jmp 0x14004181d
and rax, r11
jmp 0x140041cf6
lea rax, [r14 - 1]
and rcx, rax
jmp 0x140041cc4