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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov dword [ebp - 0x10], edx
xor edi, edi
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], 0
mov esi, edi
mov eax, edi
shr eax, 1
and esi, 1
neg esi
and esi, 0xedb88320
xor esi, eax
mov eax, esi
shr esi, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, esi
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [edi*4 + 0x441840], eax
inc edi
cmp edi, 0x100
jb 0x4182b5
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x41835c
mov dword [eax], 0
mov ebx, dword [ebp + 0xc]
push 0x4b0
call fcn.0041d7a6
add esp, 4
mov esi, eax
test ebx, ebx
jne 0x41840c
test esi, esi
je 0x4184ff
push 0x6f28
mov dword [esi + 0x20], ebx
call fcn.0041d7a6
add esp, 4
test eax, eax
jne 0x4183aa
mov dword [esi + 0x4a8], 0
push esi
call fcn.0041d78b
add esp, 4
jmp 0x4184ff
mov dword [eax + 0x3c], 0
mov dword [eax + 0x34], 0
push 0x60
mov dword [esi + 0x4a8], eax
lea eax, [esi + 0x40]
push 0
push eax
mov dword [esi], 0
mov byte [esi + 0x24], 0
mov dword [esi + 4], 0
mov dword [esi + 0x18], 0
call fcn.0041a3d0
mov edi, dword [ebp + 0x10]
add esp, 0xc
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0xc
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], 0xffffffff
jmp 0x4184a8
test esi, esi
je 0x4184ff
push 0x6f28
mov dword [esi + 0x20], 2
call fcn.0041d7a6
add esp, 4
test eax, eax
je 0x418392
mov dword [eax + 0x3c], 2
mov dword [eax + 0x34], 0xffffffff
mov dword [eax + 0x18], 0
mov dword [eax + 0x38], 0
push 0x60
mov dword [esi + 0x4a8], eax
lea eax, [esi + 0x40]
push 0
push eax
mov dword [esi], 0
mov byte [esi + 0x24], 0
mov dword [esi + 4], 0
mov dword [esi + 0x18], 0
call fcn.0041a3d0
push 0x1000
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0xc
mov dword [ebp - 0x14], 0x1000
call fcn.0041d7a6
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x4184d4
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x41851b
push 0x1000
mov byte [ebp - 5], 1
call fcn.0041d7a6
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x41851b
test ebx, ebx
je 0x4184d4
push edi
call fcn.0041d78b
add esp, 4
mov edi, dword [esi + 0x4a8]
cmp dword [edi + 0x3c], 0
je 0x4184f0
mov eax, dword [edi + 0x18]
test eax, eax
je 0x4184f0
push eax
call fcn.0041d78b
add esp, 4
push edi
call fcn.0041d78b
push esi
call fcn.0041d78b
add esp, 8
push str.XZ_decompressor_ran_out_of_memory
push 0x438480
call fcn.0040ffe0
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 0
test ebx, ebx
jne 0x418544
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.004174c0
mov edi, eax
jmp 0x41859c
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.004174c0
mov ebx, dword [ebp - 0x18]
mov edi, eax
cmp ebx, dword [ebp - 0x14]
je 0x418560
test edi, edi
je 0x418544
test ebx, ebx
je 0x41857f
push ebx
push dword [ebp - 0x1c]
call dword [ebp + 0xc]
add esp, 8
mov dword [ebp - 0x18], 0
cmp eax, ebx
mov eax, 8
cmovne edi, eax
test edi, edi
je 0x418544
cmp byte [ebp - 5], 0
je 0x418591
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0041d78b
add esp, 4
push dword [ebp - 0x1c]
call fcn.0041d78b
add esp, 4
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4185a8
mov eax, dword [ebp - 0x24]
add dword [ecx], eax
mov ebx, dword [esi + 0x4a8]
cmp dword [ebx + 0x3c], 0
je 0x4185c4
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x4185c4
push eax
call fcn.0041d78b
add esp, 4
push ebx
call fcn.0041d78b
push esi
call fcn.0041d78b
dec edi
add esp, 8
cmp edi, 7
ja case.0x4185d9.2
jmp dword [edi*4 + 0x418620]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, str.XZ_decompressor_ran_out_of_memory
push eax
jmp 0x418504
mov eax, str.Input_is_not_in_the_XZ_format__wrong_magic_bytes_
push eax
jmp 0x418504
mov eax, str.Input_was_encoded_with_settings_that_are_not_supported_by_this_XZ_decoder
push eax
jmp 0x418504
mov eax, str.XZ_compressed_data_is_corrupt
push eax
jmp 0x418504
mov eax, str.Bug_in_the_XZ_decompressor
push eax
jmp 0x418504