Function at 0x10110020
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
mov eax, dword [0x1026e004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x458], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x46c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x470], eax
mov eax, dword [ebp + 0x20]
push ebx
mov dword [ebp - 0x474], eax
mov eax, dword [ebp + 0x24]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x44c], eax
mov eax, dword [ebp + 0x28]
push edi
mov dword [ebp - 0x478], eax
jne 0x10110082
cmp dword [esi + 0xa4], 1
jne 0x101103a9
mov edi, dword [esi + 4]
mov dword [ebp - 0x454], edi
lea eax, [edi - 0x10]
cmp eax, 0x3f0
ja 0x101103a9
push dword [esi + 0xa8]
call fcn.10108cc0
add esp, 4
mov dword [ebp - 0x450], eax
test eax, eax
je 0x101103a9
push eax
call fcn.101087f0
movzx ebx, al
add esp, 4
lea eax, [ebx + ebx]
mov dword [ebp - 0x45c], eax
add eax, 2
cmp eax, edi
ja 0x101103a9
cmp dword [ebp + 0x14], 0
lea eax, [ebp - 0x444]
push eax
push dword [ebp - 0x44c]
jne 0x101100f3
push esi
call fcn.1010ff10
add esp, 0xc
jmp 0x10110108
push dword [ebp - 0x46c]
push dword [ebp - 0x458]
push esi
call fcn.1010fae0
add esp, 0x14
mov edi, eax
test edi, edi
jne 0x10110377
lea eax, [ebp - 0x468]
push eax
call fcn.10108d30
push edi
push dword [ebp - 0x450]
lea eax, [ebp - 0x468]
push eax
call fcn.10108d60
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10110368
mov eax, dword [ebp - 0x454]
lea ecx, [ebp - 0x468]
sub eax, ebx
lea esi, [ebp - 0x443]
push ecx
dec eax
add esi, ebx
push eax
push esi
mov dword [ebp - 0x458], eax
lea eax, [ebp - 0x443]
push ebx
push eax
call fcn.10110de0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x10110368
lea eax, [ebp - 0x468]
push eax
push ebx
lea eax, [ebp - 0x443]
push eax
push dword [ebp - 0x458]
push esi
call fcn.10110de0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x10110368
lea eax, [ebp - 0x468]
push eax
call fcn.10108730
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0x1c]
push dword [ebp - 0x470]
push dword [ebp - 0x450]
call fcn.101084f0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x10110377
mov dl, byte [ebp - 0x444]
xor ecx, ecx
mov byte [ebp - 0x445], dl
test ebx, ebx
je 0x10110284
cmp ebx, 0x20
jb 0x1011026b
mov eax, ebx
xorps xmm3, xmm3
and eax, 0xffffffe0
xorps xmm2, xmm2
nop word [eax + eax]
movups xmm0, xmmword [esi]
movups xmm1, xmmword [ebp + ecx - 0x44]
pxor xmm1, xmm0
movups xmm0, xmmword [esi + 0x10]
add esi, 0x20
por xmm3, xmm1
movups xmm1, xmmword [ebp + ecx - 0x34]
add ecx, 0x20
pxor xmm1, xmm0
por xmm2, xmm1
cmp ecx, eax
jb 0x10110200
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 2
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 1
por xmm2, xmm0
movd eax, xmm2
or dl, al
mov byte [ebp - 0x445], dl
cmp ecx, ebx
jae 0x10110284
nop
mov al, byte [ebp + ecx - 0x44]
inc ecx
xor al, byte [esi]
inc esi
or dl, al
cmp ecx, ebx
jb 0x10110270
mov byte [ebp - 0x445], dl
mov eax, dword [ebp - 0x454]
xor ebx, ebx
sub eax, dword [ebp - 0x45c]
xor edi, edi
add eax, 0xfffffffe
mov dword [ebp - 0x44c], ebx
xor cl, cl
mov dword [ebp - 0x450], eax
xor edx, edx
cmp eax, 2
jb 0x101102f1
nop dword [eax]
or cl, byte [esi + edx]
mov al, cl
neg al
or al, cl
or cl, byte [esi + edx + 1]
not al
add edx, 2
movzx eax, al
shr eax, 7
add edi, eax
mov al, cl
neg al
mov dword [ebp - 0x45c], edi
or al, cl
not al
movzx eax, al
shr eax, 7
add ebx, eax
mov eax, dword [ebp - 0x450]
dec eax
cmp edx, eax
jb 0x101102b0
mov eax, dword [ebp - 0x450]
cmp edx, eax
jae 0x1011030c
or cl, byte [edx + esi]
mov al, cl
neg al
or al, cl
not al
movzx eax, al
shr eax, 7
mov dword [ebp - 0x44c], eax
mov cl, byte [ebp - 0x445]
lea eax, [ebx + edi]
add eax, dword [ebp - 0x44c]
add esi, eax
mov al, byte [esi]
inc esi
xor al, 1
or cl, al
je 0x1011032d
mov edi, 0xffffbf00
jmp 0x10110377
mov eax, dword [ebp - 0x454]
sub eax, esi
lea eax, [ebp + eax - 0x444]
cmp eax, dword [ebp + 0x2c]
jbe 0x10110348
mov edi, 0xffffbc00
jmp 0x10110377
mov ecx, dword [ebp - 0x474]
mov dword [ecx], eax
test eax, eax
je 0x10110364
push eax
push esi
push dword [ebp - 0x478]
call fcn.100e1b00
add esp, 0xc
xor edi, edi
jmp 0x10110377
lea eax, [ebp - 0x468]
push eax
call fcn.10108730
add esp, 4
lea eax, [ebp - 0x444]
push 0x400
push eax
call fcn.101115e0
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.101115e0
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e04a9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xffffbf80
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100e04a9
mov esp, ebp
pop ebp
ret