Function at 0x1020b760
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub esp, 0x48
mov eax, dword [0x106499c8]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x54]
push ebx
mov ebx, dword [esp + 0x50]
push ebp
mov ecx, dword [ebx + 4]
push esi
push edi
mov edi, dword [ebx + 0x14]
or esi, 0xffffffff
mov ebp, dword [edi]
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], ecx
test eax, eax
je 0x1020b79b
mov dword [eax], 0
test byte [edi + 0x68], 0x80
mov eax, dword [esp + 0x68]
je 0x1020baaa
test eax, eax
jle 0x1020baaa
push dword [ebx]
call fcn.10224410
add esp, 4
test eax, eax
je 0x1020b7d0
push dword [edi + 0x24]
mov eax, dword [ebx]
push dword [eax]
push str.phar_error:_unable_to_open_zip_based_phar_archive___s__to_verify_local_file_header_for_file___s_
jmp 0x1020bb24
mov eax, dword [ebx + 0x14]
test dword [eax + 0x68], 0x100
mov eax, dword [eax + 0x48]
jne 0x1020b7e7
mov eax, dword [eax + 0xb0]
jmp 0x1020b7f8
mov eax, dword [eax + 0xd0]
lea ecx, [eax + eax*2]
mov eax, dword [0x10660770]
mov eax, dword [eax + ecx*4]
push 0
push dword [edi + 0x34]
push eax
call sym.php5.dll__php_stream_seek
mov eax, dword [ebx + 0x14]
add esp, 0xc
test dword [eax + 0x68], 0x100
mov eax, dword [eax + 0x48]
jne 0x1020b81d
mov eax, dword [eax + 0xb0]
jmp 0x1020b82e
mov eax, dword [eax + 0xd0]
lea ecx, [eax + eax*2]
mov eax, dword [0x10660770]
mov eax, dword [eax + ecx*4]
push 0x1e
lea ecx, [esp + 0x28]
push ecx
push eax
call sym.php5.dll__php_stream_read
add esp, 0xc
cmp eax, 0x1e
je 0x1020b854
push dword [edi + 0x24]
mov eax, dword [ebx]
push dword [eax]
push str.phar_error:_internal_corruption_of_zip_based_phar___s___cannot_read_local_file_header_for_file___s__
jmp 0x1020bb24
test byte [esp + 0x2a], 8
je 0x1020b963
mov eax, dword [ebx + 0x14]
test dword [eax + 0x68], 0x100
mov eax, dword [eax + 0x48]
jne 0x1020b876
mov eax, dword [eax + 0xb0]
jmp 0x1020b887
mov eax, dword [eax + 0xd0]
lea ecx, [eax + eax*2]
mov eax, dword [0x10660770]
mov eax, dword [eax + ecx*4]
movsx dx, byte [esp + 0x40]
movsx cx, byte [esp + 0x3e]
mov dword [esp + 0x10], eax
movsx eax, byte [esp + 0x41]
shl ax, 8
movzx eax, ax
and edx, 0xff
or edx, eax
movsx eax, byte [esp + 0x3f]
shl ax, 8
movzx eax, ax
and ecx, 0xff
or ecx, eax
mov eax, dword [edi + 0x34]
add edx, ecx
add edx, dword [edi + 8]
add eax, 0x1e
push 0
add eax, edx
push eax
push dword [esp + 0x18]
call sym.php5.dll__php_stream_seek
mov eax, dword [ebx + 0x14]
add esp, 0xc
test dword [eax + 0x68], 0x100
mov eax, dword [eax + 0x48]
jne 0x1020b8f2
mov eax, dword [eax + 0xb0]
jmp 0x1020b903
mov eax, dword [eax + 0xd0]
lea ecx, [eax + eax*2]
mov eax, dword [0x10660770]
mov eax, dword [eax + ecx*4]
push 0x10
lea ecx, [esp + 0x48]
push ecx
push eax
call sym.php5.dll__php_stream_read
add esp, 0xc
cmp eax, 0x10
je 0x1020b929
push dword [edi + 0x24]
mov eax, dword [ebx]
push dword [eax]
push str.phar_error:_internal_corruption_of_zip_based_phar___s___cannot_read_local_data_descriptor_for_file___s__
jmp 0x1020bb24
cmp byte [esp + 0x44], 0x50
jne 0x1020b94d
cmp byte [esp + 0x45], 0x4b
jne 0x1020b94d
movq xmm0, qword [esp + 0x48]
mov eax, dword [esp + 0x50]
movq qword [esp + 0x32], xmm0
mov dword [esp + 0x3a], eax
jmp 0x1020b967
movq xmm0, qword [esp + 0x44]
mov eax, dword [esp + 0x4c]
movq qword [esp + 0x32], xmm0
mov dword [esp + 0x3a], eax
jmp 0x1020b967
mov eax, dword [esp + 0x3a]
movsx cx, byte [esp + 0x3e]
mov dword [esp + 0x10], eax
movsx ax, byte [esp + 0x3f]
shl ax, 8
movzx eax, ax
and ecx, 0xff
or ecx, eax
mov dword [esp + 0x1c], ecx
cmp dword [edi + 0x20], ecx
jne 0x1020ba91
mov ecx, dword [esp + 0x32]
mov eax, ecx
shr eax, 0x18
mov edx, ecx
shr edx, 0x10
movsx eax, al
and edx, 0xff
shl eax, 8
or edx, eax
movsx eax, byte [esp + 0x32]
shl edx, 8
shr ecx, 8
and ecx, 0xff
or edx, ecx
shl edx, 8
and eax, 0xff
or edx, eax
cmp dword [edi + 0xc], edx
jne 0x1020ba91
mov edx, dword [esp + 0x10]
mov eax, edx
shr eax, 0x18
mov ecx, edx
shr ecx, 0x10
movsx eax, al
and ecx, 0xff
shl eax, 8
or ecx, eax
movsx eax, byte [esp + 0x3a]
shl ecx, 8
shr edx, 8
and edx, 0xff
or ecx, edx
shl ecx, 8
and eax, 0xff
or ecx, eax
cmp dword [edi], ecx
jne 0x1020ba91
mov ecx, dword [esp + 0x36]
mov eax, ecx
shr eax, 0x18
mov edx, ecx
shr edx, 0x10
movsx eax, al
and edx, 0xff
shl eax, 8
or edx, eax
movsx eax, byte [esp + 0x36]
shl edx, 8
shr ecx, 8
and ecx, 0xff
or edx, ecx
shl edx, 8
and eax, 0xff
or edx, eax
cmp dword [edi + 8], edx
jne 0x1020ba91
movsx cx, byte [esp + 0x40]
movsx ax, byte [esp + 0x41]
shl ax, 8
movzx eax, ax
and ecx, 0xff
or ecx, eax
add ecx, dword [esp + 0x1c]
mov eax, dword [edi + 0x34]
add eax, 0x1e
add eax, ecx
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], eax
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x1020baa2
cmp ecx, eax
mov ecx, dword [esp + 0x18]
je 0x1020baa6
mov dword [ebx + 0xc], eax
jmp 0x1020baa6
push dword [edi + 0x24]
mov eax, dword [ebx]
push dword [eax]
push str.phar_error:_internal_corruption_of_zip_based_phar___s___local_header_of_file___s__does_not_match_central_directory_
jmp 0x1020bb24
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x68]
cmp eax, 1
je 0x1020bb03
push 0
push dword [ebx + 0xc]
push ecx
call sym.php5.dll__php_stream_seek
add esp, 0xc
test ebp, ebp
je 0x1020bae6
mov edi, dword [esp + 0x18]
push edi
call sym.php5.dll__php_stream_getc
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x104ff728]
add esp, 4
dec ebp
jne 0x1020bac5
mov edi, dword [esp + 0x20]
push 0
push dword [ebx + 0xc]
push dword [esp + 0x20]
call sym.php5.dll__php_stream_seek
not esi
add esp, 0xc
cmp esi, dword [esp + 0x60]
jne 0x1020bb18
or dword [edi + 0x68], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.10311bec
add esp, 0x48
ret
push dword [edi + 0x24]
mov eax, dword [ebx]
push dword [eax]
push str.phar_error:_internal_corruption_of_phar___s___crc32_mismatch_on_file___s__
push 0
push dword [esp + 0x24]
call sym.php5.dll_spprintf
mov ecx, dword [esp + 0x68]
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10311bec
add esp, 0x48
ret