Function at 0x4155d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov edx, 2
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x184
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov dword [ebp - 0x14c], eax
lea esi, [esi]
mov eax, dword [ecx + edx*4 - 4]
mov dword [ebp + edx*4 - 0x150], eax
inc edx
cmp edx, 0x11
jne 0x4155f0
lea edx, [ebp - 0x118]
lea ecx, [ebp - 0x18]
lea esi, [esi]
mov eax, dword [edx]
mov edi, dword [edx - 0x14]
xor eax, edi
mov esi, dword [edx - 0x2c]
xor eax, esi
mov ebx, dword [edx - 0x34]
xor eax, ebx
ror eax, 0x1f
mov dword [edx + 0xc], eax
add edx, 4
cmp edx, ecx
jne 0x415610
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
add edx, 4
mov dword [ebp - 0x174], 1
mov eax, dword [eax]
mov dword [ebp - 0x190], edx
mov dword [ebp - 0x168], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov ebx, dword [eax + 4]
add eax, 8
mov dword [ebp - 0x18c], eax
mov eax, dword [ebp + 8]
add eax, 0xc
mov edx, dword [edx + 8]
mov dword [ebp - 0x188], eax
mov eax, dword [ebp + 8]
add eax, 0x10
mov dword [ebp - 0x180], edx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x184], eax
mov eax, dword [ebp + 8]
mov edx, dword [edx + 0xc]
mov dword [ebp - 0x170], edx
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x160], eax
jmp 0x4156b4
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x180], esi
mov dword [ebp - 0x170], edi
mov eax, dword [ebp - 0x174]
mov esi, dword [ebp - 0x170]
mov edi, dword [ebp + eax*4 - 0x150]
mov eax, dword [ebp - 0x160]
add edx, edi
mov edi, dword [ebp - 0x180]
ror eax, 0x1b
lea ecx, [edx + eax + 0x5a827999]
mov eax, ebx
xor eax, 0xffffffff
mov edx, dword [ebp - 0x180]
and edx, ebx
and eax, esi
or eax, edx
mov edx, dword [ebp - 0x174]
inc edx
mov esi, ebx
mov dword [ebp - 0x174], edx
lea eax, [ecx + eax]
ror esi, 2
mov edx, dword [ebp - 0x170]
mov ebx, dword [ebp - 0x160]
cmp dword [ebp - 0x174], 0x15
jne 0x4156a2
mov edx, dword [ebp - 0x180]
mov ecx, dword [ebp - 0x160]
mov dword [ebp - 0x16c], edx
mov edx, dword [ebp - 0x170]
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x178], 0
jmp 0x415752
mov dword [ebp - 0x15c], eax
mov esi, ebx
mov dword [ebp - 0x16c], edi
mov eax, dword [ebp - 0x178]
mov ebx, dword [ebp - 0x16c]
mov edi, dword [ebp + eax*4 - 0xfc]
mov eax, dword [ebp - 0x15c]
add edx, edi
mov edi, dword [ebp - 0x178]
ror eax, 0x1b
inc edi
lea edx, [edx + eax + 0x6ed9eba1]
mov eax, esi
xor eax, ecx
mov dword [ebp - 0x178], edi
xor eax, ebx
mov ebx, ecx
ror ebx, 2
lea eax, [edx + eax]
mov edi, esi
mov edx, dword [ebp - 0x16c]
mov ecx, dword [ebp - 0x15c]
cmp dword [ebp - 0x178], 0x14
jne 0x415744
mov edi, dword [ebp - 0x15c]
mov edx, dword [ebp - 0x16c]
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x17c], 0
jmp 0x4157d5
mov dword [ebp - 0x158], ecx
mov ebx, dword [ebp - 0x154]
mov esi, eax
mov eax, dword [ebp - 0x17c]
mov ecx, dword [ebp + eax*4 - 0xac]
mov eax, dword [ebp - 0x158]
add edx, ecx
ror eax, 0x1b
lea ecx, [edx + eax - 0x70e44324]
mov eax, esi
or eax, ebx
mov edx, esi
and eax, edi
and edx, ebx
ror edi, 2
mov dword [ebp - 0x154], edi
mov edi, dword [ebp - 0x17c]
inc edi
or eax, edx
mov dword [ebp - 0x17c], edi
add ecx, eax
mov edx, esi
mov eax, ebx
mov edi, dword [ebp - 0x158]
cmp dword [ebp - 0x17c], 0x14
jne 0x4157c7
mov dword [ebp - 0x164], ecx
mov edx, esi
mov ecx, dword [ebp - 0x158]
mov edi, ebx
xor esi, esi
jmp 0x415854
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x154], eax
mov edi, ebx
mov ebx, dword [ebp + esi*4 - 0x5c]
mov eax, dword [ebp - 0x164]
add edx, ebx
inc esi
ror eax, 0x1b
mov ebx, dword [ebp - 0x154]
lea edx, [edx + eax - 0x359d3e2a]
mov eax, dword [ebp - 0x154]
xor eax, ecx
xor eax, edi
ror ecx, 2
lea eax, [edx + eax]
mov dword [ebp - 0x150], ecx
mov edx, edi
mov ecx, dword [ebp - 0x164]
cmp esi, 0x14
jne 0x415840
mov edx, dword [ebp - 0x168]
add eax, edx
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp - 0x190]
mov edx, dword [ebp - 0x164]
mov esi, dword [eax]
add esi, edx
mov edx, dword [ebp - 0x150]
mov dword [eax], esi
mov eax, dword [ebp - 0x18c]
mov ebx, dword [eax]
add ebx, edx
mov edx, dword [ebp - 0x154]
mov dword [eax], ebx
mov eax, dword [ebp - 0x188]
mov ecx, dword [eax]
add ecx, edx
mov dword [eax], ecx
mov eax, dword [ebp - 0x184]
mov edx, dword [eax]
add edx, edi
mov dword [eax], edx
add esp, 0x184
pop ebx
pop esi
pop edi
pop ebp
ret