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

Disassembly:
push 0xffffffffffffffff
push 0x4e5998
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53450c]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x50]
shr esi, 2
lea eax, [esi + 6]
lea ecx, [esp + 0x1c]
mov dword [edi + 0x14], eax
call fcn.00486f30
xor ebx, ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], ebx
call fcn.00486f30
xor ecx, ecx
cmp esi, ebx
je 0x495cea
mov edx, dword [esp + 0x4c]
jmp 0x495cd0
mov eax, dword [edx + ecx*4]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x4c]
bswap eax
mov ebp, dword [esp + 0x1c]
mov dword [ebp + ecx*4], eax
inc ecx
cmp ecx, esi
jne 0x495cd0
mov ecx, dword [edi + 0x14]
lea edx, [ecx*4 + 4]
mov ebp, esi
mov dword [esp + 0x18], ebp
cmp esi, edx
jae 0x495e51
mov dword [esp + 0x4c], ebx
lea ecx, [esi*4 - 0x10]
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x1c]
mov eax, dword [ecx + eax + 0xc]
rol eax, 8
mov edx, eax
shr edx, 0x18
movzx ebx, byte [edx + 0x4faea8]
mov edx, eax
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + 0x4faea8]
shl ebx, 8
or ebx, edx
mov edx, eax
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + 0x4faea8]
shl ebx, 8
or ebx, edx
movzx eax, al
movzx edx, byte [eax + 0x4faea8]
mov eax, dword [esp + 0x4c]
shl ebx, 8
or ebx, edx
xor edx, edx
div esi
mov edx, dword [esp + 0x14]
xor ebx, dword [eax*4 + 0x4f8ecc]
mov eax, dword [esp + 0x1c]
xor ebx, dword [edx + eax]
mov dword [ecx + eax + 0x10], ebx
mov eax, 1
cmp esi, eax
je 0x495e26
lea ebx, [ebx]
cmp esi, 8
jne 0x495dfc
cmp eax, 4
jne 0x495dfc
mov edx, dword [esp + 0x1c]
mov edx, dword [ecx + edx + 0x1c]
mov ebx, edx
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + 0x4faea8]
shr ebx, 0x18
movzx ebx, byte [ebx + 0x4faea8]
shl ebx, 8
or ebx, edx
mov edx, dword [esp + 0x1c]
mov edx, dword [ecx + edx + 0x1c]
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + 0x4faea8]
shl ebx, 8
or ebx, edx
mov edx, dword [esp + 0x1c]
movzx edx, byte [ecx + edx + 0x1c]
movzx edx, byte [edx + 0x4faea8]
shl ebx, 8
or ebx, edx
mov edx, dword [esp + 0x1c]
xor ebx, dword [ecx + edx]
mov dword [ecx + edx + 0x20], ebx
jmp 0x495e1d
mov ebx, dword [esp + 0x1c]
lea edx, [eax + ebp]
lea edx, [ebx + edx*4]
mov ebx, eax
sub ebx, esi
add ebx, ebp
mov ebp, dword [esp + 0x1c]
mov ebx, dword [ebp + ebx*4]
xor ebx, dword [edx - 4]
mov ebp, dword [esp + 0x18]
mov dword [edx], ebx
inc eax
cmp eax, esi
jne 0x495d90
add dword [esp + 0x4c], esi
lea eax, [esi*4]
add dword [esp + 0x14], eax
add ecx, eax
mov eax, dword [edi + 0x14]
add ebp, esi
lea edx, [eax*4 + 4]
mov dword [esp + 0x18], ebp
cmp ebp, edx
jb 0x495d11
xor ebx, ebx
mov ecx, dword [edi + 0x14]
lea edx, [ecx*4 + 4]
xor eax, eax
test edx, edx
je 0x495ed4
mov ecx, dword [edi + 0x14]
mov edx, dword [esp + 0x1c]
add ecx, ecx
add ecx, ecx
sub ecx, eax
mov ecx, dword [edx + ecx*4]
mov edx, dword [esp + 0x2c]
mov dword [edx + eax*4], ecx
mov ecx, dword [edi + 0x14]
mov edx, dword [esp + 0x1c]
add ecx, ecx
add ecx, ecx
sub ecx, eax
mov ecx, dword [edx + ecx*4 + 4]
mov edx, dword [esp + 0x2c]
mov dword [edx + eax*4 + 4], ecx
mov ecx, dword [edi + 0x14]
mov edx, dword [esp + 0x1c]
add ecx, ecx
add ecx, ecx
sub ecx, eax
mov ecx, dword [edx + ecx*4 + 8]
mov edx, dword [esp + 0x2c]
mov dword [edx + eax*4 + 8], ecx
mov ecx, dword [edi + 0x14]
mov edx, dword [esp + 0x1c]
add ecx, ecx
add ecx, ecx
sub ecx, eax
mov ecx, dword [edx + ecx*4 + 0xc]
mov edx, dword [esp + 0x2c]
mov dword [edx + eax*4 + 0xc], ecx
mov ecx, dword [edi + 0x14]
add eax, 4
lea edx, [ecx*4 + 4]
cmp eax, edx
jne 0x495e61
mov ebp, dword [esp + 0x50]
mov eax, 4
add ebp, 0x18
cmp ebp, eax
je 0x495f43
mov esi, dword [esp + 0x2c]
mov ecx, dword [esi + eax*4]
mov ebx, ecx
mov edx, ecx
shr edx, 0x18
movzx edx, byte [edx + 0x4faea8]
mov edx, dword [edx*4 + 0x4fc0a8]
shr ebx, 0x10
shr ecx, 8
movzx ebx, bl
movzx ebx, byte [ebx + 0x4faea8]
xor edx, dword [ebx*4 + 0x4fc4a8]
movzx ecx, cl
movzx ecx, byte [ecx + 0x4faea8]
xor edx, dword [ecx*4 + 0x4fc8a8]
movzx ecx, byte [esi + eax*4]
movzx ecx, byte [ecx + 0x4faea8]
xor edx, dword [ecx*4 + 0x4fcca8]
inc eax
mov dword [esi + eax*4 - 4], edx
cmp eax, ebp
jne 0x495ee4
xor ecx, ecx
mov eax, dword [edi + 0x14]
mov esi, dword [esp + 0x1c]
mov edx, dword [edi + 0x28]
lea eax, [ecx + eax*4]
mov eax, dword [esi + eax*4]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x50]
bswap eax
mov dword [edx + ecx*4], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + ecx*4]
mov edx, dword [edi + 0x48]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x50]
bswap eax
mov dword [edx + ecx*4], eax
inc ecx
cmp ecx, 4
jne 0x495f45
mov ecx, dword [edi + 0x1c]
cmp ebp, ecx
ja 0x495f88
mov ecx, ebp
mov edx, dword [esp + 0x1c]
mov eax, dword [edi + 0x18]
add ecx, ecx
add ecx, ecx
push ecx
push edx
push eax
call fcn.0045e5f0
mov eax, dword [edi + 0x3c]
add esp, 0xc
cmp ebp, eax
ja 0x495fa7
mov eax, ebp
mov ecx, dword [esp + 0x2c]
mov edi, dword [edi + 0x38]
add eax, eax
add eax, eax
push eax
push ecx
push edi
call fcn.0045e5f0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
add eax, eax
add esp, 0xc
add eax, eax
push eax
mov eax, dword [esp + 0x30]
push eax
call edx
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add edx, edx
add edx, edx
push edx
mov edx, dword [esp + 0x20]
push edx
mov dword [esp + 0x4c], 0xffffffff
call eax
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 8