Function at 0x41e260
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], edi
mov esi, dword [edi + 0x48]
test esi, esi
jne 0x41e3ab
push 0x6afa8
call fcn.004603d4
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
test esi, esi
je 0x41e3a6
push 0x6afa8
push 0
push esi
call fcn.004ecad0
lea edx, [esi + 0x14]
add esp, 0xc
mov dword [edx + 0xf7c], edx
lea eax, [edx + 0x9e8]
mov dword [edx + 0xf80], eax
lea ecx, [edx + 0xe68]
mov dword [edx + 0xf84], 0x53de70
lea eax, [edx + 0x8f4]
mov dword [edx + 0xf88], 0x101
mov dword [edx + 0xf8c], 0x11e
mov dword [edx + 0xf90], 0xf
mov dword [edx + 0xf94], 0
mov dword [edx + 0xf98], eax
lea eax, [edx + 0xee0]
mov dword [edx + 0xf9c], ecx
mov dword [edx + 0xfa0], 0x53dee8
mov dword [edx + 0xfa4], 0
mov dword [edx + 0xfa8], 0x1e
mov dword [edx + 0xfac], 0xf
mov dword [edx + 0xfb0], 0
mov dword [edx + 0xfb4], eax
mov dword [edx + 0xfb8], 0
mov dword [edx + 0xfbc], 0x53df60
mov dword [edx + 0xfc0], 0
mov dword [edx + 0xfc4], 0x13
mov dword [edx + 0xfc8], 7
mov dword [edx + 0xfcc], 0
mov dword [edx + 0x1af18], 0
mov dword [edx + 0x1af1c], 0
mov dword [edx + 0x1af20], 0
mov dword [esi + 0x6af70], 0
jmp 0x41e3a8
xor esi, esi
mov dword [edi + 0x48], esi
mov dword [esi + 0x6afa4], 0
mov eax, dword [edi + 0x48]
mov ebx, dword [ebp + 8]
mov dword [eax + 0xc], 0x41e130
mov eax, dword [edi + 0x48]
mov dword [eax + 0x10], 0x41da40
mov eax, dword [edi + 0x48]
mov dword [eax], edi
mov eax, dword [edi + 0x48]
mov dword [eax + 4], 8
mov ecx, dword [edi + 0x48]
mov al, byte [edi + 0x6c]
mov byte [ecx + 8], al
xor ecx, ecx
mov eax, dword [edi + 0x48]
mov dword [eax + 0x6afa4], 0
mov eax, dword [edi + 0x48]
mov word [eax + 0xe7e], cx
mov eax, dword [edi + 0x48]
mov dword [eax + 0x6af70], ecx
lea eax, [edi + 0x94]
mov ecx, dword [edi + 0x48]
mov dword [ecx + 0x1af60], eax
lea eax, [ebx + 0x2a]
push eax
mov dword [ecx + 0x1af68], 0x4000
mov dword [ecx + 0x1af64], 0
mov dword [ecx + 0x1af54], 1
mov dword [ecx + 0x1af58], 0
mov dword [ecx + 0x1af5c], 0
mov dword [ecx + 0x1af6c], 0
push dword [edi + 0x48]
call fcn.0041b6f0
mov esi, dword [edi + 0x48]
add esp, 8
mov edi, dword [esi + 4]
lea eax, [edi - 1]
cmp eax, 7
jbe 0x41e478
mov dword [esi + 0x6afa4], str.bad_pack_level
cmp dword [esi + 0x6af70], 0
mov dword [esi + 0x6af78], 0
jne 0x41e49f
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
mov dword [esi + 0x6af6c], 0
push 0
push eax
call fcn.004ecad0
movzx eax, word [edi*8 + 0x53dfb2]
add esp, 0xc
mov dword [esi + 0x6af98], eax
movzx eax, word [edi*8 + 0x53dfb0]
mov dword [esi + 0x6af9c], eax
movzx eax, word [edi*8 + 0x53dfb4]
mov dword [esi + 0x6afa0], eax
movzx eax, word [edi*8 + 0x53dfb6]
mov dword [esi + 0x6af94], eax
cmp edi, 2
jg 0x41e503
or word [ebx + 4], 4
jmp 0x41e50d
cmp edi, 8
jl 0x41e50d
or word [ebx + 4], 2
mov eax, dword [esi + 0xc]
lea ecx, [esi + 0x1af70]
mov dword [esi + 0x6af84], 0
mov dword [esi + 0x6af74], 0
push 0x10000
push ecx
cmp eax, 0x41e130
jne 0x41e540
mov ecx, dword [esi]
call fcn.0041e150
jmp 0x41e546
push esi
call eax
add esp, 0xc
mov dword [esi + 0x6af90], eax
test eax, eax
je 0x41e58a
cmp eax, 0xffffffff
je 0x41e58a
mov dword [esi + 0x6af8c], 0
cmp eax, 0x106
jae 0x41e56f
push esi
call fcn.0041c0d0
add esp, 4
movzx ecx, byte [esi + 0x1af70]
movzx eax, byte [esi + 0x1af71]
shl ecx, 5
xor ecx, eax
mov dword [esi + 0x6af7c], ecx
jmp 0x41e59e
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], 0
mov esi, dword [ebp - 0x14]
mov ebx, 2
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov esi, dword [esi + 0x48]
cmp dword [esi + 4], 3
mov eax, dword [esi + 0x6af90]
jg 0x41e7f8
xor ebx, ebx
mov dword [esi + 0x6af80], 2
xor edi, edi
test eax, eax
je 0x41e7ce
nop dword [eax]
cmp eax, 3
jb 0x41e631
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
xor ecx, eax
and ecx, 0x7fff
and edx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], ebx
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
test ebx, ebx
je 0x41e66f
mov eax, dword [esi + 0x6af84]
sub eax, ebx
cmp eax, 0x7efa
ja 0x41e66f
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x41e658
mov dword [esi + 0x6afa0], eax
push ebx
push esi
call fcn.0041c480
mov ecx, dword [esi + 0x6af90]
mov edi, eax
add esp, 8
cmp edi, ecx
cmova edi, ecx
mov ecx, dword [esi + 0x6af84]
cmp edi, 3
jb 0x41e74f
sub ecx, dword [esi + 0x6af88]
lea eax, [edi - 3]
push eax
push ecx
push esi
call fcn.0041bea0
mov ecx, dword [esi + 0x6af90]
add esp, 0xc
sub ecx, edi
mov dword [ebp + 8], eax
mov dword [esi + 0x6af90], ecx
cmp edi, dword [esi + 0x6af98]
ja 0x41e719
cmp ecx, 3
jb 0x41e719
dec edi
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
and edx, 0x7fff
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], ebx
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
sub edi, 1
jne 0x41e6b1
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
mov eax, dword [ebp + 8]
jmp 0x41e775
mov edx, dword [esi + 0x6af84]
add edx, edi
xor edi, edi
mov dword [esi + 0x6af84], edx
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx eax, byte [edx + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
mov dword [esi + 0x6af7c], eax
mov eax, dword [ebp + 8]
jmp 0x41e775
movzx eax, byte [ecx + esi + 0x1af70]
push eax
push 0
push esi
call fcn.0041bea0
dec dword [esi + 0x6af90]
add esp, 0xc
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
test eax, eax
je 0x41e7aa
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x41e78d
lea ecx, [esi + 0x1af70]
add ecx, eax
jmp 0x41e78f
xor ecx, ecx
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.0041b9f0
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
mov eax, dword [esi + 0x6af90]
cmp eax, 0x106
jae 0x41e7c6
push esi
call fcn.0041c0d0
mov eax, dword [esi + 0x6af90]
add esp, 4
test eax, eax
jne 0x41e5e0
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x41e7eb
mov edx, dword [esi + 0x6af84]
lea eax, [esi + 0x1af70]
add eax, ecx
jmp 0x41eaf0
mov edx, dword [esi + 0x6af84]
xor eax, eax
jmp 0x41eaf0
mov edx, dword [esi + 0x6af84]
lea edi, [esi + 0x6af84]
test eax, eax
je 0x41eada
mov dword [ebp - 0xc], edi
mov ecx, eax
mov dword [ebp - 4], edx
mov dword [ebp - 0x18], ebx
lea edi, [esi + 0x6af84]
cmp eax, 3
jb 0x41e877
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
xor ecx, eax
and ecx, 0x7fff
and edx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov eax, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af7c]
mov dword [ebp - 8], eax
mov eax, dword [edi]
mov dword [esi + ecx*4 + 0x4af70], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
mov eax, dword [esi + 0x6af90]
mov ecx, eax
cmp dword [ebp - 8], 0
mov dword [esi + 0x6af80], ebx
mov ebx, dword [esi + 0x6af88]
mov dword [ebp - 4], ebx
mov ebx, eax
mov dword [ebp + 8], 2
je 0x41e8f9
mov edi, dword [ebp - 0x18]
cmp edi, dword [esi + 0x6af98]
lea edi, [esi + 0x6af84]
jae 0x41e900
mov eax, dword [ebp - 8]
sub edx, eax
cmp edx, 0x7efa
ja 0x41e900
cmp dword [esi + 0x6afa0], ecx
jbe 0x41e8c1
mov dword [esi + 0x6afa0], ecx
push eax
push esi
call fcn.0041c480
mov ecx, dword [esi + 0x6af90]
add esp, 8
cmp eax, ecx
mov ebx, ecx
cmova eax, ecx
mov dword [ebp + 8], eax
cmp eax, 3
jne 0x41e903
mov eax, dword [edi]
sub eax, dword [esi + 0x6af88]
cmp eax, 0x1000
jbe 0x41e900
mov eax, 2
mov dword [ebp + 8], eax
jmp 0x41e903
mov eax, 2
jmp 0x41e903
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x6af80]
cmp edx, 3
jb 0x41ea01
cmp eax, edx
ja 0x41ea01
mov ecx, dword [edi]
lea eax, [edx - 3]
add ebx, 0xfffffffd
add ebx, ecx
sub ecx, dword [ebp - 4]
push eax
dec ecx
push ecx
push esi
call fcn.0041bea0
mov edx, dword [esi + 0x6af80]
mov ecx, 1
sub ecx, edx
mov dword [ebp + 8], eax
add esp, 0xc
add dword [esi + 0x6af90], ecx
lea ecx, [edx - 2]
mov dword [esi + 0x6af80], ecx
mov edx, dword [edi]
inc edx
mov dword [edi], edx
cmp edx, ebx
ja 0x41e9a5
movzx ecx, byte [edx + esi + 0x1af72]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
xor ecx, eax
and ecx, 0x7fff
and edx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov eax, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af7c]
mov dword [ebp - 8], eax
mov eax, dword [edi]
mov dword [esi + ecx*4 + 0x4af70], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
add dword [esi + 0x6af80], 0xffffffff
jne 0x41e952
inc edx
mov dword [ebp - 0x10], 0
cmp dword [ebp + 8], 0
mov ebx, 2
mov dword [edi], edx
mov dword [ebp - 4], edx
je 0x41e9f6
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x41e9da
lea ecx, [esi + 0x1af70]
add ecx, eax
jmp 0x41e9dc
xor ecx, ecx
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.0041b9f0
mov edx, dword [edi]
add esp, 0x10
mov dword [esi + 0x6af74], edx
mov dword [ebp - 4], edx
mov eax, dword [esi + 0x6af90]
jmp 0x41ea91
cmp dword [ebp - 0x10], 0
je 0x41ea77
mov eax, dword [edi]
movzx eax, byte [eax + esi + 0x1af6f]
push eax
push 0
push esi
call fcn.0041bea0
add esp, 0xc
test eax, eax
je 0x41ea61
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x41ea35
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x41ea37
xor edx, edx
mov eax, dword [edi]
push 0
sub eax, ecx
push eax
push edx
push esi
call fcn.0041b9f0
mov edx, dword [edi]
add esp, 0x10
mov dword [esi + 0x6af74], edx
inc edx
dec dword [esi + 0x6af90]
mov eax, dword [esi + 0x6af90]
mov dword [edi], edx
jmp 0x41ea8b
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
inc edx
dec dword [esi + 0x6af90]
mov eax, dword [esi + 0x6af90]
mov dword [edi], edx
jmp 0x41ea8b
inc dword [edi]
lea eax, [ebx - 1]
mov edx, dword [edi]
mov dword [ebp - 0x10], 1
mov dword [esi + 0x6af90], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], edx
mov ecx, eax
cmp eax, 0x106
jae 0x41eab3
push esi
call fcn.0041c0d0
mov edx, dword [edi]
add esp, 4
mov eax, dword [esi + 0x6af90]
mov ecx, eax
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], edi
test eax, eax
jne 0x41e814
cmp dword [ebp - 0x10], eax
je 0x41eada
movzx eax, byte [esi + edx + 0x1af6f]
push eax
push 0
push esi
call fcn.0041bea0
mov edx, dword [esi + 0x6af84]
add esp, 0xc
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x41eaee
lea eax, [esi + 0x1af70]
add eax, ecx
jmp 0x41eaf0
xor eax, eax
push 1
sub edx, ecx
push edx
push eax
push esi
call fcn.0041b9f0
mov ecx, dword [ebp - 0x14]
add esp, 0x10
mov dword [ecx + 0x90], eax
mov eax, dword [ecx + 0x48]
pop edi
pop esi
pop ebx
mov eax, dword [eax + 0x6afa4]
neg eax
sbb eax, eax
and eax, 0x5000000
mov esp, ebp
pop ebp
ret 4