Function at 0x440560
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x30]
mov ecx, ebx
add ecx, ebp
adc edx, 0
xor eax, eax
mov esi, 0xfffffffe
cmp esi, ecx
mov ecx, 0
sbb ecx, edx
mov esi, dword [esp + 0x2c]
jb 0x440662
mov ecx, ebx
shr ecx, 2
mov eax, ebp
mov edi, esi
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov edx, ebx
and edx, 0xfffffffc
add esi, edx
add edx, ebp
mov ecx, ebx
and ecx, 3
mov ebp, ecx
not ebp
or ebp, 1
add ebp, ecx
shr ecx, 1
mov eax, edx
mov edi, esi
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
xor eax, eax
mov dword [esp + 0xc], ebp
inc ebp
je 0x4407de
and ebx, 2
add edx, ebx
add esi, ebx
mov ebx, ebp
and ebx, 7
je 0x4405f2
xor edi, edi
movzx ecx, byte [edx + edi]
mov byte [esi + edi], cl
inc edi
cmp ebx, edi
jne 0x4405e0
add edx, edi
add esi, edi
sub ebp, edi
cmp dword [esp + 0xc], 7
jb 0x4407de
xor eax, eax
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [edx + edi]
mov byte [esi + edi], cl
movzx ecx, byte [edx + edi + 1]
mov byte [esi + edi + 1], cl
movzx ecx, byte [edx + edi + 2]
mov byte [esi + edi + 2], cl
movzx ecx, byte [edx + edi + 3]
mov byte [esi + edi + 3], cl
movzx ecx, byte [edx + edi + 4]
mov byte [esi + edi + 4], cl
movzx ecx, byte [edx + edi + 5]
mov byte [esi + edi + 5], cl
movzx ecx, byte [edx + edi + 6]
mov byte [esi + edi + 6], cl
movzx ecx, byte [edx + edi + 7]
mov byte [esi + edi + 7], cl
add edi, 8
cmp ebp, edi
jne 0x440610
jmp 0x4407de
mov dword [esp], 0x54554a4b
mov byte [esp + 4], 0
nop
nop
movzx edx, byte [esp + eax]
lea ecx, [edx + edx]
not ecx
add ecx, edx
lea edi, [eax + 0x65177c0e]
or edi, edx
not edx
and ecx, edx
mov edx, 0x9ae883f1
sub edx, eax
or edx, ecx
xor edi, edx
mov ecx, 0x68a93b8
sub ecx, edi
mov edx, ecx
and edx, 1
xor ecx, 1
lea ecx, [ecx + edx*2]
mov byte [esp + eax], cl
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
cmp eax, 5
jb 0x440670
mov eax, dword [esp]
mov ecx, dword [0x44f6fc]
test ecx, ecx
je 0x44070a
xor edx, edx
mov edi, dword [0x44f700]
nop
nop
nop
nop
cmp dword [edi + edx*8], 0x89c57e52
je 0x4406e0
inc edx
cmp ecx, edx
jne 0x4406d0
jmp 0x44070a
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, eax
je 0x44070a
lea eax, [esp + 8]
push 2
push 0
push 0
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 7
push dword [0x44f704]
push ecx
call fcn.0043f170
add esp, 0x28
test eax, eax
mov edi, dword [esp + 0x28]
js 0x4407de
push 0x732f71fd
push dword [0x457718]
call fcn.00441f60
add esp, 8
push 0
push 0
push ebx
push esi
push edi
push ebp
push dword [esp + 0x20]
call eax
mov ecx, dword [esp + 8]
mov dword [esp], 0x54554a4b
mov byte [esp + 4], 0
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [esp + edx]
lea esi, [edi + edi]
not esi
add esi, edi
lea ebx, [edx + 0x65177c0e]
or ebx, edi
not edi
and esi, edi
mov edi, 0x9ae883f1
sub edi, edx
or edi, esi
xor ebx, edi
mov esi, 0x68a93b8
sub esi, ebx
mov edi, esi
and edi, 1
xor esi, 1
lea ebx, [esi + edi*2]
mov byte [esp + edx], bl
mov esi, edx
and esi, 1
xor edx, 1
lea edx, [edx + esi*2]
cmp edx, 5
jb 0x440750
mov edx, dword [0x44f6fc]
test edx, edx
je 0x4407de
mov esi, dword [esp]
xor edi, edi
mov ebx, dword [0x44f700]
nop
nop
nop
nop
cmp dword [ebx + edi*8], 0xb62b8d10
je 0x4407c0
inc edi
cmp edx, edi
jne 0x4407b0
jmp 0x4407de
mov edx, dword [ebx + edi*8 + 4]
cmp edx, esi
je 0x4407de
push ecx
push 1
push dword [0x44f704]
push edx
mov esi, eax
call fcn.0043f170
mov eax, esi
add esp, 0x10
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret