Function at 0x401ea0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x5aedcc]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [edx + 0xa0]
push ebx
mov ebx, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0xa4]
push esi
push edi
mov dword [esp + 0x28], eax
lea edi, [ebx + 0x20]
mov eax, dword [edx + 0xa8]
mov dword [esp + 0x10], ebx
mov ebx, edi
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 0xac]
mov dword [esp + 0x14], edi
xor edi, edi
mov dword [esp + 0x20], edx
mov dword [esp + 0x30], eax
mov eax, dword [esp + edi*4 + 0x24]
lea ebx, [ebx + 4]
mov ecx, eax
mov edx, eax
shr ecx, 0x18
mov esi, eax
xor dword [ebx - 0x24], ecx
inc edi
shl edx, 8
shl esi, 0x10
shr edx, 0x18
xor dword [ebx - 0x14], edx
shr esi, 0x18
xor dword [ebx - 4], esi
movzx ecx, al
xor dword [ebx + 0xc], ecx
cmp edi, 4
jl 0x401ef4
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x10]
add esi, 0x98
mov edi, dword [esp + 0x14]
mov dword [esp + 0x18], 9
mov dword [esp + 0x1c], esi
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
mov dword [ebx + 0x1c], ecx
mov ecx, dword [ebx + 0x14]
mov dword [ebx + 0x18], ecx
mov ecx, dword [ebx + 0x10]
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x10], eax
mov eax, dword [edi]
mov ecx, dword [ebx + 0x28]
mov dword [edi], ecx
mov ecx, dword [ebx + 0x2c]
mov dword [ebx + 0x28], eax
mov eax, dword [ebx + 0x24]
mov dword [ebx + 0x24], ecx
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x34]
mov dword [ebx + 0x30], ecx
mov ecx, dword [ebx + 0x38]
mov dword [ebx + 0x34], ecx
mov ecx, dword [ebx + 0x3c]
mov dword [ebx + 0x38], ecx
mov ecx, ebx
mov dword [ebx + 0x3c], eax
call fcn.00401b70
mov eax, dword [esi - 8]
xor ebx, ebx
mov dword [esp + 0x24], eax
mov eax, dword [esi - 4]
mov dword [esp + 0x28], eax
mov eax, dword [esi]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x30], eax
nop dword [eax]
mov eax, dword [esp + ebx*4 + 0x24]
lea edi, [edi + 4]
mov ecx, eax
mov edx, eax
shr ecx, 0x18
mov esi, eax
xor dword [edi - 0x24], ecx
inc ebx
shl edx, 8
shl esi, 0x10
shr edx, 0x18
xor dword [edi - 0x14], edx
shr esi, 0x18
xor dword [edi - 4], esi
movzx ecx, al
xor dword [edi + 0xc], ecx
cmp ebx, 4
jl 0x401fb0
mov edx, dword [esp + 0x10]
add edx, 0x20
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], edx
mov edi, dword [edx - 0x20]
mov ebx, dword [edx - 0x10]
mov esi, dword [edx]
mov edx, dword [edx + 0x10]
mov eax, dword [edi*4 + 0x5b0828]
xor eax, dword [ebx*4 + 0x5b0c28]
mov ecx, dword [esi*4 + 0x5afc00]
xor ecx, eax
mov eax, dword [edx*4 + 0x5af800]
xor eax, ecx
mov ecx, dword [esp + 0xc]
mov dword [ecx - 0x20], eax
mov eax, dword [edi*4 + 0x5af800]
xor eax, dword [ebx*4 + 0x5b0828]
mov ecx, dword [esi*4 + 0x5b0c28]
xor ecx, eax
mov eax, dword [edx*4 + 0x5afc00]
xor eax, ecx
mov ecx, dword [esp + 0xc]
mov dword [ecx - 0x10], eax
mov eax, dword [edi*4 + 0x5afc00]
xor eax, dword [ebx*4 + 0x5af800]
mov ecx, dword [esi*4 + 0x5b0828]
xor ecx, eax
mov eax, dword [edx*4 + 0x5b0c28]
xor eax, ecx
mov ecx, dword [esp + 0xc]
mov dword [ecx], eax
mov eax, dword [edi*4 + 0x5b0c28]
xor eax, dword [ebx*4 + 0x5afc00]
mov ecx, dword [esi*4 + 0x5af800]
xor ecx, eax
mov eax, dword [edx*4 + 0x5b0828]
mov edx, dword [esp + 0xc]
xor eax, ecx
mov dword [edx + 0x10], eax
add edx, 4
sub dword [esp + 0x14], 1
mov dword [esp + 0xc], edx
jne 0x401ff4
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
dec eax
mov ebx, dword [esp + 0x10]
sub esi, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
lea edi, [ebx + 0x20]
test eax, eax
jg 0x401f43
mov esi, ebx
lea ebx, [esi + 0x20]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x18], ecx
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], eax
mov eax, dword [ebx]
mov ecx, dword [esi + 0x28]
mov dword [ebx], ecx
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x24]
mov dword [esi + 0x24], ecx
mov ecx, esi
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
mov dword [esi + 0x30], edx
mov edx, dword [esi + 0x38]
mov dword [esi + 0x34], edx
mov edx, dword [esi + 0x3c]
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], eax
call fcn.00401b70
mov ecx, dword [esp + 0x20]
xor edi, edi
mov eax, dword [ecx]
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x30], eax
mov eax, dword [esp + edi*4 + 0x24]
lea ebx, [ebx + 4]
mov ecx, eax
mov edx, eax
shr ecx, 0x18
mov esi, eax
xor dword [ebx - 0x24], ecx
inc edi
shl edx, 8
shl esi, 0x10
shr edx, 0x18
xor dword [ebx - 0x14], edx
shr esi, 0x18
xor dword [ebx - 4], esi
movzx ecx, al
xor dword [ebx + 0xc], ecx
cmp edi, 4
jl 0x402142
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00537f32
mov esp, ebp
pop ebp
ret