Function at 0x440680
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x78
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], 0x100000
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0xe0e7e6e5
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0x89
xor cl, byte [esp + eax + 0xc]
xor cl, 0xa0
add cl, 0x33
mov byte [esp + eax + 0xc], cl
inc eax
cmp eax, 4
jne 0x4406d0
mov eax, dword [esp + 0xc]
mov ecx, dword [0x451ae0]
test ecx, ecx
je 0x44073e
xor edx, edx
mov esi, dword [0x451ae4]
nop
cmp dword [esi + edx*8], 0xf3285e74
je 0x440710
inc edx
cmp ecx, edx
jne 0x440700
jmp 0x44073e
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x44073e
lea eax, [esp + 0x20]
lea edx, [esp + 8]
push 4
push 0x3000
push eax
push 0
push edx
push 0xffffffffffffffff
push 6
push dword [0x451ae8]
push ecx
call fcn.004425f0
add esp, 0x24
test eax, eax
js 0x440d02
cmp dword [edi + 4], 0
je 0x440c90
xor edx, edx
cmp dword [edi + 4], 2
mov dword [esp + 0x48], 0x7fff
je 0x440768
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0xfffeffff
je 0x44077a
mov dword [esp + 0x44], SysStringLen
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
mov esi, 0x10000
mov dword [esp + 0x18], 0
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 0x4c], edi
jmp 0x440800
mov eax, dword [ebp + 8]
mov ecx, dword [esp]
mov dword [eax + 4], ecx
mov dword [eax], ebx
mov ecx, dword [esp + 0x18]
mov dword [eax + 8], ecx
nop
nop
mov esi, dword [esp + 0x30]
add esi, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
adc edx, dword [esp + 0x3c]
cmp esi, dword [esp + 0x44]
mov eax, edx
sbb eax, dword [esp + 0x48]
jae 0x440c36
mov dword [esp + 0x28], edx
mov ecx, dword [esp + 0x4c]
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x44]
push eax
push edx
push esi
call fcn.004402c0
mov edx, dword [esp + 0x28]
cmp eax, 0xbfffffff
ja 0x440c36
mov dword [esp + 0x24], esi
test eax, eax
js 0x4407e0
cmp dword [esp + 0x58], 0x1000
jne 0x4407e0
test byte [esp + 0x54], 0x66
je 0x4407e0
mov esi, dword [esp + 0x30]
cmp dword [esp + 0x20], esi
mov ebx, dword [esp + 0x34]
mov eax, 0
sbb eax, ebx
mov edi, dword [esp + 0x24]
jae 0x44098e
mov dword [esp + 0xc], 0xe0e7e6e5
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0x89
xor cl, byte [esp + eax + 0xc]
xor cl, 0xa0
add cl, 0x33
mov byte [esp + eax + 0xc], cl
inc eax
cmp eax, 4
jne 0x440880
mov eax, dword [0x451ae0]
test eax, eax
je 0x4408ea
mov ecx, dword [esp + 0xc]
xor edx, edx
mov edi, dword [0x451ae4]
nop
nop
cmp dword [edi + edx*8], 0x731cdbf3
je 0x4408c0
inc edx
cmp eax, edx
jne 0x4408b0
jmp 0x4408ea
mov eax, dword [edi + edx*8 + 4]
cmp eax, ecx
je 0x4408ea
push 0x8000
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x10]
push ecx
push 0xffffffffffffffff
push 4
push dword [0x451ae8]
push eax
call fcn.004425f0
add esp, 0x1c
mov dword [esp + 0x2c], 0
mov dword [esp + 8], 0
mov dword [esp + 0x20], esi
mov dword [esp + 0xc], 0xe0e7e6e5
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0x89
xor cl, byte [esp + eax + 0xc]
xor cl, 0xa0
add cl, 0x33
mov byte [esp + eax + 0xc], cl
inc eax
cmp eax, 4
jne 0x440910
mov eax, dword [esp + 0xc]
mov ecx, dword [0x451ae0]
test ecx, ecx
je 0x44097e
xor edx, edx
mov edi, dword [0x451ae4]
nop
cmp dword [edi + edx*8], 0xf3285e74
je 0x440950
inc edx
cmp ecx, edx
jne 0x440940
jmp 0x44097e
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, eax
je 0x44097e
push 4
push 0x3000
lea eax, [esp + 0x28]
push eax
push 0
lea eax, [esp + 0x18]
push eax
push 0xffffffffffffffff
push 6
push dword [0x451ae8]
push ecx
call fcn.004425f0
add esp, 0x24
test eax, eax
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
js 0x440c36
mov ecx, dword [esp + 0x4c]
lea eax, [esp + 0x68]
push eax
push ebx
push esi
push dword [esp + 0x14]
push edx
push edi
call fcn.00440530
test eax, eax
jns 0x4409b3
cmp eax, 0x8000000d
jne 0x4407e0
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov edx, dword [ebp + 0x10]
cmp eax, edx
sbb ecx, 0
jb 0x4407e0
push dword [ebp + 0x14]
push edx
push dword [ebp + 0xc]
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
call fcn.00440d50
add esp, 0x18
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x50], eax
cmp esi, eax
mov ebx, dword [esp + 4]
je 0x4407cc
mov dword [esp + 0x5c], esi
mov edx, dword [esp]
jmp 0x440a56
push dword [esp + 4]
call fcn.0040c660
add esp, 4
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x18]
lea eax, [ecx + eax*8]
mov dword [esp + 0x18], eax
mov edx, ecx
add edx, edi
mov ebx, ecx
mov ecx, edi
mov edi, dword [esp + 0x64]
mov dword [ebx + ecx], edi
mov eax, dword [esp + 0x60]
mov dword [ebx + ecx + 4], eax
add edx, 8
add esi, 4
cmp esi, dword [esp + 0x50]
je 0x440bf0
mov edi, dword [esi]
sub edi, dword [esp + 8]
mov eax, edi
sar eax, 0x1f
add edi, dword [esp + 0x24]
mov dword [esp + 0x64], edi
adc eax, dword [esp + 0x28]
mov dword [esp + 0x60], eax
mov edi, edx
sub edi, ebx
cmp edx, dword [esp + 0x18]
jne 0x440a35
mov eax, ebx
not eax
and eax, edx
mov dword [esp], edx
mov ecx, edx
not ecx
and ecx, ebx
sub eax, ecx
sar eax, 3
mov ecx, eax
shr ecx, 1
add ecx, eax
mov eax, edi
sar eax, 3
inc eax
cmp ecx, eax
ja 0x440aa1
mov ecx, eax
mov dword [esp + 0x18], ecx
lea eax, [ecx*8]
push eax
call fcn.0040c650
add esp, 4
mov ecx, eax
test ebx, ebx
je 0x440a24
lea edx, [edi + 0x10b43c30]
cmp ecx, ebx
mov dword [esp + 4], ebx
mov eax, dword [esp]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x40], ecx
jbe 0x440ba2
cmp eax, ecx
jbe 0x440ba2
test edi, edi
je 0x440a10
mov ebx, dword [esp + 4]
lea eax, [ebx + edx]
add eax, 0xef4bc3cf
mov ecx, dword [esp + 0x40]
add ecx, edx
add ecx, 0xef4bc3cf
mov edx, dword [esp + 0x1c]
mov edi, edx
and edi, 7
je 0x440b38
neg edi
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x440b20
add eax, edx
add ecx, edx
add edx, dword [esp + 0x1c]
mov ebx, dword [esp + 4]
mov edi, ebx
sub edi, dword [esp]
cmp edi, 0xfffffff8
ja 0x440a10
neg edx
xor edi, edi
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edi]
mov byte [ecx + edi], bl
movzx ebx, byte [eax + edi - 1]
mov byte [ecx + edi - 1], bl
movzx ebx, byte [eax + edi - 2]
mov byte [ecx + edi - 2], bl
movzx ebx, byte [eax + edi - 3]
mov byte [ecx + edi - 3], bl
movzx ebx, byte [eax + edi - 4]
mov byte [ecx + edi - 4], bl
movzx ebx, byte [eax + edi - 5]
mov byte [ecx + edi - 5], bl
movzx ebx, byte [eax + edi - 6]
mov byte [ecx + edi - 6], bl
movzx ebx, byte [eax + edi - 7]
mov byte [ecx + edi - 7], bl
add edi, 0xfffffff8
cmp edx, edi
jne 0x440b50
jmp 0x440a10
mov dword [esp], edx
mov edx, ecx
mov ecx, edi
shr ecx, 2
mov eax, ebx
mov edi, edx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, dword [esp + 0x1c]
and eax, 0xfffffffc
lea ecx, [edx + eax]
add eax, ebx
mov ebx, ecx
mov ecx, dword [esp]
shr ecx, 1
and ecx, 1
mov edx, eax
mov edi, ebx
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
mov ecx, dword [esp]
test cl, 1
je 0x440a10
and ecx, 2
movzx eax, byte [eax + ecx]
mov byte [ebx + ecx], al
jmp 0x440a10
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
mov dword [eax], ebx
mov ecx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x440c2a
mov dword [esp], edx
cmp eax, dword [esp + 0x50]
je 0x440c2d
mov dword [esp + 4], ebx
push eax
call fcn.0040c660
add esp, 4
mov dword [esp + 0xc], 0
jmp 0x4407e0
mov dword [esp], edx
mov dword [esp + 4], ebx
jmp 0x4407e0
mov dword [esp + 0xc], 0xe0e7e6e5
xor eax, eax
mov ecx, eax
add cl, 0x89
xor cl, byte [esp + eax + 0xc]
xor cl, 0xa0
add cl, 0x33
mov byte [esp + eax + 0xc], cl
inc eax
cmp eax, 4
jne 0x440c40
mov eax, dword [0x451ae0]
test eax, eax
je 0x440d02
mov ecx, dword [esp + 0xc]
xor edx, edx
mov esi, dword [0x451ae4]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x731cdbf3
je 0x440cd8
inc edx
cmp eax, edx
jne 0x440c80
jmp 0x440d02
push 0xf8eb88df
push dword [0x451ad4]
call fcn.00444eb0
add esp, 8
test eax, eax
je 0x440d0f
mov ecx, dword [edi]
test ecx, ecx
je 0x440750
mov dword [esp + 0xc], 0
lea edx, [esp + 0xc]
push edx
push ecx
call eax
test eax, eax
je 0x440d1b
cmp dword [esp + 0xc], 0
je 0x440d1b
mov dword [edi + 4], 3
jmp 0x440750
mov eax, dword [esi + edx*8 + 4]
cmp eax, ecx
je 0x440d02
push 0x8000
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x10]
push ecx
push 0xffffffffffffffff
push 4
push dword [0x451ae8]
push eax
call fcn.004425f0
add esp, 0x1c
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
mov dword [edi + 4], 1
jmp 0x440750
lea eax, [esp + 0x38]
push eax
call fcn.00445600
add esp, 4
test al, al
je 0x440750
mov eax, dword [esp + 0x38]
mov ecx, 2
cmp eax, 3
je 0x440d40
mov ecx, eax
mov dword [edi + 4], ecx
jmp 0x440750