Function at 0x1400240f0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x140079008]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rax, qword [rcx]
mov r11, rdx
mov r14, qword [rsp + 0xe8]
mov r15, r9
mov rbp, qword [rsp + 0xf8]
mov r10, qword [rsp + 0x100]
mov edx, dword [rax + 4]
mov rbx, qword [rsp + 0x108]
cmp edx, 6
jne 0x140024196
mov rax, qword [rsp + 0x110]
mov rdx, qword [rsp + 0xf0]
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r9
mov r9, r8
mov qword [r10], rdx
mov r8, r11
mov rcx, qword [rcx + 0x50]
call fcn.14003e630
cmp eax, 0xffffffee
mov ecx, 0xffff9d00
cmove eax, ecx
jmp 0x1400244dc
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x88], rdi
cmp edx, 8
jne 0x14002433c
mov rdi, qword [rsp + 0x110]
mov rsi, qword [rsp + 0xf0]
mov qword [r10], rsi
test rdi, rdi
jne 0x1400241d5
mov r9d, 0xfffffff3
mov eax, r9d
jmp 0x1400244cc
mov rcx, qword [rcx + 0x50]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rdi
mov r9, r11
mov qword [rsp + 0x48], rax
mov edx, 1
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r8
mov r8, rsi
call fcn.14003cd90
mov r9d, eax
test eax, eax
jne 0x140024328
xor r9d, r9d
xor r8b, r8b
mov r10d, r9d
cmp rdi, 8
jb 0x1400242d8
mov rdx, rdi
xorps xmm4, xmm4
and rdx, 0xfffffffffffffff8
xorps xmm3, xmm3
mov eax, r9d
nop word [rax + rax]
movd xmm2, dword [rax + rbx]
xorps xmm0, xmm0
movd xmm1, dword [rsp + rax + 0x60]
lea eax, [r8 + 4]
punpcklbw xmm2, xmm0
add r8b, 8
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
movzx ecx, al
por xmm2, xmm4
movzx eax, r8b
movdqa xmm4, xmm2
movd xmm2, dword [rcx + rbx]
movd xmm1, dword [rsp + rcx + 0x60]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
por xmm2, xmm3
movdqa xmm3, xmm2
cmp rax, rdx
jb 0x140024250
por xmm3, xmm4
movdqa xmm0, xmm3
psrldq xmm0, 8
por xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd r10d, xmm3
movzx eax, r8b
cmp rax, rdi
jae 0x1400242fb
movzx edx, byte [rax + rbx]
inc r8b
movzx ecx, byte [rsp + rax + 0x60]
xor edx, ecx
movzx eax, r8b
or r10d, edx
cmp rax, rdi
jb 0x1400242e1
test r10d, r10d
je 0x140024328
test rsi, rsi
je 0x14002439a
mov rax, qword [fcn.14004d760]
mov r8, rsi
xor edx, edx
mov rcx, rbp
call rax
mov r9d, 0xffff9d00
mov eax, r9d
jmp 0x1400244cc
cmp r9d, 0xfffffff1
jne 0x1400243a0
mov r9d, 0xffff9d00
mov eax, r9d
jmp 0x1400244cc
cmp dword [rax], 0x49
jne 0x1400244c7
mov eax, dword [rax + 0x18]
cmp r8, rax
jne 0x1400244c0
cmp qword [rsp + 0x110], 0x10
jne 0x1400244c0
mov rsi, qword [rsp + 0xf0]
mov r8d, 1
mov qword [r10], rsi
mov rdx, r11
mov rdi, qword [rcx + 0x50]
mov rcx, rdi
call fcn.14003d3a0
test eax, eax
jne 0x140024392
cmp dword [rdi + 0xe8], 1
je 0x1400243a8
mov eax, 0xffffffac
mov r9d, eax
cmp eax, 0xffffffaa
jne 0x1400243a0
mov r9d, 0xffff9d00
mov eax, r9d
jmp 0x1400244cc
mov r8, qword [rsp + 0xe0]
lea rcx, [rdi + 0x88]
add qword [rdi + 0xd8], r8
mov rdx, r15
call fcn.1400477d0
test eax, eax
jne 0x140024392
mov r9, rbp
mov r8, r14
mov rdx, rsi
mov rcx, rdi
call fcn.14003d470
test eax, eax
jne 0x140024392
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.14003d540
test eax, eax
jne 0x140024392
xor r9d, r9d
lea rax, [rsp + 0x60]
mov ecx, r9d
sub rbx, rax
xorps xmm4, xmm4
xorps xmm3, xmm3
nop dword [rax]
nop dword [rax + rax]
xorps xmm0, xmm0
lea rax, [rsp + 0x60]
add rax, rcx
add rcx, 8
movd xmm2, dword [rbx + rax]
movd xmm1, dword [rax]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
movd xmm1, dword [rax + 4]
punpcklbw xmm1, xmm0
por xmm2, xmm4
punpcklwd xmm1, xmm0
movdqa xmm4, xmm2
movd xmm2, dword [rbx + rax + 4]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
pxor xmm2, xmm1
por xmm2, xmm3
movdqa xmm3, xmm2
cmp rcx, 0x10
jb 0x140024410
por xmm3, xmm4
movdqa xmm0, xmm3
psrldq xmm0, 8
por xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd eax, xmm3
test eax, eax
je 0x1400243a0
test rsi, rsi
je 0x14002439a
mov rax, qword [fcn.14004d760]
mov r8, rsi
xor edx, edx
mov rcx, rbp
call rax
mov r9d, 0xffff9d00
mov eax, r9d
jmp 0x1400244cc
mov eax, 0xffff9f00
jmp 0x1400244cc
mov eax, 0xffff9f80
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14004c9e0
add rsp, 0x98
pop r15
pop r14
pop rbp
pop rbx
ret