Function at 0x10011e60
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x74]
xor ebx, ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ecx]
xor ebp, ebp
cmp eax, 2
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
jl case.0x10011eaf.2
cmp eax, 5
jg case.0x10011eaf.2
mov ecx, dword [ecx + 4]
lea eax, [ecx - 1]
cmp eax, 4
ja case.0x10011eaf.2
jmp dword [eax*4 + 0x10012098]
mov dword [esp + 0x10], 2
jmp 0x10011edc
mov dword [esp + 0x10], 3
jmp 0x10011edc
mov dword [esp + 0x10], 4
jmp 0x10011edc
mov dword [esp + 0x10], 5
mov esi, dword [esp + 0x64]
push 1
lea eax, [esi + 7]
shr eax, 3
push eax
mov dword [esp + 0x1c], eax
call fcn.10032980
mov ebp, eax
add esp, 8
cmp ebp, ebx
jne 0x10011f05
mov esi, 0xbffff43a
jmp 0x10012051
mov ebx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
lea eax, [ebx + edx]
lea ecx, [eax*8 + 9]
cmp esi, ecx
jae 0x10011f25
mov esi, 0xfffff439
jmp 0x10012051
mov ecx, ebp
xor eax, eax
mov esi, dword [esp + 0x68]
lea edi, [ebp + 8]
mov dword [ecx], eax
push edx
mov dword [ecx + 4], eax
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebx + ebp + 8]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x70], eax
call fcn.10014320
mov ecx, dword [esp + 0x7c]
mov edi, dword [esp + 0x78]
mov edx, dword [ecx]
lea eax, [ebx + edi + 8]
push edx
push eax
lea ecx, [esp + 0x28]
push ebp
lea edx, [esp + 0x30]
push ecx
push edx
call fcn.1000dd80
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x10012051
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x60]
sub edx, ebx
mov dword [esp + 0x74], edx
sub edx, edi
sub edx, 2
mov edi, esi
mov ecx, edx
mov dword [esp + 0x18], edx
mov ebx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
inc ebx
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x70]
mov byte [edx + esi], 1
mov edx, dword [esp + 0x60]
mov esi, dword [esp + 0x68]
mov ecx, eax
lea edi, [ebx + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add ebx, eax
mov eax, dword [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x78]
lea edx, [esp + 0x20]
push ecx
add eax, 0xfffffffe
push edx
push eax
push ebp
call fcn.100113e0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x10012051
mov esi, dword [esp + 0x60]
test ebx, ebx
jbe 0x1001200f
mov edi, ebp
mov eax, esi
sub edi, esi
mov ecx, ebx
mov dl, byte [edi + eax]
xor byte [eax], dl
inc eax
dec ecx
jne 0x10012006
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x64]
shl eax, 3
sub eax, ecx
je 0x10012028
mov dl, byte [esi]
mov cl, al
shl dl, cl
shr dl, cl
mov byte [esi], dl
mov ecx, dword [esp + 0x6c]
add ebx, esi
mov eax, ecx
lea esi, [esp + 0x1c]
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
xor esi, esi
mov byte [ebx + ecx], 0xbc
jmp 0x10012051
mov esi, 0xfffff43b
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov dl, byte [esp + 0x1c]
mov byte [esp + 0x1c], dl
test ebp, ebp
je 0x1001208d
mov ecx, dword [esp + 0x14]
mov edi, ebp
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov al, byte [ebp]
mov byte [ebp], al
push ebp
call fcn.10032abd
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret