Function at 0x4ce220
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
mov ebp, edx
push esi
push ebx
mov esi, eax
sub esp, 0x7c
mov eax, dword [eax + 0x508]
mov dword [esp + 0x2c], ecx
mov ebx, dword [eax]
mov edx, dword [ebx + 0x6c]
test edx, edx
je 0x4ce3a0
cmp byte [ebx + 0x69], 0
jne 0x4ce28b
cmp byte [ebx + 0xac], 0
lea eax, [ebx + 0x74]
jne 0x4ce390
mov dword [esp + 0xc], 0x38
mov dword [esp + 8], 0x5f2ea4
mov dword [esp + 4], 0xfffffff1
mov dword [esp], eax
call fcn.004f8040
test eax, eax
jne 0x4ce76e
mov byte [ebx + 0xac], 1
mov byte [ebx + 0x69], 1
lea eax, [esp + 0x54]
mov dword [esp + 4], 1
mov dword [esp], esi
mov dword [esp + 8], eax
call fcn.00489e10
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x44]
mov ecx, dword [esp + 0x54]
movzx eax, word [eax + 0x56]
and ax, 8
mov word [esp + 0x34], ax
jne 0x4ce2d4
mov eax, ecx
mov edi, dword [ebx + 0x48]
cdq
cmp edx, dword [ebx + 0x4c]
jl 0x4ce2d4
jle 0x4ce650
mov ecx, edi
mov dword [esp + 0x54], edi
test ecx, ecx
js 0x4ce873
movzx eax, byte [ebx + 0x1e0c]
test al, al
mov byte [esp + 0x40], al
je 0x4ce3e0
mov edi, dword [ebx + 0x1df8]
mov dword [esp + 0x38], ecx
mov edx, dword [ebx + 0x1df0]
cmp edi, ecx
jb 0x4ce400
mov ecx, edi
mov dword [esp + 0x54], edi
mov eax, dword [ebx + 0x6c]
mov dword [ebx + 0x74], edx
mov dword [ebx + 0x78], ecx
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x88], 0
mov dword [ebx + 0x80], eax
mov eax, dword [ebx + 0x70]
mov dword [ebx + 0x84], eax
lea eax, [ebx + 0x74]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004f8480
test eax, eax
je 0x4ce514
cmp eax, 1
je 0x4ce510
cmp eax, 0xfffffffc
je 0x4ce5f0
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.ZIP_decompression_failed___d_
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call fcn.004de480
mov eax, 0xffffffe2
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], eax
call fcn.004f7dc0
jmp 0x4ce278
mov dword [ebx + 0x70], 0x40000
mov dword [esp], 0x40000
call sub.msvcrt.dll_malloc
test eax, eax
mov dword [ebx + 0x6c], eax
jne 0x4ce242
mov dword [esp + 8], str.No_memory_for_ZIP_decompression
mov dword [esp + 4], 0xc
mov dword [esp], esi
call fcn.004de480
mov eax, 0xffffffe2
jmp 0x4ce384
cmp byte [ebx + 0x1e44], 0
mov edx, dword [esp + 0x30]
je 0x4ce30d
jmp 0x4ce2ef
lea eax, [edx + edi]
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 0x1dec]
add eax, dword [ebx + 0x1df4]
sub eax, dword [esp + 0x44]
cmp ecx, eax
mov dword [esp + 0x48], eax
jb 0x4ce612
cmp word [esp + 0x34], 0
jne 0x4ce4a0
mov eax, dword [ebx + 0x48]
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 0x4c]
cmp eax, 0
mov dword [esp + 0x34], eax
jl 0x4ce4a0
jle 0x4ce73d
mov eax, dword [esp + 0x48]
mov dword [esp + 0x3c], 0
lea ecx, [edi + eax]
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
jl 0x4ce4a0
jg 0x4ce469
cmp ecx, dword [esp + 0x4c]
jbe 0x4ce4a0
mov dword [esp + 0x3c], 0
cmp dword [esp + 0x3c], eax
mov dword [esp + 0x38], edi
jg 0x4ce307
jl 0x4ce48f
mov eax, dword [esp + 0x4c]
cmp dword [esp + 0x38], eax
ja 0x4ce307
mov eax, dword [esp + 0x4c]
sub eax, edi
mov dword [esp + 0x48], eax
lea esi, [esi]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4ce307
mov eax, dword [esp + 0x48]
mov dword [esp + 0x38], eax
cmp byte [esp + 0x40], 0
jne 0x4ce790
lea eax, [esp + 0x5c]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x5c], edi
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
lea eax, [ebx + 0x1e10]
mov dword [esp], eax
call dword [0x5fbc94]
mov edi, dword [esp + 0x38]
add edi, dword [ebx + 0x1df8]
mov edx, dword [ebx + 0x1df0]
mov dword [ebx + 0x1df8], edi
jmp 0x4ce307
mov byte [ebx + 0x6a], 1
cmp byte [ebx + 0x1e0c], 0
mov eax, dword [ebx + 0x7c]
mov ecx, eax
mov dword [esp + 0x54], eax
jne 0x4ce5d0
cmp byte [ebx + 0x1e44], 0
jne 0x4ce5d0
cmp byte [ebx + 0x1e58], 0
je 0x4ce55f
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
lea eax, [ebx + 0x1e48]
mov dword [esp], eax
call dword [0x5fbd14]
mov ecx, dword [esp + 0x54]
mov dword [esp + 4], ecx
sar ecx, 0x1f
mov dword [esp], esi
mov dword [esp + 8], ecx
call fcn.0048a530
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x2c]
cdq
sub dword [ebx + 0x48], eax
sbb dword [ebx + 0x4c], edx
add dword [ebx + 0x50], eax
mov eax, dword [ebx + 0x88]
adc dword [ebx + 0x54], edx
xor edx, edx
mov dword [edi], eax
add dword [ebx + 0x58], eax
mov eax, dword [ebx + 0x6c]
adc dword [ebx + 0x5c], edx
mov dword [ebp], eax
cmp byte [ebx + 0x6a], 0
je 0x4ce5bd
cmp byte [ebx + 0x1e58], 0
jne 0x4ce670
mov eax, dword [ebx + 0x44]
test byte [eax + 0x56], 8
jne 0x4ce660
xor eax, eax
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
sub dword [ebx + 0x1df8], eax
jne 0x4ce640
mov edx, dword [ebx + 0x1dec]
mov dword [ebx + 0x1df0], edx
jmp 0x4ce537
mov dword [esp + 8], str.Out_of_memory_for_ZIP_decompression
mov dword [esp + 4], 0xc
mov dword [esp], esi
call fcn.004de480
mov eax, 0xffffffe2
jmp 0x4ce384
cmp word [esp + 0x34], 0
jne 0x4ce4b4
mov eax, dword [ebx + 0x48]
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 0x4c]
cmp eax, 0
mov dword [esp + 0x34], eax
jle 0x4ce705
mov dword [esp + 0x48], ecx
jmp 0x4ce444
add dword [ebx + 0x1df0], eax
jmp 0x4ce537
cmp ecx, edi
jbe 0x4ce2d4
jmp 0x4ce2ce
mov edx, ebx
mov eax, esi
call fcn.004cd170
jmp 0x4ce384
mov eax, dword [esi + 0x508]
mov eax, dword [eax]
cmp byte [eax + 0x1e58], 0
je 0x4ce5b0
lea edx, [esp + 0x58]
lea edi, [esp + 0x5c]
add eax, 0x1e48
mov dword [esp], eax
mov dword [esp + 0x58], 0x14
mov dword [esp + 8], edx
mov dword [esp + 4], edi
call dword [0x5fbd18]
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
mov dword [esp], esi
call fcn.00489e10
test eax, eax
je 0x4ce851
mov edx, dword [eax]
cmp dword [esp + 0x5c], edx
je 0x4ce74d
mov edi, 1
mov dword [esp + 4], 0xa
mov dword [esp + 8], 0
mov dword [esp], esi
call fcn.0048a530
test edi, edi
jne 0x4ce71b
cmp byte [ebx + 0x6a], 0
jne 0x4ce5b0
xor eax, eax
jmp 0x4ce5bf
jl 0x4ce4b4
cmp dword [esp + 0x4c], 0
ja 0x4ce635
jmp 0x4ce4b4
mov dword [esp + 8], str.ZIP_bad_Authentication_code
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call fcn.004de480
mov eax, 0xffffffec
jmp 0x4ce384
cmp dword [esp + 0x4c], 0
jbe 0x4ce4a0
jmp 0x4ce444
mov edx, dword [eax + 4]
cmp dword [edi + 4], edx
jne 0x4ce6d3
movzx eax, word [eax + 8]
cmp word [edi + 8], ax
jne 0x4ce6d3
xor edi, edi
jmp 0x4ce6d8
mov dword [esp + 8], str.Cant_initialize_ZIP_decompression.
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call fcn.004de480
mov eax, 0xffffffe2
jmp 0x4ce384
xor edi, edi
mov dword [esp + 0x34], esi
mov dword [esp + 0x40], ebp
mov eax, dword [ebx + 0x1e08]
mov ebp, edi
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x44]
lea esi, [esi]
or eax, 2
mov edx, eax
xor edx, 1
imul edx, eax
lea eax, [esp + 0x53]
shr edx, 8
xor dl, byte [esi + ebp]
mov byte [edi + ebp], dl
mov dword [esp + 8], 1
add ebp, 1
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x1e00]
mov byte [esp + 0x53], dl
not eax
mov dword [esp], eax
call fcn.004f7c90
not eax
mov dword [ebx + 0x1e00], eax
movzx eax, al
add eax, dword [ebx + 0x1e04]
imul eax, eax, 0x8088405
add eax, 1
mov dword [ebx + 0x1e04], eax
shr eax, 0x18
mov dword [esp + 8], 1
mov byte [esp + 0x5c], al
lea eax, [esp + 0x5c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x1e08]
not eax
mov dword [esp], eax
call fcn.004f7c90
cmp ebp, dword [esp + 0x38]
not eax
mov dword [ebx + 0x1e08], eax
jb 0x4ce7b0
mov esi, dword [esp + 0x34]
mov ebp, dword [esp + 0x40]
jmp 0x4ce4f2
mov dword [esp + 8], str.Truncated_ZIP_file_data
mov dword [esp + 4], 0x2a
mov dword [esp], esi
call fcn.004de480
mov eax, 0xffffffe2
jmp 0x4ce384
mov dword [esp + 8], str.Truncated_ZIP_file_body
mov dword [esp + 4], 0x2a
mov dword [esp], esi
call fcn.004de480
mov eax, 0xffffffe2
jmp 0x4ce384