Function at 0x140015d50
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x140063040]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, r8
mov r14, rdx
mov rsi, rcx
mov qword [rsp + 0x28], rcx
xor ebx, ebx
add rdx, 0xaf0
lea r9d, [rbx + 8]
lea r8, [rsp + 0x28]
mov rcx, qword [0x140113580]
call fcn.140051140
lea rdx, [rdi + 0x10]
lea r9d, [rbx + 4]
lea r8, [rsp + 0x24]
mov rcx, qword [0x140113580]
call fcn.140051140
movsxd rbp, dword [rsp + 0x24]
test ebp, ebp
jne 0x140015e11
mov eax, dword [0x14005a2c0]
mov dword [rsp + 0x24], eax
cmp byte [0x14005a2c3], bl
je 0x14001600d
cmp dword [0x140063090], 2
jge 0x140015f5f
lea r8, [rsp + 0x24]
mov eax, 0x94f2095
imul ebx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx edx, bl
sub dl, cl
add dl, 0x33
xor byte [r8], dl
inc ebx
lea r8, [r8 + 1]
cmp ebx, 4
jl 0x140015de0
jmp 0x14001600d
lea rdx, [rdi + 8]
mov r9d, 8
lea r8, [rsp + 0x28]
mov rcx, qword [0x140113580]
call fcn.140051140
lea eax, [rbp - 1]
cmp eax, 0x1d
ja 0x140015f3c
test r14, r14
je 0x140015f3c
test rdi, rdi
je 0x140015f3c
mov eax, 2
mul rbp
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400520a8
mov r14, rax
lea r9, [rbp*2]
mov r8, rax
mov rdx, qword [rsp + 0x28]
mov rcx, qword [0x140113580]
call fcn.140051140
lea edx, [rbp - 1]
mov rcx, r14
and edx, 3
lea eax, [rbp - 1]
cmp ebx, eax
jge 0x140015ea9
add edx, 3
inc ebx
movzx eax, dx
and ax, 7
add word [rcx], ax
add rcx, 2
jmp 0x140015e8d
mov rdx, r14
lea rcx, [rsp + 0x30]
call fcn.1400201d0
nop
mov rcx, r14
call fcn.140051d0c
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x40]
cmp qword [rsp + 0x48], 7
jbe 0x140015edc
mov rdx, qword [rsp + 0x30]
lea r8, [rdx + rax*2]
jmp 0x140015ee5
lea r8, [rcx + rax*2]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400208c0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x14001601a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015f32
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140015f32
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140051d0c
jmp 0x14001601a
mov eax, dword [0x14005a2c0]
mov dword [rsp + 0x24], eax
cmp byte [0x14005a2c3], bl
je 0x14001600d
cmp dword [0x140063090], 2
jl 0x140015fdd
movdqa xmm3, xmmword [0x14005ac30]
movdqa xmm2, xmm3
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x14005acf0]
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x14005acf0]
shufps xmm2, xmm0, 0xdd
psrad xmm2, 1
movdqa xmm0, xmm2
psrld xmm0, 0x1f
paddd xmm0, xmm2
pmulld xmm0, xmmword [0x14005ac70]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14005ace0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x14005ad10]
movd xmm0, eax
xorps xmm2, xmm0
movd dword [rsp + 0x24], xmm2
jmp 0x14001600d
lea r8, [rsp + 0x24]
mov eax, 0x94f2095
imul ebx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, bl
sub al, cl
add al, 0x33
xor byte [r8], al
inc ebx
lea r8, [r8 + 1]
cmp ebx, 4
jl 0x140015fe2
lea rdx, [rsp + 0x24]
mov rcx, rsi
call fcn.140002f00
mov rax, rsi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140051cb0
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret