Function at 0x440860
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov edi, dword [esp + 0x34]
mov dword [esp + 4], 0x6c6d6e6f
mov byte [esp + 8], 0
mov eax, 0x58ffcc68
nop
nop
nop
movzx ecx, byte [esp + eax - 0x58ffcc64]
xor ecx, eax
lea edx, [ecx + 0x430101f7]
mov esi, edx
and esi, 1
and ecx, 1
and edx, 0xfe
or edx, ecx
lea ecx, [edx + esi*2]
mov byte [esp + eax - 0x58ffcc64], cl
inc eax
cmp eax, 0x58ffcc6d
jne 0x440880
mov eax, dword [esp + 4]
mov esi, dword [0x44c008]
test esi, esi
je 0x44090c
xor ecx, ecx
mov edx, dword [0x44c00c]
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0x4f699cd4
je 0x4408e0
inc ecx
cmp esi, ecx
jne 0x4408d0
jmp 0x44090c
mov edx, dword [edx + ecx*8 + 4]
cmp edx, eax
je 0x44090c
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 1
push dword [esp + 0x40]
push dword [esp + 0x40]
push 0x18
push edx
push dword [0x44c010]
call fcn.0043d3e0
add esp, 0x24
cmp eax, 0xc0000023
jne 0x440b5e
push dword [esp + 0x10]
call fcn.0043a9d0
add esp, 4
mov dword [esp], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 4], 0x6c6d6e6f
mov byte [esp + 8], 0
mov edx, 0x58ffcc68
nop
nop
nop
nop
movzx esi, byte [esp + edx - 0x58ffcc64]
xor esi, edx
lea ebx, [esi + 0x430101f7]
mov ebp, ebx
and ebp, 1
and esi, 1
and ebx, 0xfe
or ebx, esi
lea ebx, [ebx + ebp*2]
mov byte [esp + edx - 0x58ffcc64], bl
inc edx
cmp edx, 0x58ffcc6d
jne 0x440940
mov ebp, dword [esp + 4]
mov edx, dword [0x44c008]
test edx, edx
je 0x4409b3
mov dword [esp + 0xc], ecx
mov ecx, ebp
xor esi, esi
mov ebp, dword [0x44c00c]
mov ebx, dword [esp + 0x44]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebp + esi*8], 0x4f699cd4
je 0x4409b9
inc esi
cmp edx, esi
jne 0x4409a0
mov ebp, ecx
jmp 0x4409f1
mov ebx, dword [esp + 0x44]
jmp 0x4409f1
mov edx, dword [ebp + esi*8 + 4]
mov ebp, ecx
cmp edx, ecx
je 0x4409f1
lea esi, [esp + 0x10]
push esi
push dword [esp + 0x10]
push dword [esp + 8]
push 1
push dword [esp + 0x40]
push dword [esp + 0x40]
push 0x18
push edx
push dword [0x44c010]
mov esi, eax
call fcn.0043d3e0
add esp, 0x24
mov ebp, eax
mov eax, esi
mov dword [esp + 0xc], ebp
test ebp, ebp
mov ebp, dword [esp + 0x40]
mov esi, dword [esp]
js 0x440b51
mov edx, dword [esp + 0x38]
test edx, edx
je 0x440ae9
test edi, edi
je 0x440ae2
mov ecx, dword [esi + 0x10]
shr ecx, 1
mov ebx, dword [edx]
cmp ebx, ecx
jb 0x440a25
mov ebx, ecx
test ebx, ebx
je 0x440a6e
add eax, 0x14
mov ecx, ebx
and ecx, 3
je 0x440a74
mov dword [esp + 0x14], ebx
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
movzx ebp, word [eax]
xor edx, edx
test bp, bp
setne dl
lea eax, [eax + edx*2]
mov word [edi], bp
add edi, 2
inc esi
cmp ecx, esi
jne 0x440a40
mov ebx, dword [esp + 0x14]
mov ecx, ebx
sub ecx, esi
mov ebp, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
mov esi, dword [esp]
jmp 0x440a76
mov ebx, dword [esp + 0x44]
jmp 0x440add
mov ecx, ebx
cmp ebx, 4
mov ebx, dword [esp + 0x44]
jb 0x440add
nop
movzx edx, word [eax]
xor ebx, ebx
test dx, dx
setne bl
lea esi, [eax + ebx*2]
mov word [edi], dx
movzx eax, word [eax + ebx*2]
xor edx, edx
test ax, ax
setne dl
lea ebx, [esi + edx*2]
mov word [edi + 2], ax
movzx eax, word [esi + edx*2]
xor edx, edx
test ax, ax
setne dl
lea esi, [ebx + edx*2]
mov word [edi + 4], ax
movzx edx, word [ebx + edx*2]
xor eax, eax
test dx, dx
setne al
mov word [edi + 6], dx
add edi, 8
lea eax, [esi + eax*2]
add ecx, 0xfffffffc
jne 0x440a80
mov ebx, dword [esp + 0x44]
mov edx, dword [esp + 0x38]
mov esi, dword [esp]
mov word [edi], 0
mov eax, dword [esi + 0x10]
shr eax, 1
mov dword [edx], eax
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x440af6
mov eax, dword [esi + 4]
mov dword [ecx], eax
test ebx, ebx
je 0x440b51
test ebp, ebp
je 0x440b4c
mov eax, dword [ebx]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jb 0x440b09
mov eax, ecx
mov ecx, dword [esp]
mov esi, dword [ecx + 8]
add esi, dword [esp]
mov ecx, eax
shr ecx, 2
mov edx, eax
and edx, 0xfffffffc
mov edi, ebp
add ebp, edx
add edx, esi
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
mov ecx, eax
shr ecx, 1
and ecx, 1
mov esi, edx
mov edi, ebp
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov esi, dword [esp]
test al, 1
je 0x440b4c
and eax, 2
movzx ecx, byte [edx + eax]
mov byte [ebp + eax], cl
mov eax, dword [esi + 0xc]
mov dword [ebx], eax
push esi
call fcn.0043aa40
add esp, 4
mov eax, dword [esp + 0xc]
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret