Function at 0x416e51
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov edx, eax
push ebx
push ebp
push esi
xor edx, 0x4bb4
lea ebx, [eax - 0x102a]
push edi
mov edi, dword [esp + 0x28]
mov esi, ecx
mov ebp, ecx
mov dword [esp + 0x14], edx
sub edi, 0xffffff80
mov dword [esp + 0x2c], ebx
xor esi, 0x5ac
mov dword [esp + 0x28], edi
xor ebp, 0x4580
lea edx, [ecx - 0x4580]
mov dword [esp + 0x10], edx
cmp esi, ecx
je 0x417217
lea eax, [edx + 0x56ec]
cmp dword [esp + 0x14], eax
jg 0x417217
lea eax, [edx + 0x4ded]
cmp esi, eax
je 0x4170c4
mov esi, dword [esp + 0x24]
mov eax, edx
xor eax, 0x4ba0
push eax
lea eax, [ebx + 0x1263]
push eax
lea eax, [edi + 0x86d]
push eax
lea eax, [edx + 0x49f5]
push eax
push esi
call fcn.00413ca7
add esp, 0x14
xor edi, edi
mov eax, dword [esi + 0x60]
xor eax, dword [esi + 0xb0]
xor eax, dword [esi + 0x4c]
mov dword [esi + 0xb0], eax
mov eax, dword [0x603bec]
push 0x24
mov eax, dword [eax + 0x78]
xor eax, dword [esi + 0xd8]
xor eax, 0x1f925b20
mov dword [esi + 0xd8], eax
mov eax, dword [0x603bec]
mov ecx, dword [eax + 0xfc]
add ecx, dword [eax + 0x44]
mov eax, dword [0x60d764]
add eax, 0xffee5f44
add eax, ecx
mov dword [0x60d764], eax
mov eax, dword [esi + 0xf4]
mov edx, dword [edi + eax]
add edi, 4
pop eax
sub eax, dword [esi + 0x10]
add dword [esi + 0x3c], eax
mov ecx, dword [0x603bec]
mov eax, dword [esi + 0xc]
sub eax, 0x1db086
or dword [ecx + 0x44], eax
mov eax, dword [esi + 4]
sub eax, 0x123850
xor dword [0x60d75c], eax
mov eax, dword [0x603bec]
mov ebx, dword [esi + 0x64]
mov ecx, dword [esi + 0x7c]
imul ebx, edx
mov eax, dword [eax + 0x68]
xor eax, 1
imul eax, dword [esi + 0xa4]
mov edx, ebx
shr edx, 0x10
mov dword [esi + 0xa4], eax
mov eax, dword [esi + 0xa8]
xor eax, 1
sub dword [esi + 0xc], eax
mov eax, dword [esi + 0xf8]
mov byte [ecx + eax], dl
mov edx, ebx
inc dword [esi + 0x7c]
mov ecx, dword [0x603bec]
mov eax, dword [esi + 0x114]
shr edx, 8
sub dword [ecx + 0x24], eax
mov ecx, dword [esi + 0x7c]
mov eax, dword [esi + 0xf8]
mov byte [ecx + eax], dl
inc dword [esi + 0x7c]
mov eax, dword [0x603bec]
mov ecx, dword [eax + 0xf8]
mov eax, dword [0x60d79c]
mov byte [eax + ecx], bl
inc dword [0x60d79c]
mov eax, dword [esi + 0xc8]
xor eax, 1
or dword [esi + 0x4c], eax
mov ecx, dword [0x603bec]
mov eax, dword [0x60d7a4]
add eax, 0xffe06d56
imul eax, dword [ecx + 0x88]
mov dword [ecx + 0x88], eax
cmp edi, 0x76680
jl 0x416eed
cmp dword [esi + 0xe8], 0x558c
jb 0x417039
mov eax, dword [esi + 0x4c]
add eax, 0xa9c
add eax, dword [esi + 0xc8]
mov dword [esi + 0x64], eax
jmp 0x417048
mov eax, dword [0x603bec]
add dword [eax + 0xc8], 0xfffdf39a
mov edi, dword [esp + 0x28]
mov eax, 0xec477523
sub eax, dword [esi + 0xb0]
xor edi, 0x7e0a
add dword [esi + 0x64], eax
lea eax, [ebp + 0x4500]
push eax
mov eax, dword [esp + 0x30]
xor ebp, 0x5413
push edi
push ebp
add eax, 0xe6b
push esi
push eax
call fcn.00416b20
mov eax, dword [0x60d7a4]
add esp, 0x14
cmp eax, dword [esi + 0x68]
jb 0x417093
mov dword [esi + 0x64], 0x586fcee9
mov eax, dword [esi + 0xc8]
mov edx, dword [esp + 0x10]
cmp eax, dword [esi + 0x3c]
jae 0x4170b5
mov eax, dword [esi + 0xa4]
xor eax, 0x13d
sub dword [esi + 0x64], eax
jmp 0x417217
add dword [esi + 0xfc], 0xfffd0259
jmp 0x417217
mov eax, dword [0x603bec]
mov ebx, dword [esp + 0x24]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0xc]
xor eax, dword [esp + 0x2c]
cmp dword [esp + 0x30], eax
jne 0x4171aa
mov eax, edx
imul eax, ebp
mov dword [esp + 0x18], eax
mov eax, dword [0x603bec]
mov edx, dword [ebx + 0xc]
xor edx, 0x5413
sub edx, ebp
mov edi, dword [eax + 0xc]
mov esi, dword [eax + 0x68]
mov ecx, dword [eax + 0x84]
or esi, 0x56ec
mov eax, dword [esp + 0x28]
xor ecx, 0x3f43
sub eax, dword [ebx + 0xc]
add ecx, 0x4500
imul edi, dword [ebx + 0xb4]
imul esi, dword [ebx + 0xd8]
push eax
mov eax, dword [0x603bec]
push ecx
xor edi, dword [0x60d810]
push eax
push edx
push esi
push edi
call fcn.00417624
mov ecx, dword [0x603bec]
mov edi, eax
mov eax, dword [0x60d748]
mov edx, dword [ebx + 0xfc]
or eax, 0x3b8a
mov esi, dword [ebx + 0x20]
xor edx, ebp
mov ecx, dword [ecx + 0x58]
and esi, dword [ebx + 0xb4]
or ecx, 0x56ec
push eax
push ecx
push edx
push esi
push 0x60d720
push dword [esp + 0x44]
mov dword [esp + 0x5c], edi
call fcn.00416e51
mov ecx, dword [ebx + 0xc]
mov esi, eax
mov eax, dword [esp + 0x60]
xor ecx, edi
add eax, 3
add esp, 0x30
mov dword [esp + 0x30], eax
cmp eax, ecx
je 0x4170ee
mov edi, dword [esp + 0x28]
imul eax, dword [esp + 0x14], 0x4ded
mov ecx, dword [ebx + 0xa8]
xor eax, dword [ebx + 0xb4]
sub dword [ebx + 0xe8], eax
mov edx, dword [0x603bec]
mov eax, dword [0x60d75c]
and eax, 0x5413
xor ebp, eax
mov eax, dword [edx + 4]
or eax, edi
or eax, 0x4580
push eax
mov eax, ecx
sub eax, dword [edx + 0x44]
push eax
mov eax, dword [esp + 0x34]
add eax, esi
push eax
mov eax, ebp
sub eax, dword [ebx + 0x120]
sub eax, ecx
push ebx
push eax
mov eax, dword [edx + 0x60]
sub eax, ebp
push eax
mov eax, dword [ebx + 0x10]
xor eax, edi
or eax, 0x42b1
push eax
call fcn.00416a33
mov edx, dword [esp + 0x2c]
add esp, 0x1c
pop edi
pop esi
pop ebp
lea eax, [edx + 0x42b1]
pop ebx
add esp, 0xc
ret