Function at 0x1402c91f0
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rbp
push rdi
push r12
push r13
push r15
lea rbp, [r11 - 0xb8]
sub rsp, 0x190
mov rax, qword [0x140424a38]
xor rax, rsp
mov qword [rbp + 0x70], rax
xor r15d, r15d
mov qword [rsp + 0x40], r8
mov r12, r8
mov r13, rdx
mov rdi, rcx
test r8, r8
je 0x1402c9540
mov qword [r11 + 0x20], rbx
mov ebx, dword [rcx + 0x270]
mov qword [r11 - 0x30], rsi
mov qword [r11 - 0x38], r14
mov ecx, ebx
mov rbx, r12
sub rbx, r15
cmp rcx, rbx
jae 0x1402c9502
test ecx, ecx
je 0x1402c9290
mov eax, dword [rdi + 0x274]
lea rdx, [rdi + 0x278]
sub eax, ecx
mov r8d, ecx
add rdx, rax
mov rcx, r13
call fcn.140328640
mov eax, dword [rdi + 0x270]
add r15, rax
mov dword [rdi + 0x270], 0
add r13, rax
nop dword [rax + rax]
mov rsi, qword [rdi + 0x10]
lea rdx, [rsp + 0x30]
mov r14, qword [rdi]
mov rcx, rsi
mov r8d, 4
call r14
cmp rax, 4
jne 0x1402c9528
mov ebx, eax
mov dword [rsp + 0x34], ebx
nop dword [rax + rax]
cmp byte [rsp + 0x30], 0x4f
movzx eax, byte [rsp + 0x33]
movzx ecx, byte [rsp + 0x32]
movzx edx, byte [rsp + 0x31]
jne 0x1402c931d
cmp dl, 0x67
jne 0x1402c931d
cmp cl, dl
jne 0x1402c931d
cmp al, 0x53
jne 0x1402c931d
lea rax, [rsp + 0x38]
mov dword [rsp + 0x38], 0x5fb0a94f
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x50]
mov rdx, rsi
mov rcx, r14
call fcn.1402cd1a0
test eax, eax
je 0x1402c934b
cmp eax, 0xffffff80
jne 0x1402c9528
mov ebx, dword [rsp + 0x34]
jmp 0x1402c92c0
mov byte [rsp + 0x30], dl
mov r8d, 1
mov byte [rsp + 0x31], cl
lea rdx, [rsp + 0x33]
mov rcx, rsi
mov byte [rsp + 0x32], al
call r14
cmp rax, 1
jne 0x1402c9528
inc ebx
jmp 0x1402c92b4
mov eax, dword [rsp + 0x34]
xor edx, edx
add qword [rdi + 0x18], rax
xor r8d, r8d
movzx r10d, byte [rsp + 0x6c]
xor r11d, r11d
xor ecx, ecx
cmp r10, 2
jb 0x1402c9388
lea r9, [r10 - 1]
nop dword [rax]
movzx eax, byte [rsp + rcx + 0x6d]
add edx, eax
movzx eax, byte [rsp + rcx + 0x6e]
add r8d, eax
add rcx, 2
cmp rcx, r9
jl 0x1402c9370
cmp rcx, r10
jge 0x1402c9393
movzx r11d, byte [rsp + rcx + 0x6d]
lea ebx, [rdx + r8]
add ebx, r11d
cmp ebx, 0xff1b
ja 0x1402c9290
mov eax, dword [rdi + 0x28]
cmp dword [rsp + 0x60], eax
je 0x1402c9412
test ebx, ebx
je 0x1402c9290
cmp rbx, 0x7fffffff
jbe 0x1402c93f2
mov rcx, qword [rdi + 0x10]
mov edx, 0x7fffffff
mov r8d, 1
call qword [rdi + 8]
test eax, eax
je 0x1402c9528
add qword [rdi + 0x18], 0x7fffffff
sub rbx, 0x7fffffff
cmp rbx, 0x7fffffff
ja 0x1402c93c0
mov rcx, qword [rdi + 0x10]
mov r8d, 1
mov edx, ebx
call qword [rdi + 8]
test eax, eax
je 0x1402c9528
add qword [rdi + 0x18], rbx
jmp 0x1402c9290
mov rcx, qword [rdi + 0x10]
lea rsi, [rdi + 0x278]
mov rdx, rsi
mov r8d, ebx
mov r14d, ebx
call qword [rdi]
add qword [rdi + 0x18], rax
cmp rax, r14
jne 0x1402c9528
mov edx, dword [rsp + 0x38]
mov dword [rdi + 0x274], ebx
test ebx, ebx
je 0x1402c9472
lea r12, [0x140423c60]
nop word [rax + rax]
movzx eax, byte [rsi]
lea rsi, [rsi + 1]
mov ecx, edx
shr rcx, 0x18
xor rcx, rax
shl edx, 8
xor edx, dword [r12 + rcx*4]
sub r14, 1
jne 0x1402c9450
mov r12, qword [rsp + 0x40]
cmp edx, dword [rsp + 0x68]
jne 0x1402c9290
lea rax, [rdi + 0x150]
mov edx, 2
lea rcx, [rsp + 0x50]
nop dword [rax]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x1402c9490
mov dword [rdi + 0x270], ebx
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm1
cmp r15, r12
jb 0x1402c9243
jmp 0x1402c9528
mov eax, dword [rdi + 0x274]
lea rdx, [rdi + 0x278]
sub eax, ecx
mov r8, rbx
add rdx, rax
mov rcx, r13
call fcn.140328640
sub dword [rdi + 0x270], ebx
mov r15, r12
mov rsi, qword [rsp + 0x188]
mov rbx, qword [rsp + 0x1d8]
mov r14, qword [rsp + 0x180]
mov rax, r15
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140322a80
add rsp, 0x190
pop r15
pop r13
pop r12
pop rdi
pop rbp
ret