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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea esi, [edx + 0x20]
mov edi, edx
shr edi, 2
mov ebx, eax
sub esp, 0x6c
mov dword [ebp - 0x5c], ecx
lea ecx, [ebp - 0x38]
mov dword [esp], esi
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x3c], edi
call fcn.0057f5b0
lea ecx, [ebp - 0x28]
sub esp, 4
mov dword [esp], esi
call fcn.0057f5b0
mov ecx, dword [ebp - 0x38]
lea eax, [edi*4 + 0x1c]
sub esp, 4
test edi, edi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x54], ecx
je 0x492fdf
xor eax, eax
mov esi, edi
mov edx, dword [ebx + eax*4]
bswap edx
mov dword [ecx + eax*4], edx
add eax, 1
cmp esi, eax
jne 0x492fc0
mov eax, esi
mov dword [ebp - 0x3c], esi
mov esi, dword [ebp - 0x4c]
cmp eax, esi
jae 0x493100
mov eax, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x54]
mov ecx, 0x1000000
lea edi, [eax - 0x1c]
mov eax, esi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x50], edi
add esi, edi
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 0x48], edi
lea esi, [esi]
mov eax, dword [esi - 4]
mov edi, dword [ebp - 0x40]
movzx edx, al
xor ecx, dword [edi]
movzx ebx, byte [edx + 0x68a020]
mov edx, eax
shr edx, 0x18
movzx edx, byte [edx + 0x68a020]
shl ebx, 8
or ebx, edx
mov edx, eax
movzx eax, ah
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + 0x68a020]
shl edx, 0x18
or edx, ebx
movzx ebx, byte [eax + 0x68a020]
mov eax, dword [ebp - 0x3c]
shl ebx, 0x10
or edx, ebx
xor edx, ecx
cmp eax, 1
mov dword [esi], edx
je 0x4930d1
cmp eax, 8
mov edx, 1
sete byte [ebp - 0x41]
jmp 0x4930b4
cmp byte [ebp - 0x41], 0
je 0x4930c2
mov ebx, dword [esi + 0xc]
add edx, 1
mov eax, ebx
shr eax, 0x18
movzx edi, byte [eax + 0x68a020]
movzx eax, bl
movzx eax, byte [eax + 0x68a020]
shl edi, 0x18
or edi, eax
mov eax, ebx
movzx ebx, bh
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x68a020]
shl eax, 0x10
or eax, edi
movzx edi, byte [ebx + 0x68a020]
shl edi, 8
or eax, edi
xor ecx, eax
cmp dword [ebp - 0x3c], edx
mov dword [esi + 0x10], ecx
je 0x4930d1
mov eax, dword [ebp - 0x40]
cmp edx, 4
mov ecx, dword [eax + edx*4]
mov dword [esi + edx*4], ecx
je 0x493060
xor ecx, dword [esi + edx*4 - 4]
mov dword [esi + edx*4], ecx
add edx, 1
cmp dword [ebp - 0x3c], edx
jne 0x4930b4
mov edi, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x48]
add dword [ebp - 0x40], edx
mov ebx, edi
add esi, edx
add ebx, eax
cmp ebx, dword [ebp - 0x4c]
jae 0x493100
xor edx, edx
mov dword [ebp - 0x48], ebx
div edi
mov ecx, dword [eax*4 + 0x687ee0]
jmp 0x493000
mov eax, dword [ebp - 0x4c]
lea esi, [eax - 4]
test eax, eax
mov dword [ebp - 0x3c], esi
je 0x493154
mov esi, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x54]
mov edx, dword [ebp - 0x28]
lea ecx, [esi*4]
lea ebx, [esi*4]
lea eax, [edi + ecx]
lea ecx, [edi + ecx - 0x10]
sub ecx, ebx
lea esi, [esi]
mov ebx, dword [eax]
sub eax, 0x10
add edx, 0x10
mov dword [edx - 0x10], ebx
mov ebx, dword [eax + 0x14]
mov dword [edx - 0xc], ebx
mov ebx, dword [eax + 0x18]
mov dword [edx - 8], ebx
mov ebx, dword [eax + 0x1c]
mov dword [edx - 4], ebx
cmp ecx, eax
jne 0x493130
mov dword [ebp - 0x3c], esi
mov eax, dword [ebp - 0x58]
lea ebx, [eax + 0x18]
cmp ebx, 4
je 0x4931cb
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x58]
lea ecx, [eax + 0x10]
lea edi, [eax + esi*4 + 0x60]
mov esi, ebx
nop
mov ebx, dword [ecx]
add ecx, 4
mov edx, ebx
movzx eax, bl
shr edx, 0x18
movzx eax, byte [eax + 0x68a020]
movzx edx, byte [edx + 0x68a020]
mov eax, dword [eax*4 + 0x688b20]
xor eax, dword [edx*4 + 0x687f20]
mov edx, ebx
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + 0x68a020]
xor eax, dword [edx*4 + 0x688320]
mov edx, eax
movzx eax, bh
movzx eax, byte [eax + 0x68a020]
xor edx, dword [eax*4 + 0x688720]
mov dword [ecx - 4], edx
cmp ecx, edi
jne 0x493170
mov ebx, esi
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x54]
mov esi, dword [eax]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], edx
lea edi, [edx + eax*4]
xor eax, eax
mov edx, dword [edi + eax*4]
bswap edx
mov dword [esi + eax*4], edx
mov edx, dword [ebp - 0x3c]
mov edx, dword [edx + eax*4]
bswap edx
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, 4
jne 0x4931e3
mov esi, dword [ebp - 0x5c]
mov dword [esp], ebx
mov ecx, esi
call fcn.0057ec70
mov ecx, dword [ebp + 8]
sub esp, 4
mov dword [esp], ebx
call fcn.0057ec70
mov eax, dword [esi + 4]
sub esp, 4
mov dword [ebp - 0x3c], eax
shl eax, 2
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x3c], eax
shl eax, 2
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_memmove
lea ecx, [ebp - 0x28]
call fcn.0057ed30
lea ecx, [ebp - 0x38]
call fcn.0057ed30
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret