Function at 0x440530
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov ebx, dword [esp + 0x30]
mov dword [esp], 0x94959697
mov dword [esp + 4], 0
mov eax, 0x456bdfe4
mov ecx, 0xba94201c
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + eax - 0x456bdfe4]
mov edx, eax
and edx, esi
lea edi, [ecx + edx*2]
add edx, edx
not edx
add edx, eax
and edx, esi
not esi
and esi, edi
sub edx, esi
add dl, 0x8c
mov byte [esp + eax - 0x456bdfe4], dl
inc eax
dec ecx
cmp eax, 0x456bdfec
jne 0x440560
mov esi, dword [esp]
mov eax, dword [0x44ce50]
test eax, eax
je 0x4405ee
xor ecx, ecx
mov edx, dword [0x44ce54]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0x3052ea03
je 0x4405c0
inc ecx
cmp eax, ecx
jne 0x4405b0
jmp 0x4405ee
mov eax, dword [edx + ecx*8 + 4]
cmp eax, esi
je 0x4405ee
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push 0x18
push eax
push dword [0x44ce58]
call fcn.0043d4f0
add esp, 0x24
mov esi, eax
mov dword [esp], 0xb10e0f69
mov eax, 0x2d755b3d
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax - 0x2d755b3d]
xor ecx, eax
mov edx, ecx
and edx, 0xc3513cc
mov edi, ecx
and edi, 2
mov ebp, edi
xor ebp, 2
imul ebp, edx
or edx, 2
imul edx, edi
lea edi, [ecx + ecx]
and edi, 0x186a279c
sub ecx, edi
add ecx, ebp
mov ebp, 0xe34ac889
sub ebp, ecx
sub ebp, edx
add ecx, edx
add ecx, 0x1cb537f6
and ebp, 0xa7
and ecx, 0x58
sub ecx, ebp
mov byte [esp + eax - 0x2d755b3d], cl
inc eax
cmp eax, 0x2d755b41
jne 0x440600
cmp esi, dword [esp]
jne 0x44082f
push dword [esp + 0x10]
call fcn.0043afb0
add esp, 4
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 8], ecx
mov dword [esp], 0x94959697
mov dword [esp + 4], 0
mov edi, 0x456bdfe4
mov esi, 0xba94201c
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebp, byte [esp + edi - 0x456bdfe4]
mov edx, edi
and edx, ebp
lea ecx, [esi + edx*2]
add edx, edx
not edx
add edx, edi
and edx, ebp
not ebp
and ebp, ecx
sub edx, ebp
add dl, 0x8c
mov byte [esp + edi - 0x456bdfe4], dl
inc edi
dec esi
cmp edi, 0x456bdfec
jne 0x4406a0
mov esi, dword [esp]
mov edx, dword [0x44ce50]
test edx, edx
je 0x440700
xor ecx, ecx
mov edi, dword [0x44ce54]
mov ebp, dword [esp + 0xc]
nop
nop
nop
nop
nop
nop
cmp dword [edi + ecx*8], 0x3052ea03
je 0x440706
inc ecx
cmp edx, ecx
jne 0x4406f0
jmp 0x440739
mov ebp, dword [esp + 0xc]
jmp 0x440739
mov edx, dword [edi + ecx*8 + 4]
cmp edx, esi
je 0x440739
lea ecx, [esp + 0x10]
push ecx
push dword [esp + 0xc]
push ebp
push 0
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push 0x18
push edx
push dword [0x44ce58]
mov edi, eax
call fcn.0043d4f0
add esp, 0x24
mov esi, eax
mov eax, edi
mov edx, dword [esp + 0x34]
test edx, edx
je 0x440826
test esi, esi
js 0x440826
test ebx, ebx
je 0x44081f
mov ecx, dword [ebp + 0xc]
shr ecx, 1
mov edi, dword [edx]
cmp edi, ecx
jb 0x440762
mov edi, ecx
test edi, edi
je 0x440816
add eax, 0x10
mov ecx, edi
and ecx, 3
je 0x4407ae
mov dword [esp + 8], edi
xor edi, edi
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 [ebx], bp
add ebx, 2
inc edi
cmp ecx, edi
jne 0x440780
mov ecx, dword [esp + 8]
mov ebp, ecx
sub ebp, edi
mov edi, ecx
mov edx, dword [esp + 0x34]
cmp edi, 4
jae 0x4407c0
jmp 0x440816
mov ebp, edi
cmp edi, 4
jb 0x440816
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, word [eax]
xor ecx, ecx
test dx, dx
setne cl
lea edi, [eax + ecx*2]
mov word [ebx], dx
movzx eax, word [eax + ecx*2]
xor ecx, ecx
test ax, ax
setne cl
lea edx, [edi + ecx*2]
mov word [ebx + 2], ax
movzx eax, word [edi + ecx*2]
xor ecx, ecx
test ax, ax
setne cl
lea edi, [edx + ecx*2]
mov word [ebx + 4], ax
movzx ecx, word [edx + ecx*2]
xor eax, eax
test cx, cx
setne al
mov word [ebx + 6], cx
add ebx, 8
lea eax, [edi + eax*2]
add ebp, 0xfffffffc
jne 0x4407c0
mov edx, dword [esp + 0x34]
mov word [ebx], 0
mov ebp, dword [esp + 0xc]
mov eax, dword [ebp + 0xc]
shr eax, 1
mov dword [edx], eax
push ebp
call fcn.0043b070
add esp, 4
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret