Function at 0x415e20
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
xor eax, eax
mov ecx, 0x800
mov edi, ebp
rep stosd dword es:[edi], eax
xor edi, edi
mov dword [esp + 0x10], edi
lea esp, [esp]
test edi, edi
jne 0x416115
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
lea eax, [ebp + 0x180]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov ebx, 4
lea ecx, [ecx]
lea edx, [ebx + 0x10]
shl edx, 4
lea eax, [edx + ebp]
lea ecx, [ebx + 8]
shl ecx, 5
add ecx, ebp
mov esi, dword [ecx]
mov edx, eax
mov dword [edx], esi
mov esi, dword [ecx + 4]
mov dword [edx + 4], esi
mov esi, dword [ecx + 8]
mov dword [edx + 8], esi
mov ecx, dword [ecx + 0xc]
mov dword [edx + 0xc], ecx
mov edx, 4
mov edi, edi
mov ecx, dword [eax + edx*4 - 4]
dec edx
mov esi, ecx
shl esi, 0x18
mov edi, ecx
shr edi, 8
or esi, edi
mov edi, ecx
and edi, 0xff00
and esi, 0xff00ff00
shl edi, 8
or esi, edi
shr ecx, 0x18
or esi, ecx
test edx, edx
mov dword [eax + edx*4], esi
jne 0x415ea0
mov ecx, dword [eax + 0xc]
mov edx, ecx
and edx, 1
mov edi, dword [edx*4 + 0x4506f8]
mov edx, dword [eax + 8]
mov esi, edx
shr ecx, 1
shl esi, 0x1f
or esi, ecx
mov dword [eax + 0xc], esi
mov esi, dword [eax + 4]
shr edx, 1
mov ecx, esi
shl ecx, 0x1f
or ecx, edx
mov dword [eax + 8], ecx
mov ecx, dword [eax]
mov edx, ecx
shl edx, 0x1f
shr esi, 1
or edx, esi
shr ecx, 1
xor ecx, edi
mov dword [eax + 4], edx
mov dword [eax], ecx
mov edx, 4
mov ecx, dword [eax + edx*4 - 4]
dec edx
mov esi, ecx
shl esi, 0x18
mov edi, ecx
shr edi, 8
or esi, edi
mov edi, ecx
and edi, 0xff00
and esi, 0xff00ff00
shl edi, 8
or esi, edi
shr ecx, 0x18
or esi, ecx
test edx, edx
mov dword [eax + edx*4], esi
jne 0x415f16
sar ebx, 1
test ebx, ebx
jg 0x415e70
lea ecx, [ebp + 0x110]
mov esi, dword [ecx]
lea eax, [ebp + 0x80]
mov edx, eax
mov dword [edx], esi
mov esi, dword [ecx + 4]
mov dword [edx + 4], esi
mov esi, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [edx + 8], esi
mov dword [edx + 0xc], ecx
mov edx, 4
lea esp, [esp]
mov ecx, dword [eax + edx*4 - 4]
dec edx
mov esi, ecx
shl esi, 0x18
mov edi, ecx
shr edi, 8
or esi, edi
mov edi, ecx
and edi, 0xff00
and esi, 0xff00ff00
shl edi, 8
or esi, edi
shr ecx, 0x18
or esi, ecx
test edx, edx
mov dword [eax + edx*4], esi
jne 0x415f80
mov ecx, dword [eax + 0xc]
mov edx, ecx
and edx, 1
mov edi, dword [edx*4 + 0x4506f8]
mov edx, dword [eax + 8]
mov esi, edx
shr ecx, 1
shl esi, 0x1f
or esi, ecx
mov dword [eax + 0xc], esi
mov esi, dword [eax + 4]
shr edx, 1
mov ecx, esi
shl ecx, 0x1f
or ecx, edx
mov dword [eax + 8], ecx
mov ecx, dword [eax]
mov edx, ecx
shl edx, 0x1f
shr esi, 1
or edx, esi
shr ecx, 1
xor ecx, edi
mov dword [eax + 4], edx
mov dword [eax], ecx
mov edx, 4
mov ecx, dword [eax + edx*4 - 4]
dec edx
mov esi, ecx
shl esi, 0x18
mov edi, ecx
shr edi, 8
or esi, edi
mov edi, ecx
and edi, 0xff00
and esi, 0xff00ff00
shl edi, 8
or esi, edi
shr ecx, 0x18
or esi, ecx
test edx, edx
mov dword [eax + edx*4], esi
jne 0x415ff6
mov ebx, 4
jmp 0x416030
mov eax, ebx
shl eax, 4
mov ecx, ebx
shl ecx, 5
add eax, ebp
add ecx, ebp
mov esi, dword [ecx]
mov edx, eax
mov dword [edx], esi
mov esi, dword [ecx + 4]
mov dword [edx + 4], esi
mov esi, dword [ecx + 8]
mov dword [edx + 8], esi
mov ecx, dword [ecx + 0xc]
mov dword [edx + 0xc], ecx
mov edx, 4
jmp 0x416060
mov ecx, dword [eax + edx*4 - 4]
dec edx
mov esi, ecx
shl esi, 0x18
mov edi, ecx
shr edi, 8
or esi, edi
mov edi, ecx
and edi, 0xff00
and esi, 0xff00ff00
shl edi, 8
or esi, edi
shr ecx, 0x18
or esi, ecx
test edx, edx
mov dword [eax + edx*4], esi
jne 0x416060
mov ecx, dword [eax + 0xc]
mov edx, ecx
and edx, 1
mov edi, dword [edx*4 + 0x4506f8]
mov edx, dword [eax + 8]
mov esi, edx
shr ecx, 1
shl esi, 0x1f
or esi, ecx
mov dword [eax + 0xc], esi
mov esi, dword [eax + 4]
shr edx, 1
mov ecx, esi
shl ecx, 0x1f
or ecx, edx
mov dword [eax + 8], ecx
mov ecx, dword [eax]
mov edx, ecx
shl edx, 0x1f
shr esi, 1
or edx, esi
shr ecx, 1
xor ecx, edi
mov dword [eax + 4], edx
mov dword [eax], ecx
mov edx, 4
mov ecx, dword [eax + edx*4 - 4]
dec edx
mov esi, ecx
shl esi, 0x18
mov edi, ecx
shr edi, 8
or esi, edi
mov edi, ecx
and edi, 0xff00
and esi, 0xff00ff00
shl edi, 8
or esi, edi
shr ecx, 0x18
or esi, ecx
test edx, edx
mov dword [eax + edx*4], esi
jne 0x4160d6
sar ebx, 1
test ebx, ebx
jg 0x416030
jmp 0x4161af
cmp edi, 1
jle 0x4161b3
lea ebx, [edi - 2]
mov eax, edi
shl ebx, 4
shl eax, 4
mov esi, 8
mov dword [esp + 0x14], eax
jmp 0x416138
mov eax, dword [esp + 0x14]
add eax, esi
lea ecx, [ebx + esi]
shl ecx, 4
add ecx, ebp
mov edi, dword [ecx]
shl eax, 4
add eax, ebp
mov edx, eax
mov dword [edx], edi
mov edi, dword [ecx + 4]
mov dword [edx + 4], edi
mov edi, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [edx + 8], edi
mov dword [edx + 0xc], ecx
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov edi, ecx
mov ebp, edx
shr ebp, 0x18
shl ecx, 8
or ebp, ecx
mov ecx, dword [eax + 4]
mov dword [eax + 0xc], ebp
mov ebp, ecx
shr ebp, 0x18
shl edx, 8
or ebp, edx
mov edx, dword [eax]
mov dword [eax + 8], ebp
mov ebp, edx
shl ecx, 8
shr ebp, 0x18
or ebp, ecx
shr edi, 0x18
mov dword [eax + 4], ebp
movzx ecx, word [edi*2 + 0x441008]
mov ebp, dword [esp + 0x20]
shl edx, 8
xor ecx, edx
sar esi, 1
test esi, esi
mov dword [eax], ecx
jg 0x416134
mov edi, dword [esp + 0x10]
mov edx, edi
shl edx, 8
lea eax, [edx + ebp + 0x10]
mov ebx, edi
mov esi, 2
mov dword [esp + 0x14], eax
shl ebx, 4
lea ebx, [ebx]
lea ecx, [ebx + esi]
shl ecx, 4
cmp esi, 1
lea edx, [ecx + ebp]
mov ecx, dword [esp + 0x14]
lea eax, [edx + 0x10]
jle 0x416228
lea edi, [esi - 1]
mov ebp, dword [ecx]
xor ebp, dword [edx]
add ecx, 4
mov dword [eax], ebp
mov ebp, dword [ecx]
xor ebp, dword [edx + 4]
add eax, 4
mov dword [eax], ebp
mov ebp, dword [ecx + 4]
xor ebp, dword [edx + 8]
add ecx, 4
add eax, 4
mov dword [eax], ebp
mov ebp, dword [edx + 0xc]
xor ebp, dword [ecx + 4]
add ecx, 4
add eax, 4
mov dword [eax], ebp
add eax, 4
add ecx, 4
dec edi
jne 0x4161e8
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
add esi, esi
cmp esi, 0x10
jl 0x4161d0
inc edi
cmp edi, 0x20
mov dword [esp + 0x10], edi
jl 0x415e40
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret