Function at 0x140023d50
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x488
cmp dword [rcx + 0x148], 1
mov r10, rcx
je 0x140023d70
mov eax, 0xffffbf80
add rsp, 0x488
ret
mov qword [rsp + 0x4a0], rsi
mov rsi, qword [rcx + 8]
lea rax, [rsi - 0x10]
cmp rax, 0x3f0
ja 0x1400240e2
mov ecx, dword [rcx + 0x14c]
mov qword [rsp + 0x498], rbp
call fcn.14001df00
mov rbp, rax
test rax, rax
jne 0x140023dae
mov eax, 0xffffbf80
jmp 0x140023deb
mov qword [rsp + 0x4a8], rdi
mov rcx, rbp
mov qword [rsp + 0x480], r13
call fcn.14001e440
movzx edi, al
lea r13d, [rdi + rdi]
lea ecx, [r13 + 2]
cmp rcx, rsi
jbe 0x140023e03
mov eax, 0xffffbf80
mov rdi, qword [rsp + 0x4a8]
mov r13, qword [rsp + 0x480]
mov rbp, qword [rsp + 0x498]
mov rsi, qword [rsp + 0x4a0]
add rsp, 0x488
ret
mov r9, qword [rsp + 0x4c8]
lea rax, [rsp + 0x70]
mov rcx, r10
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x490], rbx
call fcn.140023390
mov ebx, eax
test eax, eax
jne 0x1400240b5
lea rcx, [rsp + 0x30]
call fcn.14001df50
xor r8d, r8d
lea rcx, [rsp + 0x30]
mov rdx, rbp
call fcn.14001dfc0
mov ebx, eax
test eax, eax
je 0x140023e5e
lea rcx, [rsp + 0x30]
call fcn.14001df60
jmp 0x1400240b5
mov qword [rsp + 0x478], r14
lea rax, [rsp + 0x30]
mov qword [rsp + 0x470], r15
lea rcx, [rsp + 0x71]
mov r14, rsi
mov qword [rsp + 0x20], rax
sub r14, rdi
lea r15, [rsp + 0x71]
add r15, rdi
mov rdx, rdi
mov r8, r15
lea r9, [r14 - 1]
call fcn.140023800
mov ebx, eax
test eax, eax
jne 0x14002409b
lea rax, [rsp + 0x30]
mov r9, rdi
lea r8, [rsp + 0x71]
mov qword [rsp + 0x20], rax
lea rdx, [r14 - 1]
mov rcx, r15
call fcn.140023800
mov ebx, eax
test eax, eax
jne 0x14002409b
lea rcx, [rsp + 0x30]
call fcn.14001df60
lea r9, [rsp + 0x48]
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call fcn.14001e0b0
mov ebx, eax
test eax, eax
jne 0x1400240a5
movzx r9d, byte [rsp + 0x70]
lea rdx, [rsp + 0x71]
xor ebx, ebx
add rdx, rdi
mov ecx, ebx
test rdi, rdi
je 0x140023fc5
cmp rdi, 0x20
jb 0x140023fa9
mov rax, rdi
xorps xmm3, xmm3
and rax, 0xffffffffffffffe0
xorps xmm2, xmm2
nop dword [rax]
nop dword [rax + rax]
movdqu xmm0, xmmword [rdx]
movdqu xmm1, xmmword [rsp + rcx + 0x48]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rdx + 0x10]
add rdx, 0x20
por xmm1, xmm3
movdqa xmm3, xmm1
movdqu xmm1, xmmword [rsp + rcx + 0x58]
add rcx, 0x20
pxor xmm1, xmm0
por xmm1, xmm2
movdqa xmm2, xmm1
cmp rcx, rax
jb 0x140023f30
por xmm2, xmm3
movdqa xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 2
por xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 1
por xmm2, xmm0
movd eax, xmm2
or r9b, al
cmp rcx, rdi
jae 0x140023fc5
nop
movzx eax, byte [rsp + rcx + 0x48]
inc rcx
xor al, byte [rdx]
inc rdx
or r9b, al
cmp rcx, rdi
jb 0x140023fb0
mov eax, r13d
mov r14, rsi
sub r14, rax
xor r8b, r8b
add r14, 0xfffffffffffffffe
mov r10, rbx
mov r11, rbx
mov rdi, rbx
mov rcx, rbx
cmp r14, 2
jb 0x14002402c
lea rbp, [r14 - 1]
nop dword [rax + rax]
or r8b, byte [rdx + rcx]
movzx eax, r8b
neg al
or al, r8b
or r8b, byte [rdx + rcx + 1]
not al
add rcx, 2
movzx eax, al
shr rax, 7
add r10, rax
movzx eax, r8b
neg al
or al, r8b
not al
movzx eax, al
shr rax, 7
add r11, rax
cmp rcx, rbp
jb 0x140023ff0
cmp rcx, r14
jae 0x140024047
or r8b, byte [rcx + rdx]
movzx eax, r8b
neg al
or al, r8b
not al
movzx edi, al
shr rdi, 7
lea rax, [r11 + r10]
add rax, rdi
add rdx, rax
movzx eax, byte [rdx]
inc rdx
xor al, 1
or r9b, al
je 0x140024065
mov ebx, 0xffffbf00
jmp 0x1400240a5
sub rsi, rdx
lea r8, [rsp + 0x70]
add r8, rsi
cmp r8, qword [rsp + 0x4d8]
jbe 0x140024081
mov ebx, 0xffffbc00
jmp 0x1400240a5
mov rax, qword [rsp + 0x4c0]
mov rcx, qword [rsp + 0x4d0]
mov qword [rax], r8
call fcn.140035790
jmp 0x1400240a5
lea rcx, [rsp + 0x30]
call fcn.14001df60
mov r14, qword [rsp + 0x478]
mov r15, qword [rsp + 0x470]
mov edx, 0x400
lea rcx, [rsp + 0x70]
call fcn.1400137a0
mov edx, 0x20
lea rcx, [rsp + 0x48]
call fcn.1400137a0
mov eax, ebx
mov rbx, qword [rsp + 0x490]
jmp 0x140023ddb
mov eax, 0xffffbf80
mov rsi, qword [rsp + 0x4a0]
add rsp, 0x488
ret