Function at 0x102e7be0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebp
push edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x18], 0
mov ebp, 1
test edi, edi
jne 0x102e7c03
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x14
ret
push esi
mov esi, dword [esp + 0x28]
cmp esi, 8
jb 0x102e7c27
cmp esi, 0x4000
ja 0x102e7c27
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x102e7c31
pop esi
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x14
ret
xor ecx, ecx
push ebx
cmp eax, 0x80
cmove ebp, ecx
lea ebx, [esi + esi*4]
shl ebx, 2
push ebx
mov dword [esp + 0x14], ebp
call dword [sym.php5.dll_xmlMalloc]
add esp, 4
mov dword [edi + 4], eax
test eax, eax
jne 0x102e7c69
mov esi, dword [esp + 0x18]
pop ebx
mov dword [edi + 4], esi
pop esi
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x14
ret
push ebx
push 0
push eax
call sub.MSVCR110.dll_memset
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov dword [edi + 8], esi
test ecx, ecx
je 0x102e7e89
mov esi, dword [esp + 0x18]
add esi, 4
mov eax, ecx
mov dword [esp + 0x28], ecx
cmp dword [esi + 8], 0
je 0x102e7d50
test ebp, ebp
je 0x102e7ca4
mov ebx, dword [esi + 0xc]
jmp 0x102e7cc6
cmp dword [edi + 8], 0x80
push dword [edi + 0x18]
push dword [esi + 4]
push dword [esi]
jne 0x102e7cbc
call fcn.102e7820
jmp 0x102e7cc1
call fcn.102e7750
mov ebx, eax
add esp, 0xc
xor edx, edx
mov eax, ebx
div dword [edi + 8]
mov ecx, dword [edi + 4]
lea ebp, [edx + edx*4]
shl ebp, 2
add ecx, ebp
cmp dword [ecx + 0xc], 0
jne 0x102e7d0a
movq xmm0, qword [esi - 4]
movq qword [ecx], xmm0
movq xmm0, qword [esi + 4]
movq qword [ecx + 8], xmm0
mov eax, dword [esi + 0xc]
mov dword [ecx + 0x10], eax
mov eax, dword [edi + 4]
mov dword [eax + ebp], 0
mov eax, dword [edi + 4]
mov dword [eax + ebp + 0x10], ebx
jmp 0x102e7d48
push 0x14
call dword [sym.php5.dll_xmlMalloc]
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x102e7d40
mov eax, dword [esi]
mov dword [ecx + 4], eax
mov eax, dword [esi + 4]
mov dword [ecx + 8], eax
mov dword [ecx + 0x10], ebx
mov eax, dword [edi + 4]
mov eax, dword [eax + ebp]
mov dword [ecx], eax
mov dword [ecx + 0xc], 1
mov eax, dword [edi + 4]
mov dword [eax + ebp], ecx
jmp 0x102e7d48
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x10]
add esi, 0x14
dec eax
mov dword [esp + 0x28], eax
jne 0x102e7c91
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x102e7e89
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov esi, dword [eax]
test esi, esi
je 0x102e7e77
lea esp, [esp]
cmp dword [esp + 0x10], 0
mov ebp, dword [esi]
mov dword [esp + 0x28], ebp
je 0x102e7d92
mov ecx, dword [esi + 0x10]
jmp 0x102e7e00
cmp dword [edi + 8], 0x80
jne 0x102e7db0
push dword [edi + 0x18]
push dword [esi + 8]
push dword [esi + 4]
call fcn.102e7820
add esp, 0xc
mov ecx, eax
jmp 0x102e7e00
mov ebx, dword [esi + 8]
mov ebp, dword [esi + 4]
test ebx, ebx
jle 0x102e7dfa
test ebp, ebp
je 0x102e7dfa
mov eax, dword [edi + 0x18]
xor edx, edx
test ebx, ebx
jle 0x102e7de8
jmp 0x102e7dd0
movzx ecx, byte [edx + ebp]
add eax, ecx
imul eax, eax, 0x401
mov ecx, eax
shr ecx, 6
inc edx
xor eax, ecx
cmp edx, ebx
jl 0x102e7dd0
lea eax, [eax + eax*8]
mov ecx, eax
shr ecx, 0xb
xor ecx, eax
imul ecx, ecx, 0x8001
jmp 0x102e7dfc
xor ecx, ecx
mov ebp, dword [esp + 0x28]
xor edx, edx
mov eax, ecx
div dword [edi + 8]
mov ebx, dword [edi + 4]
lea edx, [edx + edx*4]
shl edx, 2
add ebx, edx
cmp dword [ebx + 0xc], 0
jne 0x102e7e58
movq xmm0, qword [esi]
movq qword [ebx], xmm0
movq xmm0, qword [esi + 8]
movq qword [ebx + 8], xmm0
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 4]
push esi
mov dword [edx + eax], 0
mov eax, dword [edi + 4]
mov dword [eax + edx + 0xc], 1
mov eax, dword [edi + 4]
mov dword [eax + edx + 0x10], ecx
call dword [sym.php5.dll_xmlFree]
add esp, 4
jmp 0x102e7e65
mov eax, dword [ebx]
mov dword [esi], eax
mov dword [esi + 0x10], ecx
mov eax, dword [edi + 4]
mov dword [edx + eax], esi
mov esi, ebp
test ebp, ebp
jne 0x102e7d80
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
add eax, 0x14
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
jne 0x102e7d72
push dword [esp + 0x18]
call dword [sym.php5.dll_xmlFree]
mov eax, dword [esp + 0x24]
add esp, 4
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x14
ret