Function at 0x549410
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x308
mov r12, qword [rcx]
mov rsi, qword [rcx + 0x10]
mov r9, qword [rcx + 0x38]
mov r13, qword [rcx + 8]
mov rdi, qword [rcx + 0x18]
mov r10, qword [rcx + 0x20]
mov r11, qword [rcx + 0x28]
mov r14, qword [rcx + 0x40]
mov r15, qword [rcx + 0x48]
mov qword [rsp + 0x360], r8
lea rbp, [rsp + 0x1c0]
mov r8, qword [rcx + 0x30]
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x88], r13
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0xb0], r8
mov qword [rsp + 0xb8], r9
mov qword [rsp + 0xc0], r14
mov qword [rsp + 0xd0], r12
mov qword [rsp + 0xd8], r13
mov qword [rsp + 0xe0], rsi
mov qword [rsp + 0x100], r8
mov qword [rsp + 0x108], r9
mov qword [rsp + 0x110], r14
mov qword [rsp + 0x120], r12
mov qword [rsp + 0x98], rdi
mov qword [rsp + 0xa0], r10
mov qword [rsp + 0xa8], r11
mov qword [rsp + 0xc8], r15
mov qword [rsp + 0xe8], rdi
mov qword [rsp + 0xf0], r10
mov qword [rsp + 0xf8], r11
mov qword [rsp + 0x118], r15
mov qword [rsp + 0x128], r13
vmovdqu xmm4, xmmword [rcx]
vmovdqu xmm5, xmmword [rdx + 0x20]
mov rcx, qword [rdx + 0x10]
mov qword [rsp + 0x150], r8
mov rbx, qword [rdx + 0x18]
mov qword [rsp + 0x158], r9
mov qword [rsp + 0x1b0], r8
mov r8, qword [rdx]
mov qword [rsp + 0x1b8], r9
mov r9, qword [rdx + 8]
vmovups xmmword [rsp + 0x170], xmm4
vmovdqu xmm4, xmmword [rdx + 0x30]
vmovups xmmword [rsp + 0x1e0], xmm5
vmovdqu xmm5, xmmword [rdx + 0x40]
mov qword [rsp + 0x130], rsi
mov qword [rsp + 0x160], r14
lea r14, [rsp + 0x2e0]
mov qword [rsp + 0x180], r12
mov r12d, 0x20
mov qword [rsp + 0x188], r13
lea r13, [rsp + 0x80]
mov qword [rsp + 0x190], rsi
xor esi, esi
vmovups xmmword [rsp + 0x200], xmm5
mov qword [rsp + 0x138], rdi
mov qword [rsp + 0x140], r10
mov qword [rsp + 0x148], r11
mov qword [rsp + 0x168], r15
mov qword [rsp + 0x198], rdi
mov qword [rsp + 0x1a0], r10
mov qword [rsp + 0x1a8], r11
mov qword [rsp + 0x1c0], r8
mov qword [rsp + 0x1c8], r9
mov qword [rsp + 0x1d0], rcx
mov qword [rsp + 0x1d8], rbx
vmovups xmmword [rsp + 0x1f0], xmm4
vmovdqu xmm4, xmmword [rdx + 0x50]
vmovdqu xmm5, xmmword [rdx + 0x60]
vmovdqu xmm3, xmmword [rdx + 0xd0]
mov qword [rsp + 0x2c0], r8
vmovups xmmword [rsp + 0x210], xmm4
vmovdqu xmm4, xmmword [rdx + 0x70]
vmovups xmmword [rsp + 0x220], xmm5
vmovdqu xmm5, xmmword [rdx + 0x80]
vmovups xmmword [rsp + 0x230], xmm4
vmovdqu xmm4, xmmword [rdx + 0x90]
vmovups xmmword [rsp + 0x240], xmm5
vmovdqu xmm5, xmmword [rdx + 0xa0]
vmovups xmmword [rsp + 0x250], xmm4
vmovdqu xmm4, xmmword [rdx + 0xb0]
vmovups xmmword [rsp + 0x260], xmm5
vmovdqu xmm5, xmmword [rdx + 0xc0]
vmovups xmmword [rsp + 0x270], xmm4
vmovdqu xmm4, xmmword [rdx + 0xe0]
vmovups xmmword [rsp + 0x280], xmm5
vmovdqu xmm5, xmmword [rdx + 0xf0]
mov qword [rsp + 0x2c8], r9
mov qword [rsp + 0x2d0], rcx
mov qword [rsp + 0x2d8], rbx
vmovups xmmword [rsp + 0x290], xmm3
vmovups xmmword [rsp + 0x2a0], xmm4
vmovups xmmword [rsp + 0x2b0], xmm5
jmp 0x5496ed
sub r12d, 1
je 0x5498fd
vzeroupper
lea rdx, [rbp + rsi]
lea rcx, [r13 + rsi]
mov r8, r14
call fcn.005491f0
mov edx, dword [rsp + 0x2e0]
vmovdqu xmm3, xmmword [rsp + 0x2e0]
vinserti128 ymm1, ymm3, xmmword [rsp + 0x2f0], 1
vpmovzxbw ymm2, xmm3
vpmovzxwd ymm0, xmm2
vextracti128 xmm1, ymm1, 1
vextracti128 xmm2, ymm2, 1
vpmovzxbw ymm1, xmm1
vpmovzxwd ymm2, xmm2
vpaddd ymm0, ymm0, ymm2
vpmovzxwd ymm2, xmm1
vextracti128 xmm1, ymm1, 1
vpmovzxwd ymm1, xmm1
vpaddd ymm1, ymm2, ymm1
vpaddd ymm0, ymm0, ymm1
vmovdqu xmm1, xmm0
vextracti128 xmm0, ymm0, 1
vpaddd xmm0, xmm1, xmm0
vpsrldq xmm1, xmm0, 8
vpaddd xmm0, xmm0, xmm1
vpsrldq xmm1, xmm0, 4
vpaddd xmm0, xmm0, xmm1
vmovd eax, xmm0
movzx esi, al
lea rbx, [rbp + rsi]
mov rdi, rsi
xor dword [rbx], edx
mov edx, dword [rsp + 0x2e4]
xor dword [rbx + 4], edx
mov edx, dword [rsp + 0x2e8]
xor dword [rbx + 8], edx
mov edx, dword [rsp + 0x2ec]
xor dword [rbx + 0xc], edx
mov edx, dword [rsp + 0x2f0]
xor dword [rbx + 0x10], edx
mov edx, dword [rsp + 0x2f4]
xor dword [rbx + 0x14], edx
mov edx, dword [rsp + 0x2f8]
xor dword [rbx + 0x18], edx
mov edx, dword [rsp + 0x2fc]
xor dword [rbx + 0x1c], edx
and eax, 0xe0
jne 0x54986b
lea edx, [rsi + 0x100]
add rdx, rbp
cmp esi, 0x20
ja 0x54998e
mov r9d, 0x20
sub r9d, esi
mov eax, r9d
mov ecx, r9d
and eax, 3
shr ecx, 2
je 0x549843
lea r8d, [rcx - 1]
test ecx, ecx
mov ecx, 4
lea r8, [r8*4 + 4]
cmove r8, rcx
mov ecx, r8d
cmp r8d, 8
jae 0x54999e
and r8d, 4
jne 0x549fe1
test ecx, ecx
je 0x549843
movzx r8d, byte [rbx]
mov byte [rdx], r8b
test cl, 2
jne 0x54a0c6
test eax, eax
je 0x54986b
mov ecx, r9d
sub ecx, eax
cmp ecx, r9d
jae 0x54986b
mov r8d, ecx
sub eax, 1
lea rcx, [rdx + r8]
lea rdx, [rbx + r8]
lea r8, [rax + 1]
vzeroupper
call sub.msvcrt.dll_memcpy
mov r15d, 0x100
sub r15d, edi
cmp r15d, 0x1f
ja 0x5496e0
lea r9d, [rdi - 0xe0]
mov eax, r9d
shr eax, 2
je 0x5498b5
sub eax, 1
lea rdx, [rsp + 0x2c0]
mov rcx, rbp
mov dword [rsp + 0x20], r9d
lea r8, [rax*4 + 4]
vzeroupper
call sub.msvcrt.dll_memmove
mov r9d, dword [rsp + 0x20]
mov edx, r9d
and edx, 3
je 0x5496e0
mov eax, r9d
sub eax, edx
cmp r9d, eax
jbe 0x5496e0
sub edx, r9d
lea rcx, [rbp + rax]
lea r8d, [rdi + rdx - 0xe1]
lea rdx, [rsp + rax + 0x2c0]
add r8, 1
vzeroupper
call sub.msvcrt.dll_memmove
sub r12d, 1
jne 0x5496ea
cmp r15d, 0x1f
jbe 0x5499fb
lea rax, [rbx + 0x20]
cmp r13, rax
jae 0x549921
lea rax, [rsp + 0xa0]
cmp rbx, rax
jb 0x549ff6
vmovdqu xmm5, xmmword [rsp + 0x80]
vmovdqu xmm4, xmmword [rbx]
vinserti128 ymm0, ymm5, xmmword [rsp + 0x90], 1
vinserti128 ymm1, ymm4, xmmword [rbx + 0x10], 1
vpxor ymm0, ymm0, ymm1
vmovups xmmword [rbx], xmm0
vextracti128 xmmword [rbx + 0x10], ymm0, 1
mov rax, qword [rsp + 0x360]
vmovdqu xmm4, xmmword [rbx]
mov rdi, qword [rsp + 0x360]
mov rdx, qword [rbx + 0x18]
vmovups xmmword [rax], xmm4
mov rax, qword [rbx + 0x10]
mov qword [rdi + 0x18], rdx
mov qword [rdi + 0x10], rax
vzeroupper
add rsp, 0x308
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 8
mov r9d, 0x20
jmp 0x549801
mov rcx, qword [rbx]
lea r11, [rdx + 8]
mov r15, rbx
and r11, 0xfffffffffffffff8
mov qword [rdx], rcx
mov ecx, r8d
mov r10, qword [rbx + rcx - 8]
mov qword [rdx + rcx - 8], r10
mov rcx, rdx
sub rcx, r11
sub r15, rcx
add ecx, r8d
and ecx, 0xfffffff8
cmp ecx, 8
jb 0x549843
mov dword [rsp + 0x20], eax
and ecx, 0xfffffff8
xor r8d, r8d
mov r10d, r8d
add r8d, 8
mov rax, qword [r15 + r10]
mov qword [r11 + r10], rax
cmp r8d, ecx
jb 0x5499de
mov eax, dword [rsp + 0x20]
jmp 0x549843
mov ecx, r15d
shr ecx, 2
je 0x549a71
lea rax, [rbx + 0x10]
cmp r13, rax
lea rax, [rsp + 0x90]
setae dl
cmp rbx, rax
setae al
or dl, al
je 0x54a04a
lea eax, [rcx - 1]
cmp eax, 2
jbe 0x54a04a
vmovdqu xmm3, xmmword [rbx]
vpxor xmm0, xmm3, xmmword [rsp + 0x80]
vmovups xmmword [rbx], xmm0
cmp ecx, 4
je 0x549a71
mov eax, dword [rsp + 0x90]
xor dword [rbx + 0x10], eax
cmp ecx, 5
je 0x549a71
mov eax, dword [rsp + 0x94]
xor dword [rbx + 0x14], eax
cmp ecx, 7
jne 0x54a0fa
mov eax, dword [rsp + 0x98]
xor dword [rbx + 0x18], eax
mov eax, r15d
and eax, 3
mov dword [rsp + 0x2c], eax
je 0x549f58
mov eax, r15d
sub eax, dword [rsp + 0x2c]
cmp r15d, eax
jbe 0x549f58
mov edx, eax
lea r8, [rsp + 0x40]
lea r9, [rbx + rdx + 0x10]
lea r11, [rsp + rdx + 0x80]
cmp r11, r9
lea r10, [rbx + rdx]
lea r9, [rsp + rdx + 0x90]
setae sil
cmp r10, r9
setae r9b
or sil, r9b
je 0x549f23
mov esi, dword [rsp + 0x2c]
lea r9d, [rdi + rsi - 0x100]
sub esi, 1
cmp esi, 0xe
jbe 0x549f23
add r9d, r15d
vmovdqu xmm5, xmmword [r11]
vpxor xmm0, xmm5, xmmword [r10]
mov edx, r9d
and edx, 0xfffffff0
vmovups xmmword [r10], xmm0
add eax, edx
cmp r9d, edx
je 0x549c56
mov edx, eax
movzx r9d, byte [rsp + rdx + 0x80]
xor byte [rbx + rdx], r9b
lea edx, [rax + 1]
cmp r15d, edx
jbe 0x549c56
movzx r9d, byte [rsp + rdx + 0x80]
xor byte [rbx + rdx], r9b
lea edx, [rax + 2]
cmp r15d, edx
jbe 0x549c56
movzx r9d, byte [rsp + rdx + 0x80]
xor byte [rbx + rdx], r9b
lea edx, [rax + 3]
cmp r15d, edx
jbe 0x549c56
movzx r9d, byte [rsp + rdx + 0x80]
xor byte [rbx + rdx], r9b
lea edx, [rax + 4]
cmp r15d, edx
jbe 0x549c56
movzx r9d, byte [rsp + rdx + 0x80]
xor byte [rbx + rdx], r9b
lea edx, [rax + 5]
cmp r15d, edx
jbe 0x549c56
movzx r9d, byte [rsp + rdx + 0x80]
xor byte [rbx + rdx], r9b
lea edx, [rax + 6]
cmp r15d, edx
jbe 0x549c56
movzx r9d, byte [rsp + rdx + 0x80]
xor byte [rbx + rdx], r9b
lea edx, [rax + 7]
cmp r15d, edx
jbe 0x549c56
movzx r9d, byte [rsp + rdx + 0x80]
xor byte [rbx + rdx], r9b
lea edx, [rax + 8]
cmp r15d, edx
jbe 0x549c56
movzx r9d, byte [rsp + rdx + 0x80]
xor byte [rbx + rdx], r9b
lea edx, [rax + 9]
cmp r15d, edx
jbe 0x549c56
movzx r9d, byte [rsp + rdx + 0x80]
xor byte [rbx + rdx], r9b
lea edx, [rax + 0xa]
cmp r15d, edx
jbe 0x549c56
movzx r9d, byte [rsp + rdx + 0x80]
xor byte [rbx + rdx], r9b
lea edx, [rax + 0xb]
cmp r15d, edx
jbe 0x549c56
movzx r9d, byte [rsp + rdx + 0x80]
xor byte [rbx + rdx], r9b
lea edx, [rax + 0xc]
cmp r15d, edx
jbe 0x549c56
movzx r9d, byte [rsp + rdx + 0x80]
xor byte [rbx + rdx], r9b
lea edx, [rax + 0xd]
cmp r15d, edx
jbe 0x549c56
movzx r9d, byte [rsp + rdx + 0x80]
add eax, 0xe
xor byte [rbx + rdx], r9b
cmp r15d, eax
jbe 0x549c56
movzx edx, byte [rsp + rax + 0x80]
xor byte [rbx + rax], dl
lea esi, [rdi - 0xe0]
mov r14d, r15d
lea r9, [r13 + r14]
mov r13d, esi
shr r13d, 2
je 0x549d81
lea rax, [r8 + r14 + 0x40]
lea r11, [rsp + 0x1e0]
mov qword [rsp + 0x20], rax
lea rax, [r8 + r14 + 0x60]
lea r10d, [r13 - 1]
cmp rbp, rax
setae byte [rsp + 0x30]
cmp qword [rsp + 0x20], r11
movzx edx, byte [rsp + 0x30]
setae al
or dl, al
je 0x54a0a0
cmp r10d, 6
jbe 0x54a0a0
mov r10d, esi
mov rax, rbp
lea rdx, [r8 + r14 + 0x40]
shr r10d, 5
mov dword [rsp + 0x20], r10d
sub r10d, 1
shl r10, 5
add r10, r11
vmovdqu xmm4, xmmword [rdx]
vmovdqu xmm5, xmmword [rax]
add rax, 0x20
add rdx, 0x20
vinserti128 ymm1, ymm4, xmmword [rdx - 0x10], 1
vinserti128 ymm0, ymm5, xmmword [rax - 0x10], 1
vpxor ymm0, ymm0, ymm1
vmovups xmmword [rax - 0x20], xmm0
vextracti128 xmmword [rax - 0x10], ymm0, 1
cmp rax, r10
jne 0x549cd2
mov eax, dword [rsp + 0x20]
shl eax, 3
cmp eax, r13d
je 0x549d81
mov edx, eax
mov r10d, dword [r9 + rdx*4]
xor dword [rbp + rdx*4], r10d
lea edx, [rax + 1]
cmp r13d, edx
jbe 0x549d81
mov r10d, dword [r9 + rdx*4]
xor dword [rbp + rdx*4], r10d
lea edx, [rax + 2]
cmp r13d, edx
jbe 0x549d81
mov r10d, dword [r9 + rdx*4]
xor dword [rbp + rdx*4], r10d
lea edx, [rax + 3]
cmp r13d, edx
jbe 0x549d81
mov r10d, dword [r9 + rdx*4]
xor dword [rbp + rdx*4], r10d
lea edx, [rax + 4]
cmp r13d, edx
jbe 0x549d81
mov r10d, dword [r9 + rdx*4]
xor dword [rbp + rdx*4], r10d
lea edx, [rax + 5]
cmp r13d, edx
jbe 0x549d81
add eax, 6
mov r10d, dword [r9 + rdx*4]
xor dword [rbp + rdx*4], r10d
cmp r13d, eax
jbe 0x549d81
mov edx, dword [r9 + rax*4]
xor dword [rbp + rax*4], edx
mov eax, esi
and eax, 3
mov dword [rsp + 0x20], eax
je 0x549e62
mov r11d, esi
sub r11d, dword [rsp + 0x20]
cmp esi, r11d
jbe 0x549e62
mov eax, r11d
lea rdx, [rax + r14 + 0x40]
lea r10, [rax + 0x180]
mov qword [rsp + 0x30], rdx
lea rdx, [rax + r14 + 0x60]
cmp r10, rdx
mov qword [rsp + 0x38], r10
lea rdx, [rax + 0x1a0]
setge r10b
cmp rdx, qword [rsp + 0x30]
setle dl
or r10b, dl
je 0x549f3a
mov edx, dword [rsp + 0x20]
sub edx, esi
lea edx, [rdi + rdx - 0xe1]
cmp edx, 0x1e
jbe 0x549f3a
mov rdx, qword [rsp + 0x38]
mov r10d, 0x8000000
xor eax, eax
add rdx, r8
add r8, qword [rsp + 0x30]
vmovdqu xmm5, xmmword [r8 + rax]
vmovdqu xmm4, xmmword [rdx + rax]
add r12d, 1
vinserti128 ymm1, ymm5, xmmword [r8 + rax + 0x10], 1
vinserti128 ymm0, ymm4, xmmword [rdx + rax + 0x10], 1
vpxor ymm0, ymm0, ymm1
vmovups xmmword [rdx + rax], xmm0
vextracti128 xmmword [rdx + rax + 0x10], ymm0, 1
add rax, 0x20
cmp r10d, r12d
ja 0x549e09
mov r8d, dword [rsp + 0x20]
mov eax, r11d
test r8d, r8d
je 0x549e62
mov edx, eax
add eax, 1
movzx r8d, byte [r9 + rdx]
xor byte [rbp + rdx], r8b
cmp esi, eax
ja 0x549e4f
test ecx, ecx
je 0x549e8a
lea eax, [rcx - 1]
lea rax, [rax*4 + 4]
cmp eax, 8
jae 0x549f62
test al, 4
jne 0x54a0d7
test eax, eax
jne 0x549fcf
mov edx, dword [rsp + 0x2c]
test edx, edx
je 0x549f50
mov eax, dword [rsp + 0x2c]
mov edx, r15d
sub edx, eax
cmp r15d, edx
jbe 0x549f50
mov rcx, qword [rsp + 0x360]
sub eax, 1
lea r8, [rax + 1]
add rcx, rdx
add rdx, rbx
vzeroupper
call sub.msvcrt.dll_memcpy
add r14, qword [rsp + 0x360]
test r13d, r13d
je 0x549ee9
lea eax, [r13 - 1]
mov rdx, rbp
mov rcx, r14
lea r8, [rax*4 + 4]
call sub.msvcrt.dll_memcpy
mov eax, dword [rsp + 0x20]
test eax, eax
je 0x54997a
mov eax, dword [rsp + 0x20]
mov edx, esi
sub edx, eax
cmp esi, edx
jbe 0x54997a
sub eax, esi
lea rcx, [r14 + rdx]
add rdx, rbp
lea eax, [rdi + rax - 0xe1]
lea r8, [rax + 1]
call sub.msvcrt.dll_memcpy
jmp 0x54997a
movzx eax, byte [r13 + rdx]
xor byte [rbx + rdx], al
add rdx, 1
cmp r15d, edx
ja 0x549f23
jmp 0x549c56
movzx edx, byte [r9 + rax]
xor byte [rbp + rax], dl
add rax, 1
cmp esi, eax
ja 0x549f3a
jmp 0x549e62
vzeroupper
jmp 0x549ec5
lea r8, [rsp + 0x40]
jmp 0x549c56
mov rdx, qword [rbx]
mov rcx, qword [rsp + 0x360]
mov r9, rbx
mov qword [rcx], rdx
mov edx, eax
mov r11, qword [rsp + 0x360]
mov rcx, qword [rbx + rdx - 8]
mov qword [r11 + rdx - 8], rcx
mov rcx, qword [rsp + 0x360]
mov rdx, qword [rsp + 0x360]
add rcx, 8
and rcx, 0xfffffffffffffff8
sub rdx, rcx
add eax, edx
sub r9, rdx
and eax, 0xfffffff8
cmp eax, 8
jb 0x549e8a
and eax, 0xfffffff8
xor edx, edx
mov r8d, edx
add edx, 8
mov r10, qword [r9 + r8]
mov qword [rcx + r8], r10
cmp edx, eax
jb 0x549fb8
jmp 0x549e8a
movzx eax, byte [rbx]
mov rcx, qword [rsp + 0x360]
mov byte [rcx], al
jmp 0x549e8a
mov r8d, dword [rbx]
mov dword [rdx], r8d
mov r8d, dword [rbx + rcx - 4]
mov dword [rdx + rcx - 4], r8d
jmp 0x549843
mov eax, dword [rsp + 0x80]
xor dword [rbx], eax
mov eax, dword [rsp + 0x84]
xor dword [rbx + 4], eax
mov eax, dword [rsp + 0x88]
xor dword [rbx + 8], eax
mov eax, dword [rsp + 0x8c]
xor dword [rbx + 0xc], eax
mov eax, dword [rsp + 0x90]
xor dword [rbx + 0x10], eax
mov eax, dword [rsp + 0x94]
xor dword [rbx + 0x14], eax
mov eax, dword [rsp + 0x98]
xor dword [rbx + 0x18], eax
mov eax, dword [rsp + 0x9c]
xor dword [rbx + 0x1c], eax
jmp 0x54994f
mov eax, dword [rsp + 0x80]
xor dword [rbx], eax
cmp ecx, 1
je 0x549a71
mov eax, dword [rsp + 0x84]
xor dword [rbx + 4], eax
cmp ecx, 2
je 0x549a71
mov eax, dword [rsp + 0x88]
xor dword [rbx + 8], eax
cmp ecx, 3
je 0x549a71
mov eax, dword [rsp + 0x8c]
xor dword [rbx + 0xc], eax
cmp ecx, 4
jne 0x549a45
jmp 0x549a71
mov rax, rbp
mov rdx, r9
lea r10, [rsp + r10*4 + 0x1c4]
mov r11d, dword [rdx]
xor dword [rax], r11d
add rax, 4
add rdx, 4
cmp r10, rax
jne 0x54a0ae
jmp 0x549d81
movzx r8d, word [rbx + rcx - 2]
mov word [rdx + rcx - 2], r8w
jmp 0x549843
mov edx, dword [rbx]
mov rcx, qword [rsp + 0x360]
mov eax, eax
mov dword [rcx], edx
mov edx, dword [rbx + rax - 4]
mov rcx, qword [rsp + 0x360]
mov dword [rcx + rax - 4], edx
jmp 0x549e8a
mov ecx, 6
jmp 0x549a71