Function at 0x402070
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ecx]
mov dword [ebp - 0x14], eax
shl eax, 5
push ebx
mov ebx, dword [eax + ecx + 0x18]
push esi
push edi
lea edi, [eax + ecx]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 8]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
xor ecx, dword [eax]
xor edx, dword [eax + 4]
xor ebx, dword [eax + 8]
mov dword [ebp + 8], ecx
mov ecx, dword [edi + 0x1c]
xor ecx, dword [eax + 0xc]
lea eax, [edi - 0x10]
mov dword [ebp - 8], eax
mov eax, ecx
shr eax, 8
mov dword [ebp - 0x1c], ecx
movzx ecx, al
mov eax, ebx
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x45db60]
xor ecx, dword [eax*4 + 0x45df60]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x45e360]
mov eax, dword [ebp + 8]
movzx eax, al
xor ecx, dword [eax*4 + 0x45d760]
xor ecx, dword [edi]
mov eax, dword [ebp - 0x1c]
shr eax, 0x10
mov dword [ebp - 0x18], ecx
movzx ecx, al
mov eax, dword [ebp + 8]
sar eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x45df60]
xor ecx, dword [eax*4 + 0x45db60]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x45e360]
movzx eax, dl
xor ecx, dword [eax*4 + 0x45d760]
mov eax, edx
xor ecx, dword [edi + 4]
shr eax, 8
mov dword [ebp - 4], ecx
movzx ecx, al
mov eax, dword [ebp + 8]
sar eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x45db60]
shr edx, 0x10
xor ecx, dword [eax*4 + 0x45df60]
mov eax, dword [ebp - 0x1c]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x45e360]
movzx eax, bl
shr ebx, 8
xor ecx, dword [eax*4 + 0x45d760]
xor ecx, dword [edi + 8]
mov dword [ebp - 0xc], ecx
movzx ecx, dl
movzx eax, bl
mov ecx, dword [ecx*4 + 0x45df60]
xor ecx, dword [eax*4 + 0x45db60]
mov eax, dword [ebp + 8]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x45e360]
mov eax, dword [ebp - 0x1c]
movzx eax, al
xor ecx, dword [eax*4 + 0x45d760]
xor ecx, dword [edi + 0xc]
mov dword [ebp + 8], ecx
sub dword [ebp - 0x14], 1
je 0x4023b3
lea eax, [edi - 0x10]
mov dword [ebp - 8], eax
nop dword [eax]
lea esi, [eax]
mov ebx, dword [ebp - 4]
mov eax, ecx
mov edx, dword [ebp - 0x18]
shr eax, 8
movzx ecx, al
mov eax, dword [ebp - 0xc]
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x45db60]
mov edi, dword [ebp - 8]
xor ecx, dword [eax*4 + 0x45df60]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x45e360]
movzx eax, dl
xor ecx, dword [eax*4 + 0x45d760]
mov eax, dword [ebp - 8]
xor ecx, dword [eax]
mov eax, dword [ebp + 8]
shr eax, 0x10
mov dword [ebp - 0x10], ecx
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x45df60]
xor ecx, dword [eax*4 + 0x45db60]
mov eax, dword [ebp - 0xc]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x45e360]
movzx eax, bl
xor ecx, dword [eax*4 + 0x45d760]
mov eax, ebx
xor ecx, dword [edi + 4]
shr eax, 8
mov dword [ebp - 0x1c], ecx
movzx ecx, al
mov eax, edx
shr eax, 0x10
movzx eax, al
mov ebx, dword [ecx*4 + 0x45db60]
mov ecx, dword [ebp - 0xc]
xor ebx, dword [eax*4 + 0x45df60]
mov eax, dword [ebp + 8]
shr eax, 0x18
xor ebx, dword [eax*4 + 0x45e360]
movzx eax, cl
shr ecx, 8
movzx ecx, cl
xor ebx, dword [eax*4 + 0x45d760]
mov eax, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x45db60]
shr eax, 0x10
xor ebx, dword [edi + 8]
movzx eax, al
xor edx, dword [eax*4 + 0x45df60]
mov eax, dword [ebp - 0x18]
shr eax, 0x18
xor edx, dword [eax*4 + 0x45e360]
mov eax, dword [ebp + 8]
movzx eax, al
xor edx, dword [eax*4 + 0x45d760]
mov eax, ebx
xor edx, dword [edi + 0xc]
sub edi, 0x20
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov dword [ebp - 8], edi
mov ecx, dword [ecx*4 + 0x45df60]
xor ecx, dword [eax*4 + 0x45db60]
mov eax, dword [ebp - 0x1c]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x45e360]
mov eax, dword [ebp - 0x10]
movzx eax, al
xor ecx, dword [eax*4 + 0x45d760]
xor ecx, dword [esi - 0x10]
mov dword [ebp - 0x18], ecx
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, dword [ebp - 0x10]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x45df60]
xor ecx, dword [eax*4 + 0x45db60]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x45e360]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 4]
movzx eax, cl
xor edi, dword [eax*4 + 0x45d760]
mov eax, ecx
shr eax, 8
movzx ecx, al
mov eax, dword [ebp - 0x10]
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x45db60]
xor edi, dword [esi - 0xc]
mov dword [ebp - 4], edi
xor ecx, dword [eax*4 + 0x45df60]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x45e360]
movzx eax, bl
shr ebx, 8
xor ecx, dword [eax*4 + 0x45d760]
xor ecx, dword [esi - 8]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
shr eax, 0x10
movzx eax, al
movzx ecx, bl
mov ecx, dword [ecx*4 + 0x45db60]
xor ecx, dword [eax*4 + 0x45df60]
mov eax, dword [ebp - 0x10]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x45e360]
movzx eax, dl
xor ecx, dword [eax*4 + 0x45d760]
xor ecx, dword [esi - 4]
sub dword [ebp - 0x14], 1
mov eax, dword [ebp - 8]
mov dword [ebp + 8], ecx
jne 0x4021b0
mov eax, dword [ebp - 0xc]
shr eax, 0x10
movzx eax, al
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 8]
movzx ecx, byte [eax + 0x45c660]
mov eax, ebx
shr eax, 0x18
mov edi, dword [ebp - 0x20]
movzx eax, byte [eax + 0x45c660]
shl eax, 8
or ecx, eax
mov eax, dword [ebp + 8]
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x45c660]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + 0x45c660]
or ecx, eax
mov eax, dword [ebp - 0x20]
xor ecx, dword [esi]
mov dword [eax], ecx
mov eax, dword [ebp + 8]
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + 0x45c660]
mov eax, dword [ebp - 0xc]
shr eax, 0x18
movzx eax, byte [eax + 0x45c660]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x45c660]
or ecx, eax
movzx eax, bl
shl ecx, 8
movzx eax, byte [eax + 0x45c660]
or ecx, eax
mov eax, dword [ebp + 8]
xor ecx, dword [esi + 4]
shr eax, 0x18
mov dword [edi + 4], ecx
movzx ecx, byte [eax + 0x45c660]
mov eax, edx
shr eax, 0x10
movzx eax, al
shl ecx, 8
shr edx, 0x18
movzx eax, byte [eax + 0x45c660]
or ecx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl ecx, 8
shr ebx, 0x10
movzx eax, byte [eax + 0x45c660]
or ecx, eax
mov eax, dword [ebp - 0xc]
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x45c660]
or ecx, eax
movzx eax, bl
xor ecx, dword [esi + 8]
mov dword [edi + 8], ecx
movzx ecx, byte [eax + 0x45c660]
movzx eax, byte [edx + 0x45c660]
shl eax, 8
or ecx, eax
mov eax, dword [ebp - 0xc]
shl ecx, 8
shr eax, 8
movzx eax, al
movzx eax, byte [eax + 0x45c660]
or ecx, eax
mov eax, dword [ebp + 8]
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x45c660]
or ecx, eax
xor ecx, dword [esi + 0xc]
mov dword [edi + 0xc], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4