Function at 0x494dc0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x3c]
movzx ecx, byte [eax + 4]
test ecx, ecx
jne 0x494def
push 0x61112c
lea ecx, [ebp - 0x34]
call fcn.00570489
push 0x6066d4
lea edx, [ebp - 0x34]
push edx
call fcn.0057042c
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 0x3cc], 0x10
jne 0x494e10
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x3c]
call fcn.00494460
jmp 0x495178
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x3cc]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jne 0x494e34
mov dword [ebp - 0x40], 0
jmp 0x494e43
xor ecx, ecx
cmp dword [ebp - 4], 6
setne cl
add ecx, 1
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
shl eax, 5
mov ecx, dword [eax + 0x5b45b4]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x10]
shl edx, 5
mov eax, dword [edx + 0x5b45bc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x10]
shl ecx, 5
mov edx, dword [ecx + 0x5b45c4]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x3c]
add eax, 0x454
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
jmp 0x494e93
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 4]
jge 0x494f32
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
shl ecx, 0x18
mov edx, dword [ebp - 0x14]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx]
shl edx, 0x10
mov eax, dword [ebp - 0x14]
or edx, dword [eax]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], edx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
shl ecx, 8
mov edx, dword [ebp - 0x14]
or ecx, dword [edx]
mov eax, dword [ebp - 0x14]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
mov edx, dword [ebp - 0x38]
or ecx, dword [edx]
mov eax, dword [ebp - 0x38]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 0x14]
add edx, 4
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x3c]
mov eax, dword [eax]
xor eax, dword [edx + ecx*4 + 0x1e8]
mov ecx, dword [ebp - 0x38]
mov dword [ecx], eax
jmp 0x494e8a
mov dword [ebp - 0x28], 1
jmp 0x494f44
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [eax + 0x3d0]
jge 0x49504a
mov dword [ebp - 0xc], 0
jmp 0x494f68
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 4]
jge 0x495022
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x3c]
mov ecx, dword [edx + ecx*4 + 0x454]
sar ecx, 0x18
and ecx, 0xff
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x1c]
cdq
idiv dword [ebp - 4]
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + edx*4 + 0x454]
sar edx, 0x10
and edx, 0xff
mov ecx, dword [ecx*4 + 0x5b2588]
xor ecx, dword [edx*4 + 0x5b2988]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x18]
cdq
idiv dword [ebp - 4]
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + edx*4 + 0x454]
sar edx, 8
and edx, 0xff
xor ecx, dword [edx*4 + 0x5b2d88]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
cdq
idiv dword [ebp - 4]
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + edx*4 + 0x454]
and edx, 0xff
xor ecx, dword [edx*4 + 0x5b3188]
mov eax, dword [ebp - 0x28]
shl eax, 5
mov edx, dword [ebp - 0x3c]
lea eax, [edx + eax + 0x1e8]
mov edx, dword [ebp - 0xc]
xor ecx, dword [eax + edx*4]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x3c]
mov dword [edx + eax*4 + 0x434], ecx
jmp 0x494f5f
mov eax, dword [ebp - 4]
shl eax, 2
push eax
mov ecx, dword [ebp - 0x3c]
add ecx, 0x434
push ecx
mov edx, dword [ebp - 0x3c]
add edx, 0x454
push edx
call fcn.00572e00
add esp, 0xc
jmp 0x494f3b
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x24], 0
jmp 0x495063
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 4]
jge 0x495178
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x3d0]
shl eax, 5
mov ecx, dword [ebp - 0x3c]
lea edx, [ecx + eax + 0x1e8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + edx*4 + 0x454]
sar ecx, 0x18
and ecx, 0xff
movsx edx, byte [ecx + 0x5b1488]
mov eax, dword [ebp - 0x20]
sar eax, 0x18
xor edx, eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x24]
mov byte [ecx], dl
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x1c]
cdq
idiv dword [ebp - 4]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + edx*4 + 0x454]
sar ecx, 0x10
and ecx, 0xff
movsx edx, byte [ecx + 0x5b1488]
mov eax, dword [ebp - 0x20]
sar eax, 0x10
xor edx, eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x24]
mov byte [ecx], dl
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x18]
cdq
idiv dword [ebp - 4]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + edx*4 + 0x454]
sar ecx, 8
and ecx, 0xff
movsx edx, byte [ecx + 0x5b1488]
mov eax, dword [ebp - 0x20]
sar eax, 8
xor edx, eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x24]
mov byte [ecx], dl
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
cdq
idiv dword [ebp - 4]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + edx*4 + 0x454]
and ecx, 0xff
movsx edx, byte [ecx + 0x5b1488]
xor edx, dword [ebp - 0x20]
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x24]
mov byte [eax], dl
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
jmp 0x49505a
mov esp, ebp
pop ebp
ret 8