Function at 0x417225
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
xor dword [esp + 0x14], 0x19fe
push ebx
push ebp
mov ebp, dword [esp + 0x18]
lea ecx, [eax - 0x5413]
push esi
mov esi, dword [esp + 0x24]
lea edx, [eax - 0x327]
push edi
mov edi, dword [esp + 0x18]
lea ebx, [eax - 0x626]
xor edi, 0x402c
mov dword [esp + 0x10], edx
add ebp, 0xc5d
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebp
lea eax, [edi + 0x5413]
cmp ecx, eax
je 0x4173bc
lea eax, [ebx - 0x1263]
cmp ebp, eax
jle 0x417293
mov dword [0x60d814], 0x603bf0
jmp 0x4173bc
mov eax, dword [esi + 0x11c]
sub eax, ecx
cmp ebx, eax
je 0x41737c
imul eax, edx, 0x3c1b
add eax, 0x4bb4
cmp ebx, eax
je 0x41737c
xor edx, 0x4ba0
push edx
call dword [0x418018]
mov eax, dword [esi + 0x60]
mov ecx, dword [esp + 0x10]
or eax, ecx
or eax, 0x4500
cmp ebx, eax
je 0x41737c
mov eax, dword [esi + 0xe4]
add eax, 0xffffc476
add eax, ebx
push eax
mov eax, dword [esi + 0xb0]
imul eax, ebp
push eax
mov eax, edi
xor eax, ebp
add eax, dword [esp + 0x24]
push eax
mov eax, dword [esi + 0xfc]
sub eax, ecx
push eax
call dword [0x418038]
mov ecx, dword [0x603bec]
mov eax, dword [ecx + 0xc]
or eax, dword [esp + 0x1c]
push eax
mov eax, dword [ecx + 0x38]
and eax, dword [esp + 0x28]
and eax, 0x4580
push eax
mov eax, dword [esi + 0xa0]
xor eax, edi
or eax, dword [esp + 0x2c]
push eax
mov eax, dword [esi + 0x54]
imul eax, edi
push eax
call dword [0x418034]
mov eax, dword [0x60d798]
xor edi, 0x41f3
and eax, ebx
mov dword [esi + 0xe4], eax
mov eax, dword [esi + 0x38]
imul eax, dword [esp + 0x24]
imul edi, dword [0x60d748]
sub eax, dword [0x60d744]
push edi
push eax
mov eax, ebp
xor eax, 0x4ded
imul eax, eax, 0x50ec
push eax
call dword [0x418010]
mov eax, dword [0x603bec]
mov ecx, dword [esi + 0x114]
or ecx, dword [esi + 0xe4]
cmp dword [eax + 0x6c], ecx
ja 0x4173bc
call dword [0x41802c]
mov eax, dword [0x603bec]
mov eax, dword [eax + 0xc8]
sub eax, 0x50ec
xor eax, dword [0x60d73c]
push eax
lea eax, [ebp - 0x4500]
push eax
call dword [0x418020]
xor edi, edi
mov ebp, edi
mov ecx, dword [esi + 0x3c]
mov eax, 0x1885ae
xor ecx, dword [0x60d788]
sub eax, ecx
mov ecx, dword [0x60d7d4]
add dword [0x60d7e0], eax
add ecx, 0xfff70b11
mov eax, dword [esi + 0xf4]
mov edx, dword [eax + ebp]
add ebp, 4
add dword [0x60d72c], ecx
mov eax, dword [esi + 0xa4]
xor eax, 1
add dword [esi + 0xe8], eax
mov ecx, dword [0x603bec]
mov ebx, dword [0x60d784]
imul ebx, edx
mov eax, dword [ecx + 0x10]
sub eax, dword [esi + 0x84]
add eax, 0x1f9287
add dword [ecx + 0x60], eax
mov edx, ebx
mov ecx, dword [esi + 0x7c]
mov eax, dword [esi + 0xf8]
shr edx, 0x10
mov byte [ecx + eax], dl
mov edx, ebx
inc dword [esi + 0x7c]
mov ecx, dword [0x603bec]
shr edx, 8
mov eax, dword [ecx + 0xc]
sub eax, dword [esi + 0xe8]
sub eax, 0x69e7
xor dword [ecx + 0x114], eax
mov eax, dword [esi + 0x78]
sub eax, dword [esi + 0xa4]
sub eax, 0x1f925b1f
or dword [esi + 0x68], eax
mov ecx, dword [0x603bec]
mov eax, dword [ecx + 0x44]
xor eax, dword [0x60d75c]
sub eax, 0x92511
imul eax, dword [ecx + 0xc0]
mov dword [ecx + 0xc0], eax
mov ecx, dword [esi + 0x7c]
mov eax, dword [esi + 0xf8]
mov byte [ecx + eax], dl
inc dword [esi + 0x7c]
mov eax, dword [esi + 0x60]
inc eax
imul eax, dword [0x60d72c]
mov dword [0x60d72c], eax
mov eax, dword [0x603bec]
mov ecx, dword [esi + 0xf8]
mov eax, dword [eax + 0x4c]
sub dword [esi + 0xc], eax
mov eax, dword [0x60d79c]
mov byte [eax + ecx], bl
mov ecx, dword [0x603bec]
inc dword [0x60d79c]
mov eax, dword [ecx + 0xa8]
imul eax, dword [0x60d74c]
mov dword [ecx + 0xa8], eax
cmp ebp, 0x99a0
jl 0x4173c0
mov eax, dword [0x603bec]
mov ebp, dword [esp + 0x20]
mov eax, dword [eax + 0xb0]
add eax, 0x3faecef6
mov dword [esi + 0xf4], 0x48faa8
mov dword [esi + 0x64], eax
mov eax, dword [esi + 0x60]
xor eax, 1
imul eax, dword [esi + 0x44]
mov dword [esi + 0x44], eax
mov eax, dword [0x60d814]
mov ecx, dword [0x603bec]
mov edx, dword [edi + eax]
mov eax, 0x1db086
sub eax, dword [0x60d72c]
add edi, 4
add dword [ecx + 0xb4], eax
mov ebx, dword [esi + 0x64]
mov ecx, dword [esi + 0x7c]
mov eax, dword [0x60d818]
imul ebx, edx
mov edx, ebx
shr edx, 0x10
mov byte [eax + ecx], dl
mov edx, ebx
inc dword [esi + 0x7c]
mov ecx, dword [0x60d79c]
mov eax, dword [0x60d818]
shr edx, 8
mov byte [eax + ecx], dl
inc dword [0x60d79c]
mov eax, dword [0x603bec]
mov ecx, dword [eax + 0xc8]
mov eax, dword [esi + 0xb4]
add ecx, 0xfff70b10
add eax, ecx
mov ecx, dword [esi + 0xf8]
xor dword [esi + 0x10], eax
mov eax, dword [0x60d79c]
mov byte [eax + ecx], bl
inc dword [0x60d79c]
mov eax, dword [esi + 0xe8]
sub eax, 0x1d469f
xor dword [esi + 0x2c], eax
mov eax, dword [0x603bec]
mov ecx, dword [eax + 0xb4]
mov eax, dword [0x60d72c]
sub ecx, dword [esi + 0xc]
add eax, 0x14bb97
add eax, ecx
mov dword [0x60d72c], eax
mov eax, dword [0x60d7e0]
add eax, 0xffffffb7
xor dword [esi + 0xc], eax
cmp edi, 0x82c0
jl 0x41750c
mov eax, dword [esi + 4]
cmp eax, dword [esi + 0x114]
ja 0x417606
mov ecx, dword [0x603bec]
mov eax, dword [esi + 0xc8]
xor eax, dword [0x60d7a4]
add dword [ecx + 0xd8], eax
jmp 0x417618
mov eax, dword [0x603bec]
mov eax, dword [eax + 0x68]
add eax, 0xe1633
mov dword [0x60d784], eax
pop edi
pop esi
lea eax, [ebp - 0xf85]
pop ebp
pop ebx
pop ecx
ret