Function at 0x417f20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, ecx
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
shl ecx, 5
mov edx, dword [eax + ecx + 0x1c]
xor edx, dword [ebx + 0xc]
lea eax, [eax + ecx + 0x10]
mov ecx, dword [eax + 8]
xor ecx, dword [ebx + 8]
push esi
mov esi, dword [eax + 4]
xor esi, dword [ebx + 4]
push edi
mov edi, dword [eax]
xor edi, dword [ebx]
mov dword [ebp - 0x1c], edx
mov ebx, ecx
shr ebx, 0x10
and ebx, 0xff
shr edx, 8
and edx, 0xff
mov edx, dword [edx*4 + 0x431a58]
xor edx, dword [ebx*4 + 0x431e58]
mov dword [ebp - 0x28], edi
mov ebx, esi
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x432258]
mov ebx, edi
and ebx, 0xff
xor edx, dword [ebx*4 + 0x431658]
mov ebx, dword [ebp - 0x1c]
shr edi, 8
shr ebx, 0x10
and edi, 0xff
and ebx, 0xff
mov dword [ebp - 8], edi
mov edi, dword [ebx*4 + 0x431e58]
mov ebx, dword [ebp - 8]
xor edi, dword [ebx*4 + 0x431a58]
mov ebx, ecx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x432258]
mov ebx, esi
and ebx, 0xff
xor edi, dword [ebx*4 + 0x431658]
mov ebx, dword [ebp - 0x28]
xor edi, dword [eax - 0xc]
sub eax, 0x20
mov dword [ebp - 0x14], edi
mov edi, esi
shr edi, 8
and edi, 0xff
mov edi, dword [edi*4 + 0x431a58]
shr ebx, 0x10
xor edx, dword [eax + 0x10]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x431e58]
mov ebx, dword [ebp - 0x1c]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x432258]
mov ebx, ecx
shr ecx, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x431a58]
shr esi, 0x10
and esi, 0xff
xor ecx, dword [esi*4 + 0x431e58]
mov esi, dword [ebp - 0x28]
shr esi, 0x18
xor ecx, dword [esi*4 + 0x432258]
mov esi, dword [ebp - 0x1c]
and esi, 0xff
xor ecx, dword [esi*4 + 0x431658]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x431658]
xor ecx, dword [eax + 0x1c]
xor edi, dword [eax + 0x18]
dec dword [ebp - 4]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0xc], ecx
je 0x4182a2
mov ebx, edi
shr ebx, 0x10
and ebx, 0xff
mov esi, ecx
shr esi, 8
and esi, 0xff
mov esi, dword [esi*4 + 0x431a58]
xor esi, dword [ebx*4 + 0x431e58]
mov ebx, dword [ebp - 0x14]
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x432258]
mov ebx, edx
and ebx, 0xff
xor esi, dword [ebx*4 + 0x431658]
mov ebx, edx
shr ebx, 8
and ebx, 0xff
shr ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x431e58]
xor ecx, dword [ebx*4 + 0x431a58]
mov ebx, edi
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x432258]
mov ebx, dword [ebp - 0x14]
and ebx, 0xff
xor ecx, dword [ebx*4 + 0x431658]
mov ebx, dword [ebp - 0x14]
shr ebx, 8
and ebx, 0xff
shr edx, 0x10
and edx, 0xff
mov dword [ebp - 8], edx
mov edx, dword [ebx*4 + 0x431a58]
mov ebx, dword [ebp - 8]
xor edx, dword [ebx*4 + 0x431e58]
mov ebx, dword [ebp - 0xc]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x432258]
mov ebx, edi
and ebx, 0xff
xor edx, dword [ebx*4 + 0x431658]
mov ebx, dword [ebp - 0x14]
shr edi, 8
xor edx, dword [eax + 8]
and edi, 0xff
mov edi, dword [edi*4 + 0x431a58]
shr ebx, 0x10
and ebx, 0xff
xor edi, dword [ebx*4 + 0x431e58]
mov ebx, dword [ebp - 0x18]
xor ecx, dword [eax + 4]
xor esi, dword [eax]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x432258]
mov ebx, dword [ebp - 0xc]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x431658]
mov ebx, edx
xor edi, dword [eax + 0xc]
shr ebx, 0x10
mov dword [ebp - 0x1c], edi
shr edi, 8
and edi, 0xff
mov edi, dword [edi*4 + 0x431a58]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x431e58]
mov ebx, ecx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x432258]
mov ebx, esi
and ebx, 0xff
xor edi, dword [ebx*4 + 0x431658]
sub eax, 0x20
xor edi, dword [eax + 0x10]
mov ebx, esi
mov dword [ebp - 0x18], edi
mov edi, dword [ebp - 0x1c]
shr edi, 0x10
and edi, 0xff
shr ebx, 8
mov edi, dword [edi*4 + 0x431e58]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x431a58]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x432258]
mov ebx, ecx
and ebx, 0xff
xor edi, dword [ebx*4 + 0x431658]
mov ebx, esi
xor edi, dword [eax + 0x14]
shr ebx, 0x10
mov dword [ebp - 0x14], edi
mov edi, ecx
shr edi, 8
and edi, 0xff
mov edi, dword [edi*4 + 0x431a58]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x431e58]
mov ebx, dword [ebp - 0x1c]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x432258]
mov ebx, edx
shr edx, 8
and edx, 0xff
mov edx, dword [edx*4 + 0x431a58]
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x431e58]
mov ecx, dword [ebp - 0x1c]
shr esi, 0x18
xor edx, dword [esi*4 + 0x432258]
and ecx, 0xff
xor edx, dword [ecx*4 + 0x431658]
and ebx, 0xff
xor edx, dword [eax + 0x1c]
xor edi, dword [ebx*4 + 0x431658]
mov ecx, edx
xor edi, dword [eax + 0x18]
dec dword [ebp - 4]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0xc], ecx
jne 0x418074
mov ebx, dword [ebp - 0x14]
shr ebx, 0x18
movzx ebx, byte [ebx + 0x431558]
shl ebx, 8
mov esi, edi
shr esi, 0x10
and esi, 0xff
movzx esi, byte [esi + 0x431558]
or esi, ebx
shl esi, 8
mov ebx, ecx
shr ebx, 8
and ebx, 0xff
movzx ebx, byte [ebx + 0x431558]
or esi, ebx
shl esi, 8
mov ebx, edx
and ebx, 0xff
movzx ebx, byte [ebx + 0x431558]
or esi, ebx
xor esi, dword [eax]
mov ebx, dword [ebp + 8]
mov dword [ebx], esi
mov ebx, edi
shr ebx, 0x18
movzx ebx, byte [ebx + 0x431558]
shl ebx, 8
mov esi, ecx
shr esi, 0x10
and esi, 0xff
movzx esi, byte [esi + 0x431558]
or esi, ebx
shl esi, 8
mov ebx, edx
shr ebx, 8
and ebx, 0xff
movzx ebx, byte [ebx + 0x431558]
or esi, ebx
mov ebx, dword [ebp - 0x14]
shl esi, 8
and ebx, 0xff
movzx ebx, byte [ebx + 0x431558]
or esi, ebx
xor esi, dword [eax + 4]
mov ebx, dword [ebp + 8]
mov dword [ebx + 4], esi
mov esi, edx
shr esi, 0x10
and esi, 0xff
movzx esi, byte [esi + 0x431558]
mov ebx, ecx
shr ebx, 0x18
movzx ebx, byte [ebx + 0x431558]
shl ebx, 8
or esi, ebx
mov ebx, dword [ebp - 0x14]
shr ebx, 8
shl esi, 8
and ebx, 0xff
movzx ebx, byte [ebx + 0x431558]
or esi, ebx
shl esi, 8
mov ebx, edi
and ebx, 0xff
movzx ebx, byte [ebx + 0x431558]
or esi, ebx
xor esi, dword [eax + 8]
mov ebx, dword [ebp + 8]
mov dword [ebx + 8], esi
mov esi, dword [ebp - 0x14]
shr esi, 0x10
shr edx, 0x18
movzx edx, byte [edx + 0x431558]
and esi, 0xff
movzx esi, byte [esi + 0x431558]
shl edx, 8
or esi, edx
shr edi, 8
shl esi, 8
and edi, 0xff
movzx edx, byte [edi + 0x431558]
or esi, edx
and ecx, 0xff
movzx ecx, byte [ecx + 0x431558]
shl esi, 8
or esi, ecx
xor esi, dword [eax + 0xc]
pop edi
mov dword [ebx + 0xc], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret