Function at 0x44f640
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 0xc], 1
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 8]
push esi
mov dword [ebp - 8], ebx
lea esi, [eax + ecx*4]
mov dword [ebp - 0xc], esi
ja 0x44f66c
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp + 0x10]
push edi
lea edi, [eax + 0x40000]
mov eax, 1
shl eax, cl
lea edi, [edi + ebx*4]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x20], eax
cmp ecx, eax
ja 0x44f86a
cmp ecx, dword [ebp + 0x1c]
ja 0x44f86a
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x14], 1
lea eax, [eax + ebx*4]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp + 0x1c], eax
mov eax, dword [esi]
add eax, edx
mov edx, esi
mov esi, dword [ebp - 4]
mov ecx, eax
sub ecx, ebx
cmp eax, ebx
cmovb ecx, eax
mov eax, dword [edi + ecx*4]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
shl eax, cl
mov ecx, dword [ebp - 0x14]
sub edx, ecx
mov dword [ebp - 0x18], edx
mov dword [ecx], eax
lea eax, [ecx + 4]
mov dword [ebp + 0x18], eax
nop dword [eax]
mov eax, dword [edx + eax]
add eax, esi
mov esi, dword [ebp + 0x18]
mov ecx, eax
sub ecx, ebx
cmp eax, ebx
cmovb ecx, eax
mov edx, dword [edi + ecx*4]
mov eax, edx
mov ecx, dword [ebp + 0x10]
xor edx, dword [ebp - 0x1c]
or dword [ebp + 0x1c], edx
mov edx, dword [ebp - 0x18]
shl eax, cl
mov ecx, dword [ebp + 0x14]
or eax, ecx
mov dword [esi], eax
inc ecx
mov eax, esi
mov dword [ebp + 0x14], ecx
mov esi, dword [ebp - 4]
add eax, 4
mov dword [ebp + 0x18], eax
cmp ecx, dword [ebp + 0xc]
jb 0x44f6e0
cmp dword [ebp + 0x1c], 0
mov esi, dword [ebp - 0xc]
jne 0x44f733
mov ecx, dword [ebp + 0xc]
sub ecx, 1
jmp 0x44f967
mov ebx, dword [ebp - 0x14]
mov ecx, ebx
mov edx, dword [ebp + 0xc]
call fcn.004650b0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x10]
dec eax
mov dword [ebp + 0x14], eax
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx]
mov edx, eax
shr edx, cl
and eax, dword [ebp + 0x14]
mov dword [ebp + 0x1c], edx
mov edx, 1
mov dword [ebp + 0x18], 0
mov eax, dword [esi + eax*4]
mov dword [ebx], eax
jmp 0x44f777
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebx + edx*4]
mov dword [ebp - 0x20], eax
shr eax, cl
cmp eax, dword [ebp + 0x1c]
je 0x44f7e0
mov dword [ebp + 0x1c], eax
mov ecx, edx
mov eax, dword [ebp + 8]
sub ecx, dword [ebp + 0x18]
add eax, edx
mov dword [ebp - 0x14], eax
sub ecx, 1
je 0x44f7d9
mov edi, dword [ebp + 0x18]
mov eax, ecx
and eax, 0x3ff
or eax, 0xfffff800
shl eax, 0x14
or eax, dword [ebx + edi*4]
mov dword [ebx + edi*4], eax
mov edi, dword [ebp - 0x10]
cmp ecx, 0x400
jb 0x44f7d9
mov esi, dword [ebp + 0x18]
or eax, 0x40000000
and ecx, 0xfffffc00
shl ecx, 0xa
mov dword [ebx + esi*4], eax
mov eax, esi
mov esi, dword [ebp - 0xc]
or dword [ebx + eax*4 + 4], ecx
mov ecx, edx
mov dword [ebp + 0x18], ecx
jmp 0x44f7ea
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 8], 1
mov eax, dword [ebp - 0x20]
and eax, dword [ebp + 0x14]
mov eax, dword [esi + eax*4]
mov esi, dword [ebp - 0x14]
mov dword [ebx + edx*4], eax
inc edx
mov dword [edi + eax*4], esi
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0xc]
cmp edx, eax
jb 0x44f774
sub edx, ecx
sub edx, 1
je 0x44f847
mov eax, edx
and eax, 0x3ff
or eax, 0xfffff800
shl eax, 0x14
or eax, dword [ebx + ecx*4]
mov dword [ebx + ecx*4], eax
cmp edx, 0x400
jb 0x44f844
and edx, 0xfffffc00
or eax, 0x40000000
shl edx, 0xa
mov dword [ebx + ecx*4], eax
or dword [ebx + ecx*4 + 4], edx
mov eax, dword [ebp + 0xc]
sub ebx, esi
nop dword [eax]
mov ecx, dword [esi + ebx]
lea esi, [esi + 4]
mov dword [esi - 4], ecx
sub eax, 1
jne 0x44f850
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [esi]
add eax, edx
mov edx, 1
mov ecx, eax
sub ecx, ebx
cmp eax, ebx
cmovb ecx, eax
mov eax, dword [edi + ecx*4]
mov dword [ebp - 0x20], eax
mov ecx, dword [esi + edx*4]
add ecx, dword [ebp - 4]
mov eax, ecx
sub eax, ebx
cmp ecx, ebx
cmovb eax, ecx
mov ecx, dword [ebp - 0x20]
cmp dword [edi + eax*4], ecx
mov ecx, dword [ebp + 0xc]
jne 0x44f8a1
inc edx
cmp edx, ecx
jb 0x44f882
cmp edx, ecx
je 0x44f964
mov eax, dword [ebp + 0x1c]
cmp eax, 1
jbe 0x44f964
mov edx, dword [ebp + 0x18]
inc eax
shr eax, 1
mov dword [ebp - 0x1c], eax
add eax, edx
mov dword [ebp - 0x14], eax
xor edi, edi
mov eax, ecx
mov edx, dword [esi + edi*4]
mov ecx, dword [ebp - 4]
add ecx, edx
mov dword [ebp - 0x20], edx
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
mov ebx, dword [ebp - 0x10]
cmovb edx, ecx
mov ecx, dword [ebp - 0x14]
cmp dword [ebx + edx*4], ecx
mov ebx, dword [ebp - 8]
jb 0x44f928
dec eax
cmp eax, edi
jbe 0x44f92d
nop
mov ebx, dword [esi + eax*4]
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 0x10]
add ecx, ebx
mov edx, ecx
sub edx, dword [ebp - 8]
cmp ecx, dword [ebp - 8]
cmovb edx, ecx
mov ecx, dword [ebp - 0x14]
cmp dword [esi + edx*4], ecx
mov esi, dword [ebp - 0xc]
jb 0x44f918
dec eax
cmp eax, edi
ja 0x44f8f0
jmp 0x44f92d
mov edx, dword [ebp - 0x20]
mov dword [esi + edi*4], ebx
mov dword [esi + eax*4], edx
cmp edi, eax
jae 0x44f92d
mov ebx, dword [ebp - 8]
inc edi
cmp edi, eax
jb 0x44f8c7
mov dword [ebp - 0x18], edi
test edi, edi
jne 0x44f948
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x1c]
sub edx, ecx
add eax, edx
mov edx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 0x18], edx
jmp 0x44f955
mov ecx, dword [ebp + 0xc]
cmp edi, ecx
jne 0x44f9a5
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp + 0x18]
mov ebx, dword [ebp - 8]
mov dword [ebp + 0x1c], eax
cmp eax, 1
ja 0x44f8b8
add ecx, 0xffffffff
je 0x44f997
mov eax, ecx
and eax, 0x3ff
or eax, 0xfffff800
shl eax, 0x14
or eax, dword [esi]
mov dword [esi], eax
cmp ecx, 0x400
jb 0x44f997
and ecx, 0xfffffc00
or eax, 0x40000000
shl ecx, 0xa
or dword [esi + 4], ecx
mov dword [esi], eax
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov edx, edi
jae 0x44f9c2
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
add ebx, edi
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + edx*4]
inc edx
mov dword [ecx + eax*4], ebx
cmp edx, edi
jb 0x44f9b4
mov edi, dword [ebp - 0x18]
push dword [ebp - 0x1c]
mov eax, dword [ebp + 0x14]
push dword [ebp + 0x18]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call fcn.0044f640
mov ecx, dword [ebp + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x14]
sub ecx, eax
add ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 8]
push eax
push dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x10]
sub eax, edi
push eax
mov eax, dword [ebp + 8]
add eax, edi
push eax
call fcn.0044f640
pop edi
or eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18