Function at 0x441470
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4414ba
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 0x441490
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 0x4414bc
xor ecx, ecx
mov word [esp + 0x18], cx
mov edx, eax
test eax, eax
je 0x4414cc
add ecx, 2
mov edx, ecx
mov ebp, dword [esp + 0x40]
mov word [esp + 0x1a], dx
mov dword [esp + 0x1c], eax
mov dword [esp + 4], 0xf0fffefd
mov eax, 0xd5
mov ecx, 0xe91a542a
nop
nop
nop
nop
nop
movzx esi, byte [esp + eax - 0xd1]
mov edx, eax
and edx, esi
not esi
and esi, ecx
lea edi, [esi + esi]
not edi
add edi, esi
not edx
and edx, edi
add dl, 0xd7
mov byte [esp + eax - 0xd1], dl
inc eax
dec ecx
cmp eax, 0xd9
jne 0x4414f0
mov ebx, dword [esp + 4]
mov eax, dword [0x44cf3c]
test eax, eax
je 0x44157f
xor ecx, ecx
mov edx, dword [0x44cf40]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0x877f203a
je 0x441550
inc ecx
cmp eax, ecx
jne 0x441540
jmp 0x44157f
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x44157f
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 0
push 0
push 2
push edx
push dword [esp + 0x48]
push 0x18
push eax
push dword [0x44cf44]
call fcn.0043df80
add esp, 0x24
mov ebx, eax
mov dword [esp + 4], 0x23e2e183
mov byte [esp + 8], 0
xor eax, eax
nop
nop
mov ecx, eax
add cl, 0x58
xor cl, byte [esp + eax + 4]
add cl, 0x48
mov byte [esp + eax + 4], cl
inc eax
cmp eax, 5
jne 0x441590
cmp ebx, dword [esp + 4]
jne 0x441780
mov esi, ebp
push dword [esp + 0x14]
call fcn.0043b300
add esp, 4
mov dword [esp], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0x4f4e494e
xor ebx, ebx
mov edx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebp, byte [esp + ebx + 0x10]
mov eax, ebp
not eax
lea ecx, [ebp*2]
not ecx
add ecx, ebp
and ecx, eax
and ebp, 0xfffffff9
mov eax, 5
sub eax, ebx
mov edi, eax
and edi, 6
or eax, 0xf9
add eax, ebx
add eax, 0xf3
or eax, edi
and ecx, 6
or ecx, ebp
xor ecx, eax
add cl, 0x46
mov byte [esp + ebx + 0x10], cl
and edx, 1
not ebx
or ebx, 1
sub edx, ebx
mov ebx, edx
cmp edx, 4
jb 0x4415e0
mov edx, dword [esp + 0x10]
mov dword [esp + 4], 0xf0fffefd
mov ebx, 0xd5
mov ebp, 0xe91a542a
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, byte [esp + ebx - 0xd1]
mov ecx, ebx
and ecx, eax
not eax
and eax, ebp
lea edi, [eax + eax]
not edi
add edi, eax
not ecx
and ecx, edi
add cl, 0xd7
mov byte [esp + ebx - 0xd1], cl
inc ebx
dec ebp
cmp ebx, 0xd9
jne 0x441650
mov ebx, dword [esp + 4]
mov ecx, dword [0x44cf3c]
test ecx, ecx
je 0x4416ee
xor ebp, ebp
mov edi, dword [0x44cf40]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + ebp*8], 0x877f203a
je 0x4416bb
mov eax, ebp
and eax, 1
xor ebp, 1
lea ebp, [ebp + eax*2]
cmp ebp, ecx
jb 0x4416a0
jmp 0x4416ee
mov ecx, dword [edi + ebp*8 + 4]
cmp ecx, ebx
je 0x4416ee
lea eax, [esp + 0x14]
lea edi, [esp + 0x18]
push eax
push dword [esp + 0x10]
mov eax, dword [esp + 8]
push eax
push edx
push edi
push dword [esp + 0x48]
push 0x18
push ecx
push dword [0x44cf44]
call fcn.0043df80
add esp, 0x24
mov ebx, eax
test ebx, ebx
mov ecx, dword [esp + 0x44]
js 0x441775
mov ebp, esi
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x441708
mov eax, dword [esp]
mov eax, dword [eax + 4]
mov dword [edx], eax
test ecx, ecx
je 0x441775
test ebp, ebp
je 0x44176d
mov eax, dword [ecx]
mov ecx, dword [esp]
mov ecx, dword [ecx + 8]
cmp eax, ecx
jb 0x44171e
mov eax, ecx
mov esi, dword [esp]
lea edx, [esi + 0xc]
mov ecx, eax
shr ecx, 2
mov edi, ebp
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov ecx, eax
and ecx, 0xfffffffc
add ebp, ecx
lea edi, [esi + ecx]
add edi, 0xc
mov edx, eax
and edx, 3
mov ecx, edx
shr ecx, 1
mov esi, ebp
mov dword [esp + 0xc], edi
mov ebp, edi
mov edi, esi
xchg esi, ebp
rep movsw word es:[edi], word [esi]
xchg esi, ebp
test al, 1
mov ecx, dword [esp + 0x44]
je 0x44176d
mov eax, dword [esp + 0xc]
movzx eax, byte [eax + edx - 1]
mov byte [esi + edx - 1], al
mov eax, dword [esp]
mov eax, dword [eax + 8]
mov dword [ecx], eax
push dword [esp]
call fcn.0043b400
add esp, 4
mov eax, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret