Function at 0x440e70
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [esp + 0x38]
xor ecx, ecx
test eax, eax
je 0x440ea3
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + ecx], 0
lea ecx, [ecx + 2]
jne 0x440e90
add ecx, 0xfffffffe
and ecx, 0xfffe
mov word [esp + 0x18], cx
mov edx, eax
test eax, eax
je 0x440eb3
add ecx, 2
mov edx, ecx
mov word [esp + 0x1a], dx
mov dword [esp + 0x1c], eax
mov dword [esp], 0x94959697
mov dword [esp + 4], 0
mov eax, 0x456bdfe4
mov ecx, 0xba94201c
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [esp + eax - 0x456bdfe4]
mov edx, eax
and edx, edi
lea ebx, [ecx + edx*2]
add edx, edx
not edx
add edx, eax
and edx, edi
not edi
and edi, ebx
sub edx, edi
add dl, 0x8c
mov byte [esp + eax - 0x456bdfe4], dl
inc eax
dec ecx
cmp eax, 0x456bdfec
jne 0x440ee0
mov ebx, dword [esp]
mov eax, dword [0x44ce50]
test eax, eax
je 0x440f6f
xor ecx, ecx
mov edx, dword [0x44ce54]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0x877f203a
je 0x440f40
inc ecx
cmp eax, ecx
jne 0x440f30
jmp 0x440f6f
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x440f6f
lea ecx, [esp + 0xc]
lea edx, [esp + 0x18]
push ecx
push 0
push 0
push 2
push edx
push dword [esp + 0x48]
push 0x18
push eax
push dword [0x44ce58]
call fcn.0043d4f0
add esp, 0x24
mov ebx, eax
mov dword [esp], 0xb3727153
mov word [esp + 4], 0
mov byte [esp + 6], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0x6c
xor cl, byte [esp + eax]
add cl, 0xe4
mov byte [esp + eax], cl
inc eax
cmp eax, 7
jne 0x440f90
cmp ebx, dword [esp]
jne 0x44113c
push dword [esp + 0xc]
call fcn.0043afb0
add esp, 4
mov ecx, dword [esp + 0xc]
mov dword [esp + 8], ecx
mov dword [esp + 0x10], 0x77767966
mov word [esp + 0x14], 0
mov byte [esp + 0x16], 0
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, edx
add cl, 0x16
xor cl, byte [esp + edx + 0x10]
add cl, 0x92
mov byte [esp + edx + 0x10], cl
inc edx
cmp edx, 7
jne 0x440fe0
mov edx, dword [esp + 0x10]
mov dword [esp], 0x94959697
mov dword [esp + 4], 0
mov edi, 0x456bdfe4
mov ebp, 0xba94201c
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + edi - 0x456bdfe4]
mov ebx, edi
and ebx, ecx
lea esi, [ebx*2]
add esi, ebp
add ebx, ebx
not ebx
add ebx, edi
and ebx, ecx
not ecx
and ecx, esi
sub ebx, ecx
add bl, 0x8c
mov byte [esp + edi - 0x456bdfe4], bl
inc edi
dec ebp
cmp edi, 0x456bdfec
jne 0x441020
mov ebx, dword [esp]
mov edi, dword [0x44ce50]
test edi, edi
je 0x441080
xor ecx, ecx
mov esi, dword [0x44ce54]
mov ebp, dword [esp + 0x3c]
cmp dword [esi + ecx*8], 0x877f203a
je 0x441086
inc ecx
cmp edi, ecx
jne 0x441070
jmp 0x4410b9
mov ebp, dword [esp + 0x3c]
jmp 0x4410b9
mov edi, dword [esi + ecx*8 + 4]
cmp edi, ebx
je 0x4410b9
lea ecx, [esp + 0xc]
lea esi, [esp + 0x18]
push ecx
push dword [esp + 0xc]
push eax
push edx
push esi
push dword [esp + 0x48]
push 0x18
push edi
push dword [0x44ce58]
mov esi, eax
call fcn.0043d4f0
add esp, 0x24
mov ebx, eax
mov eax, esi
test ebx, ebx
mov esi, dword [esp + 0x44]
js 0x441133
test ebp, ebp
je 0x4410cb
mov ecx, dword [eax + 4]
mov dword [ebp], ecx
test esi, esi
je 0x441133
cmp dword [esp + 0x40], 0
je 0x44112e
mov edx, dword [esi]
mov ecx, dword [eax + 8]
cmp edx, ecx
jb 0x4410e1
mov edx, ecx
lea esi, [eax + 0xc]
mov ecx, edx
shr ecx, 2
mov ebp, dword [esp + 0x40]
mov edi, ebp
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
mov ecx, edx
and ecx, 0xfffffffc
add ebp, ecx
lea esi, [eax + ecx]
add esi, 0xc
mov ecx, edx
shr ecx, 1
and ecx, 1
mov dword [esp + 8], esi
mov edi, ebp
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
test dl, 1
mov esi, dword [esp + 0x44]
je 0x44112e
and edx, 2
mov ecx, dword [esp + 8]
movzx ecx, byte [ecx + edx]
mov byte [ebp + edx], cl
mov ecx, dword [eax + 8]
mov dword [esi], ecx
push eax
call fcn.0043b070
add esp, 4
mov eax, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret