Function at 0x1008d760
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1d4
mov eax, dword [0x10182f40]
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 0x1008d7f9
push 0x128
lea eax, [esp + 0x14]
push 0
push eax
call fcn.10118ce0
movups xmm0, xmmword [0x1016ff84]
push esi
mov edx, ebx
lea ecx, [esp + 0x20]
movups xmmword [esp + 0x120], xmm0
movups xmm0, xmmword [0x1016ff94]
movups xmmword [esp + 0x130], xmm0
call fcn.1008d700
add esp, 0x10
lea edx, [esp + 0x138]
push 0x20
push ecx
lea ecx, [esp + 0x18]
call fcn.1008d660
xorps xmm0, xmm0
add esp, 8
movups xmmword [esp + 0x158], xmm0
movups xmmword [esp + 0x168], xmm0
jmp 0x1008d82c
push esi
lea eax, [esp + 0x13c]
push ebx
push eax
call fcn.10118e40
add esp, 0xc
cmp esi, 0x40
jae 0x1008d82c
mov eax, 0x40
sub eax, esi
push eax
lea eax, [esp + 0x13c]
add eax, esi
push 0
push eax
call fcn.10118ce0
add esp, 0xc
movaps xmm1, xmmword [0x1017bc70]
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 0x1008d840
push 0x128
lea eax, [esp + 0x14]
push 0
push eax
call fcn.10118ce0
movups xmm0, xmmword [0x1016ff84]
push 0x40
lea edx, [esp + 0x188]
movups xmmword [esp + 0x120], xmm0
lea ecx, [esp + 0x20]
movups xmm0, xmmword [0x1016ff94]
movups xmmword [esp + 0x130], xmm0
call fcn.1008ae20
mov ebx, dword [ebp + 0xc]
add esp, 0x10
cmp ebx, 0x40000000
jbe 0x1008d8f4
lea esi, [ebx - 0x40000001]
shr esi, 0x1e
inc esi
nop dword [eax]
push 0x40000000
mov edx, edi
lea ecx, [esp + 0x14]
call fcn.1008ae20
add esp, 4
add edi, 0x40000000
sub ebx, 0x40000000
sub esi, 1
jne 0x1008d8d0
push ebx
mov edx, edi
lea ecx, [esp + 0x14]
call fcn.1008ae20
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, 0x101704d8
or edi, eax
shl esi, 3
call fcn.1008ae20
add esp, 8
lea ecx, [esp + 0x10]
bswap edi
bswap esi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], esi
call fcn.1008aef0
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 0x1008d960
push 0x20
lea eax, [esp + 0x114]
push eax
lea eax, [esp + 0x1c4]
push eax
call fcn.10118e40
movaps xmm1, xmmword [0x1017bcb0]
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 0x1008d9a0
push 0x128
lea eax, [esp + 0x14]
push 0
push eax
call fcn.10118ce0
movups xmm0, xmmword [0x1016ff84]
push 0x40
lea edx, [esp + 0x188]
movups xmmword [esp + 0x120], xmm0
lea ecx, [esp + 0x20]
movups xmm0, xmmword [0x1016ff94]
movups xmmword [esp + 0x130], xmm0
call fcn.1008ae20
push 0x20
lea edx, [esp + 0x1d0]
lea ecx, [esp + 0x24]
call fcn.1008ae20
mov edx, dword [esp + 0x20]
add esp, 0x14
push 0x104
push ecx
lea ecx, [esp + 0x18]
call fcn.1008d660
mov ecx, dword [esp + 0x1e4]
add esp, 8
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101149a0
mov esp, ebp
pop ebp
ret