Function at 0x6a5d0150
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.6a5c8990
movdqu xmm2, xmmword [rsp + 0x20]
lea r15, [rsp + 0x40]
mov qword [rsp + 0x38], 0
mov r8, qword [0x6a68bbb0]
lea r14, [rsp + 0x58]
movdqa xmm6, xmmword [0x6a68b310]
movaps xmmword [0x6a68f2d0], 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 0x6a5d0580
cmp rcx, 2
mov rdx, r14
mov rcx, r15
je 0x6a5d0400
test rax, rax
je 0x6a5d0278
nop dword [rax + rax]
cmp ebx, dword [rax]
jle 0x6a5d03c0
mov qword [rdx], rax
lea rdx, [rax + 0x10]
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x6a5d0260
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 0x6a5d02b8
nop dword [rax]
cmp ecx, dword [rax]
jle 0x6a5d03e0
mov qword [rdx], rax
lea rdx, [rax + 0x10]
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x6a5d02a0
mov qword [rdx], 0
mov rdx, qword [rsp + 0x50]
mov qword [r9], 0
test rdx, rdx
je 0x6a5d06a0
mov rax, qword [rsp + 0x58]
mov rcx, rdi
test rax, rax
je 0x6a5d030e
nop dword [rax + rax]
nop word cs:[rax + rax]
mov r11d, dword [rdx + 4]
cmp dword [rax + 4], r11d
jge 0x6a5d0380
mov qword [rcx], rax
lea rcx, [rax + 0x10]
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x6a5d02f0
mov qword [rcx], rdx
mov rax, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, qword [rsp + 0x48]
test rax, rax
je 0x6a5d034a
test rdx, rdx
je 0x6a5d03b0
nop dword [rax]
mov r10d, dword [rdx + 4]
cmp dword [rax + 4], r10d
jge 0x6a5d03a0
mov qword [rcx], rax
lea rcx, [rax + 0x10]
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x6a5d0330
mov qword [rcx], rdx
add rsi, 1
cmp rsi, 0x7a120
jne 0x6a5d01d0
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 0x6a5d0690
mov rdx, r9
jmp 0x6a5d02f0
mov qword [rcx], rdx
lea rcx, [rdx + 8]
mov rdx, qword [rdx + 8]
test rdx, rdx
jne 0x6a5d0330
mov qword [rcx], rax
jmp 0x6a5d034d
mov qword [rcx], rax
lea rcx, [rax + 8]
mov rax, qword [rax + 8]
test rax, rax
jne 0x6a5d0260
jmp 0x6a5d0278
mov qword [r9], rax
lea r9, [rax + 8]
mov rax, qword [rax + 8]
test rax, rax
jne 0x6a5d02a0
jmp 0x6a5d02b8
test rax, rax
je 0x6a5d0428
nop
nop word cs:[rax + rax]
cmp ebx, dword [rax]
jle 0x6a5d0560
mov qword [rdx], rax
lea rdx, [rax + 0x10]
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x6a5d0410
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 0x6a5d0468
nop dword [rax]
cmp ecx, dword [rax]
jle 0x6a5d0540
mov qword [rdx], rax
lea rdx, [rax + 0x10]
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x6a5d0450
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 0x6a5d04ba
test rdx, rdx
je 0x6a5d0534
nop dword [rax + rax]
nop word cs:[rax + rax]
mov r10d, dword [rdx + 4]
cmp dword [rax + 4], r10d
jge 0x6a5d0520
mov qword [rcx], rax
lea rcx, [rax + 0x10]
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x6a5d04a0
mov qword [rcx], rdx
mov rax, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, qword [rsp + 0x48]
test rax, rax
je 0x6a5d034a
test rdx, rdx
je 0x6a5d03b0
mov r11d, dword [rdx + 4]
cmp dword [rax + 4], r11d
jge 0x6a5d0504
mov qword [rcx], rax
lea rcx, [rax + 0x10]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x6a5d034a
mov r11d, dword [rdx + 4]
cmp dword [rax + 4], r11d
jl 0x6a5d04e6
mov qword [rcx], rdx
lea rcx, [rdx + 8]
mov rdx, qword [rdx + 8]
jmp 0x6a5d04d3
mov qword [rcx], rdx
lea rcx, [rdx + 8]
mov rdx, qword [rdx + 8]
test rdx, rdx
jne 0x6a5d04a0
mov qword [rcx], rax
jmp 0x6a5d04bd
mov qword [r9], rax
lea r9, [rax + 8]
mov rax, qword [rax + 8]
test rax, rax
jne 0x6a5d0450
jmp 0x6a5d0468
mov qword [rcx], rax
lea rcx, [rax + 8]
mov rax, qword [rax + 8]
test rax, rax
jne 0x6a5d0410
jmp 0x6a5d0428
test rax, rax
mov rcx, r15
mov rdx, r14
je 0x6a5d05a8
nop dword [rax + rax]
cmp ebx, dword [rax]
jle 0x6a5d0670
mov qword [rdx], rax
lea rdx, [rax + 0x10]
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x6a5d0590
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 0x6a5d05e4
nop dword [rax]
cmp ecx, dword [rax]
jle 0x6a5d0650
mov qword [rdx], rax
lea rdx, [rax + 0x10]
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x6a5d05d0
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 0x6a5d034a
test rdx, rdx
je 0x6a5d03b0
mov r11d, dword [rdx + 4]
cmp dword [rax + 4], r11d
jge 0x6a5d0639
mov qword [rcx], rax
lea rcx, [rax + 0x10]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x6a5d034a
mov r11d, dword [rdx + 4]
cmp dword [rax + 4], r11d
jl 0x6a5d061b
mov qword [rcx], rdx
lea rcx, [rdx + 8]
mov rdx, qword [rdx + 8]
jmp 0x6a5d0608
mov qword [r9], rax
lea r9, [rax + 8]
mov rax, qword [rax + 8]
test rax, rax
jne 0x6a5d05d0
jmp 0x6a5d05e4
mov qword [rcx], rax
lea rcx, [rax + 8]
mov rax, qword [rax + 8]
test rax, rax
jne 0x6a5d0590
jmp 0x6a5d05a8
mov qword [rdx + 8], rax
jmp 0x6a5d0311
mov rax, qword [r8 + 0x28]
test rax, rax
je 0x6a5d07a6
mov rdx, qword [rax + 0x20]
test rdx, rdx
je 0x6a5d078d
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 0x6a5d0705
cmp rax, qword [r8 + 0x28]
mov r9, qword [rax + 0x10]
je 0x6a5d0801
mov r10, qword [rax + 0x18]
mov qword [r10 + 0x10], r9
mov r9, qword [rax + 0x10]
test r9, r9
je 0x6a5d06fd
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 [0x6a68f2d0]
mov qword [rcx + 0x1c], 0
mov dword [rcx + 0x24], 0
mov rcx, qword [0x6a68f2d8]
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 0x6a5d0741
movq xmm0, rax
movq xmm1, rcx
mov qword [rsp + 0x50], rdx
and r9d, 0x7fffffff
punpcklqdq xmm0, xmm1
movaps xmmword [0x6a68f2d0], xmm0
mov dword [rdx + 4], r9d
jmp 0x6a5d02d4
mov r9, qword [rax + 0x30]
lea rcx, [rax + r9 + 0x40]
add r9, 0x30
mov rdx, rcx
mov qword [rax + 0x30], r9
jmp 0x6a5d06c4
mov edx, 0x1000
mov rcx, r8
call fcn.6a5cd8c0
mov r8, qword [0x6a68bbb0]
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 0x6a5d07e7
mov qword [rdx + 0x18], rax
mov qword [r8 + 0x28], rax
cmp qword [rax + 0x28], 0x2f
lea rdx, [rax + 0x40]
mov rcx, rdx
jg 0x6a5d0705
mov r9, qword [rax + 0x10]
test r9, r9
mov qword [r8 + 0x28], r9
je 0x6a5d06fd
mov qword [r9 + 0x18], 0
jmp 0x6a5d06fd