Function at 0x1015f180
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xfc
mov eax, dword [0x10205ac8]
xor eax, esp
mov dword [esp + 0xf8], eax
mov eax, dword [esp + 0x104]
mov ecx, dword [esp + 0x100]
push ebx
mov ebx, dword [esp + 0x118]
push ebp
mov dword [esp + 0xc], eax
xor ebp, ebp
cmp dword [esp + 0x118], 0x1c
mov eax, dword [esp + 0x114]
push edi
mov edi, dword [esp + 0x128]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
jae 0x1015f1ec
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.101b4a00
add esp, 0xfc
ret
push esi
mov esi, dword [esp + 0x128]
mov edx, 0x20
cmp esi, edx
cmova esi, edx
lea edx, [esp + 0x94]
push edx
push eax
push ecx
call fcn.100e61c0
add esp, 0xc
test eax, eax
js 0x1015f463
push 0x3f
xorps xmm0, xmm0
mov byte [esp + 0x23], 4
lea eax, [esp + 0x55]
mov dword [esp + 0x24], 0x1000000
push 0
push eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
movups xmmword [esp + 0x40], xmm0
mov dword [esp + 0x58], ebp
movq qword [esp + 0x50], xmm0
mov byte [esp + 0x5c], 0
call fcn.101b66d0
lea eax, [esp + 0x30]
mov dword [esp + 0x9c], ebp
push eax
call fcn.100e32b0
push 1
lea eax, [esp + 0x33]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.100e32f0
push 0x38
lea eax, [esp + 0xb4]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.100e32f0
add esp, 0x28
test edi, edi
je 0x1015f2e4
mov dword [edi + 0x1c], ebp
mov dword [edi + 0x3c], ebp
movups xmm0, xmmword [esp + 0x94]
mov eax, dword [esp + 0xac]
movups xmmword [edi], xmm0
movq xmm0, qword [esp + 0xa4]
movq qword [edi + 0x10], xmm0
movups xmm0, xmmword [esp + 0xb0]
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0xc8]
movups xmmword [edi + 0x20], xmm0
movq xmm0, qword [esp + 0xc0]
movq qword [edi + 0x30], xmm0
mov dword [edi + 0x38], eax
mov ecx, dword [esp + 0x14]
push 0
mov eax, dword [ecx + 0x18]
movups xmm0, xmmword [ecx]
mov dword [esp + 0xb0], eax
mov eax, dword [ecx + 0x38]
mov dword [esp + 0xcc], eax
lea eax, [esp + 0xf0]
movups xmmword [esp + 0x98], xmm0
push eax
movq xmm0, qword [ecx + 0x10]
lea eax, [esp + 0x9c]
movq qword [esp + 0xac], xmm0
movups xmm0, xmmword [ecx + 0x20]
push eax
push dword [esp + 0x24]
movups xmmword [esp + 0xc0], xmm0
movq xmm0, qword [ecx + 0x30]
push dword [esp + 0x20]
movq qword [esp + 0xd4], xmm0
call fcn.100e5f90
add esp, 0x14
test eax, eax
je 0x1015f463
push 0x1c
lea eax, [esp + 0xf0]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.100e32f0
push 4
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.100e32f0
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0xe8]
push eax
call fcn.100e31c0
add esp, 0x20
xor edx, edx
test esi, esi
je 0x1015f45e
cmp esi, 0x40
jb 0x1015f43c
lea ecx, [ebx - 1]
lea eax, [esp + esi + 0xcb]
add ecx, esi
cmp ebx, eax
ja 0x1015f3c1
lea eax, [esp + 0xcc]
cmp ecx, eax
jae 0x1015f43c
mov ecx, esi
lea edi, [esp + 0xcc]
lea ebp, [esp + 0xdc]
and ecx, 0xffffffc0
sub edi, ebx
lea eax, [ebx + 0x20]
sub ebp, ebx
nop dword [eax + eax]
movups xmm0, xmmword [eax - 0x20]
lea eax, [eax + 0x40]
movups xmm1, xmmword [esp + edx + 0xcc]
pxor xmm1, xmm0
movups xmmword [eax - 0x60], xmm1
movups xmm0, xmmword [eax - 0x50]
movups xmm1, xmmword [esp + edx + 0xdc]
add edx, 0x40
pxor xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [edi + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [eax + ebp - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
cmp edx, ecx
jb 0x1015f3e0
mov dword [esp + 0x10], edx
cmp edx, esi
jae 0x1015f45e
lea edi, [esp + 0xcc]
sub edi, ebx
lea ecx, [ebx + edx]
sub esi, edx
nop word [eax + eax]
mov al, byte [ecx + edi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub esi, 1
jne 0x1015f450
mov ebp, 1
mov ecx, dword [esp + 0x108]
mov eax, ebp
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.101b4a00
add esp, 0xfc
ret