Function at 0x1801545c0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r15
sub rsp, 0x30
mov esi, dword [rdx + 8]
mov r15, rdx
mov rbx, rcx
test esi, esi
jne 0x1801545fa
mov rax, qword [rcx + 0x10]
xor ebp, ebp
mov qword [rcx], rax
mov rax, qword [rcx + 0x28]
mov qword [rcx + 8], rax
mov dword [rcx + 0x1c], ebp
mov dword [rcx + 0x34], ebp
add rsp, 0x30
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov qword [rsp + 0x70], r14
mov dword [rcx + 0x1c], esi
cmp esi, dword [rcx + 0x20]
jbe 0x180154612
mov edx, esi
add rcx, 0x10
call fcn.180150470
mov dword [rbx + 0x34], esi
cmp esi, dword [rbx + 0x38]
jbe 0x180154625
mov edx, esi
lea rcx, [rbx + 0x28]
call fcn.180150470
mov rcx, qword [rbx + 0x10]
xor ebp, ebp
mov rax, qword [rbx + 0x28]
mov qword [rbx], rcx
mov qword [rbx + 8], rax
mov byte [rbx + 0x40], 0
cmp esi, 0x20
jae 0x1801546c2
movups xmm0, xmmword [r15]
mov r10d, 1
mov dword [rcx], ebp
movaps xmmword [rsp + 0x20], xmm0
cmp esi, r10d
je 0x1801546ae
mov r11, qword [rsp + 0x20]
nop
mov rax, qword [rbx]
mov ecx, r10d
mov edi, r10d
mov dword [rax + rdi*4], r10d
test r10d, r10d
je 0x1801546a6
mov rdx, qword [rbx]
lea r8d, [rcx - 1]
mov r9d, dword [rdx + r8*4]
movss xmm0, dword [r11 + r9*4]
comiss xmm0, dword [r11 + rdi*4]
jbe 0x18015469b
mov eax, ecx
mov ecx, r8d
mov dword [rdx + rax*4], r9d
test r8d, r8d
jne 0x180154672
mov rdx, qword [rbx]
cmp r10d, ecx
je 0x1801546a6
mov eax, ecx
mov dword [rdx + rax*4], r10d
inc r10d
cmp r10d, esi
jne 0x180154660
mov r14, qword [rsp + 0x70]
mov byte [rbx + 0x40], 1
add rsp, 0x30
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rdx, qword [r15]
mov r10d, esi
movdqa xmm3, xmmword [0x18016c750]
mov r8d, ebp
mov qword [rsp + 0x60], r12
and r10d, 0xfffffff0
mov r12d, 0x1f
mov qword [rsp + 0x68], r13
mov r13d, 8
mov r9d, r13d
movd xmm2, r12d
nop word [rax + rax]
mov eax, r8d
add r8d, 0x10
movdqu xmm0, xmmword [rdx + rax*4]
movdqa xmm1, xmm0
psrad xmm1, xmm2
por xmm1, xmm3
pxor xmm1, xmm0
movdqu xmmword [rdx + rax*4], xmm1
lea eax, [r9 - 4]
movdqu xmm0, xmmword [rdx + rax*4]
movdqa xmm1, xmm0
psrad xmm1, xmm2
por xmm1, xmm3
pxor xmm1, xmm0
movdqu xmmword [rdx + rax*4], xmm1
mov eax, r9d
movdqu xmm0, xmmword [rdx + rax*4]
movdqa xmm1, xmm0
psrad xmm1, xmm2
por xmm1, xmm3
pxor xmm1, xmm0
movdqu xmmword [rdx + rax*4], xmm1
lea eax, [r9 + 4]
add r9d, 0x10
movdqu xmm0, xmmword [rdx + rax*4]
movdqa xmm1, xmm0
psrad xmm1, xmm2
por xmm1, xmm3
pxor xmm1, xmm0
movdqu xmmword [rdx + rax*4], xmm1
cmp r8d, r10d
jb 0x180154700
mov rdi, rdx
cmp r8d, esi
jae 0x1801547de
mov eax, esi
lea rdx, [r8*4]
sub eax, r8d
mov r8d, eax
nop
mov ecx, dword [rdx + rdi]
lea rdx, [rdx + 4]
sar ecx, 0x1f
bts ecx, 0x1f
xor dword [rdx + rdi - 4], ecx
sub r8, 1
jne 0x1801547a0
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x28], esi
mov rcx, rbx
movaps xmm0, xmmword [rsp + 0x20]
mov r14, rdi
movdqa xmmword [rsp + 0x20], xmm0
call fcn.1801434e0
jmp 0x180154802
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x28], esi
mov rcx, rbx
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
call fcn.1801434e0
mov r14, rdi
movdqa xmm3, xmmword [0x1801700c0]
mov r8d, esi
movdqa xmm4, xmmword [0x18016c750]
and esi, 0xfffffff0
movd xmm2, r12d
mov r12, qword [rsp + 0x60]
movdqu xmm0, xmmword [r14 + rbp*4]
lea eax, [r13 - 4]
movdqa xmm1, xmm0
psrld xmm1, xmm2
psubd xmm1, xmm3
por xmm1, xmm4
pxor xmm1, xmm0
movdqu xmmword [r14 + rbp*4], xmm1
add ebp, 0x10
movdqu xmm0, xmmword [r14 + rax*4]
movdqa xmm1, xmm0
psrld xmm1, xmm2
psubd xmm1, xmm3
por xmm1, xmm4
pxor xmm1, xmm0
movdqu xmmword [r14 + rax*4], xmm1
mov eax, r13d
movdqu xmm0, xmmword [r14 + rax*4]
movdqa xmm1, xmm0
psrld xmm1, xmm2
psubd xmm1, xmm3
por xmm1, xmm4
pxor xmm1, xmm0
movdqu xmmword [r14 + rax*4], xmm1
lea eax, [r13 + 4]
add r13d, 0x10
movdqu xmm0, xmmword [r14 + rax*4]
movdqa xmm1, xmm0
psrld xmm1, xmm2
psubd xmm1, xmm3
por xmm1, xmm4
pxor xmm1, xmm0
movdqu xmmword [r14 + rax*4], xmm1
cmp ebp, esi
jb 0x180154822
mov r13, qword [rsp + 0x68]
cmp ebp, r8d
jae 0x1801548fa
lea rdx, [rbp*4]
sub r8d, ebp
nop dword [rax]
nop word [rax + rax]
mov ecx, dword [rdx + rdi]
lea rdx, [rdx + 4]
shr ecx, 0x1f
dec ecx
bts ecx, 0x1f
xor dword [rdx + rdi - 4], ecx
sub r8, 1
jne 0x1801548e0
mov r14, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret