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

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
mov esi, edx
shr edi, 2
push ebx
add esi, 0x20
mov ebx, eax
sub esp, 0x6c
mov dword [ebp - 0x68], ecx
lea ecx, [ebp - 0x38]
mov dword [esp], esi
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x48], edi
call fcn.00588dc0
lea ecx, [ebp - 0x28]
sub esp, 4
mov dword [esp], esi
call fcn.00588dc0
mov eax, dword [ebp - 0x38]
sub esp, 4
mov dword [ebp - 0x58], eax
mov eax, edi
lea edi, [edi*4 + 0x1c]
mov dword [ebp - 0x54], edi
sub edi, 4
mov dword [ebp - 0x64], edi
test eax, eax
je 0x4905f4
mov eax, ebx
mov ebx, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x58]
sub ebx, 0x1c
mov dword [ebp - 0x5c], ebx
add ebx, eax
lea esi, [esi]
mov edx, dword [eax]
add eax, 4
add ecx, 4
bswap edx
mov dword [ecx - 4], edx
cmp ebx, eax
jne 0x490310
mov ebx, dword [ebp - 0x54]
cmp dword [ebp - 0x48], ebx
jae 0x490460
mov ebx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x58]
xor ecx, ecx
mov esi, 0x1000000
lea eax, [eax + ebx - 0x18]
mov ebx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov eax, ebx
mov dword [ebp - 0x50], ebx
neg eax
shl eax, 2
mov dword [ebp - 0x40], eax
mov edi, dword [ebp - 0x4c]
mov eax, dword [edi - 8]
movzx edx, al
movzx ebx, byte [edx + 0x6b2ee0]
mov edx, eax
shr edx, 0x18
movzx edx, byte [edx + 0x6b2ee0]
shl ebx, 8
or ebx, edx
mov edx, eax
movzx eax, ah
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + 0x6b2ee0]
shl edx, 0x18
or edx, ebx
movzx ebx, byte [eax + 0x6b2ee0]
mov eax, dword [ebp - 0x58]
shl ebx, 0x10
xor esi, dword [eax + ecx*4]
or edx, ebx
xor edx, esi
cmp dword [ebp - 0x48], 1
mov dword [edi - 4], edx
je 0x490435
cmp dword [ebp - 0x48], 8
mov ebx, 1
mov eax, edi
sete byte [ebp - 0x41]
mov dword [ebp - 0x3c], ebx
jmp 0x49040c
mov esi, dword [eax - 4]
mov edx, esi
mov ebx, esi
shr edx, 0x18
movzx edi, byte [edx + 0x6b2ee0]
mov edx, esi
movzx edx, dl
movzx edx, byte [edx + 0x6b2ee0]
shl edi, 0x18
or edi, edx
mov edx, esi
movzx esi, bh
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + 0x6b2ee0]
shl edx, 0x10
or edx, edi
movzx edi, byte [esi + 0x6b2ee0]
shl edi, 8
or edx, edi
xor ecx, edx
mov dword [eax], ecx
add eax, 4
mov edi, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x40]
cmp edi, 4
mov ecx, dword [eax + esi]
sete dl
add edi, 1
mov dword [eax], ecx
mov dword [ebp - 0x3c], edi
test byte [ebp - 0x41], dl
jne 0x4903c0
xor ecx, dword [eax - 4]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x3c]
cmp dword [ebp - 0x48], ecx
jne 0x490409
mov eax, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x48]
mov edi, dword [ebp - 0x5c]
add dword [ebp - 0x4c], edi
mov ecx, eax
add eax, ebx
mov dword [ebp - 0x50], eax
cmp eax, dword [ebp - 0x54]
jae 0x490470
mov eax, ecx
xor edx, edx
div dword [ebp - 0x48]
mov esi, dword [eax*4 + 0x6b0da0]
jmp 0x490351
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x4904b2
mov esi, esi
lea edi, [edi]
mov edi, dword [ebp - 0x64]
mov esi, dword [ebp - 0x58]
mov edx, dword [ebp - 0x28]
lea ecx, [edi*4]
lea ebx, [edi*4]
lea eax, [esi + ecx]
sub ecx, 0x10
sub ecx, ebx
add ecx, 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 eax, ecx
jne 0x490491
mov eax, dword [ebp - 0x60]
lea edi, [eax + 0x18]
cmp edi, 4
je 0x490529
mov ebx, eax
mov eax, dword [ebp - 0x28]
lea ecx, [eax + 0x10]
lea esi, [eax + ebx*4 + 0x60]
lea esi, [esi]
mov ebx, dword [ecx]
add ecx, 4
mov edx, ebx
movzx eax, bl
shr edx, 0x18
movzx eax, byte [eax + 0x6b2ee0]
movzx edx, byte [edx + 0x6b2ee0]
mov eax, dword [eax*4 + 0x6b19e0]
xor eax, dword [edx*4 + 0x6b0de0]
mov edx, ebx
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + 0x6b2ee0]
xor eax, dword [edx*4 + 0x6b11e0]
mov edx, eax
movzx eax, bh
movzx eax, byte [eax + 0x6b2ee0]
xor edx, dword [eax*4 + 0x6b15e0]
mov dword [ecx - 4], edx
cmp ecx, esi
jne 0x4904d0
mov esi, dword [ebp - 0x58]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x64]
mov edx, dword [eax]
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + ebx*4]
mov ebx, dword [ebp - 0x54]
mov eax, dword [eax]
bswap ecx
mov dword [edx], ecx
mov ecx, dword [esi]
bswap ecx
mov dword [eax], ecx
mov ecx, dword [esi + ebx*4 - 0xc]
bswap ecx
mov dword [edx + 4], ecx
mov ecx, dword [esi + 4]
bswap ecx
mov dword [eax + 4], ecx
mov ecx, dword [esi + ebx*4 - 8]
bswap ecx
mov dword [edx + 8], ecx
mov ecx, dword [esi + 8]
bswap ecx
mov dword [eax + 8], ecx
mov ecx, dword [esi + ebx*4 - 4]
mov ebx, dword [ebp - 0x68]
bswap ecx
mov dword [edx + 0xc], ecx
mov edx, dword [esi + 0xc]
mov ecx, ebx
bswap edx
mov dword [eax + 0xc], edx
mov dword [esp], edi
call fcn.00588350
sub esp, 4
mov ecx, dword [ebp + 8]
mov dword [esp], edi
call fcn.00588350
mov eax, dword [ebx + 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 [ebx]
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.00588420
lea ecx, [ebp - 0x38]
call fcn.00588420
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x54]
sub eax, 0x1c
mov dword [ebp - 0x5c], eax
jmp 0x49032d