Function at 0x401fd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x5d0014]
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 0x402030
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.00401cb0
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 0x402100
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 + 0x5d2a98]
xor eax, dword [edx*4 + 0x5d2e98]
mov ecx, dword [edi*4 + 0x5d1e70]
xor ecx, eax
mov eax, dword [ebx*4 + 0x5d1a70]
xor eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [ecx - 0x20], eax
mov eax, dword [esi*4 + 0x5d1a70]
xor eax, dword [edx*4 + 0x5d2a98]
mov ecx, dword [edi*4 + 0x5d2e98]
xor ecx, eax
mov eax, dword [ebx*4 + 0x5d1e70]
xor eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [ecx - 0x10], eax
mov eax, dword [esi*4 + 0x5d1e70]
xor eax, dword [edx*4 + 0x5d1a70]
mov ecx, dword [edi*4 + 0x5d2a98]
xor ecx, eax
mov eax, dword [ebx*4 + 0x5d2e98]
xor eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov eax, dword [esi*4 + 0x5d2e98]
xor eax, dword [edx*4 + 0x5d1e70]
mov ecx, dword [edi*4 + 0x5d1a70]
xor ecx, eax
mov eax, dword [ebx*4 + 0x5d2a98]
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 0x402150
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 0x402083
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.00401cb0
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 0x4022a0
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00404a2c
mov esp, ebp
pop ebp
ret