Function at 0x440860
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 + 0x34], 0
mov dword [esp + 0x24], 0x100000
mov dword [esp + 0x14], 0
mov dword [esp + 8], 0xf4f50a0b
mov dword [esp + 0xc], 0
mov eax, 0x178425fe
mov ecx, 0xd0f7b501
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + eax - 0x178425f6]
mov edx, ecx
xor edx, eax
and edx, esi
xor edx, eax
add dl, 0xa
mov byte [esp + eax - 0x178425f6], dl
inc eax
dec ecx
cmp eax, 0x17842606
jne 0x4408c0
mov eax, dword [esp + 8]
mov ecx, dword [0x4521f4]
test ecx, ecx
je 0x44093e
xor edx, edx
mov esi, dword [0x4521f8]
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xf3285e74
je 0x440910
inc edx
cmp ecx, edx
jne 0x440900
jmp 0x44093e
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x44093e
lea eax, [esp + 0x24]
lea edx, [esp + 0x14]
push 4
push 0x3000
push eax
push 0
push edx
push 0xffffffffffffffff
push 6
push dword [0x4521fc]
push ecx
call fcn.00442500
add esp, 0x24
test eax, eax
js 0x440f52
cmp dword [edi + 4], 0
je 0x440ee0
xor edx, edx
cmp dword [edi + 4], 2
mov dword [esp + 0x50], 0x7fff
je 0x440968
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0xfffeffff
je 0x44097a
mov dword [esp + 0x4c], SysReAllocString
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov esi, 0x10000
mov dword [esp + 0x1c], 0
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 0x28], edi
jmp 0x440a00
mov eax, dword [ebp + 8]
mov ecx, dword [esp]
mov dword [eax + 4], ecx
mov dword [eax], ebx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 8], ecx
nop
nop
mov esi, dword [esp + 0x38]
add esi, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
adc edx, dword [esp + 0x44]
cmp esi, dword [esp + 0x4c]
mov eax, edx
sbb eax, dword [esp + 0x50]
jae 0x440e6a
mov dword [esp + 0x30], edx
mov ecx, edi
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x4c]
push eax
push edx
push esi
call fcn.00440430
mov edx, dword [esp + 0x30]
cmp eax, 0xbfffffff
ja 0x440e6a
mov dword [esp + 0x20], esi
test eax, eax
js 0x4409e0
cmp dword [esp + 0x5c], 0x1000
jne 0x4409e0
test byte [esp + 0x58], 0x66
je 0x4409e0
mov esi, dword [esp + 0x38]
cmp dword [esp + 0x24], esi
mov ecx, dword [esp + 0x3c]
mov eax, 0
mov dword [esp + 0x2c], ecx
sbb eax, ecx
mov ebx, dword [esp + 0x20]
jae 0x440bd2
mov dword [esp + 8], 0xf4f50a0b
mov dword [esp + 0xc], 0
mov eax, 0x178425fe
mov ecx, 0xd0f7b501
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [esp + eax - 0x178425f6]
mov edx, ecx
xor edx, eax
and edx, edi
xor edx, eax
add dl, 0xa
mov byte [esp + eax - 0x178425f6], dl
inc eax
dec ecx
cmp eax, 0x17842606
jne 0x440a90
mov eax, dword [0x4521f4]
test eax, eax
je 0x440b0a
mov ecx, dword [esp + 8]
xor edx, edx
mov edi, dword [0x4521f8]
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + edx*8], 0x731cdbf3
je 0x440ae0
inc edx
cmp eax, edx
jne 0x440ad0
jmp 0x440b0a
mov eax, dword [edi + edx*8 + 4]
cmp eax, ecx
je 0x440b0a
push 0x8000
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x1c]
push ecx
push 0xffffffffffffffff
push 4
push dword [0x4521fc]
push eax
call fcn.00442500
add esp, 0x1c
mov dword [esp + 0x34], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], esi
mov dword [esp + 8], 0xf4f50a0b
mov dword [esp + 0xc], 0
mov eax, 0x178425fe
mov ecx, 0xd0f7b501
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [esp + eax - 0x178425f6]
mov edx, ecx
xor edx, eax
and edx, edi
xor edx, eax
add dl, 0xa
mov byte [esp + eax - 0x178425f6], dl
inc eax
dec ecx
cmp eax, 0x17842606
jne 0x440b40
mov eax, dword [esp + 8]
mov ecx, dword [0x4521f4]
test ecx, ecx
je 0x440bbe
xor edx, edx
mov edi, dword [0x4521f8]
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + edx*8], 0xf3285e74
je 0x440b90
inc edx
cmp ecx, edx
jne 0x440b80
jmp 0x440bbe
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, eax
je 0x440bbe
push 4
push 0x3000
lea eax, [esp + 0x2c]
push eax
push 0
lea eax, [esp + 0x24]
push eax
push 0xffffffffffffffff
push 6
push dword [0x4521fc]
push ecx
call fcn.00442500
add esp, 0x24
test eax, eax
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x20]
js 0x440e6a
mov ecx, edi
lea eax, [esp + 0x68]
push eax
push dword [esp + 0x30]
push esi
push dword [esp + 0x20]
push edx
push ebx
call fcn.004406f0
test eax, eax
jns 0x440bf8
cmp eax, 0x8000000d
jne 0x4409e0
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov edx, dword [ebp + 0x10]
cmp eax, edx
sbb ecx, 0
jb 0x4409e0
push dword [ebp + 0x14]
push edx
push dword [ebp + 0xc]
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x1c]
push eax
call fcn.00440fa0
add esp, 0x18
mov esi, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x54], eax
cmp esi, eax
mov ebx, dword [esp + 4]
je 0x4409cc
mov dword [esp + 0x60], esi
mov ecx, dword [esp + 0x20]
mov edx, dword [esp]
jmp 0x440c9a
push dword [esp + 4]
call fcn.0040ca00
add esp, 4
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x1c]
lea eax, [ecx + eax*8]
mov dword [esp + 0x1c], eax
mov edx, ecx
mov eax, dword [esp + 0x18]
add edx, eax
mov ebx, ecx
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x2c]
mov dword [ebx + eax], edi
mov edi, eax
mov eax, dword [esp + 0x64]
mov dword [ebx + edi + 4], eax
add edx, 8
add esi, 4
cmp esi, dword [esp + 0x54]
je 0x440e13
mov edi, dword [esi]
sub edi, dword [esp + 0x14]
mov eax, edi
sar eax, 0x1f
add edi, ecx
mov dword [esp + 0x2c], edi
adc eax, dword [esp + 0x30]
mov dword [esp + 0x64], eax
mov eax, edx
sub eax, ebx
cmp edx, dword [esp + 0x1c]
jne 0x440c79
mov dword [esp], edx
mov dword [esp + 0x18], eax
mov ecx, eax
sar ecx, 3
lea eax, [ecx + 1]
mov edx, ecx
shr edx, 1
add edx, ecx
cmp edx, eax
ja 0x440cd8
mov edx, eax
mov dword [esp + 0x1c], edx
lea eax, [edx*8]
push eax
call fcn.0040c9f0
add esp, 4
mov ecx, eax
test ebx, ebx
je 0x440c60
cmp ecx, ebx
mov dword [esp + 4], ebx
mov eax, dword [esp]
mov dword [esp + 0x48], ecx
jbe 0x440dc2
cmp eax, ecx
jbe 0x440dc2
cmp dword [esp + 0x18], 0
je 0x440c50
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x48]
add eax, edx
dec eax
mov ebx, dword [esp + 4]
lea ecx, [ebx + edx]
dec ecx
mov edi, edx
and edi, 7
je 0x440d58
neg edi
xor edx, edx
nop
nop
nop
nop
nop
nop
movzx ebx, byte [ecx + edx]
mov byte [eax + edx], bl
dec edx
cmp edi, edx
jne 0x440d40
add ecx, edx
add eax, edx
add edx, dword [esp + 0x18]
mov ebx, dword [esp + 4]
mov edi, ebx
sub edi, dword [esp]
cmp edi, 0xfffffff8
ja 0x440c50
neg edx
xor edi, edi
nop
nop
nop
nop
nop
nop
movzx ebx, byte [ecx + edi]
mov byte [eax + edi], bl
movzx ebx, byte [ecx + edi - 1]
mov byte [eax + edi - 1], bl
movzx ebx, byte [ecx + edi - 2]
mov byte [eax + edi - 2], bl
movzx ebx, byte [ecx + edi - 3]
mov byte [eax + edi - 3], bl
movzx ebx, byte [ecx + edi - 4]
mov byte [eax + edi - 4], bl
movzx ebx, byte [ecx + edi - 5]
mov byte [eax + edi - 5], bl
movzx ebx, byte [ecx + edi - 6]
mov byte [eax + edi - 6], bl
movzx ebx, byte [ecx + edi - 7]
mov byte [eax + edi - 7], bl
add edi, 0xfffffff8
cmp edx, edi
jne 0x440d70
jmp 0x440c50
mov eax, ecx
mov ecx, dword [esp + 0x18]
shr ecx, 2
mov edx, ebx
mov edi, eax
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov ecx, dword [esp + 0x18]
mov edx, ecx
and edx, 0xfffffffc
lea edi, [eax + edx]
add edx, ebx
mov ebx, ecx
shr ecx, 1
and ecx, 1
mov eax, edx
mov dword [esp], edi
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
test bl, 1
je 0x440c50
mov eax, dword [esp + 0x18]
and eax, 2
movzx ecx, byte [edx + eax]
mov edx, dword [esp]
mov byte [edx + eax], cl
jmp 0x440c50
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
mov dword [eax], ebx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x60]
test eax, eax
je 0x440e5a
mov dword [esp], edx
cmp eax, dword [esp + 0x54]
mov edi, dword [esp + 0x28]
je 0x440e51
mov dword [esp + 4], ebx
push eax
call fcn.0040ca00
add esp, 4
mov dword [esp + 8], 0
jmp 0x4409e0
mov dword [esp + 4], ebx
jmp 0x4409e0
mov dword [esp], edx
mov dword [esp + 4], ebx
mov edi, dword [esp + 0x28]
jmp 0x4409e0
mov dword [esp + 8], 0xf4f50a0b
mov dword [esp + 0xc], 0
mov eax, 0x178425fe
mov ecx, 0xd0f7b501
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + eax - 0x178425f6]
mov edx, ecx
xor edx, eax
and edx, esi
xor edx, eax
add dl, 0xa
mov byte [esp + eax - 0x178425f6], dl
inc eax
dec ecx
cmp eax, 0x17842606
jne 0x440e90
mov eax, dword [0x4521f4]
test eax, eax
je 0x440f52
mov ecx, dword [esp + 8]
xor edx, edx
mov esi, dword [0x4521f8]
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x731cdbf3
je 0x440f28
inc edx
cmp eax, edx
jne 0x440ed0
jmp 0x440f52
push 0xf8eb88df
push dword [0x4521e8]
call fcn.00444bb0
add esp, 8
test eax, eax
je 0x440f5f
mov ecx, dword [edi]
test ecx, ecx
je 0x440950
mov dword [esp + 8], 0
lea edx, [esp + 8]
push edx
push ecx
call eax
test eax, eax
je 0x440f6b
cmp dword [esp + 8], 0
je 0x440f6b
mov dword [edi + 4], 3
jmp 0x440950
mov eax, dword [esi + edx*8 + 4]
cmp eax, ecx
je 0x440f52
push 0x8000
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x1c]
push ecx
push 0xffffffffffffffff
push 4
push dword [0x4521fc]
push eax
call fcn.00442500
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 0x440950
lea eax, [esp + 0x40]
push eax
call fcn.004453c0
add esp, 4
test al, al
je 0x440950
mov eax, dword [esp + 0x40]
mov ecx, 2
cmp eax, 3
je 0x440f90
mov ecx, eax
mov dword [edi + 4], ecx
jmp 0x440950