Function at 0x401e90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x5abdcc]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [edx + 0xa0]
push ebx
mov dword [esp + 0x24], eax
mov eax, dword [edx + 0xa4]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x30], eax
mov eax, dword [edx + 0xa8]
xor ecx, ecx
mov dword [esp + 0x34], eax
mov eax, dword [edx + 0xac]
mov dword [esp + 0x38], eax
lea eax, [edi + 0x20]
mov dword [esp + 0x18], edi
mov edi, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], eax
nop dword [eax + eax]
mov ebx, dword [esp + ecx*4 + 0x2c]
lea edi, [edi + 4]
mov ecx, ebx
mov edx, ebx
shr ecx, 0x18
mov esi, ebx
xor dword [edi - 0x24], ecx
movzx ecx, bl
xor dword [edi + 0xc], ecx
mov ecx, dword [esp + 0x10]
shl edx, 8
inc ecx
shl esi, 0x10
shr edx, 0x18
xor dword [edi - 0x14], edx
shr esi, 0x18
xor dword [edi - 4], esi
mov dword [esp + 0x10], ecx
cmp ecx, 4
jl 0x401ef0
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
add esi, 0x98
mov dword [esp + 0x20], 9
mov dword [esp + 0x24], esi
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
mov dword [edi + 0x1c], ecx
mov ecx, dword [edi + 0x14]
mov dword [edi + 0x18], ecx
mov ecx, dword [edi + 0x10]
mov dword [edi + 0x14], ecx
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x28]
mov dword [edi + 0x20], ecx
mov ecx, dword [edi + 0x2c]
mov dword [edi + 0x28], eax
mov eax, dword [edi + 0x24]
mov dword [edi + 0x24], ecx
mov dword [edi + 0x2c], eax
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x34]
mov dword [edi + 0x30], ecx
mov ecx, dword [edi + 0x38]
mov dword [edi + 0x34], ecx
mov ecx, dword [edi + 0x3c]
mov dword [edi + 0x38], ecx
mov ecx, edi
mov dword [edi + 0x3c], eax
call fcn.00401b70
mov eax, dword [esi - 8]
mov dword [esp + 0x2c], eax
mov eax, dword [esi - 4]
mov dword [esp + 0x30], eax
mov eax, dword [esi]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x38], eax
xor eax, eax
mov dword [esp + 0x10], eax
add edi, 0x20
nop word [eax + eax]
mov ebx, dword [esp + eax*4 + 0x2c]
lea edi, [edi + 4]
mov eax, dword [esp + 0x10]
mov ecx, ebx
shr ecx, 0x18
mov edx, ebx
xor dword [edi - 0x24], ecx
mov esi, ebx
shl edx, 8
inc eax
shl esi, 0x10
shr edx, 0x18
xor dword [edi - 0x14], edx
shr esi, 0x18
xor dword [edi - 4], esi
movzx ecx, bl
xor dword [edi + 0xc], ecx
mov dword [esp + 0x10], eax
cmp eax, 4
jl 0x401fc0
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], 4
nop dword [eax]
mov esi, dword [ecx - 0x20]
mov edx, dword [ecx - 0x10]
mov ebx, dword [ecx + 0x10]
mov edi, dword [ecx]
mov eax, dword [esi*4 + 0x5ad718]
xor eax, dword [edx*4 + 0x5adb18]
mov ecx, dword [edi*4 + 0x5acaf0]
xor ecx, eax
mov eax, dword [ebx*4 + 0x5ac6f0]
xor eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [ecx - 0x20], eax
mov eax, dword [esi*4 + 0x5ac6f0]
xor eax, dword [edx*4 + 0x5ad718]
mov ecx, dword [edi*4 + 0x5adb18]
xor ecx, eax
mov eax, dword [ebx*4 + 0x5acaf0]
xor eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [ecx - 0x10], eax
mov eax, dword [esi*4 + 0x5acaf0]
xor eax, dword [edx*4 + 0x5ac6f0]
mov ecx, dword [edi*4 + 0x5ad718]
xor ecx, eax
mov eax, dword [ebx*4 + 0x5adb18]
xor eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov eax, dword [esi*4 + 0x5adb18]
xor eax, dword [edx*4 + 0x5acaf0]
mov ecx, dword [edi*4 + 0x5ac6f0]
xor ecx, eax
mov eax, dword [ebx*4 + 0x5ad718]
xor eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x10], eax
add ecx, 4
sub dword [esp + 0x1c], 1
mov dword [esp + 0x10], ecx
jne 0x402010
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
dec eax
mov edi, dword [esp + 0x18]
sub esi, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], esi
test eax, eax
jg 0x401f43
mov esi, edi
lea edi, [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 [edi]
mov ecx, dword [esi + 0x28]
mov dword [edi], 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 + 0x14]
mov eax, dword [ecx]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x38], eax
xor eax, eax
mov dword [esp + 0x14], eax
nop
mov ebx, dword [esp + eax*4 + 0x2c]
lea edi, [edi + 4]
movzx eax, bl
mov edx, ebx
xor dword [edi + 0xc], eax
mov esi, ebx
mov eax, dword [esp + 0x14]
mov ecx, ebx
shl edx, 8
inc eax
shl esi, 0x10
shr ecx, 0x18
xor dword [edi - 0x24], ecx
shr edx, 0x18
xor dword [edi - 0x14], edx
shr esi, 0x18
xor dword [edi - 4], esi
mov dword [esp + 0x14], eax
cmp eax, 4
jl 0x402160
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0053757c
mov esp, ebp
pop ebp
ret