Function at 0x5aa020
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
mov edi, dword [rcx]
mov ebx, dword [rcx + 4]
mov r10d, dword [rcx + 8]
mov esi, dword [rcx + 0xc]
mov qword [rsp + 0xc0], rcx
mov r15, qword [rsp + 0xc0]
mov rax, rcx
mov r14d, edx
mov r11, qword [rsp + 0xc0]
mov dword [rsp + 0x2c], edi
mov edx, dword [rax + 0x14]
mov dword [rsp + 0x44], ebx
mov ecx, dword [rcx + 0x10]
mov dword [rsp + 0x58], r10d
mov r9d, dword [r15 + 0x24]
mov dword [rsp + 0x6c], esi
mov r11d, dword [r11 + 0x1c]
mov r15d, dword [r15 + 0x28]
mov dword [rsp + 0x54], edx
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x64], r9d
mov dword [rsp + 0x18], r11d
mov dword [rsp + 0x3c], r11d
mov r11, qword [rsp + 0xc0]
mov dword [rsp + 0x14], r15d
mov dword [rsp + 0x38], r15d
mov r15, qword [rsp + 0xc0]
mov dword [rsp + 0x68], eax
mov r11d, dword [r11 + 0x20]
mov r15d, dword [r15 + 0x2c]
mov dword [rsp + 0x50], r11d
mov dword [rsp + 0x1c], r15d
mov dword [rsp + 0x4c], r15d
mov r8, qword [rsp + 0xc0]
mov rbp, qword [rsp + 0xc0]
mov r8d, dword [r8 + 0x30]
mov r12d, dword [rbp + 0x34]
mov r13d, dword [rbp + 0x38]
mov r15d, dword [rbp + 0x3c]
mov ebp, r14d
mov dword [rsp + 0x60], r8d
mov dword [rsp + 0x34], r12d
mov dword [rsp + 0x48], r13d
mov dword [rsp + 0x5c], r15d
mov qword [rsp + 0x20], rbp
test rbp, rbp
je 0x5aa32c
mov qword [rsp + 8], 0
mov r14d, dword [rsp + 0x1c]
nop
lea ebp, [r8 + rdi]
rol ebp, 7
xor ecx, ebp
lea ebp, [rcx + rdi]
rol ebp, 9
xor r11d, ebp
lea ebp, [rcx + r11]
rol ebp, 0xd
xor ebp, r8d
lea r8d, [r11 + rbp]
mov dword [rsp + 0x1c], ebp
lea ebp, [r13 + r10]
ror r8d, 0xe
xor edi, r8d
rol ebp, 7
lea r8d, [r12 + rbx]
xor ebp, eax
rol r8d, 7
xor edx, r8d
lea r8d, [rdx + rbx]
rol r8d, 9
xor r8d, r9d
mov r9d, r8d
lea r8d, [rdx + r8]
mov dword [rsp + 0x28], r9d
rol r8d, 0xd
xor r12d, r8d
lea r8d, [r9 + r12]
lea r9d, [rsi + r15]
ror r8d, 0xe
xor ebx, r8d
rol r9d, 7
xor r9d, dword [rsp + 0x18]
lea r8d, [rbp + r10]
rol r8d, 9
xor r8d, dword [rsp + 0x14]
lea eax, [rbp + r8]
rol eax, 0xd
xor r13d, eax
lea eax, [r8 + r13]
ror eax, 0xe
xor r10d, eax
lea eax, [r9 + rsi]
rol eax, 9
xor eax, r14d
lea r14d, [r9 + rax]
rol r14d, 0xd
xor r15d, r14d
lea r14d, [rax + r15]
ror r14d, 0xe
xor esi, r14d
lea r14d, [rdi + r9]
rol r14d, 7
xor r12d, r14d
lea r14d, [rdi + r12]
rol r14d, 9
xor r14d, r8d
lea r8d, [r12 + r14]
mov dword [rsp + 0x14], r14d
rol r8d, 0xd
xor r8d, r9d
add r14d, r8d
mov dword [rsp + 0x18], r8d
mov r8d, r14d
ror r8d, 0xe
xor edi, r8d
lea r8d, [rcx + rbx]
rol r8d, 7
xor r13d, r8d
lea r14d, [rbx + r13]
lea r8d, [rbp + rsi]
rol r14d, 9
xor r14d, eax
rol r8d, 7
xor r8d, dword [rsp + 0x1c]
lea eax, [r13 + r14]
rol eax, 0xd
lea r9d, [rsi + r8]
xor ecx, eax
lea eax, [r14 + rcx]
rol r9d, 9
xor r9d, dword [rsp + 0x28]
ror eax, 0xe
xor ebx, eax
lea eax, [rdx + r10]
rol eax, 7
xor r15d, eax
lea eax, [r10 + r15]
rol eax, 9
xor r11d, eax
lea eax, [r15 + r11]
rol eax, 0xd
xor edx, eax
lea eax, [r11 + rdx]
ror eax, 0xe
xor r10d, eax
lea eax, [r8 + r9]
rol eax, 0xd
xor eax, ebp
lea ebp, [r9 + rax]
ror ebp, 0xe
xor esi, ebp
add qword [rsp + 8], 2
mov rbp, qword [rsp + 8]
cmp qword [rsp + 0x20], rbp
ja 0x5aa120
movd xmm1, edi
movd xmm0, dword [rsp + 0x14]
pinsrd xmm0, dword [rsp + 0x18], 1
pinsrd xmm1, r12d, 1
movdqu xmm2, xmm1
movd xmm1, ecx
punpcklqdq xmm2, xmm0
pinsrd xmm1, ebx, 1
movd xmm0, r13d
movdqu xmm3, xmm1
pinsrd xmm0, r14d, 1
movd xmm1, r10d
punpcklqdq xmm3, xmm0
movd xmm0, r11d
pinsrd xmm1, r15d, 1
pinsrd xmm0, edx, 1
punpcklqdq xmm0, xmm1
movd xmm1, eax
movups xmmword [rsp + 0x50], xmm0
movd xmm0, r8d
pinsrd xmm1, esi, 1
pinsrd xmm0, r9d, 1
movups xmmword [rsp + 0x30], xmm2
punpcklqdq xmm0, xmm1
movups xmmword [rsp + 0x40], xmm3
movups xmmword [rsp + 0x60], xmm0
mov rbx, qword [rsp + 0xc0]
mov rax, qword [rsp + 0xc0]
add edi, dword [rsp + 0x2c]
mov dword [rax], edi
mov eax, dword [rsp + 0x44]
add dword [rbx + 4], eax
mov eax, dword [rsp + 0x58]
add dword [rbx + 8], eax
mov eax, dword [rsp + 0x6c]
add dword [rbx + 0xc], eax
mov eax, dword [rsp + 0x40]
add dword [rbx + 0x10], eax
mov eax, dword [rsp + 0x54]
add dword [rbx + 0x14], eax
mov eax, dword [rsp + 0x68]
add dword [rbx + 0x18], eax
mov eax, dword [rsp + 0x3c]
add dword [rbx + 0x1c], eax
mov eax, dword [rsp + 0x50]
add dword [rbx + 0x20], eax
mov eax, dword [rsp + 0x64]
add dword [rbx + 0x24], eax
mov eax, dword [rsp + 0x38]
add dword [rbx + 0x28], eax
mov eax, dword [rsp + 0x4c]
add dword [rbx + 0x2c], eax
mov eax, dword [rsp + 0x60]
add dword [rbx + 0x30], eax
mov eax, dword [rsp + 0x34]
add dword [rbx + 0x34], eax
mov eax, dword [rsp + 0x48]
add dword [rbx + 0x38], eax
mov eax, dword [rsp + 0x5c]
add dword [rbx + 0x3c], eax
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret