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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x10], 1
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x40], ebx
mov eax, dword [edi + 0x10]
xor eax, dword [edx]
mov dword [ebx], eax
mov ecx, dword [edx + 4]
xor ecx, dword [edi + 0x14]
mov dword [ebp - 0x3c], eax
mov dword [ebx + 4], ecx
mov eax, dword [edx + 8]
xor eax, dword [edi + 0x18]
mov dword [ebx + 8], eax
mov edx, dword [edx + 0xc]
xor edx, dword [edi + 0x1c]
mov dword [ebp - 0xc], edx
mov dword [ebx + 0xc], edx
shr edx, 0x18
mov dword [ebp - 0x2c], edx
mov edx, eax
shr edx, 0x10
mov dword [ebp - 0x28], edx
mov edx, ecx
mov dword [ebp - 8], eax
shr dword [ebp - 8], 8
mov dword [ebp - 0x14], eax
shr eax, 0x18
shr edx, 8
mov dword [ebp - 0x24], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
mov edx, dword [ebp - 0x3c]
mov esi, edx
shr esi, 0x18
shr eax, 0x10
mov dword [ebp - 0x34], esi
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x38], eax
mov eax, edx
mov dword [ebp - 4], esi
shr dword [ebp - 4], 0x10
mov dword [ebp - 0x1c], ecx
shr dword [ebp - 0x1c], 0x18
mov dword [ebp - 0x18], edx
shr dword [ebp - 0x18], 0x10
shr esi, 8
shr eax, 8
cmp dword [edi + 0xc], 1
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x3c], eax
jle 0x401206
lea esi, [edi + 0x24]
nop dword [eax]
movzx eax, byte [ebx + 5]
movzx ecx, byte [ebx + 0xf]
mov edx, dword [eax*4 + 0x439c28]
xor edx, dword [ecx*4 + 0x439828]
movzx eax, byte [ebx]
movzx ecx, byte [ebx + 0xe]
xor edx, dword [eax*4 + 0x4376e0]
movzx eax, byte [ebx + 0xa]
xor edx, dword [eax*4 + 0x438c00]
movzx eax, byte [ebx + 3]
xor edx, dword [esi - 4]
mov eax, dword [eax*4 + 0x439828]
xor eax, dword [ecx*4 + 0x438c00]
mov dword [ebp - 0x24], eax
movzx eax, byte [ebx + 9]
mov ecx, dword [ebp - 0x24]
xor ecx, dword [eax*4 + 0x439c28]
movzx eax, byte [ebx + 4]
xor ecx, dword [eax*4 + 0x4376e0]
xor ecx, dword [esi]
movzx eax, byte [ebx + 8]
mov dword [ebp - 0x24], ecx
movzx ecx, byte [ebx + 7]
mov eax, dword [eax*4 + 0x4376e0]
xor eax, dword [ecx*4 + 0x439828]
mov dword [ebp - 0x14], eax
movzx eax, byte [ebx + 2]
mov ecx, dword [ebp - 0x14]
xor ecx, dword [eax*4 + 0x438c00]
movzx eax, byte [ebx + 0xd]
xor ecx, dword [eax*4 + 0x439c28]
xor ecx, dword [esi + 4]
movzx eax, byte [ebx + 1]
mov dword [ebp - 0x14], ecx
movzx ecx, byte [ebx + 0xb]
mov eax, dword [eax*4 + 0x439c28]
xor eax, dword [ecx*4 + 0x439828]
mov dword [ebp - 0xc], eax
movzx eax, byte [ebx + 6]
mov ecx, dword [ebp - 0xc]
xor ecx, dword [eax*4 + 0x438c00]
movzx eax, byte [ebx + 0xc]
xor ecx, dword [eax*4 + 0x4376e0]
mov eax, edx
xor ecx, dword [esi + 8]
shr eax, 8
mov dword [ebp - 0x3c], eax
mov eax, edx
shr eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, edx
shr eax, 0x18
mov dword [ebp - 0x34], eax
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x24]
mov eax, ecx
shr eax, 0x10
mov dword [ebp - 0x38], eax
mov eax, ecx
shr eax, 0x18
mov dword [ebp - 0x1c], eax
mov eax, ecx
shr eax, 8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
shr dword [ebp - 0x24], 0x18
mov dword [ebp - 8], eax
shr dword [ebp - 8], 8
mov dword [ebx + 8], eax
shr eax, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
shr dword [ebp - 0x20], 8
mov dword [ebp - 4], eax
shr dword [ebp - 4], 0x10
mov dword [ebx + 0xc], eax
mov dword [ebx], edx
mov dword [ebx + 4], ecx
shr eax, 0x18
mov dword [ebp - 0x2c], eax
lea esi, [esi + 0x10]
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, dword [edi + 0xc]
jl 0x4010b0
jmp 0x40120b
mov eax, 1
shl eax, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x28]
movzx eax, al
mov ebx, dword [ebp - 0x10]
movzx edi, byte [eax + 0x437ae0]
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax + 0x437ae0]
shl eax, 8
or edi, eax
mov eax, dword [ebp - 0x30]
movzx eax, al
shl edi, 8
movzx eax, byte [eax + 0x437ae0]
or edi, eax
movzx eax, dl
mov edx, dword [ebp - 0x10]
shl edi, 8
movzx eax, byte [eax + 0x437ae0]
or edi, eax
mov eax, dword [ebp + 8]
xor edi, dword [edx + eax + 0x10]
mov eax, dword [ebp - 4]
movzx eax, al
movzx esi, byte [eax + 0x437ae0]
mov eax, dword [ebp - 0x34]
movzx eax, byte [eax + 0x437ae0]
shl eax, 8
or esi, eax
mov eax, dword [ebp - 8]
movzx eax, al
shl esi, 8
movzx eax, byte [eax + 0x437ae0]
or esi, eax
movzx eax, cl
mov ecx, dword [ebp + 8]
shl esi, 8
movzx eax, byte [eax + 0x437ae0]
or esi, eax
mov eax, dword [ebp - 0x18]
xor esi, dword [edx + ecx + 0x14]
movzx eax, al
movzx edx, byte [eax + 0x437ae0]
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax + 0x437ae0]
shl eax, 8
or edx, eax
mov eax, dword [ebp - 0x20]
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x437ae0]
or edx, eax
mov eax, dword [ebp - 0x14]
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x437ae0]
or edx, eax
mov eax, dword [ebp - 0x10]
xor edx, dword [eax + ecx + 0x18]
mov eax, dword [ebp - 0x38]
movzx eax, al
movzx ecx, byte [eax + 0x437ae0]
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax + 0x437ae0]
shl eax, 8
or ecx, eax
mov eax, dword [ebp - 0x3c]
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x437ae0]
or ecx, eax
mov eax, dword [ebp - 0xc]
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x437ae0]
or ecx, eax
mov eax, dword [ebp + 8]
xor ecx, dword [ebx + eax + 0x1c]
mov ebx, dword [ebp - 0x40]
mov dword [ebx], edi
mov dword [ebx + 4], esi
pop edi
pop esi
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], ecx
pop ebx
mov esp, ebp
pop ebp
ret