Function at 0x4257c3
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 0x425d4b
test ebp, ebp
je 0x425d4b
push ebx
push 4
pop ebx
push ebx
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004352b0
push ebx
lea eax, [edi + 4]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.004352b0
push ebx
lea eax, [edi + 8]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.004352b0
push ebx
lea eax, [edi + 0xc]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.004352b0
mov ecx, dword [esp + 0x50]
add esp, 0x30
call fcn.004256a0
xor eax, dword [esi + 4]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
call fcn.004256a0
xor eax, dword [esi + 8]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.004256a0
xor eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
call fcn.004256a0
mov ebx, eax
xor ebx, dword [esi]
call fcn.004257a6
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 + 0x465c50]
mov edx, dword [esp + 0x20]
xor ecx, dword [eax*4 + 0x465850]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x465450]
movzx eax, dl
xor ecx, dword [eax*4 + 0x466050]
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 + 0x465c50]
xor ecx, dword [eax*4 + 0x465850]
mov eax, dword [esp + 0x28]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x465450]
movzx eax, bl
xor ecx, dword [eax*4 + 0x466050]
mov eax, edx
xor ecx, dword [esi + 0x14]
shr eax, 0x10
mov dword [esp + 0x18], ecx
movzx eax, al
mov eax, dword [eax*4 + 0x465850]
mov ecx, edi
shr ecx, 0x18
shr edx, 0x18
xor eax, dword [ecx*4 + 0x465450]
mov dword [esp + 0x10], eax
mov eax, ebx
mov ecx, dword [esp + 0x10]
shr eax, 8
mov edx, dword [edx*4 + 0x465450]
movzx eax, al
shr ebx, 0x10
xor ecx, dword [eax*4 + 0x465c50]
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 + 0x466050]
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 + 0x465c50]
movzx eax, bl
xor edx, dword [eax*4 + 0x465850]
mov eax, dword [esp + 0x1c]
movzx eax, al
jmp 0x425b7a
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 + 0x465c50]
mov edx, dword [esp + 0x20]
xor ecx, dword [eax*4 + 0x465850]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x465450]
mov eax, dword [esp + 0x14]
movzx eax, al
xor ecx, dword [eax*4 + 0x466050]
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 + 0x465c50]
xor ecx, dword [eax*4 + 0x465850]
mov eax, dword [esp + 0x18]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x465450]
movzx eax, dl
xor ecx, dword [eax*4 + 0x466050]
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 + 0x465850]
xor ebx, dword [ecx*4 + 0x465450]
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 + 0x465c50]
movzx eax, dl
shr edx, 8
xor ebx, dword [eax*4 + 0x466050]
xor ebx, dword [esi + 8]
movzx eax, dl
mov edx, dword [esp + 0x14]
mov edx, dword [edx*4 + 0x465450]
xor edx, dword [eax*4 + 0x465c50]
movzx eax, cl
xor edx, dword [eax*4 + 0x465850]
mov eax, edi
movzx eax, al
mov edi, dword [esp + 0x24]
xor edx, dword [eax*4 + 0x466050]
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 + 0x465c50]
xor ecx, dword [eax*4 + 0x465850]
mov eax, dword [esp + 0x1c]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x465450]
movzx eax, dl
xor ecx, dword [eax*4 + 0x466050]
mov eax, edx
xor ecx, dword [edi + 0x10]
shr eax, 8
mov dword [esp + 0x20], ecx
movzx ecx, al
mov ecx, dword [ecx*4 + 0x465c50]
mov eax, ebx
shr eax, 0x10
mov esi, edi
movzx eax, al
xor ecx, dword [eax*4 + 0x465850]
mov eax, dword [esp + 0x28]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x465450]
mov eax, dword [esp + 0x1c]
movzx eax, al
xor ecx, dword [eax*4 + 0x466050]
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 + 0x465850]
xor eax, dword [ecx*4 + 0x465450]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
shr eax, 8
mov edx, dword [edx*4 + 0x465450]
movzx eax, al
xor ecx, dword [eax*4 + 0x465c50]
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 + 0x466050]
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 + 0x465c50]
mov eax, dword [esp + 0x1c]
shr eax, 0x10
movzx eax, al
xor edx, dword [eax*4 + 0x465850]
movzx eax, bl
xor edx, dword [eax*4 + 0x466050]
xor edx, dword [esi + 0x1c]
add esi, 0x20
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], edx
sub ebp, 1
jne 0x425973
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 + 0x466050]
mov eax, dword [esp + 0x10]
and ecx, 0xff0000
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x465450]
and eax, 0xff00
xor ecx, eax
mov eax, ebx
shr eax, 0x18
mov eax, dword [eax*4 + 0x465c50]
and eax, ebp
xor ecx, eax
movzx eax, dl
movzx eax, byte [eax*4 + 0x465850]
xor ecx, eax
xor ecx, dword [edi]
call fcn.004256a0
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
shr eax, 0x10
movzx eax, al
mov ecx, dword [eax*4 + 0x466050]
mov eax, dword [esp + 0x14]
and ecx, 0xff0000
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x465450]
and eax, 0xff00
xor ecx, eax
mov eax, dword [esp + 0x18]
shr eax, 0x18
mov eax, dword [eax*4 + 0x465c50]
and eax, ebp
xor ecx, eax
movzx eax, bl
movzx eax, byte [eax*4 + 0x465850]
xor ecx, eax
xor ecx, dword [edi + 4]
call fcn.004256a0
mov dword [esp + 0x20], eax
mov esi, 0xff0000
mov eax, dword [esp + 0x14]
shr eax, 0x10
movzx eax, al
mov ecx, dword [eax*4 + 0x466050]
mov eax, dword [esp + 0x10]
and ecx, esi
shr eax, 0x18
mov eax, dword [eax*4 + 0x465c50]
and eax, ebp
xor ecx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x465450]
and eax, 0xff00
xor ecx, eax
mov eax, dword [esp + 0x18]
movzx eax, al
movzx eax, byte [eax*4 + 0x465850]
xor ecx, eax
xor ecx, dword [edi + 8]
call fcn.004256a0
mov dword [esp + 0x1c], eax
shr ebx, 0x10
movzx eax, bl
mov ecx, dword [eax*4 + 0x466050]
mov eax, dword [esp + 0x14]
and ecx, esi
shr eax, 0x18
mov eax, dword [eax*4 + 0x465c50]
and eax, ebp
xor ecx, eax
mov eax, dword [esp + 0x18]
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x465450]
and eax, 0xff00
xor ecx, eax
mov eax, dword [esp + 0x10]
movzx eax, al
movzx eax, byte [eax*4 + 0x465850]
xor ecx, eax
xor ecx, dword [edi + 0xc]
call fcn.004256a0
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.004352b0
push edi
lea eax, [esp + 0x30]
push eax
lea eax, [esi + 4]
push eax
call fcn.004352b0
push edi
lea eax, [esp + 0x38]
push eax
lea eax, [esi + 8]
push eax
call fcn.004352b0
push edi
lea eax, [esp + 0x40]
push eax
lea eax, [esi + 0xc]
push eax
call fcn.004352b0
add esp, 0x30
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret