Function at 0x441510
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 0x44155a
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 0x441530
sar ecx, 1
mov edx, ecx
and edx, 2
mov esi, ecx
or ecx, 2
imul ecx, edx
xor edx, 2
and esi, 0xfffd
imul esi, edx
add ecx, esi
jmp 0x44155c
xor ecx, ecx
mov word [esp + 0x10], cx
mov edx, eax
test eax, eax
je 0x44156c
add ecx, 2
mov edx, ecx
mov edi, dword [esp + 0x44]
mov word [esp + 0x12], dx
mov dword [esp + 0x14], eax
mov dword [esp], 0x303f3e3d
mov word [esp + 4], 0
mov byte [esp + 6], 0
xor eax, eax
nop
nop
mov ecx, eax
add cl, 0x75
xor cl, byte [esp + eax]
add cl, 0xb7
mov byte [esp + eax], cl
inc eax
cmp eax, 7
jne 0x441590
mov ebx, dword [esp]
mov eax, dword [0x44d268]
test eax, eax
je 0x4415ff
xor ecx, ecx
mov edx, dword [0x44d26c]
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0x877f203a
je 0x4415d0
inc ecx
cmp eax, ecx
jne 0x4415c0
jmp 0x4415ff
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x4415ff
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push 0
push 0
push 2
push edx
push dword [esp + 0x48]
push 0x18
push eax
push dword [0x44d270]
call fcn.0043de40
add esp, 0x24
mov ebx, eax
mov dword [esp], 0x1464769
mov word [esp + 4], 0
xor eax, eax
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov esi, eax
and esi, 2
mov edx, ecx
xor edx, 0x11
add edx, esi
xor dl, byte [esp + ecx]
add dl, 0xab
mov byte [esp + ecx], dl
inc ecx
add eax, 2
cmp ecx, 6
jne 0x441620
cmp ebx, dword [esp]
jne 0x44179a
push dword [esp + 0xc]
call fcn.0043b700
add esp, 4
mov ecx, dword [esp + 0xc]
mov dword [esp + 8], ecx
mov dword [esp + 0x18], 0x3020102
mov dword [esp + 0x1c], 0
xor edx, edx
nop
nop
nop
xor byte [esp + edx + 0x18], dl
mov esi, edx
and esi, 1
xor edx, 1
lea edx, [edx + esi*2]
cmp edx, 8
jb 0x441670
mov edx, dword [esp + 0x18]
mov dword [esp], 0x303f3e3d
mov word [esp + 4], 0
mov byte [esp + 6], 0
xor ebx, ebx
nop
nop
nop
mov ecx, ebx
add cl, 0x75
xor cl, byte [esp + ebx]
add cl, 0xb7
mov byte [esp + ebx], cl
inc ebx
cmp ebx, 7
jne 0x4416a0
mov ebx, dword [esp]
mov ebp, dword [0x44d268]
test ebp, ebp
je 0x441717
mov ecx, edi
xor edi, edi
mov esi, dword [0x44d26c]
nop
nop
nop
nop
nop
cmp dword [esi + edi*8], 0x877f203a
je 0x4416e2
inc edi
cmp ebp, edi
jne 0x4416d0
mov edi, ecx
jmp 0x441717
mov ebp, dword [esi + edi*8 + 4]
cmp ebp, ebx
mov edi, ecx
je 0x441717
lea ecx, [esp + 0xc]
lea esi, [esp + 0x10]
push ecx
push dword [esp + 0xc]
push eax
push edx
push esi
push dword [esp + 0x48]
push 0x18
push ebp
push dword [0x44d270]
mov esi, eax
call fcn.0043de40
add esp, 0x24
mov ebx, eax
mov eax, esi
test ebx, ebx
mov edx, dword [esp + 0x40]
js 0x441791
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x44172c
mov ecx, dword [eax + 4]
mov dword [esi], ecx
test edi, edi
je 0x441791
test edx, edx
je 0x44178c
mov edx, dword [edi]
mov ecx, dword [eax + 8]
cmp edx, ecx
jb 0x44173f
mov edx, ecx
lea esi, [eax + 0xc]
mov ecx, edx
shr ecx, 2
mov ebp, dword [esp + 0x40]
mov edi, ebp
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
mov ecx, edx
and ecx, 0xfffffffc
add ebp, ecx
lea esi, [eax + ecx]
add esi, 0xc
mov ecx, edx
shr ecx, 1
and ecx, 1
mov dword [esp + 8], esi
mov edi, ebp
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
test dl, 1
mov edi, dword [esp + 0x44]
je 0x44178c
and edx, 2
mov ecx, dword [esp + 8]
movzx ecx, byte [ecx + edx]
mov byte [ebp + edx], cl
mov ecx, dword [eax + 8]
mov dword [edi], ecx
push eax
call fcn.0043b790
add esp, 4
mov eax, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret