Function at 0x402c90
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x68
mov eax, dword [0x426010]
xor eax, esp
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
movups xmm0, xmmword [eax]
mov edi, ecx
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], esi
movups xmmword [esp + 0x50], xmm0
push dword [edi]
push dword [edi + 4]
push eax
call fcn.00402b90
mov eax, dword [edi]
add eax, 0x4000
push eax
mov eax, dword [edi + 4]
add eax, 0x10
push eax
lea eax, [esp + 0x58]
push eax
call fcn.00402b90
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x48], eax
add eax, 0x20
mov dword [esp + 0x44], ecx
lea esi, [ecx + 0x8000]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], 0xe
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ecx
nop dword [eax]
mov eax, dword [esp + 0x50]
lea esi, [esi + 0x4000]
shr eax, 8
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x54]
shr eax, 8
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x50]
shr eax, 0x10
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x54]
shr eax, 0x10
mov dword [esp + 0x3c], eax
mov eax, edx
shr eax, 8
shr ecx, 8
mov dword [esp + 0x40], ecx
movzx ecx, al
mov eax, dword [esp + 0x10]
shr eax, 0x10
movzx eax, al
mov ecx, dword [esi + ecx*4 - 0xc00]
mov edi, dword [esp + 0x50]
shr edi, 0x18
xor ecx, dword [esi + eax*4 - 0x1800]
mov eax, dword [esp + 0x54]
shr eax, 0x18
xor ecx, dword [esi + eax*4 - 0x2400]
mov eax, dword [esp + 0x50]
movzx eax, al
xor ecx, dword [esi + eax*4 - 0x4000]
mov eax, dword [esp + 0xc]
xor ecx, dword [eax]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x10]
shr ecx, 0x18
mov edx, dword [esi + eax*4 - 0x800]
mov eax, dword [esp + 0x54]
movzx eax, al
xor edx, dword [esi + ecx*4 - 0x1400]
xor edx, dword [esi + eax*4 - 0x3000]
mov eax, dword [esp + 0x30]
movzx eax, al
xor edx, dword [esi + eax*4 - 0x3c00]
mov eax, dword [esp + 0xc]
xor edx, dword [eax + 4]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x1c]
mov ecx, edx
movzx eax, al
shr ecx, 0x18
mov ecx, dword [esi + ecx*4 - 0x400]
xor ecx, dword [esi + eax*4 - 0x2000]
mov eax, dword [esp + 0x34]
movzx eax, al
xor ecx, dword [esi + eax*4 - 0x3800]
mov eax, dword [esp + 0x38]
movzx eax, al
xor ecx, dword [esi + eax*4 - 0x2c00]
mov eax, dword [esp + 0xc]
xor ecx, dword [eax + 8]
movzx eax, dl
mov dword [esp + 0x10], ecx
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x3c]
mov edx, dword [esi + eax*4 - 0x1000]
mov eax, dword [esp + 0x40]
movzx ecx, cl
movzx eax, al
xor edx, dword [esi + ecx*4 - 0x2800]
xor edx, dword [esi + eax*4 - 0x1c00]
mov eax, dword [esp + 0xc]
xor edx, dword [esi + edi*4 - 0x3400]
xor edx, dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], edx
mov dword [esp + 0x5c], edx
sub dword [esp + 0x20], 1
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], eax
jne 0x402d20
mov eax, dword [esp + 0x44]
add eax, 0x40000
push eax
mov eax, dword [esp + 0x4c]
add eax, 0x100
push eax
lea eax, [esp + 0x58]
push eax
call fcn.00402b90
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x28]
movups xmm0, xmmword [esp + 0x50]
lea eax, [esp + 0x30]
mov dword [esp + 0x28], 0x10
sub eax, ecx
mov dword [esp + 0x2c], 0x10
sar eax, 2
push 0
movups xmmword [esi], xmm0
lea eax, [ecx + eax*4]
push eax
push ecx
call fcn.00403150
mov edi, dword [esp + 0x24]
add edi, 8
mov edx, dword [eax]
add edx, esi
cmp esi, edx
je 0x402efa
mov ecx, edi
sub ecx, esi
nop dword [eax + eax]
mov al, byte [esi + ecx]
xor byte [esi], al
inc esi
cmp esi, edx
jne 0x402ef0
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x6c]
movups xmm0, xmmword [eax]
movups xmmword [edi], xmm0
pop edi
pop esi
xor ecx, esp
call fcn.00403159
mov esp, ebp
pop ebp
ret 8