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

Disassembly:
sub esp, 0x1c
push ebp
push esi
mov esi, ecx
push edi
mov edi, edx
mov ebp, dword [esi + 0xf0]
shr ebp, 1
cmp ebp, 7
ja 0x4279b4
test ebp, ebp
je 0x4279b4
push ebx
push 4
pop ebx
push ebx
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00436f20
push ebx
lea eax, [edi + 4]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.00436f20
push ebx
lea eax, [edi + 8]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00436f20
push ebx
lea eax, [edi + 0xc]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.00436f20
mov ecx, dword [esp + 0x50]
add esp, 0x30
call fcn.00427309
xor eax, dword [esi + 4]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
call fcn.00427309
xor eax, dword [esi + 8]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.00427309
xor eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
call fcn.00427309
mov ebx, eax
xor ebx, dword [esi]
call fcn.0042740f
mov edi, dword [esp + 0x1c]
or ebx, eax
mov ecx, edi
shr ecx, 8
movzx edx, cl
mov ecx, dword [esp + 0x28]
shr ecx, 0x10
movzx eax, cl
mov ecx, dword [edx*4 + 0x467f00]
mov edx, dword [esp + 0x20]
xor ecx, dword [eax*4 + 0x467b00]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x467700]
movzx eax, dl
xor ecx, dword [eax*4 + 0x468300]
mov eax, esi
xor ecx, dword [eax + 0x10]
mov eax, edx
shr eax, 8
mov dword [esp + 0x20], ecx
movzx ecx, al
mov eax, edi
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x467f00]
xor ecx, dword [eax*4 + 0x467b00]
mov eax, dword [esp + 0x28]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x467700]
movzx eax, bl
xor ecx, dword [eax*4 + 0x468300]
mov eax, edx
xor ecx, dword [esi + 0x14]
shr eax, 0x10
mov dword [esp + 0x18], ecx
movzx eax, al
mov eax, dword [eax*4 + 0x467b00]
mov ecx, edi
shr ecx, 0x18
shr edx, 0x18
xor eax, dword [ecx*4 + 0x467700]
mov dword [esp + 0x10], eax
mov eax, ebx
mov ecx, dword [esp + 0x10]
shr eax, 8
mov edx, dword [edx*4 + 0x467700]
movzx eax, al
shr ebx, 0x10
xor ecx, dword [eax*4 + 0x467f00]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x10]
movzx eax, cl
shr ecx, 8
xor edi, dword [eax*4 + 0x468300]
mov eax, edi
mov dword [esp + 0x10], edi
xor eax, dword [esi + 0x18]
mov dword [esp + 0x10], eax
movzx eax, cl
xor edx, dword [eax*4 + 0x467f00]
movzx eax, bl
xor edx, dword [eax*4 + 0x467b00]
mov eax, dword [esp + 0x1c]
movzx eax, al
jmp 0x4277e3
mov edi, dword [esp + 0x10]
mov eax, edi
shr eax, 8
movzx ecx, al
mov eax, dword [esp + 0x18]
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x467f00]
mov edx, dword [esp + 0x20]
xor ecx, dword [eax*4 + 0x467b00]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x467700]
mov eax, dword [esp + 0x14]
movzx eax, al
xor ecx, dword [eax*4 + 0x468300]
xor ecx, dword [esi]
mov eax, dword [esp + 0x14]
shr eax, 8
mov dword [esp + 0x1c], ecx
movzx ecx, al
mov eax, edi
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x467f00]
xor ecx, dword [eax*4 + 0x467b00]
mov eax, dword [esp + 0x18]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x467700]
movzx eax, dl
xor ecx, dword [eax*4 + 0x468300]
xor ecx, dword [esi + 4]
mov eax, dword [esp + 0x14]
shr eax, 0x10
movzx eax, al
mov dword [esp + 0x28], ecx
mov ecx, edi
shr ecx, 0x18
shr dword [esp + 0x14], 0x18
mov ebx, dword [eax*4 + 0x467b00]
xor ebx, dword [ecx*4 + 0x467700]
mov ecx, edx
mov edx, dword [esp + 0x18]
mov eax, ecx
shr eax, 8
movzx eax, al
shr ecx, 0x10
xor ebx, dword [eax*4 + 0x467f00]
movzx eax, dl
shr edx, 8
xor ebx, dword [eax*4 + 0x468300]
xor ebx, dword [esi + 8]
movzx eax, dl
mov edx, dword [esp + 0x14]
mov edx, dword [edx*4 + 0x467700]
xor edx, dword [eax*4 + 0x467f00]
movzx eax, cl
xor edx, dword [eax*4 + 0x467b00]
mov eax, edi
movzx eax, al
mov edi, dword [esp + 0x24]
xor edx, dword [eax*4 + 0x468300]
mov eax, ebx
xor edx, dword [esi + 0xc]
shr eax, 8
movzx ecx, al
mov eax, dword [esp + 0x28]
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x467f00]
xor ecx, dword [eax*4 + 0x467b00]
mov eax, dword [esp + 0x1c]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x467700]
movzx eax, dl
xor ecx, dword [eax*4 + 0x468300]
mov eax, edx
xor ecx, dword [edi + 0x10]
shr eax, 8
mov dword [esp + 0x20], ecx
movzx ecx, al
mov ecx, dword [ecx*4 + 0x467f00]
mov eax, ebx
shr eax, 0x10
mov esi, edi
movzx eax, al
xor ecx, dword [eax*4 + 0x467b00]
mov eax, dword [esp + 0x28]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x467700]
mov eax, dword [esp + 0x1c]
movzx eax, al
xor ecx, dword [eax*4 + 0x468300]
mov eax, edx
xor ecx, dword [esi + 0x14]
shr eax, 0x10
movzx eax, al
mov dword [esp + 0x18], ecx
mov ecx, ebx
shr ecx, 0x18
shr edx, 0x18
mov eax, dword [eax*4 + 0x467b00]
xor eax, dword [ecx*4 + 0x467700]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
shr eax, 8
mov edx, dword [edx*4 + 0x467700]
movzx eax, al
xor ecx, dword [eax*4 + 0x467f00]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x10]
movzx eax, cl
shr ecx, 8
xor edi, dword [eax*4 + 0x468300]
mov eax, edi
mov dword [esp + 0x10], edi
xor eax, dword [esi + 0x18]
mov dword [esp + 0x10], eax
movzx eax, cl
xor edx, dword [eax*4 + 0x467f00]
mov eax, dword [esp + 0x1c]
shr eax, 0x10
movzx eax, al
xor edx, dword [eax*4 + 0x467b00]
movzx eax, bl
xor edx, dword [eax*4 + 0x468300]
xor edx, dword [esi + 0x1c]
add esi, 0x20
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], edx
sub ebp, 1
jne 0x4275dc
mov eax, dword [esp + 0x18]
mov ebp, 0xff000000
shr eax, 0x10
mov edi, esi
mov ebx, dword [esp + 0x20]
movzx eax, al
mov ecx, dword [eax*4 + 0x468300]
mov eax, dword [esp + 0x10]
and ecx, 0xff0000
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x467700]
and eax, 0xff00
xor ecx, eax
mov eax, ebx
shr eax, 0x18
mov eax, dword [eax*4 + 0x467f00]
and eax, ebp
xor ecx, eax
movzx eax, dl
movzx eax, byte [eax*4 + 0x467b00]
xor ecx, eax
xor ecx, dword [edi]
call fcn.00427309
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
shr eax, 0x10
movzx eax, al
mov ecx, dword [eax*4 + 0x468300]
mov eax, dword [esp + 0x14]
and ecx, 0xff0000
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x467700]
and eax, 0xff00
xor ecx, eax
mov eax, dword [esp + 0x18]
shr eax, 0x18
mov eax, dword [eax*4 + 0x467f00]
and eax, ebp
xor ecx, eax
movzx eax, bl
movzx eax, byte [eax*4 + 0x467b00]
xor ecx, eax
xor ecx, dword [edi + 4]
call fcn.00427309
mov dword [esp + 0x20], eax
mov esi, 0xff0000
mov eax, dword [esp + 0x14]
shr eax, 0x10
movzx eax, al
mov ecx, dword [eax*4 + 0x468300]
mov eax, dword [esp + 0x10]
and ecx, esi
shr eax, 0x18
mov eax, dword [eax*4 + 0x467f00]
and eax, ebp
xor ecx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x467700]
and eax, 0xff00
xor ecx, eax
mov eax, dword [esp + 0x18]
movzx eax, al
movzx eax, byte [eax*4 + 0x467b00]
xor ecx, eax
xor ecx, dword [edi + 8]
call fcn.00427309
mov dword [esp + 0x1c], eax
shr ebx, 0x10
movzx eax, bl
mov ecx, dword [eax*4 + 0x468300]
mov eax, dword [esp + 0x14]
and ecx, esi
shr eax, 0x18
mov eax, dword [eax*4 + 0x467f00]
and eax, ebp
xor ecx, eax
mov eax, dword [esp + 0x18]
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x467700]
and eax, 0xff00
xor ecx, eax
mov eax, dword [esp + 0x10]
movzx eax, al
movzx eax, byte [eax*4 + 0x467b00]
xor ecx, eax
xor ecx, dword [edi + 0xc]
call fcn.00427309
mov esi, dword [esp + 0x30]
push 4
pop edi
mov dword [esp + 0x18], eax
lea eax, [esp + 0x24]
push edi
push eax
push esi
call fcn.00436f20
push edi
lea eax, [esp + 0x30]
push eax
lea eax, [esi + 4]
push eax
call fcn.00436f20
push edi
lea eax, [esp + 0x38]
push eax
lea eax, [esi + 8]
push eax
call fcn.00436f20
push edi
lea eax, [esp + 0x40]
push eax
lea eax, [esi + 0xc]
push eax
call fcn.00436f20
add esp, 0x30
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret