Function at 0x409f3c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov ebx, 0x419a40
cmp byte [0x414670], 0
mov ecx, edx
mov dword [esp], eax
jne 0x409fc1
xor edi, edi
xor esi, esi
lea ebp, [edi + edi*4]
lea eax, [esi + 1]
cdq
mov dword [ebx + ebp*4], esi
push ecx
mov ecx, 5
idiv ecx
pop ecx
mov dword [ebx + ebp*4 + 4], edx
lea eax, [esi + 2]
push ecx
cdq
mov ecx, 5
idiv ecx
pop ecx
mov dword [ebx + ebp*4 + 8], edx
lea eax, [esi + 3]
push ecx
cdq
mov ecx, 5
idiv ecx
pop ecx
mov dword [ebx + ebp*4 + 0xc], edx
lea eax, [esi + 4]
push ecx
cdq
mov ecx, 5
idiv ecx
pop ecx
mov dword [ebx + ebp*4 + 0x10], edx
inc edi
test esi, esi
je 0x409fae
lea eax, [esi - 1]
jmp 0x409fb3
mov eax, 4
mov esi, eax
cmp edi, 0x50
jl 0x409f5a
mov byte [0x414670], 1
xor eax, eax
mov edx, dword [esp]
mov edx, dword [edx + eax*4]
mov dword [esp + eax*4 + 0xc], edx
inc eax
cmp eax, 5
jl 0x409fc3
xor eax, eax
mov esi, dword [ecx + eax*4]
mov edi, dword [ecx + eax*4]
shr edi, 8
mov ebp, dword [ecx + eax*4]
shl esi, 0x18
lea edx, [eax + eax*4]
or esi, edi
mov edi, dword [ecx + eax*4]
shl edi, 8
and esi, 0xff00ff00
shr ebp, 0x18
or edi, ebp
and edi, 0xff00ff
or esi, edi
mov dword [ecx + eax*4], esi
mov edi, dword [ebx + edx*4 + 8]
mov ebp, dword [ebx + edx*4 + 0xc]
mov edi, dword [esp + edi*4 + 0xc]
xor edi, dword [esp + ebp*4 + 0xc]
mov ebp, dword [ebx + edx*4 + 4]
and edi, dword [esp + ebp*4 + 0xc]
lea ebp, [eax + eax*4]
mov ebp, dword [ebx + ebp*4 + 0xc]
xor edi, dword [esp + ebp*4 + 0xc]
lea ebp, [eax + eax*4]
add esi, edi
mov edi, dword [ebx + edx*4]
mov ebp, dword [ebx + ebp*4]
mov edi, dword [esp + edi*4 + 0xc]
shl edi, 5
mov ebp, dword [esp + ebp*4 + 0xc]
shr ebp, 0x1b
or edi, ebp
add esi, edi
mov edi, dword [ebx + edx*4 + 0x10]
add esi, 0x5a827999
add dword [esp + edi*4 + 0xc], esi
lea esi, [eax + eax*4]
mov edx, dword [ebx + edx*4 + 4]
mov esi, dword [ebx + esi*4 + 4]
mov esi, dword [esp + esi*4 + 0xc]
mov edx, dword [esp + edx*4 + 0xc]
shl edx, 0x1e
shr esi, 2
or edx, esi
lea esi, [eax + eax*4]
mov esi, dword [ebx + esi*4 + 4]
mov dword [esp + esi*4 + 0xc], edx
inc eax
cmp eax, 0x10
jl 0x409fd5
mov eax, 0x10
lea esi, [eax + 0xd]
lea edi, [eax + 8]
and esi, 0xf
and edi, 0xf
lea ebp, [eax + 8]
lea edx, [eax + eax*4]
mov esi, dword [ecx + esi*4]
and ebp, 0xf
xor esi, dword [ecx + edi*4]
lea edi, [eax + 2]
and edi, 0xf
xor esi, dword [ecx + edi*4]
mov edi, eax
and edi, 0xf
xor esi, dword [ecx + edi*4]
lea edi, [eax + 0xd]
and edi, 0xf
add esi, esi
mov edi, dword [ecx + edi*4]
xor edi, dword [ecx + ebp*4]
lea ebp, [eax + 2]
and ebp, 0xf
xor edi, dword [ecx + ebp*4]
mov ebp, eax
and ebp, 0xf
xor edi, dword [ecx + ebp*4]
shr edi, 0x1f
or esi, edi
mov edi, eax
and edi, 0xf
mov dword [ecx + edi*4], esi
mov edi, dword [ebx + edx*4 + 8]
mov ebp, dword [ebx + edx*4 + 0xc]
mov edi, dword [esp + edi*4 + 0xc]
xor edi, dword [esp + ebp*4 + 0xc]
mov ebp, dword [ebx + edx*4 + 4]
and edi, dword [esp + ebp*4 + 0xc]
lea ebp, [eax + eax*4]
mov ebp, dword [ebx + ebp*4 + 0xc]
xor edi, dword [esp + ebp*4 + 0xc]
lea ebp, [eax + eax*4]
add esi, edi
mov edi, dword [ebx + edx*4]
mov ebp, dword [ebx + ebp*4]
mov edi, dword [esp + edi*4 + 0xc]
shl edi, 5
mov ebp, dword [esp + ebp*4 + 0xc]
shr ebp, 0x1b
or edi, ebp
add esi, edi
mov edi, dword [ebx + edx*4 + 0x10]
add esi, 0x5a827999
add dword [esp + edi*4 + 0xc], esi
lea esi, [eax + eax*4]
mov edx, dword [ebx + edx*4 + 4]
mov esi, dword [ebx + esi*4 + 4]
mov esi, dword [esp + esi*4 + 0xc]
mov edx, dword [esp + edx*4 + 0xc]
shl edx, 0x1e
shr esi, 2
or edx, esi
lea esi, [eax + eax*4]
mov esi, dword [ebx + esi*4 + 4]
mov dword [esp + esi*4 + 0xc], edx
inc eax
cmp eax, 0x14
jl 0x40a088
mov eax, 0x14
lea esi, [eax + 0xd]
lea edi, [eax + 8]
and esi, 0xf
and edi, 0xf
lea ebp, [eax + 8]
lea edx, [eax + eax*4]
mov esi, dword [ecx + esi*4]
and ebp, 0xf
xor esi, dword [ecx + edi*4]
lea edi, [eax + 2]
and edi, 0xf
xor esi, dword [ecx + edi*4]
mov edi, eax
and edi, 0xf
xor esi, dword [ecx + edi*4]
lea edi, [eax + 0xd]
and edi, 0xf
add esi, esi
mov edi, dword [ecx + edi*4]
xor edi, dword [ecx + ebp*4]
lea ebp, [eax + 2]
and ebp, 0xf
xor edi, dword [ecx + ebp*4]
mov ebp, eax
and ebp, 0xf
xor edi, dword [ecx + ebp*4]
shr edi, 0x1f
or esi, edi
mov edi, eax
and edi, 0xf
mov dword [ecx + edi*4], esi
mov edi, dword [ebx + edx*4 + 4]
mov ebp, dword [ebx + edx*4 + 8]
mov edi, dword [esp + edi*4 + 0xc]
xor edi, dword [esp + ebp*4 + 0xc]
mov ebp, dword [ebx + edx*4 + 0xc]
xor edi, dword [esp + ebp*4 + 0xc]
lea ebp, [eax + eax*4]
add esi, edi
mov edi, dword [ebx + edx*4]
mov ebp, dword [ebx + ebp*4]
mov edi, dword [esp + edi*4 + 0xc]
shl edi, 5
mov ebp, dword [esp + ebp*4 + 0xc]
shr ebp, 0x1b
or edi, ebp
add esi, edi
mov edi, dword [ebx + edx*4 + 0x10]
add esi, 0x6ed9eba1
add dword [esp + edi*4 + 0xc], esi
lea esi, [eax + eax*4]
mov edx, dword [ebx + edx*4 + 4]
mov esi, dword [ebx + esi*4 + 4]
mov esi, dword [esp + esi*4 + 0xc]
mov edx, dword [esp + edx*4 + 0xc]
shl edx, 0x1e
shr esi, 2
or edx, esi
lea esi, [eax + eax*4]
mov esi, dword [ebx + esi*4 + 4]
mov dword [esp + esi*4 + 0xc], edx
inc eax
cmp eax, 0x28
jl 0x40a163
mov eax, 0x28
lea edx, [eax + eax*4]
lea esi, [eax + eax*4]
lea edi, [eax + eax*4]
lea ebp, [eax + 8]
mov edx, dword [ebx + edx*4 + 4]
mov esi, dword [ebx + esi*4 + 8]
mov edi, dword [ebx + edi*4 + 8]
and ebp, 0xf
mov edx, dword [esp + edx*4 + 0xc]
or edx, dword [esp + esi*4 + 0xc]
lea esi, [eax + eax*4]
mov esi, dword [ebx + esi*4 + 0xc]
and edx, dword [esp + esi*4 + 0xc]
lea esi, [eax + eax*4]
mov esi, dword [ebx + esi*4 + 4]
mov esi, dword [esp + esi*4 + 0xc]
and esi, dword [esp + edi*4 + 0xc]
lea edi, [eax + 8]
or edx, esi
lea esi, [eax + 0xd]
and esi, 0xf
and edi, 0xf
mov esi, dword [ecx + esi*4]
xor esi, dword [ecx + edi*4]
lea edi, [eax + 2]
and edi, 0xf
xor esi, dword [ecx + edi*4]
mov edi, eax
and edi, 0xf
xor esi, dword [ecx + edi*4]
lea edi, [eax + 0xd]
and edi, 0xf
add esi, esi
mov edi, dword [ecx + edi*4]
xor edi, dword [ecx + ebp*4]
lea ebp, [eax + 2]
and ebp, 0xf
xor edi, dword [ecx + ebp*4]
mov ebp, eax
and ebp, 0xf
xor edi, dword [ecx + ebp*4]
shr edi, 0x1f
or esi, edi
mov edi, eax
and edi, 0xf
add edx, esi
mov dword [ecx + edi*4], esi
lea esi, [eax + eax*4]
lea edi, [eax + eax*4]
mov esi, dword [ebx + esi*4]
mov edi, dword [ebx + edi*4]
mov esi, dword [esp + esi*4 + 0xc]
shl esi, 5
mov edi, dword [esp + edi*4 + 0xc]
shr edi, 0x1b
or esi, edi
add edx, esi
lea esi, [eax + eax*4]
add edx, 0x8f1bbcdc
mov esi, dword [ebx + esi*4 + 0x10]
add dword [esp + esi*4 + 0xc], edx
lea edx, [eax + eax*4]
lea esi, [eax + eax*4]
mov edx, dword [ebx + edx*4 + 4]
mov esi, dword [ebx + esi*4 + 4]
mov edx, dword [esp + edx*4 + 0xc]
shl edx, 0x1e
mov esi, dword [esp + esi*4 + 0xc]
shr esi, 2
or edx, esi
lea esi, [eax + eax*4]
mov esi, dword [ebx + esi*4 + 4]
mov dword [esp + esi*4 + 0xc], edx
inc eax
cmp eax, 0x3c
jl 0x40a233
mov eax, 0x3c
lea esi, [eax + 0xd]
lea edi, [eax + 8]
and esi, 0xf
and edi, 0xf
lea ebp, [eax + 8]
lea edx, [eax + eax*4]
mov esi, dword [ecx + esi*4]
and ebp, 0xf
xor esi, dword [ecx + edi*4]
lea edi, [eax + 2]
and edi, 0xf
xor esi, dword [ecx + edi*4]
mov edi, eax
and edi, 0xf
xor esi, dword [ecx + edi*4]
lea edi, [eax + 0xd]
and edi, 0xf
add esi, esi
mov edi, dword [ecx + edi*4]
xor edi, dword [ecx + ebp*4]
lea ebp, [eax + 2]
and ebp, 0xf
xor edi, dword [ecx + ebp*4]
mov ebp, eax
and ebp, 0xf
xor edi, dword [ecx + ebp*4]
shr edi, 0x1f
or esi, edi
mov edi, eax
and edi, 0xf
mov dword [ecx + edi*4], esi
mov edi, dword [ebx + edx*4 + 4]
mov ebp, dword [ebx + edx*4 + 8]
mov edi, dword [esp + edi*4 + 0xc]
xor edi, dword [esp + ebp*4 + 0xc]
mov ebp, dword [ebx + edx*4 + 0xc]
xor edi, dword [esp + ebp*4 + 0xc]
lea ebp, [eax + eax*4]
add esi, edi
mov edi, dword [ebx + edx*4]
mov ebp, dword [ebx + ebp*4]
mov edi, dword [esp + edi*4 + 0xc]
shl edi, 5
mov ebp, dword [esp + ebp*4 + 0xc]
shr ebp, 0x1b
or edi, ebp
add esi, edi
mov edi, dword [ebx + edx*4 + 0x10]
add esi, 0xca62c1d6
add dword [esp + edi*4 + 0xc], esi
lea esi, [eax + eax*4]
mov edx, dword [ebx + edx*4 + 4]
mov esi, dword [ebx + esi*4 + 4]
mov esi, dword [esp + esi*4 + 0xc]
mov edx, dword [esp + edx*4 + 0xc]
shl edx, 0x1e
shr esi, 2
or edx, esi
lea esi, [eax + eax*4]
mov esi, dword [ebx + esi*4 + 4]
mov dword [esp + esi*4 + 0xc], edx
inc eax
cmp eax, 0x50
jl 0x40a32a
xor eax, eax
mov edx, dword [esp]
mov ecx, dword [esp + eax*4 + 0xc]
add dword [edx + eax*4], ecx
inc eax
cmp eax, 5
jl 0x40a3f7
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret