Function at 0x440fa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [esp + 0x40]
test eax, eax
je 0x440fea
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x440fc0
sar ecx, 1
mov edx, ecx
and edx, 0xfffd
mov esi, ecx
and esi, 2
or ecx, 2
imul ecx, esi
xor esi, 2
imul esi, edx
add ecx, esi
jmp 0x440fec
xor ecx, ecx
mov word [esp + 0x18], cx
mov edx, eax
test eax, eax
je 0x440ffc
add ecx, 2
mov edx, ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 8], ecx
mov word [esp + 0x1a], dx
mov dword [esp + 0x1c], eax
mov dword [esp], 0xf8fbfa05
mov word [esp + 4], 0
mov byte [esp + 6], 0
mov eax, 0x5492bfff
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax - 0x5492bfff]
mov esi, eax
or esi, edx
not edx
or edx, ecx
and edx, esi
mov esi, 1
sub esi, edx
mov edi, esi
not edi
and edi, 1
mov ebx, 0xfb
sub ebx, edx
and ebx, 0xfe
or esi, 0xfe
xor esi, ebx
lea edx, [esi + edi*2]
mov byte [esp + eax - 0x5492bfff], dl
inc eax
dec ecx
cmp eax, 0x5492c006
jne 0x441030
mov ebx, dword [esp]
mov eax, dword [0x44ce64]
test eax, eax
je 0x4410cf
xor ecx, ecx
mov edx, dword [0x44ce68]
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0x877f203a
je 0x4410a0
inc ecx
cmp eax, ecx
jne 0x441090
jmp 0x4410cf
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x4410cf
lea ecx, [esp + 0xc]
lea edx, [esp + 0x18]
push ecx
push 0
push 0
push 2
push edx
push dword [esp + 0x50]
push 0x18
push eax
push dword [0x44ce6c]
call fcn.0043d480
add esp, 0x24
mov ebx, eax
mov dword [esp], 0xf93a3b51
mov word [esp + 4], 0
mov eax, esp
mov ecx, 0xf4
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [eax]
lea esi, [ecx - 0x1340d400]
or esi, edx
not esi
and edx, ecx
or edx, esi
lea edi, [edx + edx]
mov esi, edi
and esi, 0x3f77c190
xor edx, 0x9fbbe0c8
lea ebp, [esi + edx]
add edx, esi
inc edx
mov esi, ebp
not esi
or esi, 1
add esi, ebp
inc esi
and edi, 2
sub edx, edi
lea edx, [edx + esi*2]
mov byte [eax], dl
inc eax
dec ecx
cmp ecx, 0xee
jne 0x4410f0
cmp ebx, dword [esp]
jne 0x4412eb
push dword [esp + 0xc]
call fcn.0043a6f0
add esp, 4
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], 0xfffef9fe
mov byte [esp + 0x14], 0
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ebx, edx
add bl, 0xaa
xor bl, byte [esp + edx + 0x10]
add bl, 0xae
mov byte [esp + edx + 0x10], bl
inc edx
cmp edx, 5
jne 0x441170
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
mov dword [esp], 0xf8fbfa05
mov word [esp + 4], 0
mov byte [esp + 6], 0
mov ebx, 0x5492bfff
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [esp + ebx - 0x5492bfff]
mov esi, ebx
or esi, edi
not edi
or edi, ebp
and edi, esi
mov esi, 1
sub esi, edi
mov ecx, esi
not ecx
and ecx, 1
mov edx, 0xfb
sub edx, edi
and edx, 0xfe
or esi, 0xfe
xor esi, edx
lea ecx, [esi + ecx*2]
mov byte [esp + ebx - 0x5492bfff], cl
inc ebx
dec ebp
cmp ebx, 0x5492c006
jne 0x4411b0
mov ebx, dword [esp]
mov ebp, dword [0x44ce64]
test ebp, ebp
je 0x441256
xor edi, edi
mov esi, dword [0x44ce68]
nop
nop
cmp dword [esi + edi*8], 0x877f203a
je 0x441220
inc edi
cmp ebp, edi
jne 0x441210
jmp 0x441256
mov ebp, dword [esi + edi*8 + 4]
cmp ebp, ebx
je 0x441256
lea ecx, [esp + 0xc]
lea edx, [esp + 0x18]
push ecx
push dword [esp + 0x28]
push eax
push dword [esp + 0x2c]
push edx
push dword [esp + 0x50]
push 0x18
push ebp
push dword [0x44ce6c]
mov esi, eax
call fcn.0043d480
add esp, 0x24
mov ebx, eax
mov eax, esi
test ebx, ebx
mov edx, dword [esp + 0x48]
js 0x4412e2
mov esi, dword [esp + 0x44]
test esi, esi
je 0x44126f
mov ecx, dword [eax + 4]
mov dword [esi], ecx
cmp dword [esp + 0x4c], 0
je 0x4412e2
test edx, edx
je 0x4412d9
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx]
mov ecx, dword [eax + 8]
cmp edx, ecx
jb 0x441289
mov edx, ecx
lea esi, [eax + 0xc]
mov ecx, edx
shr ecx, 2
mov edi, dword [esp + 0x48]
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
mov ecx, edx
xor ecx, 3
mov esi, edx
or esi, 0xfffffffc
and esi, ecx
add dword [esp + 8], esi
lea ebp, [eax + esi]
add ebp, 0xc
mov ecx, edx
shr ecx, 1
and ecx, 1
mov esi, ebp
mov edi, dword [esp + 8]
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov esi, dword [esp + 8]
test dl, 1
je 0x4412d9
and edx, 2
movzx ecx, byte [ebp + edx]
mov byte [esi + edx], cl
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x4c]
mov dword [edx], ecx
push eax
call fcn.0043a760
add esp, 4
mov eax, ebx
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret