Function at 0x4314d2
Capabilities:
Encode data using xor
Encrypt data using aes
Hash data with crc32

Disassembly:
mov eax, 0x4d2678
call fcn.004cc800
sub esp, 0x120
push ebx
push esi
xor ebx, ebx
cmp dword [ebp + 8], ebx
push edi
mov esi, ecx
je 0x4314f3
cmp dword [ebp + 0xc], ebx
ja 0x4314fa
xor eax, eax
jmp 0x431759
xor eax, eax
mov byte [ebp - 0x34], bl
lea edi, [ebp - 0x33]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x10
push dword [ebp + 0x10]
stosb byte es:[edi], al
lea eax, [ebp - 0x34]
push 0x10
push eax
call fcn.0049b888
push 0xec
lea eax, [ebp - 0x128]
push ebx
push eax
mov dword [ebp - 0x12c], ebx
call fcn.0049c4d0
xor eax, eax
add esp, 0x1c
cmp esi, ebx
lea edi, [ebp - 0x3c]
stosd dword es:[edi], eax
je 0x4316ed
push 8
push dword [esi]
mov dword [ebp - 0x3c], 0xa
call fcn.0049fbb5
push 8
push dword [esi]
mov dword [ebp - 0x14], eax
mov ebx, 0xff00ff00
and dword [ebp - 0x14], ebx
call fcn.0049fbc3
mov edi, 0xff00ff
and eax, edi
or eax, dword [ebp - 0x14]
push 8
push dword [esi + 4]
mov dword [ebp - 0x12c], eax
call fcn.0049fbb5
push 8
push dword [esi + 4]
mov dword [ebp - 0x14], eax
and dword [ebp - 0x14], ebx
call fcn.0049fbc3
and eax, edi
or eax, dword [ebp - 0x14]
push 8
push dword [esi + 8]
mov dword [ebp - 0x128], eax
call fcn.0049fbb5
push 8
push dword [esi + 8]
mov dword [ebp - 0x14], eax
and dword [ebp - 0x14], ebx
call fcn.0049fbc3
and eax, edi
or eax, dword [ebp - 0x14]
push 8
push dword [esi + 0xc]
mov dword [ebp - 0x124], eax
call fcn.0049fbb5
push 8
push dword [esi + 0xc]
mov dword [ebp - 0x14], eax
and dword [ebp - 0x14], ebx
call fcn.0049fbc3
and eax, edi
or eax, dword [ebp - 0x14]
mov esi, 0xff
mov dword [ebp - 0x120], eax
movzx ecx, byte [ebp - 0x11e]
mov ecx, dword [ecx*4 + 0x4e18b8]
xor ecx, 0x1000000
movzx edx, ah
mov edx, dword [edx*4 + 0x4e1cb8]
and edx, 0xff0000
and ecx, 0xff000000
xor ecx, edx
mov edx, eax
shr edx, 0x18
movzx edx, byte [edx*4 + 0x4e14b8]
xor ecx, edx
mov edx, eax
and edx, esi
mov edx, dword [edx*4 + 0x4e10b8]
mov edi, 0xff00
and edx, edi
xor ecx, edx
xor ecx, dword [ebp - 0x12c]
add esp, 0x40
mov dword [ebp - 0x11c], ecx
xor ecx, dword [ebp - 0x128]
mov dword [ebp - 0x14], 0x4e31bc
mov dword [ebp - 0x118], ecx
xor ecx, dword [ebp - 0x124]
mov dword [ebp - 0x114], ecx
xor ecx, eax
mov dword [ebp - 0x110], ecx
lea eax, [ebp - 0x128]
mov edx, dword [eax + 0x18]
add eax, 0x10
mov ebx, edx
movzx ecx, dh
mov ecx, dword [ecx*4 + 0x4e1cb8]
shr ebx, 0x10
and ebx, esi
mov ebx, dword [ebx*4 + 0x4e18b8]
and ecx, 0xff0000
and ebx, 0xff000000
xor ecx, ebx
mov ebx, edx
and edx, esi
mov edx, dword [edx*4 + 0x4e10b8]
shr ebx, 0x18
movzx ebx, byte [ebx*4 + 0x4e14b8]
and edx, edi
xor ecx, ebx
xor ecx, edx
xor ecx, dword [eax - 4]
mov edx, dword [ebp - 0x14]
xor ecx, dword [edx]
add dword [ebp - 0x14], 4
mov dword [eax + 0xc], ecx
mov edx, dword [eax]
xor edx, ecx
mov dword [eax + 0x10], edx
mov ecx, dword [eax + 4]
xor ecx, edx
mov dword [eax + 0x14], ecx
mov edx, dword [eax + 8]
xor edx, ecx
cmp dword [ebp - 0x14], 0x4e31e0
mov dword [eax + 0x18], edx
jne 0x431674
xor ebx, ebx
mov edi, dword [ebp + 0xc]
mov eax, edi
imul eax, eax, 0xa
push eax
lea eax, [ebp - 0x24]
call fcn.00431768
push edi
push ebx
push ebx
lea esi, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.004681c9
push eax
call fcn.0049c4d0
add esp, 0xc
push ebx
mov dword [ebp - 0x14], ebx
call fcn.004681c9
push dword [ebp + 0x14]
mov ecx, eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x12c]
push eax
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x34]
call fcn.00432a1c
add esp, 0x14
push edi
push ebx
call fcn.004681c9
push eax
push edi
push dword [ebp + 8]
call fcn.0049b888
add esp, 0x10
call fcn.00467eef
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret