Function at 0x444850
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
xor edi, edi
mov eax, dword [esi + 0x6af90]
mov dword [esi + 0x6af80], 2
test eax, eax
je 0x44481c
push ebp
cmp eax, 3
jb 0x444664
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 0x4446a1
mov eax, dword [esi + 0x6af84]
sub eax, ebx
cmp eax, 0x7efa
ja 0x4446a1
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x44468b
mov dword [esi + 0x6afa0], eax
mov edx, ebx
mov ecx, esi
call fcn.004442e0
mov ecx, dword [esi + 0x6af90]
mov edi, eax
cmp edi, ecx
cmova edi, ecx
mov ecx, dword [esi + 0x6af84]
cmp edi, 3
jb 0x44479d
sub ecx, dword [esi + 0x6af88]
lea eax, [edi - 3]
mov edx, ecx
mov ecx, esi
push eax
call fcn.00443c60
mov ecx, dword [esi + 0x6af90]
add esp, 4
sub ecx, edi
mov dword [esp + 0x10], eax
mov dword [esi + 0x6af90], ecx
cmp edi, dword [esi + 0x6af98]
ja 0x44475f
cmp ecx, 3
jb 0x44475f
dec edi
nop word [eax + eax]
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 0x4446f0
inc dword [esi + 0x6af84]
lea ebp, [esi + 0x1af70]
mov edx, dword [esi + 0x6af84]
mov eax, dword [esp + 0x10]
jmp 0x4447ca
mov edx, dword [esi + 0x6af84]
lea ebp, [esi + 0x1af70]
add edx, edi
xor edi, edi
mov dword [esi + 0x6af84], edx
movzx ecx, byte [edx + ebp]
mov dword [esi + 0x6af7c], ecx
movzx eax, byte [edx + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov eax, dword [esp + 0x10]
jmp 0x4447ca
movzx eax, byte [ecx + esi + 0x1af70]
lea ebp, [esi + 0x1af70]
push eax
xor edx, edx
mov ecx, esi
call fcn.00443c60
dec dword [esi + 0x6af90]
add esp, 4
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
test eax, eax
je 0x4447f9
mov eax, dword [esi + 0x6af74]
xor ecx, ecx
sub edx, eax
test eax, eax
push 0
push edx
lea edx, [eax + ebp]
cmovs edx, ecx
mov ecx, esi
call fcn.004438c0
mov eax, dword [esi + 0x6af84]
add esp, 8
mov dword [esi + 0x6af74], eax
mov eax, dword [esi + 0x6af90]
cmp eax, 0x106
jae 0x444813
mov ecx, esi
call fcn.004444a0
mov eax, dword [esi + 0x6af90]
test eax, eax
jne 0x444613
pop ebp
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x444830
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x444832
xor edx, edx
mov eax, dword [esi + 0x6af84]
sub eax, ecx
mov ecx, esi
push 1
push eax
call fcn.004438c0
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
ret
sub esp, 0x10
push esi
xor eax, eax
mov esi, ecx
push edi
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
cmp dword [esi + 4], 3
lea edi, [eax + 2]
jg 0x444874
pop edi
pop esi
add esp, 0x10
jmp 0x4445f0
mov eax, dword [esi + 0x6af90]
mov edx, dword [esi + 0x6af84]
test eax, eax
je 0x444b47
push ebx
push ebp
mov ebp, edx
mov ebx, eax
nop
mov dword [esp + 0x18], edi
cmp eax, 3
jb 0x4448f1
mov eax, dword [esi + 0x6af7c]
movzx ecx, byte [esi + ebp + 0x1af72]
shl eax, 5
xor ecx, eax
and ecx, 0x7fff
and ebp, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov eax, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + ebp*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af7c]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
mov eax, dword [esi + 0x6af90]
mov ebx, eax
mov edx, dword [esi + 0x6af84]
cmp dword [esp + 0x10], 0
mov ecx, dword [esi + 0x6af88]
mov dword [esi + 0x6af80], edi
mov edi, 2
mov dword [esp + 0x1c], ecx
mov ecx, eax
je 0x44496c
mov ebp, dword [esp + 0x18]
cmp ebp, dword [esi + 0x6af98]
mov ebp, dword [esp + 0x10]
jae 0x44496c
sub edx, ebp
cmp edx, 0x7efa
ja 0x44496c
cmp dword [esi + 0x6afa0], ebx
jbe 0x444937
mov dword [esi + 0x6afa0], ebx
mov edx, ebp
mov ecx, esi
call fcn.004442e0
mov edx, dword [esi + 0x6af90]
mov edi, eax
cmp edi, edx
mov ecx, edx
cmova edi, edx
cmp edi, 3
jne 0x44496c
mov eax, dword [esi + 0x6af84]
sub eax, dword [esi + 0x6af88]
cmp eax, 0x1000
jbe 0x44496c
mov edi, 2
mov eax, dword [esi + 0x6af80]
cmp eax, 3
jb 0x444a84
cmp edi, eax
ja 0x444a84
mov edx, dword [esi + 0x6af84]
add eax, 0xfffffffd
push eax
lea edi, [edx - 3]
sub edx, dword [esp + 0x20]
add edi, ecx
dec edx
mov ecx, esi
call fcn.00443c60
mov edx, dword [esi + 0x6af80]
mov ecx, 1
sub ecx, edx
add esp, 4
add dword [esi + 0x6af90], ecx
mov ebx, eax
lea ecx, [edx - 2]
mov dword [esi + 0x6af80], ecx
nop
mov edx, dword [esi + 0x6af84]
inc edx
mov dword [esi + 0x6af84], edx
cmp edx, edi
ja 0x444a21
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 ebp, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], ebp
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esp + 0x10], ebp
mov dword [esi + ecx*4 + 0x4af70], eax
mov edx, dword [esi + 0x6af84]
add dword [esi + 0x6af80], 0xffffffff
jne 0x4449c0
inc edx
mov dword [esp + 0x14], 0
mov dword [esi + 0x6af84], edx
mov edi, 2
mov ebp, edx
test ebx, ebx
je 0x444a79
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x444a58
lea ecx, [esi + 0x1af70]
add ecx, eax
jmp 0x444a5a
xor ecx, ecx
sub edx, eax
push 0
push edx
mov edx, ecx
mov ecx, esi
call fcn.004438c0
mov edx, dword [esi + 0x6af84]
add esp, 8
mov dword [esi + 0x6af74], edx
mov ebp, edx
mov eax, dword [esi + 0x6af90]
jmp 0x444b1d
cmp dword [esp + 0x14], 0
je 0x444afe
mov eax, dword [esi + 0x6af84]
xor edx, edx
mov ecx, esi
movzx eax, byte [eax + esi + 0x1af6f]
push eax
call fcn.00443c60
add esp, 4
test eax, eax
je 0x444ae3
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x444abe
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x444ac0
xor edx, edx
mov eax, dword [esi + 0x6af84]
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.004438c0
mov edx, dword [esi + 0x6af84]
add esp, 8
mov dword [esi + 0x6af74], edx
jmp 0x444ae9
mov edx, dword [esi + 0x6af84]
inc edx
dec dword [esi + 0x6af90]
mov eax, dword [esi + 0x6af90]
mov dword [esi + 0x6af84], edx
jmp 0x444b1b
inc dword [esi + 0x6af84]
lea eax, [ecx - 1]
mov edx, dword [esi + 0x6af84]
mov dword [esp + 0x14], 1
mov dword [esi + 0x6af90], eax
mov ebp, edx
mov ebx, eax
cmp eax, 0x106
jae 0x444b3d
mov ecx, esi
call fcn.004444a0
mov edx, dword [esi + 0x6af84]
mov ebp, edx
mov eax, dword [esi + 0x6af90]
mov ebx, eax
test eax, eax
jne 0x444890
pop ebp
pop ebx
cmp dword [esp + 0xc], 0
je 0x444b69
movzx eax, byte [edx + esi + 0x1af6f]
mov ecx, esi
push eax
xor edx, edx
call fcn.00443c60
mov edx, dword [esi + 0x6af84]
add esp, 4
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x444b7d
lea ecx, [esi + 0x1af70]
add ecx, eax
jmp 0x444b7f
xor ecx, ecx
sub edx, eax
push 1
push edx
mov edx, ecx
mov ecx, esi
call fcn.004438c0
add esp, 8
pop edi
pop esi
add esp, 0x10
ret