Function at 0x1402f1620
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x140462cc0]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbp, qword [rsp + 0x108]
mov rsi, rcx
mov rdi, qword [rsp + 0x118]
mov rcx, rbp
mov dword [rsp + 0x34], r9d
mov r14, r8
mov qword [rsp + 0x38], r8
mov ebx, edx
mov r13d, 1
call fcn.140245490
movsxd r12, eax
test eax, eax
js 0x1402f199a
call fcn.1402d31e0
mov r15, rax
test rax, rax
je 0x1402f199a
test rsi, rsi
jne 0x1402f16a2
lea rsi, [0x140400661]
xor ebx, ebx
jmp 0x1402f16b9
cmp ebx, 0xffffffff
jne 0x1402f16b9
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rsi + rbx], 0
jne 0x1402f16b0
mov r9, rbp
mov qword [rsp + 0x20], 0
mov r8d, ebx
mov rdx, rsi
mov rcx, r15
call fcn.1402d3350
test eax, eax
je 0x1402f1992
call fcn.1402d31e0
mov rsi, rax
test rax, rax
je 0x1402f1992
mov ecx, dword [rsp + 0x110]
test ecx, ecx
je 0x1402f1973
nop dword [rax + rax]
cmp ecx, r12d
mov byte [rsp + 0x33], r13b
mov ebx, ecx
mov eax, r13d
cmovg ebx, r12d
mov rdx, r15
shr eax, 0x18
mov rcx, rsi
mov byte [rsp + 0x30], al
mov eax, r13d
shr eax, 0x10
mov byte [rsp + 0x31], al
mov eax, r13d
shr eax, 8
mov byte [rsp + 0x32], al
call fcn.1402d3920
test eax, eax
je 0x1402f198a
movsxd r8, dword [rsp + 0x34]
mov rdx, r14
mov rcx, rsi
call fcn.1402d3650
test eax, eax
je 0x1402f198a
mov r8d, 4
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1402d3650
test eax, eax
je 0x1402f198a
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1402d3670
test eax, eax
je 0x1402f198a
movsxd r14, ebx
lea rdx, [rsp + 0x40]
mov r8, r14
mov rcx, rdi
call fcn.1403766a0
mov ebp, 1
cmp dword [rsp + 0x100], ebp
jle 0x1402f1950
nop
mov rdx, r15
mov rcx, rsi
call fcn.1402d3920
test eax, eax
je 0x1402f198a
mov r8, r12
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1402d3650
test eax, eax
je 0x1402f198a
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1402d3670
test eax, eax
je 0x1402f198a
xor edx, edx
test ebx, ebx
jle 0x1402f190e
cmp ebx, 8
jb 0x1402f190e
lea eax, [rbx - 1]
movsxd rcx, eax
lea rax, [rsp + 0x40]
add rax, rcx
lea r8, [rcx + rdi]
cmp rdi, rax
ja 0x1402f182b
lea rax, [rsp + 0x40]
cmp r8, rax
jae 0x1402f190e
cmp ebx, 0x40
jb 0x1402f18c2
mov ecx, ebx
and ecx, 0x8000003f
jge 0x1402f1845
dec ecx
or ecx, 0xffffffc0
inc ecx
mov eax, ebx
sub eax, ecx
lea rcx, [rsp + 0x40]
movsxd r9, eax
sub rcx, rdi
lea r8, [rsp + 0x50]
sub r8, rdi
lea rax, [rdi + 0x20]
movdqu xmm0, xmmword [rax - 0x20]
add rdx, 0x40
movdqu xmm1, xmmword [rcx + rax - 0x20]
movdqu xmm2, xmmword [rcx + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x60], xmm1
movdqu xmm0, xmmword [rax - 0x50]
movdqu xmm1, xmmword [r8 + rax - 0x60]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x50], xmm1
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmm1, xmmword [r8 + rax - 0x40]
xorps xmm2, xmm0
movdqu xmmword [rax - 0x40], xmm2
movdqu xmm0, xmmword [rax - 0x30]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
cmp rdx, r9
jl 0x1402f1860
mov eax, ebx
and al, 0x3f
cmp al, 8
jb 0x1402f190e
mov ecx, ebx
and ecx, 0x80000007
jge 0x1402f18d3
dec ecx
or ecx, 0xfffffff8
inc ecx
mov eax, ebx
sub eax, ecx
lea rcx, [rsp + 0x40]
movsxd r8, eax
sub rcx, rdi
lea rax, [rdx + rdi]
nop word [rax + rax]
movq xmm0, qword [rax]
add rdx, 8
movq xmm1, qword [rax + rcx]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rax - 8], xmm1
cmp rdx, r8
jl 0x1402f18f0
cmp rdx, r14
jge 0x1402f1941
lea r9, [rsp + 0x40]
mov r8, r14
sub r9, rdi
lea rax, [rdx + rdi]
sub r8, rdx
nop word [rax + rax]
movzx ecx, byte [rax + r9]
xor byte [rax], cl
lea rax, [rax + 1]
sub r8, 1
jne 0x1402f1930
inc ebp
cmp ebp, dword [rsp + 0x100]
jl 0x1402f17b0
mov ecx, dword [rsp + 0x110]
add rdi, r14
mov r14, qword [rsp + 0x38]
sub ecx, ebx
inc r13d
mov dword [rsp + 0x110], ecx
test ecx, ecx
jne 0x1402f1700
mov rcx, rsi
call fcn.1402d32e0
mov rcx, r15
call fcn.1402d32e0
mov eax, 1
jmp 0x1402f199c
mov rcx, rsi
call fcn.1402d32e0
mov rcx, r15
call fcn.1402d32e0
xor eax, eax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140170e40
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret