Function at 0x441580
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [esp + 0x3c]
xor ecx, ecx
test eax, eax
je 0x4415b3
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + ecx], 0
lea ecx, [ecx + 2]
jne 0x4415a0
add ecx, 0xfffffffe
and ecx, 0xfffe
mov word [esp + 0x14], cx
mov edx, eax
test eax, eax
je 0x4415c3
add ecx, 2
mov edx, ecx
mov word [esp + 0x16], dx
mov dword [esp + 0x18], eax
mov dword [esp], 0x5c5d5e5f
mov word [esp + 4], 0
mov byte [esp + 6], 0
mov eax, 0x58fa0f70
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax - 0x58fa0f70]
xor ecx, eax
mov edx, ecx
not edx
and edx, 0x31
and ecx, 0xce
sub ecx, edx
inc cl
mov byte [esp + eax - 0x58fa0f70], cl
inc eax
cmp eax, 0x58fa0f77
jne 0x4415f0
mov ebp, dword [esp]
mov eax, dword [0x44d05c]
test eax, eax
je 0x44166f
xor ecx, ecx
mov edx, dword [0x44d060]
nop
nop
cmp dword [edx + ecx*8], 0x877f203a
je 0x441640
inc ecx
cmp eax, ecx
jne 0x441630
jmp 0x44166f
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebp
je 0x44166f
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push 0
push 0
push 2
push edx
push dword [esp + 0x4c]
push 0x18
push eax
push dword [0x44d064]
call fcn.0043df70
add esp, 0x24
mov ebp, eax
mov dword [esp], 0x114e4f69
mov eax, 0xd
mov ecx, 0xf2
movzx esi, byte [esp + eax - 0xd]
mov edx, eax
xor edx, ecx
and edx, esi
xor edx, ecx
mov bl, 0xbe
sub bl, dl
mov byte [esp + eax - 0xd], bl
inc eax
dec ecx
cmp eax, 0x11
jne 0x441680
cmp ebp, dword [esp]
jne 0x44189f
push dword [esp + 0x10]
call fcn.0043b7e0
add esp, 4
mov dword [esp + 8], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], 0xb7b68986
mov edx, 0xdf
mov edi, 0xfbba621
nop
movzx ecx, byte [esp + edx - 0xd3]
lea eax, [edx - 0x6fbba701]
mov ebx, ecx
not ebx
lea esi, [edi - 0xfbba600]
or esi, ebx
mov dword [esp + 0x20], esi
mov ebx, edi
and ebx, 0xf838615
mov ebp, eax
mov esi, eax
and ebp, 0x9004096a
or ebp, ebx
and eax, 0x80441933
mov ebx, edi
and ebx, 0x783000c
or ebx, eax
xor ebx, ebp
xor ebp, 0xf838615
or ebp, esi
xor ebx, 0x18409659
not ebp
or ebp, ebx
lea eax, [ebp*2]
not eax
add eax, ebp
mov ebx, eax
and ebx, ecx
xor ecx, eax
sub ecx, eax
add ecx, ebx
mov eax, dword [esp + 0x20]
add eax, edx
or ecx, eax
add cl, 0xaa
mov byte [esp + edx - 0xd3], cl
inc edx
dec edi
cmp edx, 0xe3
jne 0x4416d0
mov edx, dword [esp + 0xc]
mov dword [esp], 0x5c5d5e5f
mov word [esp + 4], 0
mov byte [esp + 6], 0
mov ecx, 0x58fa0f70
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, byte [esp + ecx - 0x58fa0f70]
xor eax, ecx
mov esi, eax
not esi
and esi, 0x31
and eax, 0xce
sub eax, esi
inc al
mov byte [esp + ecx - 0x58fa0f70], al
inc ecx
cmp ecx, 0x58fa0f77
jne 0x441780
mov ebp, dword [esp]
mov ecx, dword [0x44d05c]
test ecx, ecx
mov edi, dword [esp + 0x48]
je 0x441813
xor eax, eax
mov esi, dword [0x44d060]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + eax*8], 0x877f203a
je 0x4417e0
inc eax
cmp ecx, eax
jne 0x4417d0
jmp 0x441813
mov ecx, dword [esi + eax*8 + 4]
cmp ecx, ebp
je 0x441813
lea eax, [esp + 0x10]
lea esi, [esp + 0x14]
push eax
push dword [esp + 0x20]
mov eax, dword [esp + 0x10]
push eax
push edx
push esi
push dword [esp + 0x4c]
push 0x18
push ecx
push dword [0x44d064]
call fcn.0043df70
add esp, 0x24
mov ebp, eax
test ebp, ebp
js 0x441893
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x441828
mov eax, dword [esp + 8]
mov eax, dword [eax + 4]
mov dword [ecx], eax
test edi, edi
je 0x441893
cmp dword [esp + 0x44], 0
je 0x44188a
mov edx, dword [edi]
mov eax, dword [esp + 8]
mov eax, dword [eax + 8]
cmp edx, eax
jb 0x441842
mov edx, eax
mov eax, dword [esp + 8]
lea esi, [eax + 0xc]
mov ecx, edx
shr ecx, 2
mov ebx, dword [esp + 0x44]
mov edi, ebx
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
mov ecx, edx
and ecx, 0xfffffffc
add ebx, ecx
lea esi, [eax + ecx]
add esi, 0xc
mov ecx, edx
shr ecx, 1
and ecx, 1
mov eax, esi
mov edi, ebx
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
test dl, 1
mov edi, dword [esp + 0x48]
je 0x44188a
and edx, 2
movzx eax, byte [esi + edx]
mov byte [ebx + edx], al
mov eax, dword [esp + 8]
mov eax, dword [eax + 8]
mov dword [edi], eax
push dword [esp + 8]
call fcn.0043b860
add esp, 4
mov eax, ebp
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret