Function at 0x415590
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax + 4]
mov ecx, edx
sar ecx, 3
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [eax]
mov dword [ebp - 8], ecx
test ecx, ecx
mov ecx, dword [ebp + 0x14]
je 0x4157f4
lea ebx, [ebx]
inc edi
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
mov dword [ebp - 0xc], edx
add edx, ebx
and edx, 0xff
mov ebx, dword [eax + edx*4 + 8]
mov dword [eax + edi*4 + 8], ebx
mov dword [ebp + 8], edx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 0xc]
mov dword [eax + edx*4 + 8], ebx
mov edx, dword [ebp - 4]
add edx, ebx
and edx, 0xff
movzx edx, byte [eax + edx*4 + 8]
xor dl, byte [esi]
mov ebx, dword [ebp + 8]
mov byte [ecx], dl
inc edi
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
mov dword [ebp - 0xc], edx
add edx, ebx
and edx, 0xff
mov ebx, dword [eax + edx*4 + 8]
mov dword [eax + edi*4 + 8], ebx
mov dword [ebp + 8], edx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 0xc]
mov dword [eax + edx*4 + 8], ebx
mov edx, dword [ebp - 4]
add edx, ebx
mov ebx, dword [ebp + 8]
and edx, 0xff
movzx edx, byte [eax + edx*4 + 8]
xor dl, byte [esi + 1]
inc esi
mov byte [ecx + 1], dl
inc edi
inc ecx
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
mov dword [ebp - 0xc], edx
add edx, ebx
and edx, 0xff
mov ebx, dword [eax + edx*4 + 8]
mov dword [eax + edi*4 + 8], ebx
mov dword [ebp + 8], edx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 0xc]
mov dword [eax + edx*4 + 8], ebx
mov edx, dword [ebp - 4]
add edx, ebx
mov ebx, dword [ebp + 8]
and edx, 0xff
movzx edx, byte [eax + edx*4 + 8]
xor dl, byte [esi + 1]
inc esi
mov byte [ecx + 1], dl
inc ecx
inc edi
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
mov dword [ebp - 0xc], edx
add edx, ebx
and edx, 0xff
mov ebx, dword [eax + edx*4 + 8]
mov dword [eax + edi*4 + 8], ebx
mov dword [ebp + 8], edx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 0xc]
mov dword [eax + edx*4 + 8], ebx
mov edx, dword [ebp - 4]
add edx, ebx
and edx, 0xff
movzx edx, byte [eax + edx*4 + 8]
inc ecx
inc esi
xor dl, byte [esi]
mov byte [ecx], dl
mov ebx, dword [ebp + 8]
inc edi
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
mov dword [ebp - 0xc], edx
add edx, ebx
and edx, 0xff
mov ebx, dword [eax + edx*4 + 8]
mov dword [eax + edi*4 + 8], ebx
mov dword [ebp + 8], edx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 0xc]
mov dword [eax + edx*4 + 8], ebx
mov edx, dword [ebp - 4]
add edx, ebx
mov ebx, dword [ebp + 8]
and edx, 0xff
movzx edx, byte [eax + edx*4 + 8]
xor dl, byte [esi + 1]
inc esi
mov byte [ecx + 1], dl
inc edi
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
mov dword [ebp - 0xc], edx
add edx, ebx
and edx, 0xff
mov ebx, dword [eax + edx*4 + 8]
mov dword [eax + edi*4 + 8], ebx
inc ecx
mov dword [ebp + 8], edx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 0xc]
mov dword [eax + edx*4 + 8], ebx
mov edx, dword [ebp - 4]
add edx, ebx
mov ebx, dword [ebp + 8]
and edx, 0xff
movzx edx, byte [eax + edx*4 + 8]
xor dl, byte [esi + 1]
inc esi
mov byte [ecx + 1], dl
inc edi
inc ecx
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
mov dword [ebp - 0xc], edx
add edx, ebx
and edx, 0xff
mov ebx, dword [eax + edx*4 + 8]
mov dword [eax + edi*4 + 8], ebx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 0xc]
mov dword [eax + edx*4 + 8], ebx
mov dword [ebp + 8], edx
mov edx, dword [ebp - 4]
add edx, ebx
mov ebx, dword [ebp + 8]
and edx, 0xff
movzx edx, byte [eax + edx*4 + 8]
xor dl, byte [esi + 1]
inc esi
mov byte [ecx + 1], dl
inc ecx
inc edi
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebx, edx
and ebx, 0xff
mov dword [ebp + 8], ebx
mov ebx, dword [eax + ebx*4 + 8]
mov dword [eax + edi*4 + 8], ebx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov dword [eax + ebx*4 + 8], edx
mov ebx, dword [ebp - 4]
add ebx, edx
inc ecx
inc esi
and ebx, 0xff
movzx edx, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
mov ebx, dword [ebp + 8]
mov byte [ecx], dl
inc ecx
inc esi
sub dword [ebp - 8], 1
jne 0x4155c0
mov edx, dword [ebp + 0xc]
and edx, 7
mov dword [ebp - 8], edx
je 0x415a5c
inc edi
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebx, edx
and ebx, 0xff
mov dword [ebp + 8], ebx
mov ebx, dword [eax + ebx*4 + 8]
mov dword [eax + edi*4 + 8], ebx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov dword [eax + ebx*4 + 8], edx
mov ebx, dword [ebp - 4]
add ebx, edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
inc ecx
mov byte [ecx - 1], dl
inc esi
sub dword [ebp - 8], 1
je 0x415a59
jmp 0x415850
mov ebx, dword [ebp + 8]
inc edi
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebx, edx
and ebx, 0xff
mov dword [ebp + 8], ebx
mov ebx, dword [eax + ebx*4 + 8]
mov dword [eax + edi*4 + 8], ebx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov dword [eax + ebx*4 + 8], edx
mov ebx, dword [ebp - 4]
add ebx, edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
inc ecx
mov byte [ecx - 1], dl
inc esi
sub dword [ebp - 8], 1
je 0x415a59
mov ebx, dword [ebp + 8]
inc edi
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebx, edx
and ebx, 0xff
mov dword [ebp + 8], ebx
mov ebx, dword [eax + ebx*4 + 8]
mov dword [eax + edi*4 + 8], ebx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov dword [eax + ebx*4 + 8], edx
mov ebx, dword [ebp - 4]
add ebx, edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
inc ecx
mov byte [ecx - 1], dl
inc esi
sub dword [ebp - 8], 1
je 0x415a59
mov ebx, dword [ebp + 8]
inc edi
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebx, edx
and ebx, 0xff
mov dword [ebp + 8], ebx
mov ebx, dword [eax + ebx*4 + 8]
mov dword [eax + edi*4 + 8], ebx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov dword [eax + ebx*4 + 8], edx
mov ebx, dword [ebp - 4]
add ebx, edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
inc ecx
mov byte [ecx - 1], dl
inc esi
sub dword [ebp - 8], 1
je 0x415a59
mov ebx, dword [ebp + 8]
inc edi
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebx, edx
and ebx, 0xff
mov dword [ebp + 8], ebx
mov ebx, dword [eax + ebx*4 + 8]
mov dword [eax + edi*4 + 8], ebx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov dword [eax + ebx*4 + 8], edx
mov ebx, dword [ebp - 4]
add ebx, edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
inc ecx
mov byte [ecx - 1], dl
inc esi
sub dword [ebp - 8], 1
je 0x415a59
mov ebx, dword [ebp + 8]
inc edi
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebx, edx
and ebx, 0xff
mov dword [ebp + 8], ebx
mov ebx, dword [eax + ebx*4 + 8]
mov dword [eax + edi*4 + 8], ebx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov dword [eax + ebx*4 + 8], edx
mov ebx, dword [ebp - 4]
add ebx, edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
inc ecx
mov byte [ecx - 1], dl
inc esi
sub dword [ebp - 8], 1
je 0x415a59
mov ebx, dword [ebp + 8]
inc edi
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebx, edx
and ebx, 0xff
mov dword [ebp + 8], ebx
mov ebx, dword [eax + ebx*4 + 8]
mov dword [eax + edi*4 + 8], ebx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov dword [eax + ebx*4 + 8], edx
mov ebx, dword [ebp - 4]
add ebx, edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
inc ecx
mov byte [ecx - 1], dl
inc esi
sub dword [ebp - 8], 1
je 0x415a59
mov ebx, dword [ebp + 8]
inc edi
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebx, edx
and ebx, 0xff
mov dword [ebp + 8], ebx
mov ebx, dword [eax + ebx*4 + 8]
mov dword [eax + edi*4 + 8], ebx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov dword [eax + ebx*4 + 8], edx
mov ebx, dword [ebp - 4]
add ebx, edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
inc ecx
mov byte [ecx - 1], dl
inc esi
sub dword [ebp - 8], 1
jne 0x415850
mov ebx, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov dword [eax + 4], ebx
pop ebx
mov esp, ebp
pop ebp
ret