Function at 0x1011e520
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edx
mov ecx, edx
mov dword [esp + 0xc], edi
xor esi, esi
test ecx, ecx
je 0x1011e6be
test byte [ebp + 0xc], 8
jne 0x1011e6be
mov ebx, dword [edi + 0xc]
lea eax, [esi + 0xd]
mov edi, dword [ebp + 8]
mov dword [esp + 0x1c], ebx
lea esi, [edi - 1]
test esi, esi
js 0x1011e57d
mov edi, ecx
movzx edx, byte [edi + esi]
lea ecx, [eax*8]
xor edx, ecx
xor eax, edx
sub esi, 1
jns 0x1011e562
mov edi, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
xor edx, edx
div dword [ebx + 0xc]
mov eax, dword [ebx + 0x14]
mov ebx, dword [eax + edx*4]
test ebx, ebx
je 0x1011e687
mov eax, dword [ebx + 0x14]
inc eax
cmp edi, eax
jne 0x1011e5e7
mov esi, edi
lea edx, [ebx + 0x28]
mov eax, ecx
sub esi, 4
jb 0x1011e5b5
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x1011e5ba
add edx, 4
add eax, 4
sub esi, 4
jae 0x1011e5a4
cmp esi, 0xfffffffc
je 0x1011e5f7
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x1011e5e7
cmp esi, 0xfffffffd
je 0x1011e5f7
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x1011e5e7
cmp esi, 0xfffffffe
je 0x1011e5f7
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x1011e5e7
cmp esi, 0xffffffff
je 0x1011e5f7
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x1011e5f7
mov ebx, dword [ebx]
test ebx, ebx
je 0x1011e687
mov ecx, dword [esp + 0x10]
jmp 0x1011e590
mov esi, dword [ebx + 0x10]
lea eax, [edi + 0x29]
sub esi, eax
mov dword [esp + 0x18], esi
call fcn.100d6670
test eax, eax
je 0x1011e63c
xor esi, esi
mov ecx, dword [esp + 0xc]
mov ebx, dword [ebp + 0x10]
add ecx, 0x2c
mov eax, dword [ebp + 0x10]
add ebx, 4
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], 0
mov dword [ecx], 7
mov ecx, dword [esp + 0xc]
or dword [ebx], 1
jmp 0x1011e7ae
lea eax, [esi + 0x16]
cdq
push edx
push eax
call fcn.100267c0
mov esi, eax
add esp, 8
test esi, esi
je 0x1011e60e
push dword [esp + 0x18]
lea eax, [edi + 0x29]
add eax, ebx
push eax
lea eax, [esi + 0xc]
push eax
call fcn.10139d00
mov ecx, dword [esp + 0x28]
lea edx, [edi + 0x29]
mov eax, esi
add esp, 0xc
sub eax, edx
mov edx, ebx
add eax, 0xc
push eax
call fcn.101199b0
mov edx, eax
add esp, 4
add edx, dword [esp + 0x18]
jmp 0x1011e68b
xor esi, esi
xor edx, edx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x18], edx
lea eax, [ecx + 0x2c]
mov dword [esp + 0x14], eax
mov dword [eax], 0
test esi, esi
je 0x1011e6ad
lea eax, [esi + 0xc]
mov dword [esp + 0x18], edx
mov dword [esi], eax
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
add ebx, 4
or dword [ebx], 1
jmp 0x1011e7ae
mov ecx, dword [edi + 0xc]
lea ebx, [edi + 0x2c]
mov dword [esp + 0x14], ebx
lea eax, [ecx + 0x10]
push eax
push dword [ebp + 8]
call fcn.1011a240
mov dword [ebx], eax
add esp, 8
mov eax, dword [edi + 0xc]
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x1011e740
lea eax, [ecx + 0x28]
mov edi, eax
mov dword [esp + 0x10], eax
lea edx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x1011e6f3
mov eax, dword [esp + 0xc]
sub edi, edx
mov edx, ecx
push 0
mov ecx, dword [eax + 0xc]
call fcn.101199b0
mov eax, dword [esp + 0x1c]
add esp, 4
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 0x10]
sub eax, edi
lea edx, [ecx + 1]
add edx, edi
sub eax, 0x29
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x1011e74e
mov edi, ecx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x1011e735
sub edi, ecx
jmp 0x1011e750
xor edx, edx
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edx
xor edi, edi
test edx, edx
je 0x1011e79d
cmp dword [ebx], esi
jne 0x1011e79b
call fcn.100d6670
test eax, eax
je 0x1011e76b
xor esi, esi
mov dword [ebx], 7
jmp 0x1011e79d
push 0
push 0xc
call fcn.100267c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x1011e785
mov dword [ebx], 7
jmp 0x1011e79d
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov eax, dword [esp + 0x1c]
mov dword [esi], eax
jmp 0x1011e79d
xor esi, esi
mov ecx, dword [esp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ecx + 0x20], 0
lea ebx, [eax + 4]
test esi, esi
je 0x1011e931
mov dword [eax + 0x50], 0
lea ecx, [eax + 0x4c]
mov dword [esp + 0x1c], ecx
test edi, edi
je 0x1011e823
cmp edi, dword [ecx + 8]
ja 0x1011e7d3
mov eax, dword [esp + 0x14]
jmp 0x1011e7f9
mov edx, ecx
mov ecx, dword [esp + 0x14]
push edi
call fcn.101128a0
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x14], ecx
test eax, eax
jne 0x1011e820
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
add eax, 0x2c
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ecx]
add eax, dword [ecx + 4]
push edi
push edx
push eax
call fcn.10139d00
mov eax, dword [esp + 0x28]
add esp, 0xc
add dword [eax + 4], edi
mov eax, dword [ebp + 0x10]
lea ebx, [eax + 4]
jmp 0x1011e823
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x18]
lea edx, [eax + 0x58]
mov dword [esi + 8], ecx
mov dword [esi + 4], ecx
mov dword [eax + 0xc], esi
mov ecx, dword [esi]
call fcn.101356a0
test byte [ebp + 0xc], 2
movzx eax, al
cdq
mov edi, eax
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x18], edi
mov dword [eax + 0x1c], edx
mov edx, dword [esi + 4]
mov esi, eax
mov dword [esi + 0x38], edx
je 0x1011e883
mov ecx, dword [esp + 0xc]
lea ebx, [esi + 4]
or dword [ebx], 2
mov edx, esi
call fcn.1011cdf0
mov ecx, dword [esp + 0xc]
test byte [ebx], 2
je 0x1011e939
mov dword [esi + 0x28], 0x1011d190
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
cmp dword [eax], 0
jne 0x1011e868
mov eax, dword [esp + 0xc]
mov ebx, edi
mov ecx, dword [esi + 0xc]
mov eax, dword [eax]
cmp dword [eax + 0x34], 1
jne 0x1011e8f3
cmp edx, dword [ecx + 8]
cmovge edx, dword [ecx + 8]
mov byte [esi + 0x64], 0
mov dword [esi + 0x60], 1
cmp edi, edx
jge 0x1011e920
mov eax, dword [ecx]
cmp byte [edi + eax], 0
jne 0x1011e920
inc edi
mov byte [esi + 0x64], 1
cmp edi, edx
jge 0x1011e8db
mov eax, dword [ecx]
cmp byte [edi + eax], 0
jne 0x1011e8db
inc edi
lea ebx, [esi + 4]
mov eax, edi
cdq
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
jmp 0x1011e868
mov eax, edi
mov dword [esi + 0x60], 0
cdq
lea ebx, [esi + 4]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
jmp 0x1011e868
mov ecx, dword [ecx]
add ecx, edi
inc edi
movzx eax, byte [ecx]
mov dword [esp + 0x1c], eax
test al, al
jns 0x1011e913
lea edx, [esp + 0x1c]
call fcn.10135610
lea edi, [eax + ebx]
mov eax, dword [esp + 0x1c]
mov cl, al
and cl, 1
sar eax, 1
mov byte [esi + 0x64], cl
mov dword [esi + 0x60], eax
mov eax, edi
lea ebx, [esi + 4]
cdq
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
jmp 0x1011e868
mov esi, dword [ebp + 0x10]
jmp 0x1011e86c
mov eax, dword [ecx]
mov edx, 0x1011d210
mov ecx, 0x1011d4a0
pop edi
cmp dword [eax + 0x34], 1
cmove ecx, edx
mov dword [esi + 0x28], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret