Function at 0x417936
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
mov dword [ebp - 0x18], esi
jle 0x417b5e
push ebx
push edi
mov eax, dword [ecx + 0x154]
cdq
push 4
pop edi
idiv edi
lea eax, [ecx + eax*4 + 0x14]
shl dword [eax], 8
mov eax, dword [ecx + 0x154]
cdq
idiv edi
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
lea eax, [ecx + eax*4 + 0x14]
or dword [eax], edx
inc dword [ecx + 0x154]
test byte [ecx + 0x154], 0x3f
jne 0x417b45
mov eax, dword [ecx]
mov edx, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
lea ebx, [ecx + 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 8], edx
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], 0x40
mov edi, dword [ebx + 0x2c]
xor edi, dword [ebx + 0x18]
xor edi, dword [ebx - 8]
xor edi, dword [ebx]
mov ebx, edi
shr ebx, 0x1f
add edi, edi
or ebx, edi
mov edi, ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x38], edi
add ebx, 4
dec dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
jne 0x4179ad
lea edi, [ecx + 0x14]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], 0x14
xor esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov ebx, dword [ebp - 4]
and esi, eax
xor esi, dword [ebp - 0xc]
shr edi, 0x1b
shl ebx, 5
or edi, ebx
add edi, esi
mov esi, dword [ebp - 0x10]
add edi, dword [esi]
mov esi, dword [ebp - 8]
add dword [ebp - 0x10], 4
mov ebx, eax
shr eax, 2
shl ebx, 0x1e
or ebx, eax
dec dword [ebp - 0x14]
mov eax, dword [ebp - 4]
lea edi, [edi + edx + 0x5a827999]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], edi
jne 0x4179e1
lea ebx, [ecx + 0x64]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], 0x14
mov ebx, edi
shr ebx, 0x1b
shl edi, 5
or ebx, edi
mov edi, esi
mov esi, dword [ebp - 8]
xor edi, esi
xor edi, eax
add ebx, edi
mov edi, dword [ebp - 0x10]
add ebx, dword [edi]
add dword [ebp - 0x10], 4
lea edi, [ebx + edx + 0x6ed9eba1]
mov edx, dword [ebp - 0xc]
mov ebx, eax
shr eax, 2
shl ebx, 0x1e
or ebx, eax
dec dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], edi
jne 0x417a37
lea ebx, [ecx + 0xb4]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], 0x14
mov ebx, dword [ebp - 8]
or ebx, eax
and ebx, esi
mov esi, dword [ebp - 8]
and esi, eax
or ebx, esi
mov esi, edi
shr esi, 0x1b
shl edi, 5
or esi, edi
add ebx, esi
mov esi, dword [ebp - 0x10]
add ebx, dword [esi]
mov esi, dword [ebp - 8]
add dword [ebp - 0x10], 4
lea edi, [ebx + edx - 0x70e44324]
mov edx, dword [ebp - 0xc]
mov ebx, eax
shr eax, 2
shl ebx, 0x1e
or ebx, eax
dec dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], edi
jne 0x417a8a
lea edi, [ecx + 0x104]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], 0x14
mov edi, dword [ebp - 4]
mov ebx, dword [ebp - 4]
shl ebx, 5
shr edi, 0x1b
or edi, ebx
mov ebx, esi
mov esi, dword [ebp - 8]
xor ebx, esi
xor ebx, eax
add edi, edx
mov edx, dword [ebp - 0x10]
mov edx, dword [edx]
add dword [ebp - 0x10], 4
add ebx, edi
lea edi, [ebx + edx - 0x359d3e2a]
mov edx, dword [ebp - 0xc]
mov ebx, eax
shr eax, 2
shl ebx, 0x1e
or ebx, eax
dec dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], edi
jne 0x417ae5
add dword [ecx + 4], eax
add dword [ecx], edi
add dword [ecx + 0xc], esi
add dword [ecx + 0x10], edx
mov eax, ebx
add dword [ecx + 8], eax
and dword [ecx + 0x154], 0
mov esi, dword [ebp - 0x18]
add dword [ecx + 0x158], 0x25
inc esi
cmp esi, dword [ebp + 0xc]
mov dword [ebp - 0x18], esi
jl 0x41794d
pop edi
pop ebx
pop esi
leave
ret