Function at 0x180042ce0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xc98
lea rbp, [rsp + 0x80]
movdqa xmmword [rbp + 0xc00], xmm6
mov qword [rbp + 0xbf8], 0xfffffffffffffffe
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov r15, qword [rdx]
mov r13, qword [rdx + 0x10]
test r13, r13
mov qword [rbp + 0xbe8], r13
je 0x180042d6c
mov r8d, dword [r15 + 8]
cmp r13, 1
je 0x180042ed2
lea rax, [r13*2]
add rax, r13
lea rcx, [rax*4 - 0xc]
movabs rdx, 0xaaaaaaaaaaaaaaab
mov rax, rcx
mul rdx
shr rdx, 3
cmp rcx, 0x60
jae 0x180042d80
xor eax, eax
jmp 0x180042ead
mov eax, 4
mov qword [rbp + 0xbf0], rax
xor r12d, r12d
jmp 0x180042fd3
mov rax, rdx
and rax, 0xfffffffffffffff8
movd xmm0, r8d
pshufd xmm1, xmm0, 0
lea rcx, [r15 + 0x68]
movdqa xmm0, xmmword [0x1800837a0]
mov r8, rax
movdqa xmm2, xmm1
nop word cs:[rax + rax]
movd xmm3, dword [rcx - 0x30]
movd xmm4, dword [rcx - 0x3c]
punpckldq xmm4, xmm3
movd xmm3, dword [rcx - 0x48]
movd xmm5, dword [rcx - 0x54]
punpckldq xmm5, xmm3
punpcklqdq xmm5, xmm4
movd xmm3, dword [rcx]
movd xmm4, dword [rcx - 0xc]
punpckldq xmm4, xmm3
movd xmm3, dword [rcx - 0x18]
movd xmm6, dword [rcx - 0x24]
punpckldq xmm6, xmm3
punpcklqdq xmm6, xmm4
movdqa xmm3, xmm5
pxor xmm3, xmm0
movdqa xmm4, xmm1
pxor xmm1, xmm0
pcmpgtd xmm1, xmm3
pand xmm4, xmm1
pandn xmm1, xmm5
por xmm1, xmm4
movdqa xmm3, xmm6
pxor xmm3, xmm0
movdqa xmm4, xmm2
pxor xmm2, xmm0
pcmpgtd xmm2, xmm3
pand xmm4, xmm2
pandn xmm2, xmm6
por xmm2, xmm4
add rcx, 0x60
add r8, 0xfffffffffffffff8
jne 0x180042db0
movdqa xmm3, xmm2
pxor xmm3, xmm0
movdqa xmm4, xmm1
pxor xmm4, xmm0
pcmpgtd xmm4, xmm3
pand xmm1, xmm4
pandn xmm4, xmm2
por xmm4, xmm1
pshufd xmm1, xmm4, 0xee
movdqa xmm2, xmm4
pxor xmm2, xmm0
movdqa xmm3, xmm1
pxor xmm3, xmm0
pcmpgtd xmm2, xmm3
pand xmm4, xmm2
pandn xmm2, xmm1
por xmm2, xmm4
pshufd xmm1, xmm2, 0x55
movdqa xmm3, xmm2
pxor xmm3, xmm0
pxor xmm0, xmm1
pcmpgtd xmm3, xmm0
pand xmm2, xmm3
pandn xmm3, xmm1
por xmm3, xmm2
movd r8d, xmm3
cmp rdx, rax
je 0x180042ed2
sub rdx, rax
lea rax, [rax + rax*2]
lea rax, [r15 + rax*4]
add rax, 0x14
nop dword [rax]
mov ecx, dword [rax]
cmp r8d, ecx
cmovbe r8d, ecx
add rax, 0xc
dec rdx
jne 0x180042ec0
test r8d, r8d
je 0x180042f46
mov r12d, 1
cmp r8d, 0x39
jbe 0x180042ef1
cmp r8d, 0x72
mov r12d, 3
sbb r12, 0
test r13, r13
je 0x180042f4e
mov rax, r13
shr rax, 0x3c
jne 0x1800431ea
lea r14, [r13*8]
movzx eax, byte [0x1800a4291]
mov edx, 4
mov rcx, r14
call fcn.1800458d0
mov qword [rbp + 0xbf0], rax
test rax, rax
je 0x1800431f1
mov eax, r13d
and eax, 3
cmp r13, 4
jae 0x180042f5c
xor ecx, ecx
mov r10, qword [rbp + 0xbf0]
jmp 0x180042f9f
xor r12d, r12d
test r13, r13
jne 0x180042ef6
mov eax, 4
mov qword [rbp + 0xbf0], rax
jmp 0x180042fd3
mov rdx, r13
and rdx, 0xfffffffffffffffc
lea r8, [r15 + 0x28]
xor ecx, ecx
mov r10, qword [rbp + 0xbf0]
mov r9, qword [r8 - 0x24]
mov qword [r10 + rcx*8], r9
mov r9, qword [r8 - 0x18]
mov qword [r10 + rcx*8 + 8], r9
mov r9, qword [r8 - 0xc]
mov qword [r10 + rcx*8 + 0x10], r9
mov r9, qword [r8]
mov qword [r10 + rcx*8 + 0x18], r9
add rcx, 4
add r8, 0x30
cmp rdx, rcx
jne 0x180042f70
test rax, rax
je 0x180042fd3
lea rdx, [r10 + rcx*8]
lea rcx, [rcx + rcx*2]
lea rcx, [r15 + rcx*4]
add rcx, 4
xor r8d, r8d
nop word [rax + rax]
mov r9, qword [rcx]
mov qword [rdx + r8*8], r9
inc r8
add rcx, 0xc
cmp rax, r8
jne 0x180042fc0
lea rcx, [rbp - 0x60]
mov rdx, rbx
call fcn.18002f2b0
movzx eax, byte [rbp - 0x48]
movups xmm0, xmmword [rbp - 0x60]
movaps xmmword [rbp + 0xbd0], xmm0
mov rcx, qword [rbp - 0x50]
mov qword [rbp + 0xbe0], rcx
cmp al, 0x2d
jne 0x18004317f
movaps xmm0, xmmword [rbp + 0xbd0]
movaps xmmword [rbp + 0xbb0], xmm0
mov rax, qword [rbp + 0xbe0]
mov qword [rbp + 0xbc0], rax
xor ebx, ebx
lea rcx, [rbp - 0x60]
mov r8d, 0xc00
xor edx, edx
call sub.VCRUNTIME140.dll_memset
movdqu xmm0, xmmword [rdi + 0x18]
movdqu xmmword [rbp + 0xba0], xmm0
mov r14, qword [rbp + 0xbe8]
cmp r14, 1
jne 0x18004312d
mov edi, dword [r15 + 4]
mov eax, dword [r15 + 8]
movd xmm0, eax
pshufd xmm0, xmm0, 0
movdqa xmm1, xmmword [0x180085d40]
pmuludq xmm1, xmm0
pshufd xmm2, xmm1, 0xe8
movdqa xmm1, xmmword [0x180085d50]
pmuludq xmm1, xmm0
pshufd xmm1, xmm1, 0xe8
punpckldq xmm1, xmm2
movdqa xmm2, xmm0
pslld xmm2, 2
movd xmm3, edi
pshufd xmm3, xmm3, 0
mov rcx, 0xffffffffffffff00
nop
movdqu xmmword [rbp + rcx*4 + 0x7a0], xmm0
movdqu xmmword [rbp + rcx*4 + 0x7b0], xmm0
movdqu xmmword [rbp + rcx*4 + 0x3a0], xmm1
paddd xmm1, xmm2
movdqu xmmword [rbp + rcx*4 + 0x3b0], xmm1
movdqu xmmword [rbp + rcx*4 + 0xba0], xmm3
movdqu xmmword [rbp + rcx*4 + 0xbb0], xmm3
paddd xmm1, xmm2
movdqu xmmword [rbp + rcx*4 + 0x7c0], xmm0
movdqu xmmword [rbp + rcx*4 + 0x7d0], xmm0
movdqu xmmword [rbp + rcx*4 + 0x3c0], xmm1
paddd xmm1, xmm2
movdqu xmmword [rbp + rcx*4 + 0x3d0], xmm1
movdqu xmmword [rbp + rcx*4 + 0xbc0], xmm3
movdqu xmmword [rbp + rcx*4 + 0xbd0], xmm3
paddd xmm1, xmm2
add rcx, 0x10
jne 0x1800430a0
xor ebx, ebx
test eax, eax
sete bl
mov rax, qword [rbp + 0xbf0]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], r14
movaps xmm0, xmmword [rbp + 0xbb0]
movups xmmword [rsi + 0x20], xmm0
mov rax, qword [rbp + 0xbc0]
mov qword [rsi + 0x30], rax
lea rcx, [rsi + 0x40]
lea rdx, [rbp - 0x60]
mov r8d, 0xc10
call sub.VCRUNTIME140.dll_memcpy
cmp r14, 1
mov dword [rsi], ebx
mov dword [rsi + 4], edi
mov qword [rsi + 0x38], r12
setne byte [rsi + 0xc50]
jmp 0x1800431cc
mov ecx, dword [rbp - 0x47]
mov edx, dword [rbp - 0x44]
mov dword [rsi + 0x24], edx
mov dword [rsi + 0x21], ecx
mov rcx, qword [rbp + 0xbe0]
mov qword [rsi + 0x18], rcx
movaps xmm0, xmmword [rbp + 0xbd0]
movups xmmword [rsi + 8], xmm0
mov byte [rsi + 0x20], al
mov dword [rsi], 2
mov rdx, qword [rbp + 0xbe8]
test rdx, rdx
je 0x1800431cc
shl rdx, 3
mov r8d, 4
mov rcx, qword [rbp + 0xbf0]
call fcn.1800458e0
mov rax, rsi
movaps xmm6, xmmword [rbp + 0xc00]
add rsp, 0xc98
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call fcn.18006c380
ud2
mov ecx, 4
mov rdx, r14
call fcn.180082720
ud2