Function at 0x1008e770
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1d4
mov eax, dword [0x10184f40]
xor eax, esp
mov dword [esp + 0x1d0], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, edx
mov dword [esp + 8], eax
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
cmp esi, 0x40
jbe 0x1008e809
push 0x128
lea eax, [esp + 0x14]
push 0
push eax
call fcn.1011a970
movups xmm0, xmmword [0x101713f8]
push esi
mov edx, ebx
lea ecx, [esp + 0x20]
movups xmmword [esp + 0x120], xmm0
movups xmm0, xmmword [0x10171408]
movups xmmword [esp + 0x130], xmm0
call fcn.1008e710
add esp, 0x10
lea edx, [esp + 0x138]
push 0x20
push ecx
lea ecx, [esp + 0x18]
call fcn.1008e670
xorps xmm0, xmm0
add esp, 8
movups xmmword [esp + 0x158], xmm0
movups xmmword [esp + 0x168], xmm0
jmp 0x1008e83c
push esi
lea eax, [esp + 0x13c]
push ebx
push eax
call fcn.1011aad0
add esp, 0xc
cmp esi, 0x40
jae 0x1008e83c
mov eax, 0x40
sub eax, esi
push eax
lea eax, [esp + 0x13c]
add eax, esi
push 0
push eax
call fcn.1011a970
add esp, 0xc
movaps xmm1, xmmword [0x1017dc80]
xor eax, eax
nop word [eax + eax]
movups xmm0, xmmword [esp + eax + 0x138]
pxor xmm0, xmm1
movups xmmword [esp + eax + 0x178], xmm0
movups xmm0, xmmword [esp + eax + 0x148]
pxor xmm0, xmm1
movups xmmword [esp + eax + 0x188], xmm0
add eax, 0x20
cmp eax, 0x40
jl 0x1008e850
push 0x128
lea eax, [esp + 0x14]
push 0
push eax
call fcn.1011a970
movups xmm0, xmmword [0x101713f8]
push 0x40
lea edx, [esp + 0x188]
movups xmmword [esp + 0x120], xmm0
lea ecx, [esp + 0x20]
movups xmm0, xmmword [0x10171408]
movups xmmword [esp + 0x130], xmm0
call fcn.1008be30
mov ebx, dword [ebp + 0xc]
add esp, 0x10
cmp ebx, 0x40000000
jbe 0x1008e904
lea esi, [ebx - 0x40000001]
shr esi, 0x1e
inc esi
nop dword [eax]
push 0x40000000
mov edx, edi
lea ecx, [esp + 0x14]
call fcn.1008be30
add esp, 4
add edi, 0x40000000
sub ebx, 0x40000000
sub esi, 1
jne 0x1008e8e0
push ebx
mov edx, edi
lea ecx, [esp + 0x14]
call fcn.1008be30
mov esi, dword [esp + 0x138]
mov eax, 0x38
mov ecx, esi
mov edx, 0x78
and ecx, 0x3f
mov edi, esi
sub eax, ecx
sub edx, ecx
cmp ecx, 0x38
lea ecx, [esp + 0x14]
cmovb edx, eax
mov eax, dword [esp + 0x134]
shl eax, 3
push edx
shr edi, 0x1d
mov edx, 0x10170f38
or edi, eax
shl esi, 3
call fcn.1008be30
add esp, 8
lea ecx, [esp + 0x10]
bswap edi
bswap esi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], esi
call fcn.1008bf00
xor ecx, ecx
nop dword [eax]
mov eax, dword [esp + ecx*4 + 0x110]
bswap eax
mov dword [esp + ecx*4 + 0x110], eax
inc ecx
cmp ecx, 8
jl 0x1008e970
push 0x20
lea eax, [esp + 0x114]
push eax
lea eax, [esp + 0x1c4]
push eax
call fcn.1011aad0
movaps xmm1, xmmword [0x1017dcc0]
add esp, 0xc
xor eax, eax
nop dword [eax]
movups xmm0, xmmword [esp + eax + 0x138]
pxor xmm0, xmm1
movups xmmword [esp + eax + 0x178], xmm0
movups xmm0, xmmword [esp + eax + 0x148]
pxor xmm0, xmm1
movups xmmword [esp + eax + 0x188], xmm0
add eax, 0x20
cmp eax, 0x40
jl 0x1008e9b0
push 0x128
lea eax, [esp + 0x14]
push 0
push eax
call fcn.1011a970
movups xmm0, xmmword [0x101713f8]
push 0x40
lea edx, [esp + 0x188]
movups xmmword [esp + 0x120], xmm0
lea ecx, [esp + 0x20]
movups xmm0, xmmword [0x10171408]
movups xmmword [esp + 0x130], xmm0
call fcn.1008be30
push 0x20
lea edx, [esp + 0x1d0]
lea ecx, [esp + 0x24]
call fcn.1008be30
mov edx, dword [esp + 0x20]
add esp, 0x14
push 0x104
push ecx
lea ecx, [esp + 0x18]
call fcn.1008e670
mov ecx, dword [esp + 0x1e4]
add esp, 8
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10116580
mov esp, ebp
pop ebp
ret