Function at 0x1402f5cf0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x14045eb18]
xor rax, rsp
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0xd0]
xor edi, edi
mov r13, qword [rbp + 0xc0]
mov rsi, r8
mov r12, qword [rbp + 0xe8]
mov r15, r9
shr rsi, 3
mov rbx, rdx
mov qword [rbp - 0x40], rax
mov rax, qword [rbp + 0xe0]
mov qword [rbp - 0x48], rax
lea eax, [rsi - 0x14]
mov qword [rbp - 0x58], rcx
mov rcx, qword [rbp + 0xd8]
mov qword [rsp + 0x40], r9
mov qword [rbp - 0x78], r13
mov qword [rbp - 0x50], rcx
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x34], edi
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x38], rdi
mov qword [rbp - 0x68], 2
test eax, 0xfffffff3
jne 0x1402f657e
cmp esi, 0x18
je 0x1402f657e
mov qword [rsp + 0x158], r14
test r9, r9
jne 0x1402f5dd5
cmp esi, 0x14
jne 0x1402f5db2
call fcn.1401c0f90
mov r15, rax
mov qword [rsp + 0x40], rax
jmp 0x1402f5ddf
cmp esi, 0x1c
jne 0x1402f5dc6
call fcn.1401c0fa0
mov r15, rax
mov qword [rsp + 0x40], rax
jmp 0x1402f5ddf
call fcn.1401c0fb0
mov r15, rax
mov qword [rsp + 0x40], rax
jmp 0x1402f5ddf
mov rcx, r9
call fcn.140243110
mov esi, eax
mov eax, 0x200
movsxd r14, esi
cmp rbx, rax
cmovae rax, rbx
add rax, 0x3f
and rax, 0xffffffffffffffc0
mov qword [rsp + 0x78], rax
test r13, r13
je 0x1402f5e60
mov r8, qword [rbp + 0xc8]
cmp r8, r14
jae 0x1402f5e50
mov edx, 0x7d
mov dword [rsp + 0x20], edi
lea r9, [0x1403fcc4b]
lea ecx, [rdx - 0x73]
lea r8d, [rdx - 0xf]
call fcn.1401d6610
xor eax, eax
mov r14, qword [rsp + 0x158]
mov rcx, qword [rbp + 0x48]
xor rcx, rsp
call fcn.14016e250
add rsp, 0x160
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
cmova r8, r14
lea rcx, [rbp + 0x28]
mov rdx, r13
call fcn.14033b0d0
call fcn.14023b0e0
mov qword [rsp + 0x70], rax
test rax, rax
je 0x1402f6557
call fcn.14024da00
mov qword [rsp + 0x38], rax
mov rbx, rax
test rax, rax
je 0x1402f6557
mov rcx, rax
call fcn.14024db80
mov rcx, rbx
call fcn.14024dc90
mov rcx, rbx
mov rdi, rax
call fcn.14024dc90
mov rcx, rbx
mov qword [rsp + 0x68], rax
call fcn.14024dc90
mov rcx, rbx
mov qword [rbp - 0x80], rax
call fcn.14024dc90
mov rcx, rbx
mov qword [rsp + 0x48], rax
call fcn.14024dc90
mov rcx, rbx
mov qword [rsp + 0x50], rax
call fcn.14024dc90
mov rcx, rbx
mov qword [rbp - 0x60], rax
call fcn.14024dc90
mov rcx, rbx
mov qword [rsp + 0x60], rax
call fcn.14024dc90
mov qword [rbp - 0x70], rax
mov rbx, rax
test rax, rax
je 0x1402f6557
call fcn.1401bbae0
mov r8, qword [rsp + 0x78]
mov rdx, rax
dec r8d
mov rcx, rbx
call fcn.1402997d0
test eax, eax
je 0x1402f6557
mov r8d, dword [rsp + 0x30]
xor ebx, ebx
test r13, r13
mov rcx, r12
sete bl
xor edx, edx
call fcn.14030cfc0
inc dword [rsp + 0x30]
test eax, eax
je 0x1402f6557
test r13, r13
jne 0x1402f5f5d
mov edx, esi
lea rcx, [rbp + 0x28]
call fcn.1401d4050
test eax, eax
jle 0x1402f6557
jmp 0x1402f5f65
mov qword [rbp - 0x78], 0
mov r8, r14
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 8]
call fcn.14033b0d0
mov r8, r14
lea rdx, [rbp + 0x28]
lea rcx, [rbp - 0x18]
call fcn.14033b0d0
lea r13, [r14 - 1]
mov rax, r13
test r13, r13
js 0x1402f5f9e
add byte [rbp + rax + 8], 1
jne 0x1402f5f9e
sub rax, 1
jns 0x1402f5f91
mov qword [rsp + 0x28], 0
lea r8, [rbp - 0x38]
xor r9d, r9d
mov qword [rsp + 0x20], r15
mov rdx, r14
lea rcx, [rbp + 0x28]
call fcn.1401c08e0
test eax, eax
je 0x1402f6557
mov qword [rsp + 0x28], 0
lea r8, [rbp - 0x18]
xor r9d, r9d
mov qword [rsp + 0x20], r15
mov rdx, r14
lea rcx, [rbp + 8]
call fcn.1401c08e0
test eax, eax
je 0x1402f6557
xor ecx, ecx
test esi, esi
jle 0x1402f60ce
cmp esi, 8
jb 0x1402f60ce
cmp esi, 0x40
jb 0x1402f6095
mov edx, esi
and edx, 0x8000003f
jge 0x1402f601d
dec edx
or edx, 0xffffffc0
inc edx
mov eax, esi
sub eax, edx
movsxd rdx, eax
nop dword [rax]
nop dword [rax + rax]
movdqu xmm0, xmmword [rbp + rcx - 0x38]
movdqu xmm1, xmmword [rbp + rcx - 0x18]
xorps xmm1, xmm0
movdqu xmmword [rbp + rcx - 0x38], xmm1
movdqu xmm0, xmmword [rbp + rcx - 0x28]
movdqu xmm1, xmmword [rbp + rcx - 8]
xorps xmm1, xmm0
movdqu xmmword [rbp + rcx - 0x28], xmm1
movdqu xmm0, xmmword [rbp + rcx - 0x18]
movdqu xmm1, xmmword [rbp + rcx + 8]
xorps xmm1, xmm0
movdqu xmmword [rbp + rcx - 0x18], xmm1
movdqu xmm0, xmmword [rbp + rcx - 8]
movdqu xmm1, xmmword [rbp + rcx + 0x18]
xorps xmm1, xmm0
movdqu xmmword [rbp + rcx - 8], xmm1
add rcx, 0x40
cmp rcx, rdx
jl 0x1402f6030
mov eax, esi
and al, 0x3f
cmp al, 8
jb 0x1402f60ce
mov edx, esi
and edx, 0x80000007
jge 0x1402f60a6
dec edx
or edx, 0xfffffff8
inc edx
mov eax, esi
sub eax, edx
movsxd rdx, eax
nop dword [rax]
movq xmm0, qword [rbp + rcx - 0x38]
movq xmm1, qword [rbp + rcx - 0x18]
xorps xmm1, xmm0
movq qword [rbp + rcx - 0x38], xmm1
add rcx, 8
cmp rcx, rdx
jl 0x1402f60b0
cmp rcx, r14
jge 0x1402f60f1
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbp + rcx - 0x18]
xor byte [rbp + rcx - 0x38], al
inc rcx
cmp rcx, r14
jl 0x1402f60e0
or byte [rbp - 0x38], 0x80
lea rcx, [rbp - 0x38]
mov r8, qword [rsp + 0x48]
mov edx, esi
or byte [rbp + r14 - 0x39], 1
call fcn.1401bbed0
test rax, rax
je 0x1402f6557
mov r8, qword [rsp + 0x38]
mov r9d, ebx
mov rcx, qword [rsp + 0x48]
mov edx, 0x40
mov qword [rsp + 0x20], r12
call fcn.14030d540
test eax, eax
jg 0x1402f6143
jne 0x1402f6557
mov r13, qword [rbp - 0x78]
jmp 0x1402f5f20
xor r8d, r8d
mov rcx, r12
lea edx, [r8 + 2]
call fcn.14030cfc0
test eax, eax
je 0x1402f6557
xor r8d, r8d
mov rcx, r12
lea edx, [r8 + 3]
call fcn.14030cfc0
test eax, eax
je 0x1402f6557
mov rcx, qword [rsp + 0x78]
movabs rax, 0xcccccccccccccccd
mov rbx, qword [rbp - 0x80]
dec rcx
mul rcx
xor r12d, r12d
mov r15, rdx
shr r15, 7
test r12d, r12d
je 0x1402f61b0
mov rcx, qword [rsp + 0x58]
mov r8d, r12d
xor edx, edx
call fcn.14030cfc0
test eax, eax
je 0x1402f6557
xor edx, edx
mov rcx, rbx
call fcn.1401bc1b0
xor ebx, ebx
test r15d, r15d
js 0x1402f6263
mov rax, r13
test r13, r13
js 0x1402f61dd
nop dword [rax]
add byte [rbp + rax + 8], 1
jne 0x1402f61dd
sub rax, 1
jns 0x1402f61d0
mov rax, qword [rsp + 0x40]
lea r8, [rbp - 0x38]
mov qword [rsp + 0x28], 0
lea rcx, [rbp + 8]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov rdx, r14
call fcn.1401c08e0
test eax, eax
je 0x1402f6557
mov r8, rdi
lea rcx, [rbp - 0x38]
mov edx, esi
call fcn.1401bbed0
test rax, rax
je 0x1402f6557
lea r8d, [rsi*8]
mov rdx, rdi
imul r8d, ebx
mov rcx, rdi
call fcn.1402997d0
test eax, eax
je 0x1402f6557
mov rdx, qword [rbp - 0x80]
mov r8, rdi
mov rcx, rdx
call fcn.14024e110
test eax, eax
je 0x1402f6557
inc ebx
cmp ebx, r15d
jle 0x1402f61c5
mov rdx, qword [rsp + 0x78]
mov rbx, qword [rbp - 0x80]
dec edx
mov rcx, rbx
call fcn.1401bc360
test eax, eax
je 0x1402f6557
mov rcx, qword [rsp + 0x50]
mov rdx, rbx
call fcn.1401bbe40
test rax, rax
je 0x1402f6557
mov rdx, qword [rsp + 0x50]
mov r8, qword [rbp - 0x70]
mov rcx, rdx
call fcn.14024e110
test eax, eax
je 0x1402f6557
mov rdx, qword [rsp + 0x48]
mov rcx, rdi
call fcn.140299950
test eax, eax
je 0x1402f6557
mov rax, qword [rsp + 0x38]
mov r9, rdi
mov r8, qword [rsp + 0x50]
xor ecx, ecx
mov rdx, qword [rbp - 0x60]
mov qword [rsp + 0x20], rax
call fcn.14029c180
test eax, eax
je 0x1402f6557
call fcn.1401bbae0
mov rdx, qword [rbp - 0x60]
mov r8, rax
mov rcx, rdi
call fcn.14024dea0
test eax, eax
je 0x1402f6557
mov rdx, qword [rsp + 0x50]
mov r8, rdi
mov rcx, qword [rsp + 0x60]
call fcn.14024dea0
test eax, eax
je 0x1402f6557
mov rdx, qword [rbp - 0x70]
mov rcx, qword [rsp + 0x60]
call fcn.1401bc230
test eax, eax
js 0x1402f635c
mov rax, qword [rsp + 0x58]
mov r9d, 1
mov r8, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x3f]
call fcn.14030d540
test eax, eax
jg 0x1402f637f
jne 0x1402f6557
inc r12d
cmp r12d, 0x1000
jl 0x1402f6194
mov r15, qword [rsp + 0x40]
mov r12, qword [rsp + 0x58]
mov r13, qword [rbp - 0x78]
jmp 0x1402f5f20
mov rbx, qword [rsp + 0x58]
mov edx, 2
mov rcx, rbx
lea r8d, [rdx - 1]
call fcn.14030cfc0
test eax, eax
je 0x1402f6557
call fcn.1401bbae0
mov r15, qword [rsp + 0x60]
mov r8, rax
mov r13, qword [rbp - 0x70]
mov rdx, r15
mov rcx, r13
call fcn.14024dea0
test eax, eax
je 0x1402f6557
mov rsi, qword [rsp + 0x38]
mov r8, r13
mov r9, qword [rsp + 0x48]
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call fcn.14029c180
test eax, eax
je 0x1402f6557
mov edx, 2
mov rcx, r13
call fcn.1401bc1b0
test eax, eax
je 0x1402f6557
mov rcx, qword [rsp + 0x70]
mov r8, rsi
mov rdx, r15
call fcn.14023b290
test eax, eax
je 0x1402f6557
mov rax, qword [rsp + 0x70]
mov r9, r15
mov rcx, qword [rsp + 0x68]
mov r8, rdi
mov qword [rsp + 0x28], rax
mov rdx, r13
mov qword [rsp + 0x20], rsi
call fcn.1402b29d0
test eax, eax
je 0x1402f6557
nop dword [rax]
mov rcx, qword [rsp + 0x68]
call fcn.1401bba70
test eax, eax
je 0x1402f6497
call fcn.1401bbae0
mov r8, rax
mov rdx, r13
mov rcx, r13
call fcn.14024e110
test eax, eax
je 0x1402f6557
mov rax, qword [rsp + 0x70]
mov r9, r15
mov rcx, qword [rsp + 0x68]
mov r8, rdi
inc dword [rbp - 0x68]
mov rdx, r13
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call fcn.1402b29d0
test eax, eax
jne 0x1402f6440
jmp 0x1402f6557
mov edx, 3
mov rcx, rbx
lea r8d, [rdx - 2]
call fcn.14030cfc0
test eax, eax
je 0x1402f6557
mov dword [rsp + 0x34], 1
nop dword [rax + rax]
mov rbx, qword [rbp - 0x58]
mov rcx, qword [rbx + 8]
call fcn.1401bc2c0
mov rcx, qword [rbx + 0x10]
call fcn.1401bc2c0
mov rcx, qword [rbx + 0x18]
call fcn.1401bc2c0
mov rcx, r15
call fcn.1401bc3e0
mov rcx, qword [rsp + 0x48]
mov qword [rbx + 8], rax
call fcn.1401bc3e0
mov rcx, qword [rsp + 0x68]
mov qword [rbx + 0x10], rax
call fcn.1401bc3e0
cmp qword [rbx + 8], 0
mov qword [rbx + 0x18], rax
je 0x1402f654f
cmp qword [rbx + 0x10], 0
je 0x1402f654f
test rax, rax
je 0x1402f654f
mov rax, qword [rbp - 0x50]
test rax, rax
je 0x1402f6526
mov dword [rax], r12d
mov rdx, qword [rbp - 0x48]
test rdx, rdx
je 0x1402f6535
mov rax, qword [rbp - 0x68]
mov dword [rdx], eax
mov rax, qword [rbp - 0x40]
test rax, rax
je 0x1402f6557
mov r8, r14
lea rdx, [rbp + 0x28]
mov rcx, rax
call fcn.14033b0d0
jmp 0x1402f6557
mov dword [rsp + 0x34], 0
mov rcx, qword [rsp + 0x38]
call fcn.14024de20
mov rcx, qword [rsp + 0x38]
call fcn.14024dad0
mov rcx, qword [rsp + 0x70]
call fcn.14023b240
mov eax, dword [rsp + 0x34]
jmp 0x1402f5e2a
xor eax, eax
jmp 0x1402f5e32