Function at 0x401350
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov eax, dword [esi + 0xc]
add eax, 0x10
add eax, eax
mov eax, dword [esi + eax*8]
xor eax, dword [edx]
mov dword [ebx], eax
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0xc]
add eax, eax
mov ecx, dword [esi + eax*8 + 0x104]
xor ecx, dword [edx + 4]
mov dword [ebx + 4], ecx
mov eax, dword [esi + 0xc]
add eax, eax
mov eax, dword [esi + eax*8 + 0x108]
xor eax, dword [edx + 8]
mov dword [ebx + 8], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0xc]
add eax, eax
mov eax, dword [esi + eax*8 + 0x10c]
xor eax, dword [edx + 0xc]
mov dword [ebp - 4], eax
mov dword [ebx + 0xc], eax
mov eax, ecx
mov edi, dword [esi + 0xc]
mov esi, dword [ebp - 4]
dec edi
shr eax, 0x18
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xc]
mov edx, eax
shr edx, 0x10
shr esi, 0x18
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], edx
shr dword [ebp - 0x10], 8
shr edx, 0x10
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x38]
mov esi, edx
shr esi, 0x10
mov dword [ebp - 0x2c], esi
mov esi, ecx
shr esi, 8
mov dword [ebp - 0x30], esi
mov esi, edx
shr esi, 0x18
mov dword [ebp - 0x38], esi
mov esi, ecx
mov dword [ebp - 8], eax
shr dword [ebp - 8], 0x18
shr esi, 0x10
mov dword [ebp - 0x18], edx
shr dword [ebp - 0x18], 8
shr eax, 8
mov dword [ebp - 0x34], esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x20], eax
test edi, edi
jle 0x401580
mov eax, edi
add esi, 0x104
shl eax, 4
add esi, eax
nop dword [eax + eax]
movzx eax, byte [ebx + 0xd]
movzx ecx, byte [ebx]
mov edx, dword [eax*4 + 0x439000]
xor edx, dword [ecx*4 + 0x4372e0]
movzx eax, byte [ebx + 0xa]
movzx ecx, byte [ebx + 4]
xor edx, dword [eax*4 + 0x437fe0]
movzx eax, byte [ebx + 7]
xor edx, dword [eax*4 + 0x4383e0]
movzx eax, byte [ebx + 0xe]
xor edx, dword [esi - 4]
mov eax, dword [eax*4 + 0x437fe0]
xor eax, dword [ecx*4 + 0x4372e0]
mov dword [ebp - 0x20], eax
movzx eax, byte [ebx + 0xb]
mov ecx, dword [ebp - 0x20]
xor ecx, dword [eax*4 + 0x4383e0]
movzx eax, byte [ebx + 1]
xor ecx, dword [eax*4 + 0x439000]
xor ecx, dword [esi]
movzx eax, byte [ebx + 0xf]
mov dword [ebp - 0x20], ecx
movzx ecx, byte [ebx + 5]
mov eax, dword [eax*4 + 0x4383e0]
xor eax, dword [ecx*4 + 0x439000]
mov dword [ebp - 0xc], eax
movzx eax, byte [ebx + 8]
mov ecx, dword [ebp - 0xc]
xor ecx, dword [eax*4 + 0x4372e0]
movzx eax, byte [ebx + 2]
xor ecx, dword [eax*4 + 0x437fe0]
xor ecx, dword [esi + 4]
movzx eax, byte [ebx + 3]
mov dword [ebp - 0xc], ecx
movzx ecx, byte [ebx + 9]
mov eax, dword [eax*4 + 0x4383e0]
xor eax, dword [ecx*4 + 0x439000]
mov dword [ebp - 4], eax
movzx eax, byte [ebx + 6]
mov ecx, dword [ebp - 4]
xor ecx, dword [eax*4 + 0x437fe0]
movzx eax, byte [ebx + 0xc]
xor ecx, dword [eax*4 + 0x4372e0]
mov eax, edx
xor ecx, dword [esi + 8]
shr eax, 0x18
mov dword [ebp - 0x38], eax
mov eax, edx
shr eax, 0x10
mov dword [ebp - 0x2c], eax
mov eax, edx
shr eax, 8
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x20]
mov eax, ecx
shr eax, 0x10
mov dword [ebp - 0x34], eax
mov eax, ecx
shr eax, 8
mov dword [ebp - 0x30], eax
mov eax, ecx
shr eax, 0x18
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
shr dword [ebp - 0x20], 8
mov dword [ebp - 8], eax
shr dword [ebp - 8], 0x18
mov dword [ebx + 8], eax
shr eax, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
shr dword [ebp - 0x1c], 0x18
mov dword [ebp - 0x14], eax
shr dword [ebp - 0x14], 0x10
mov dword [ebx + 0xc], eax
mov dword [ebx], edx
mov dword [ebx + 4], ecx
shr eax, 8
dec edi
mov dword [ebp - 0x10], eax
lea esi, [esi - 0x10]
test edi, edi
jg 0x401430
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x24]
movzx eax, al
movzx edi, byte [eax + 0x436de0]
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax + 0x436de0]
shl eax, 8
or edi, eax
mov eax, dword [ebp - 0x10]
movzx eax, al
shl edi, 8
movzx eax, byte [eax + 0x436de0]
or edi, eax
movzx eax, dl
shl edi, 8
movzx eax, byte [eax + 0x436de0]
or edi, eax
mov eax, dword [ebp - 0x14]
xor edi, dword [esi + 0x100]
movzx eax, al
movzx esi, byte [eax + 0x436de0]
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x436de0]
shl eax, 8
or esi, eax
mov eax, dword [ebp - 0x18]
movzx eax, al
shl esi, 8
movzx eax, byte [eax + 0x436de0]
or esi, eax
movzx eax, cl
shl esi, 8
mov ecx, dword [ebp + 8]
movzx eax, byte [eax + 0x436de0]
or esi, eax
mov eax, dword [ebp - 0x2c]
movzx eax, al
xor esi, dword [ecx + 0x104]
movzx edx, byte [eax + 0x436de0]
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax + 0x436de0]
shl eax, 8
or edx, eax
mov eax, dword [ebp - 0x30]
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x436de0]
or edx, eax
mov eax, dword [ebp - 0xc]
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x436de0]
or edx, eax
mov eax, dword [ebp - 0x34]
xor edx, dword [ecx + 0x108]
movzx eax, al
movzx ecx, byte [eax + 0x436de0]
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax + 0x436de0]
shl eax, 8
or ecx, eax
mov eax, dword [ebp - 0x20]
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x436de0]
or ecx, eax
mov eax, dword [ebp - 4]
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x436de0]
or ecx, eax
mov eax, dword [ebp + 8]
xor ecx, dword [eax + 0x10c]
mov dword [ebx], edi
pop edi
mov dword [ebx + 4], esi
pop esi
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], ecx
pop ebx
mov esp, ebp
pop ebp
ret