Function at 0x6a5617a0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov esi, 1
mov ebx, 5
movabs rbp, 0xaaaaaaaaaaaaaaab
lea rcx, [rsp + 0x20]
call fcn.6a559bd0
movdqu xmm2, xmmword [rsp + 0x20]
lea r15, [rsp + 0x40]
mov qword [rsp + 0x38], 0
mov r8, qword [0x6a59e7c0]
lea r14, [rsp + 0x58]
movdqa xmm6, xmmword [0x6a59de90]
movaps xmmword [0x6a5a22e0], xmm2
lea r13, [rsp + 0x48]
lea r12, [rsp + 0x50]
lea rdi, [rsp + 0x38]
nop dword [rax + rax]
nop word cs:[rax + rax]
mov qword [rsp + 0x58], 0
mov rax, rsi
imul ebx, ebx, 0x39
mov qword [rsp + 0x50], 0
mul rbp
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea r9d, [rbx + 0x2b]
mov rcx, rdx
mov edx, 0x68c8c4ad
shr rcx, 1
lea rax, [rcx + rcx*2]
mov rcx, rsi
sub rcx, rax
mov eax, r9d
imul edx
mov eax, r9d
sar eax, 0x1f
sar edx, 0xc
mov ebx, edx
sub ebx, eax
mov rax, qword [rsp + 0x38]
imul ebx, ebx, 0x2717
sub r9d, ebx
cmp rcx, 1
mov ebx, r9d
je 0x6a561bd0
cmp rcx, 2
mov rdx, r14
mov rcx, r15
je 0x6a561a50
test rax, rax
je 0x6a5618c8
nop dword [rax + rax]
cmp ebx, dword [rax]
jle 0x6a561a10
mov qword [rdx], rax
lea rdx, [rax + 0x10]
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x6a5618b0
mov qword [rdx], 0
mov r9, r13
mov rdx, r12
mov qword [rcx], 0
mov rax, qword [rsp + 0x40]
lea ecx, [rbx + 1]
test rax, rax
je 0x6a561908
nop dword [rax]
cmp ecx, dword [rax]
jle 0x6a561a30
mov qword [rdx], rax
lea rdx, [rax + 0x10]
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x6a5618f0
mov qword [rdx], 0
mov rdx, qword [rsp + 0x50]
mov qword [r9], 0
test rdx, rdx
je 0x6a561cf0
mov rax, qword [rsp + 0x58]
mov rcx, rdi
test rax, rax
je 0x6a56195e
nop dword [rax + rax]
nop word cs:[rax + rax]
mov r11d, dword [rdx + 4]
cmp dword [rax + 4], r11d
jge 0x6a5619d0
mov qword [rcx], rax
lea rcx, [rax + 0x10]
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x6a561940
mov qword [rcx], rdx
mov rax, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, qword [rsp + 0x48]
test rax, rax
je 0x6a56199a
test rdx, rdx
je 0x6a561a00
nop dword [rax]
mov r10d, dword [rdx + 4]
cmp dword [rax + 4], r10d
jge 0x6a5619f0
mov qword [rcx], rax
lea rcx, [rax + 0x10]
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x6a561980
mov qword [rcx], rdx
add rsi, 1
cmp rsi, 0x7a120
jne 0x6a561820
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rcx], rdx
mov r9, qword [rdx + 8]
lea rcx, [rdx + 8]
test r9, r9
je 0x6a561ce0
mov rdx, r9
jmp 0x6a561940
mov qword [rcx], rdx
lea rcx, [rdx + 8]
mov rdx, qword [rdx + 8]
test rdx, rdx
jne 0x6a561980
mov qword [rcx], rax
jmp 0x6a56199d
mov qword [rcx], rax
lea rcx, [rax + 8]
mov rax, qword [rax + 8]
test rax, rax
jne 0x6a5618b0
jmp 0x6a5618c8
mov qword [r9], rax
lea r9, [rax + 8]
mov rax, qword [rax + 8]
test rax, rax
jne 0x6a5618f0
jmp 0x6a561908
test rax, rax
je 0x6a561a78
nop
nop word cs:[rax + rax]
cmp ebx, dword [rax]
jle 0x6a561bb0
mov qword [rdx], rax
lea rdx, [rax + 0x10]
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x6a561a60
mov qword [rdx], 0
mov r9, r13
mov rdx, r12
mov qword [rcx], 0
mov rax, qword [rsp + 0x40]
lea ecx, [rbx + 1]
test rax, rax
je 0x6a561ab8
nop dword [rax]
cmp ecx, dword [rax]
jle 0x6a561b90
mov qword [rdx], rax
lea rdx, [rax + 0x10]
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x6a561aa0
mov rax, qword [rsp + 0x58]
mov qword [rdx], 0
mov rcx, rdi
mov qword [r9], 0
mov rdx, qword [rsp + 0x50]
test rax, rax
je 0x6a561b0a
test rdx, rdx
je 0x6a561b84
nop dword [rax + rax]
nop word cs:[rax + rax]
mov r10d, dword [rdx + 4]
cmp dword [rax + 4], r10d
jge 0x6a561b70
mov qword [rcx], rax
lea rcx, [rax + 0x10]
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x6a561af0
mov qword [rcx], rdx
mov rax, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, qword [rsp + 0x48]
test rax, rax
je 0x6a56199a
test rdx, rdx
je 0x6a561a00
mov r11d, dword [rdx + 4]
cmp dword [rax + 4], r11d
jge 0x6a561b54
mov qword [rcx], rax
lea rcx, [rax + 0x10]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x6a56199a
mov r11d, dword [rdx + 4]
cmp dword [rax + 4], r11d
jl 0x6a561b36
mov qword [rcx], rdx
lea rcx, [rdx + 8]
mov rdx, qword [rdx + 8]
jmp 0x6a561b23
mov qword [rcx], rdx
lea rcx, [rdx + 8]
mov rdx, qword [rdx + 8]
test rdx, rdx
jne 0x6a561af0
mov qword [rcx], rax
jmp 0x6a561b0d
mov qword [r9], rax
lea r9, [rax + 8]
mov rax, qword [rax + 8]
test rax, rax
jne 0x6a561aa0
jmp 0x6a561ab8
mov qword [rcx], rax
lea rcx, [rax + 8]
mov rax, qword [rax + 8]
test rax, rax
jne 0x6a561a60
jmp 0x6a561a78
test rax, rax
mov rcx, r15
mov rdx, r14
je 0x6a561bf8
nop dword [rax + rax]
cmp ebx, dword [rax]
jle 0x6a561cc0
mov qword [rdx], rax
lea rdx, [rax + 0x10]
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x6a561be0
mov qword [rdx], 0
mov r9, r13
mov rdx, r12
mov qword [rcx], 0
mov rax, qword [rsp + 0x40]
lea ecx, [rbx + 1]
test rax, rax
je 0x6a561c34
nop dword [rax]
cmp ecx, dword [rax]
jle 0x6a561ca0
mov qword [rdx], rax
lea rdx, [rax + 0x10]
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x6a561c20
mov rax, qword [rsp + 0x58]
mov qword [rdx], 0
mov rcx, rdi
mov qword [r9], 0
mov rdx, qword [rsp + 0x48]
test rax, rax
je 0x6a56199a
test rdx, rdx
je 0x6a561a00
mov r11d, dword [rdx + 4]
cmp dword [rax + 4], r11d
jge 0x6a561c89
mov qword [rcx], rax
lea rcx, [rax + 0x10]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x6a56199a
mov r11d, dword [rdx + 4]
cmp dword [rax + 4], r11d
jl 0x6a561c6b
mov qword [rcx], rdx
lea rcx, [rdx + 8]
mov rdx, qword [rdx + 8]
jmp 0x6a561c58
mov qword [r9], rax
lea r9, [rax + 8]
mov rax, qword [rax + 8]
test rax, rax
jne 0x6a561c20
jmp 0x6a561c34
mov qword [rcx], rax
lea rcx, [rax + 8]
mov rax, qword [rax + 8]
test rax, rax
jne 0x6a561be0
jmp 0x6a561bf8
mov qword [rdx + 8], rax
jmp 0x6a561961
mov rax, qword [r8 + 0x28]
test rax, rax
je 0x6a561df6
mov rdx, qword [rax + 0x20]
test rdx, rdx
je 0x6a561ddd
mov rcx, qword [rdx]
mov qword [rax + 0x20], rcx
mov rcx, rdx
mov r10, qword [rax + 0x28]
lea r9, [r10 - 0x30]
cmp r9, 0x2f
mov qword [rax + 0x28], r9
jg 0x6a561d55
cmp rax, qword [r8 + 0x28]
mov r9, qword [rax + 0x10]
je 0x6a561e51
mov r10, qword [rax + 0x18]
mov qword [r10 + 0x10], r9
mov r9, qword [rax + 0x10]
test r9, r9
je 0x6a561d4d
mov r10, qword [rax + 0x18]
mov qword [r9 + 0x18], r10
pxor xmm0, xmm0
movaps xmmword [rax + 0x10], xmm0
add qword [r8 + 0x2098], 0x30
mov qword [rdx + 8], 1
lea rdx, [rcx + 0x10]
mov qword [rcx + 0x14], 0
mov dword [rcx + 0x10], ebx
mov rax, qword [0x6a5a22e0]
mov qword [rcx + 0x1c], 0
mov dword [rcx + 0x24], 0
mov rcx, qword [0x6a5a22e8]
lea r9, [rax + rcx]
xor rcx, rax
ror rax, 9
mov r10, rcx
xor rax, rcx
ror rcx, 0x1c
shl r10, 0xe
xor rax, r10
cmp r9, 0xfffffffffffffffc
ja 0x6a561d91
movq xmm0, rax
movq xmm1, rcx
mov qword [rsp + 0x50], rdx
and r9d, 0x7fffffff
punpcklqdq xmm0, xmm1
movaps xmmword [0x6a5a22e0], xmm0
mov dword [rdx + 4], r9d
jmp 0x6a561924
mov r9, qword [rax + 0x30]
lea rcx, [rax + r9 + 0x40]
add r9, 0x30
mov rdx, rcx
mov qword [rax + 0x30], r9
jmp 0x6a561d14
mov edx, 0x1000
mov rcx, r8
call fcn.6a55ec10
mov r8, qword [0x6a59e7c0]
pxor xmm0, xmm0
mov qword [rax + 0x20], 0
movaps xmmword [rax + 0x10], xmm0
mov qword [rax + 8], 0x30
movups xmmword [rax + 0x28], xmm6
mov rdx, qword [r8 + 0x28]
test rdx, rdx
mov qword [rax + 0x10], rdx
je 0x6a561e37
mov qword [rdx + 0x18], rax
mov qword [r8 + 0x28], rax
cmp qword [rax + 0x28], 0x2f
lea rdx, [rax + 0x40]
mov rcx, rdx
jg 0x6a561d55
mov r9, qword [rax + 0x10]
test r9, r9
mov qword [r8 + 0x28], r9
je 0x6a561d4d
mov qword [r9 + 0x18], 0
jmp 0x6a561d4d