Function at 0x417720
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x64
call fcn.004a01c0
mov eax, dword [0x560094]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [esp + 0x18], eax
lea ebx, [edx - 1]
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x14], esi
mov dword [esp + 8], ecx
mov dword [esp + 0x10], eax
push edi
test ecx, ecx
jne 0x417775
mov ecx, 0x547528
mov dword [esp + 0xc], ecx
test eax, eax
jne 0x41777d
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x4177a4
sub esp, 8
mov edx, 0xa2
mov ecx, 6
push 0x9f
call fcn.0040aec0
mov ecx, dword [esp + 0x18]
add esp, 0xc
or edi, 0xffffffff
jmp 0x4177a7
mov edi, dword [ecx + 8]
lea edx, [edi + edi]
mov eax, ebx
sub eax, edx
mov dword [esp + 0xc], eax
dec eax
cmp esi, eax
jle 0x4177e2
sub esp, 8
push 0x6e
mov edx, 0xa0
mov ecx, 4
call fcn.0040aec0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004a01a0
mov esp, ebp
pop ebp
ret
lea eax, [edx + 1]
cmp ebx, eax
jge 0x4177f0
sub esp, 8
push 0x78
jmp 0x4177bc
mov eax, dword [esp + 0x10]
mov edx, dword [ebp + 0x14]
push ecx
push ecx
mov ecx, dword [esp + 0x24]
lea esi, [eax + 1]
mov byte [eax], 0
add eax, edi
mov dword [esp + 0x18], eax
inc eax
push 0
push eax
mov dword [esp + 0x34], esi
call fcn.004206c0
add esp, 0x10
test eax, eax
je 0x417960
mov eax, dword [esp + 0xc]
sub eax, dword [esp + 0x18]
dec eax
push eax
mov eax, dword [esp + 0x14]
inc eax
add eax, edi
push 0
push eax
call fcn.004c1860
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [esp + 0x18]
inc eax
sub eax, ecx
sub eax, edi
push ecx
push dword [esp + 0x24]
add eax, ebx
push eax
mov byte [eax - 1], 1
call fcn.004c0d60
add esp, 0xc
mov edx, edi
mov ecx, esi
call fcn.00411370
test eax, eax
jle 0x417960
sub ebx, edi
push 0x55
mov ecx, ebx
call fcn.0040c240
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
jne 0x41788f
sub esp, 8
push 0x41
jmp 0x4177bc
push dword [esp + 0x14]
mov edx, ebx
mov ecx, eax
push edi
push esi
call fcn.00417d40
add esp, 0xc
test eax, eax
js 0x417957
test ebx, ebx
jle 0x4178d2
mov eax, dword [esp + 0x10]
mov edx, ebx
mov esi, dword [esp + 0xc]
inc eax
mov ecx, eax
sub esi, eax
lea esp, [esp]
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x4178c0
mov esi, dword [esp + 0x24]
push dword [esp + 0x14]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
inc eax
mov edx, edi
push ebx
push eax
call fcn.00417d40
add esp, 0xc
test eax, eax
js 0x417957
test edi, edi
jle 0x41790e
lea ecx, [esp + 0x28]
sub ecx, esi
lea esp, [esp]
mov al, byte [ecx + esi]
lea esi, [esi + 1]
xor byte [esi - 1], al
sub edi, 1
jne 0x417900
mov eax, dword [0x569288]
test eax, eax
je 0x417922
push 0
push dword [esp + 0x10]
call eax
add esp, 8
push dword [esp + 0xc]
call fcn.004c4deb
mov eax, dword [0x569288]
add esp, 4
test eax, eax
je 0x417940
push 1
push 0
call eax
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004a01a0
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc]
call fcn.0040c3c0
mov ecx, dword [esp + 0x6c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a01a0
mov esp, ebp
pop ebp
ret