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