Function at 0x416e40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x445664]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x1c], eax
mov dword [eax], esi
mov eax, dword [0x448364]
push edi
mov ebx, ecx
cmp eax, 3
ja case.default.0x416e6d
jmp dword [eax*4 + 0x41711c]
mov esi, dword [ebp + 8]
sub ebx, esi
mov edi, 0x10
mov edi, edi
lea eax, [ebx + esi]
push eax
mov ecx, esi
call fcn.004162a0
add esp, 4
add esi, 0x10
dec edi
jne 0x416e80
mov ecx, dword [ebp - 0x1c]
pop edi
pop esi
mov dword [ecx], 0x100
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041900b
mov esp, ebp
pop ebp
ret
mov eax, dword [0x44836c]
sub eax, ebx
mov dword [ebp - 0x28], eax
mov eax, ebx
lea edx, [ebp - 0x14]
sub eax, edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
shl esi, 4
lea ecx, [ebp - 0x14]
lea edi, [esi + eax]
push ecx
mov ecx, edi
mov dword [ebp - 0x24], esi
call fcn.004162a0
add esp, 4
xor eax, eax
cmp dword [ebp - 0x18], 0
jne 0x416f2b
mov esi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
lea ecx, [ebp + eax - 0x14]
add esi, ecx
mov dl, byte [esi + edx]
xor dl, byte [ecx]
mov byte [esi], dl
mov esi, dword [0x44836c]
mov dl, byte [esi + eax + 1]
xor dl, byte [ecx + 1]
mov byte [ebx + eax + 1], dl
mov dl, byte [esi + eax + 2]
xor dl, byte [ecx + 2]
mov byte [ebx + eax + 2], dl
mov dl, byte [esi + eax + 3]
xor dl, byte [ecx + 3]
mov esi, dword [ebp - 0x24]
mov byte [ebx + eax + 3], dl
jmp 0x416f5d
mov dl, byte [edi + eax - 0x10]
xor dl, byte [ebp + eax - 0x14]
lea ecx, [esi + ebx]
mov byte [ecx + eax], dl
mov dl, byte [edi + eax - 0xf]
xor dl, byte [ebp + eax - 0x13]
mov byte [ecx + eax + 1], dl
mov dl, byte [edi + eax - 0xe]
xor dl, byte [ebp + eax - 0x12]
mov byte [ecx + eax + 2], dl
mov dl, byte [edi + eax - 0xd]
xor dl, byte [ebp + eax - 0x11]
mov byte [ecx + eax + 3], dl
add eax, 4
cmp eax, 0x10
jb 0x416ee6
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, 0x10
jb 0x416ec7
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
mov dword [eax], 0x100
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041900b
mov esp, ebp
pop ebp
ret
xor edi, edi
mov dword [ebp - 0x18], edi
jmp 0x416f9b
mov edi, dword [ebp - 0x18]
test edi, edi
jne 0x416fb6
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [0x44836c]
lea edx, [edi + 0x10]
call fcn.004166b0
mov esi, dword [ebp + 8]
jmp 0x416fcf
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x14]
mov eax, edi
add eax, eax
push edx
lea ecx, [esi + eax*8 - 0x10]
mov edx, 0x10
call fcn.004166b0
add esp, 4
test eax, eax
jne 0x41710a
mov edx, edi
add edx, edx
mov edi, esi
lea ecx, [ebx + edx*8]
sub edi, ebx
lea esi, [esi + edx*8 + 2]
lea esp, [esp]
movzx edx, byte [ecx + edi]
xor dl, byte [ebp + eax - 0x14]
add eax, 4
mov byte [ecx], dl
movzx edx, byte [esi + eax - 5]
xor dl, byte [ebp + eax - 0x17]
add ecx, 4
mov byte [ecx - 3], dl
movzx edx, byte [esi + eax - 4]
xor dl, byte [ebp + eax - 0x16]
mov byte [ecx - 2], dl
movzx edx, byte [esi + eax - 3]
xor dl, byte [ebp + eax - 0x15]
mov byte [ecx - 1], dl
cmp eax, 0x10
jb 0x416ff0
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, 0x10
jb 0x416f98
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
mov dword [eax], 0x100
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041900b
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x18], esi
jmp 0x417063
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
test esi, esi
jne 0x417073
push ecx
mov ecx, dword [0x44836c]
jmp 0x417077
lea edx, [ebp - 0x14]
push edx
mov edx, 0x10
call fcn.004166b0
add esp, 4
test eax, eax
jne 0x41710a
mov edx, esi
mov esi, dword [ebp + 8]
add edx, edx
mov edi, esi
lea ecx, [ebx + edx*8]
sub edi, ebx
lea esi, [esi + edx*8 + 2]
mov edi, edi
movzx edx, byte [ecx + edi]
xor dl, byte [ebp + eax - 0x14]
add eax, 4
mov byte [ecx], dl
movzx edx, byte [esi + eax - 5]
xor dl, byte [ebp + eax - 0x17]
add ecx, 4
mov byte [ecx - 3], dl
movzx edx, byte [esi + eax - 4]
xor dl, byte [ebp + eax - 0x16]
mov byte [ecx - 2], dl
movzx edx, byte [esi + eax - 3]
xor dl, byte [ebp + eax - 0x15]
mov byte [ecx - 1], dl
cmp eax, 0x10
jb 0x4170a0
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, 0x10
jb 0x417060
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
mov dword [eax], 0x100
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041900b
mov esp, ebp
pop ebp
ret
mov eax, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041900b
mov esp, ebp
pop ebp
ret