Function at 0x41e030
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 0x41e17b
push 0x6afa8
call fcn.004616d1
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
test esi, esi
je 0x41e176
push 0x6afa8
push 0
push esi
call fcn.004edf00
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], 0x53ee88
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], 0x53ef00
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], 0x53ef78
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 0x41e178
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], 0x41df00
mov eax, dword [edi + 0x48]
mov dword [eax + 0x10], 0x41d810
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.0041b4c0
mov esi, dword [edi + 0x48]
add esp, 8
mov edi, dword [esi + 4]
lea eax, [edi - 1]
cmp eax, 7
jbe 0x41e248
mov dword [esi + 0x6afa4], str.bad_pack_level
cmp dword [esi + 0x6af70], 0
mov dword [esi + 0x6af78], 0
jne 0x41e26f
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.004edf00
movzx eax, word [edi*8 + 0x53efca]
add esp, 0xc
mov dword [esi + 0x6af98], eax
movzx eax, word [edi*8 + 0x53efc8]
mov dword [esi + 0x6af9c], eax
movzx eax, word [edi*8 + 0x53efcc]
mov dword [esi + 0x6afa0], eax
movzx eax, word [edi*8 + 0x53efce]
mov dword [esi + 0x6af94], eax
cmp edi, 2
jg 0x41e2d3
or word [ebx + 4], 4
jmp 0x41e2dd
cmp edi, 8
jl 0x41e2dd
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, 0x41df00
jne 0x41e310
mov ecx, dword [esi]
call fcn.0041df20
jmp 0x41e316
push esi
call eax
add esp, 0xc
mov dword [esi + 0x6af90], eax
test eax, eax
je 0x41e35a
cmp eax, 0xffffffff
je 0x41e35a
mov dword [esi + 0x6af8c], 0
cmp eax, 0x106
jae 0x41e33f
push esi
call fcn.0041bea0
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 0x41e36e
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 0x41e5c8
xor ebx, ebx
mov dword [esi + 0x6af80], 2
xor edi, edi
test eax, eax
je 0x41e59e
nop dword [eax]
cmp eax, 3
jb 0x41e401
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 0x41e43f
mov eax, dword [esi + 0x6af84]
sub eax, ebx
cmp eax, 0x7efa
ja 0x41e43f
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x41e428
mov dword [esi + 0x6afa0], eax
push ebx
push esi
call fcn.0041c250
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 0x41e51f
sub ecx, dword [esi + 0x6af88]
lea eax, [edi - 3]
push eax
push ecx
push esi
call fcn.0041bc70
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 0x41e4e9
cmp ecx, 3
jb 0x41e4e9
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 0x41e481
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
mov eax, dword [ebp + 8]
jmp 0x41e545
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 0x41e545
movzx eax, byte [ecx + esi + 0x1af70]
push eax
push 0
push esi
call fcn.0041bc70
dec dword [esi + 0x6af90]
add esp, 0xc
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
test eax, eax
je 0x41e57a
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x41e55d
lea ecx, [esi + 0x1af70]
add ecx, eax
jmp 0x41e55f
xor ecx, ecx
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.0041b7c0
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
mov eax, dword [esi + 0x6af90]
cmp eax, 0x106
jae 0x41e596
push esi
call fcn.0041bea0
mov eax, dword [esi + 0x6af90]
add esp, 4
test eax, eax
jne 0x41e3b0
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x41e5bb
mov edx, dword [esi + 0x6af84]
lea eax, [esi + 0x1af70]
add eax, ecx
jmp 0x41e8c0
mov edx, dword [esi + 0x6af84]
xor eax, eax
jmp 0x41e8c0
mov edx, dword [esi + 0x6af84]
lea edi, [esi + 0x6af84]
test eax, eax
je 0x41e8aa
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 0x41e647
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 0x41e6c9
mov edi, dword [ebp - 0x18]
cmp edi, dword [esi + 0x6af98]
lea edi, [esi + 0x6af84]
jae 0x41e6d0
mov eax, dword [ebp - 8]
sub edx, eax
cmp edx, 0x7efa
ja 0x41e6d0
cmp dword [esi + 0x6afa0], ecx
jbe 0x41e691
mov dword [esi + 0x6afa0], ecx
push eax
push esi
call fcn.0041c250
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 0x41e6d3
mov eax, dword [edi]
sub eax, dword [esi + 0x6af88]
cmp eax, 0x1000
jbe 0x41e6d0
mov eax, 2
mov dword [ebp + 8], eax
jmp 0x41e6d3
mov eax, 2
jmp 0x41e6d3
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x6af80]
cmp edx, 3
jb 0x41e7d1
cmp eax, edx
ja 0x41e7d1
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.0041bc70
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 0x41e775
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 0x41e722
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 0x41e7c6
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x41e7aa
lea ecx, [esi + 0x1af70]
add ecx, eax
jmp 0x41e7ac
xor ecx, ecx
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.0041b7c0
mov edx, dword [edi]
add esp, 0x10
mov dword [esi + 0x6af74], edx
mov dword [ebp - 4], edx
mov eax, dword [esi + 0x6af90]
jmp 0x41e861
cmp dword [ebp - 0x10], 0
je 0x41e847
mov eax, dword [edi]
movzx eax, byte [eax + esi + 0x1af6f]
push eax
push 0
push esi
call fcn.0041bc70
add esp, 0xc
test eax, eax
je 0x41e831
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x41e805
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x41e807
xor edx, edx
mov eax, dword [edi]
push 0
sub eax, ecx
push eax
push edx
push esi
call fcn.0041b7c0
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 0x41e85b
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 0x41e85b
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 0x41e883
push esi
call fcn.0041bea0
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 0x41e5e4
cmp dword [ebp - 0x10], eax
je 0x41e8aa
movzx eax, byte [esi + edx + 0x1af6f]
push eax
push 0
push esi
call fcn.0041bc70
mov edx, dword [esi + 0x6af84]
add esp, 0xc
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x41e8be
lea eax, [esi + 0x1af70]
add eax, ecx
jmp 0x41e8c0
xor eax, eax
push 1
sub edx, ecx
push edx
push eax
push esi
call fcn.0041b7c0
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