Function at 0x440080
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x20
cmp dword [ecx + 8], 0
je 0x4400f6
mov edx, dword [ecx]
test edx, edx
je 0x4400f6
mov edi, dword [ebp + 0x10]
mov dword [esp + 4], 0x4c4d4a4b
mov word [esp + 8], 0
xor eax, eax
nop
nop
nop
nop
mov ebx, eax
add bl, 0x72
xor bl, byte [esp + eax + 4]
add bl, 0xc6
mov byte [esp + eax + 4], bl
inc eax
cmp eax, 6
jne 0x4400b0
mov eax, dword [esp + 4]
mov ebx, dword [0x452df4]
test ebx, ebx
je 0x440187
xor edi, edi
mov esi, dword [0x452df8]
cmp dword [esi + edi*8], 0xdef797a3
je 0x440163
inc edi
cmp ebx, edi
jne 0x4400e0
mov edi, dword [ebp + 0x10]
jmp 0x440187
mov dword [esp + 4], 0x31feffe4
mov dword [esp + 8], 0
xor edx, edx
xor ecx, ecx
nop
nop
nop
nop
nop
nop
movzx ebx, byte [esp + ecx + 4]
mov dword [esp + 0xc], ebx
mov edi, edx
and edi, 0xa
mov esi, ecx
xor esi, 0x522adbd5
add esi, edi
and ebx, esi
mov edi, ebx
and edi, 0xfffffffd
mov eax, ebx
and eax, 2
or ebx, 2
imul ebx, eax
xor eax, 2
imul eax, edi
add ebx, eax
not ebx
add ebx, esi
add bl, byte [esp + 0xc]
add bl, 0xd8
mov byte [esp + ecx + 4], bl
inc ecx
add edx, 2
cmp ecx, 8
jne 0x440110
mov eax, dword [esp + 4]
jmp 0x4402db
mov esi, dword [esi + edi*8 + 4]
cmp esi, eax
mov edi, dword [ebp + 0x10]
je 0x440187
push dword [ebp + 8]
push edx
push 2
push dword [0x452dfc]
push esi
mov esi, ecx
call fcn.00442cc0
mov ecx, esi
add esp, 0x14
mov esi, dword [ebp + 0xc]
cmp esi, 1
mov edx, edi
sbb edx, 0
jl 0x440245
cmp eax, 0xc000010a
jne 0x440245
mov edx, 0xffffd8f0
mov eax, esi
mul edx
sub edx, esi
imul esi, edi, 0xffffd8f0
add esi, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
mov edx, dword [ecx]
mov dword [esp + 4], 0x4c4d4a4b
mov word [esp + 8], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ebx, eax
add bl, 0x72
xor bl, byte [esp + eax + 4]
add bl, 0xc6
mov byte [esp + eax + 4], bl
inc eax
cmp eax, 6
jne 0x4401e0
mov eax, dword [esp + 4]
mov esi, dword [0x452df4]
test esi, esi
je 0x440245
xor edi, edi
mov ebx, dword [0x452df8]
nop
nop
nop
nop
cmp dword [ebx + edi*8], 0x53f09cfa
je 0x440220
inc edi
cmp esi, edi
jne 0x440210
jmp 0x440245
mov esi, dword [ebx + edi*8 + 4]
cmp esi, eax
je 0x440245
lea eax, [esp + 0x10]
push eax
push 0
push edx
push 3
push dword [0x452dfc]
push esi
mov esi, ecx
call fcn.00442cc0
mov ecx, esi
add esp, 0x18
test eax, eax
js 0x4402db
mov edx, dword [ecx]
test edx, edx
je 0x4402db
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0x4c4d4a4b
mov word [esp + 8], 0
xor ebx, ebx
nop
nop
nop
nop
mov edx, ebx
add dl, 0x72
xor dl, byte [esp + ebx + 4]
add dl, 0xc6
mov byte [esp + ebx + 4], dl
inc ebx
cmp ebx, 6
jne 0x440270
mov esi, dword [0x452df4]
test esi, esi
je 0x4402d5
mov edx, dword [esp + 4]
xor ebx, ebx
mov edi, dword [0x452df8]
nop
nop
nop
nop
cmp dword [edi + ebx*8], 0x7e776f1
je 0x4402b0
inc ebx
cmp esi, ebx
jne 0x4402a0
jmp 0x4402d5
mov esi, dword [edi + ebx*8 + 4]
cmp esi, edx
je 0x4402d5
push dword [esp + 0xc]
push 1
push dword [0x452dfc]
push esi
mov esi, ecx
mov edi, eax
call fcn.00442cc0
mov eax, edi
mov ecx, esi
add esp, 0x10
mov dword [ecx], 0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc