Function at 0x5815d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x160]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [ebp - 4], edi
mov dword [esi + 0x16c], 0
mov dword [esi + 0x168], 0
cmp ebx, 0xc
jne 0x581671
mov eax, dword [ebp + 0xc]
lea edi, [ebx - 0xb]
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
mov byte [esi + 0xf], 1
jmp 0x5817d0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ebx
cmp ebx, 0x10
jb 0x5816e5
mov edi, ecx
mov dword [ebp + 0x10], ecx
mov eax, ebx
lea edx, [esi + 0xf]
sub edi, esi
shr eax, 4
mov dword [ebp - 8], eax
nop
lea eax, [edi + edx]
cmp esi, eax
ja 0x5816b2
cmp edx, ecx
jb 0x5816b2
mov eax, esi
mov edx, 0x10
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x5816a2
jmp 0x5816bf
movups xmm1, xmmword [esi]
movups xmm0, xmmword [ecx]
pxor xmm1, xmm0
movups xmmword [esi], xmm1
lea eax, [esi + 0x60]
push eax
push esi
call dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + 0xf]
add ecx, 0x10
add esp, 8
add edi, 0x10
mov dword [ebp + 0x10], ecx
sub ebx, 0x10
sub dword [ebp - 8], 1
jne 0x581690
mov edi, dword [ebp - 4]
test ebx, ebx
je 0x5817ab
xor edi, edi
test ebx, ebx
je 0x58179e
cmp ebx, 0x40
jb 0x581789
lea eax, [ecx - 1]
lea edx, [esi - 1]
add eax, ebx
add edx, ebx
cmp esi, eax
ja 0x581712
cmp edx, ecx
jae 0x581789
lea edx, [ecx + 0x30]
mov eax, ebx
mov dword [ebp + 0x10], edx
and eax, 0xffffffc0
mov edx, ecx
mov dword [ebp - 0xc], eax
sub edx, esi
lea eax, [esi + 0x10]
mov dword [ebp - 8], edx
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp - 8]
movups xmm0, xmmword [eax - 0x10]
add edi, 0x40
lea edx, [edx + 0x40]
lea eax, [eax + 0x40]
movups xmm1, xmmword [edx - 0x70]
pxor xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [eax + esi - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [edx - 0x50]
pxor xmm1, xmm0
movups xmm0, xmmword [edx - 0x40]
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp edi, dword [ebp - 0xc]
jb 0x581730
mov esi, dword [ebp + 8]
mov dword [ebp + 0x10], edi
cmp edi, ebx
jae 0x58179e
sub ecx, esi
lea edx, [edi + esi]
sub ebx, edi
mov al, byte [ecx + edx]
lea edx, [edx + 1]
xor byte [edx - 1], al
sub ebx, 1
jne 0x581790
mov edi, dword [ebp - 4]
lea eax, [esi + 0x60]
push eax
push esi
call edi
add esp, 8
mov eax, dword [ebp - 0x10]
xor ecx, ecx
shld ecx, eax, 3
shl eax, 3
bswap eax
xor dword [esi + 0xc], eax
lea eax, [esi + 0x60]
push eax
bswap ecx
xor dword [esi + 8], ecx
push esi
call edi
mov edi, dword [esi + 0xc]
add esp, 8
bswap edi
push dword [esi + 0x174]
lea eax, [esi + 0x20]
push eax
mov eax, dword [esi + 0x170]
push esi
call eax
add esp, 0xc
inc edi
bswap edi
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret