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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov ecx, dword [esi + 0x1c]
lea eax, [ecx + 2]
shl eax, 4
shl ecx, 4
mov edx, dword [esi + eax]
mov eax, dword [ebp + 8]
mov edi, dword [esi + ecx + 0x24]
add ecx, esi
xor edi, dword [eax + 4]
xor edx, dword [eax]
mov ebx, dword [ecx + 0x2c]
xor ebx, dword [eax + 0xc]
mov dword [ebp - 0xc], edi
mov edi, dword [ecx + 0x28]
mov dword [ebp - 0x10], edx
xor edi, dword [eax + 8]
mov dword [ebp - 4], ebx
movzx eax, byte [ebp - 9]
mov dword [ebp - 8], edi
movzx edi, byte [ebp - 6]
mov ecx, dword [eax*4 + 0x4f2114]
xor ecx, dword [edi*4 + 0x4f1d14]
movzx edi, byte [ebp - 5]
movzx eax, bh
movzx ebx, byte [ebp - 2]
xor ecx, dword [eax*4 + 0x4f1914]
mov edi, dword [edi*4 + 0x4f2114]
xor edi, dword [ebx*4 + 0x4f1d14]
movzx eax, dl
movzx edx, dh
xor ecx, dword [eax*4 + 0x4f1514]
mov eax, dword [ebp + 0xc]
xor edi, dword [edx*4 + 0x4f1914]
movzx edx, byte [ebp - 0xc]
mov dword [eax], ecx
xor edi, dword [edx*4 + 0x4f1514]
movzx edx, byte [ebp - 1]
mov dword [eax + 4], edi
movzx edi, byte [ebp - 0xe]
mov edx, dword [edx*4 + 0x4f2114]
xor edx, dword [edi*4 + 0x4f1d14]
movzx edi, byte [ebp - 0xb]
xor edx, dword [edi*4 + 0x4f1914]
movzx edi, byte [ebp - 8]
xor edx, dword [edi*4 + 0x4f1514]
movzx edi, byte [ebp - 0xa]
mov dword [eax + 8], edx
movzx edx, byte [ebp - 0xd]
mov edx, dword [edx*4 + 0x4f2114]
xor edx, dword [edi*4 + 0x4f1d14]
movzx edi, byte [ebp - 7]
xor edx, dword [edi*4 + 0x4f1914]
movzx edi, byte [ebp - 4]
xor edx, dword [edi*4 + 0x4f1514]
mov dword [eax + 0xc], edx
mov edx, dword [esi + 0x1c]
dec edx
cmp edx, 1
jle 0x4144cc
mov edi, edx
shl edi, 4
dec edx
lea edi, [esi + edi + 0x24]
mov dword [ebp + 0x10], edx
mov edx, dword [edi - 4]
xor edx, ecx
mov ecx, dword [eax + 4]
xor ecx, dword [edi]
mov dword [ebp - 0x10], edx
movzx edx, dl
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + 4]
xor ecx, dword [eax + 8]
sub edi, 0x10
mov dword [ebp - 8], ecx
mov ecx, dword [edi + 0x18]
xor ecx, dword [eax + 0xc]
movzx ebx, byte [ebp - 6]
mov dword [ebp - 4], ecx
movzx ecx, byte [ebp - 9]
mov ecx, dword [ecx*4 + 0x4f2114]
xor ecx, dword [ebx*4 + 0x4f1d14]
movzx ebx, byte [ebp - 3]
xor ecx, dword [ebx*4 + 0x4f1914]
movzx ebx, byte [ebp - 2]
xor ecx, dword [edx*4 + 0x4f1514]
movzx edx, byte [ebp - 5]
mov dword [eax], ecx
mov edx, dword [edx*4 + 0x4f2114]
xor edx, dword [ebx*4 + 0x4f1d14]
movzx ebx, byte [ebp - 0xf]
xor edx, dword [ebx*4 + 0x4f1914]
movzx ebx, byte [ebp - 0xc]
xor edx, dword [ebx*4 + 0x4f1514]
movzx ebx, byte [ebp - 0xe]
mov dword [eax + 4], edx
movzx edx, byte [ebp - 1]
mov edx, dword [edx*4 + 0x4f2114]
xor edx, dword [ebx*4 + 0x4f1d14]
movzx ebx, byte [ebp - 0xb]
xor edx, dword [ebx*4 + 0x4f1914]
movzx ebx, byte [ebp - 8]
xor edx, dword [ebx*4 + 0x4f1514]
movzx ebx, byte [ebp - 0xa]
mov dword [eax + 8], edx
movzx edx, byte [ebp - 0xd]
mov edx, dword [edx*4 + 0x4f2114]
xor edx, dword [ebx*4 + 0x4f1d14]
movzx ebx, byte [ebp - 7]
xor edx, dword [ebx*4 + 0x4f1914]
movzx ebx, byte [ebp - 4]
xor edx, dword [ebx*4 + 0x4f1514]
dec dword [ebp + 0x10]
mov dword [eax + 0xc], edx
jne 0x4143e4
mov edi, dword [esi + 0x38]
mov edx, dword [esi + 0x30]
xor edi, dword [eax + 8]
xor edx, ecx
mov ecx, dword [esi + 0x34]
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], edi
mov edi, dword [esi + 0x3c]
xor edi, dword [eax + 0xc]
xor ecx, dword [eax + 4]
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], ecx
movzx edi, dl
movzx edx, dh
mov bl, byte [edi + 0x4f2514]
movzx edi, byte [ebp - 3]
mov byte [eax], bl
mov dl, byte [edx + 0x4f2514]
mov bl, byte [edi + 0x4f2514]
mov byte [eax + 5], dl
movzx edi, byte [ebp - 6]
mov byte [eax + 1], bl
mov bl, byte [edi + 0x4f2514]
movzx edi, byte [ebp - 9]
mov byte [eax + 2], bl
mov bl, byte [edi + 0x4f2514]
movzx edi, cl
movzx ecx, ch
movzx edx, byte [ebp - 2]
mov cl, byte [ecx + 0x4f2514]
mov byte [eax + 3], bl
mov byte [eax + 9], cl
mov dl, byte [edx + 0x4f2514]
movzx ecx, byte [ebp - 0xe]
mov byte [eax + 6], dl
mov bl, byte [edi + 0x4f2514]
mov cl, byte [ecx + 0x4f2514]
mov byte [eax + 4], bl
mov byte [eax + 0xa], cl
pop edi
movzx ecx, byte [ebp - 1]
movzx edx, byte [ebp - 5]
mov cl, byte [ecx + 0x4f2514]
mov byte [eax + 0xb], cl
mov dl, byte [edx + 0x4f2514]
movzx ecx, byte [ebp - 4]
mov byte [eax + 7], dl
mov cl, byte [ecx + 0x4f2514]
mov byte [eax + 0xc], cl
movzx ecx, byte [ebp - 7]
movzx edx, byte [ebp - 8]
mov cl, byte [ecx + 0x4f2514]
mov byte [eax + 0xd], cl
mov dl, byte [edx + 0x4f2514]
movzx ecx, byte [ebp - 0xa]
mov byte [eax + 8], dl
mov cl, byte [ecx + 0x4f2514]
mov byte [eax + 0xe], cl
movzx ecx, byte [ebp - 0xd]
mov cl, byte [ecx + 0x4f2514]
mov byte [eax + 0xf], cl
mov ecx, dword [esi + 0x20]
xor dword [eax], ecx
mov ecx, dword [esi + 0x24]
xor dword [eax + 4], ecx
mov ecx, dword [esi + 0x28]
xor dword [eax + 8], ecx
mov ecx, dword [esi + 0x2c]
xor dword [eax + 0xc], ecx
pop esi
pop ebx
leave
ret