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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, 0x80
je 0x2703e272
sub eax, 0x40
je 0x2703e26a
sub eax, 0x40
je 0x2703e262
push 0xffffffffffffffe0
pop eax
pop ebp
ret
mov dword [edx], 0xe
jmp 0x2703e278
mov dword [edx], 0xc
jmp 0x2703e278
mov dword [edx], 0xa
mov ecx, dword [ebp + 0xc]
push ebx
push esi
shr ecx, 5
lea eax, [edx + 8]
xor esi, esi
push edi
mov dword [edx + 4], eax
mov dword [ebp + 0xc], ecx
test ecx, ecx
jbe 0x2703e2c0
mov ecx, dword [ebp + 8]
add ecx, 2
movzx edi, byte [ecx + 1]
movzx ebx, byte [ecx]
shl edi, 8
or edi, ebx
movzx ebx, byte [ecx - 1]
shl edi, 8
or edi, ebx
movzx ebx, byte [ecx - 2]
shl edi, 8
or edi, ebx
mov dword [eax + esi*4], edi
inc esi
add ecx, 4
cmp esi, dword [ebp + 0xc]
jb 0x2703e296
mov edx, dword [edx]
sub edx, 0xa
je 0x2703e433
dec edx
dec edx
je 0x2703e3b1
dec edx
dec edx
jne 0x2703e4a3
and dword [ebp + 0xc], edx
mov esi, 0xff
mov ecx, dword [eax + 0x1c]
movzx edx, byte [eax + 0x1f]
movzx edx, byte [edx + str.cw]
and ecx, esi
movzx ecx, byte [ecx + str.cw]
shl ecx, 8
xor ecx, edx
movzx edx, byte [eax + 0x1e]
movzx edx, byte [edx + str.cw]
shl ecx, 8
xor ecx, edx
movzx edx, byte [eax + 0x1d]
movzx edx, byte [edx + str.cw]
shl ecx, 8
xor ecx, edx
mov edx, dword [ebp + 0xc]
xor ecx, dword [edx + 0x2709f0e0]
mov edx, dword [eax + 4]
xor ecx, dword [eax]
lea edi, [eax + 0x20]
xor edx, ecx
mov dword [edi], ecx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x24], edx
mov edx, dword [eax + 0xc]
xor edx, ecx
mov dword [eax + 0x2c], edx
movzx ecx, byte [eax + 0x2f]
movzx ecx, byte [ecx + str.cw]
movzx ebx, byte [eax + 0x2e]
movzx ebx, byte [ebx + str.cw]
shl ecx, 8
xor ecx, ebx
movzx ebx, byte [eax + 0x2d]
movzx ebx, byte [ebx + str.cw]
add dword [ebp + 0xc], 4
shl ecx, 8
xor ecx, ebx
and edx, esi
movzx edx, byte [edx + str.cw]
shl ecx, 8
xor ecx, edx
xor ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
xor edx, ecx
mov dword [eax + 0x30], ecx
mov ecx, dword [eax + 0x18]
xor ecx, edx
mov dword [eax + 0x38], ecx
xor ecx, dword [eax + 0x1c]
cmp dword [ebp + 0xc], 0x1c
mov dword [eax + 0x34], edx
mov dword [eax + 0x3c], ecx
mov eax, edi
jb 0x2703e2e3
jmp 0x2703e4a3
xor ebx, ebx
mov esi, 0xff
mov ecx, dword [eax + 0x14]
movzx edx, byte [eax + 0x17]
movzx edx, byte [edx + str.cw]
and ecx, esi
movzx ecx, byte [ecx + str.cw]
shl ecx, 8
xor ecx, edx
movzx edx, byte [eax + 0x16]
movzx edx, byte [edx + str.cw]
shl ecx, 8
xor ecx, edx
movzx edx, byte [eax + 0x15]
movzx edx, byte [edx + str.cw]
shl ecx, 8
xor ecx, edx
xor ecx, dword [ebx + 0x2709f0e0]
mov edx, dword [eax + 4]
xor ecx, dword [eax]
lea edi, [eax + 0x18]
xor edx, ecx
mov dword [edi], ecx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x1c], edx
mov edx, dword [eax + 0xc]
xor edx, ecx
mov dword [eax + 0x20], ecx
mov ecx, dword [eax + 0x10]
xor ecx, edx
mov dword [eax + 0x28], ecx
xor ecx, dword [eax + 0x14]
add ebx, 4
mov dword [eax + 0x24], edx
mov dword [eax + 0x2c], ecx
mov eax, edi
cmp ebx, 0x20
jb 0x2703e3b8
jmp 0x2703e4a3
xor ebx, ebx
mov esi, 0xff
mov ecx, dword [eax + 0xc]
movzx edx, byte [eax + 0xf]
movzx edx, byte [edx + str.cw]
and ecx, esi
movzx ecx, byte [ecx + str.cw]
shl ecx, 8
xor ecx, edx
movzx edx, byte [eax + 0xe]
movzx edx, byte [edx + str.cw]
shl ecx, 8
xor ecx, edx
movzx edx, byte [eax + 0xd]
movzx edx, byte [edx + str.cw]
shl ecx, 8
xor ecx, edx
xor ecx, dword [ebx + 0x2709f0e0]
mov edx, dword [eax + 4]
xor ecx, dword [eax]
lea edi, [eax + 0x10]
xor edx, ecx
mov dword [edi], ecx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x18], ecx
xor ecx, dword [eax + 0xc]
add ebx, 4
mov dword [eax + 0x14], edx
mov dword [eax + 0x1c], ecx
mov eax, edi
cmp ebx, 0x28
jb 0x2703e43a
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret