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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [edx]
shl ecx, 0x18
mov ebx, dword [ebp + 8]
xor eax, eax
mov al, byte [ebx + 1]
shl eax, 0x10
xor ecx, eax
mov edx, dword [ebp + 8]
xor ebx, ebx
mov bl, byte [edx + 2]
shl ebx, 8
xor ecx, ebx
mov eax, dword [ebp + 8]
xor edx, edx
mov dl, byte [eax + 3]
xor ecx, edx
mov ebx, dword [ebp - 4]
xor ecx, dword [ebx]
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
xor edx, edx
mov dl, byte [eax + 4]
shl edx, 0x18
mov ecx, dword [ebp + 8]
xor eax, eax
mov al, byte [ecx + 5]
shl eax, 0x10
xor edx, eax
mov ecx, dword [ebp + 8]
xor eax, eax
mov al, byte [ecx + 6]
shl eax, 8
xor edx, eax
mov ecx, dword [ebp + 8]
xor eax, eax
mov al, byte [ecx + 7]
xor edx, eax
mov ecx, dword [ebp - 4]
xor edx, dword [ecx + 4]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 8]
shl eax, 0x18
mov edx, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [edx + 9]
shl ecx, 0x10
xor eax, ecx
mov edx, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [edx + 0xa]
shl ecx, 8
xor eax, ecx
mov edx, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [edx + 0xb]
xor eax, ecx
mov edx, dword [ebp - 4]
xor eax, dword [edx + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + 0xc]
shl ecx, 0x18
mov ebx, dword [ebp + 8]
xor eax, eax
mov al, byte [ebx + 0xd]
shl eax, 0x10
xor ecx, eax
mov edx, dword [ebp + 8]
xor ebx, ebx
mov bl, byte [edx + 0xe]
shl ebx, 8
xor ecx, ebx
mov eax, dword [ebp + 8]
xor edx, edx
mov dl, byte [eax + 0xf]
xor ecx, edx
mov ebx, dword [ebp - 4]
xor ecx, dword [ebx + 0xc]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 0xf0]
sar edx, 1
mov dword [ebp - 0x28], edx
mov ecx, dword [ebp - 8]
shr ecx, 0x18
mov eax, dword [ecx*4 + 0x5e10fc]
mov edx, dword [ebp - 0x14]
shr edx, 0x10
and edx, 0xff
xor eax, dword [edx*4 + 0x5e14fc]
mov ecx, dword [ebp - 0x10]
shr ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5e18fc]
mov edx, dword [ebp - 0xc]
and edx, 0xff
xor eax, dword [edx*4 + 0x5e1cfc]
mov ecx, dword [ebp - 4]
xor eax, dword [ecx + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
shr eax, 0x18
mov eax, dword [eax*4 + 0x5e10fc]
mov edx, dword [ebp - 8]
shr edx, 0x10
and edx, 0xff
xor eax, dword [edx*4 + 0x5e14fc]
mov ecx, dword [ebp - 0x14]
shr ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5e18fc]
mov edx, dword [ebp - 0x10]
and edx, 0xff
xor eax, dword [edx*4 + 0x5e1cfc]
mov ecx, dword [ebp - 4]
xor eax, dword [ecx + 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
shr eax, 0x18
mov eax, dword [eax*4 + 0x5e10fc]
mov edx, dword [ebp - 0xc]
shr edx, 0x10
and edx, 0xff
xor eax, dword [edx*4 + 0x5e14fc]
mov ecx, dword [ebp - 8]
shr ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5e18fc]
mov edx, dword [ebp - 0x14]
and edx, 0xff
xor eax, dword [edx*4 + 0x5e1cfc]
mov ecx, dword [ebp - 4]
xor eax, dword [ecx + 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
shr eax, 0x18
mov eax, dword [eax*4 + 0x5e10fc]
mov edx, dword [ebp - 0x10]
shr edx, 0x10
and edx, 0xff
xor eax, dword [edx*4 + 0x5e14fc]
mov ecx, dword [ebp - 0xc]
shr ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5e18fc]
mov edx, dword [ebp - 8]
and edx, 0xff
xor eax, dword [edx*4 + 0x5e1cfc]
mov ecx, dword [ebp - 4]
xor eax, dword [ecx + 0x1c]
mov dword [ebp - 0x24], eax
add dword [ebp - 4], 0x20
dec dword [ebp - 0x28]
jne 0x4052d7
jmp 0x40540b
mov eax, dword [ebp - 0x18]
shr eax, 0x18
mov eax, dword [eax*4 + 0x5e10fc]
mov edx, dword [ebp - 0x24]
shr edx, 0x10
and edx, 0xff
xor eax, dword [edx*4 + 0x5e14fc]
mov ecx, dword [ebp - 0x20]
shr ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5e18fc]
mov edx, dword [ebp - 0x1c]
and edx, 0xff
xor eax, dword [edx*4 + 0x5e1cfc]
mov ecx, dword [ebp - 4]
xor eax, dword [ecx]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
shr eax, 0x18
mov eax, dword [eax*4 + 0x5e10fc]
mov edx, dword [ebp - 0x18]
shr edx, 0x10
and edx, 0xff
xor eax, dword [edx*4 + 0x5e14fc]
mov ecx, dword [ebp - 0x24]
shr ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5e18fc]
mov edx, dword [ebp - 0x20]
and edx, 0xff
xor eax, dword [edx*4 + 0x5e1cfc]
mov ecx, dword [ebp - 4]
xor eax, dword [ecx + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
shr eax, 0x18
mov eax, dword [eax*4 + 0x5e10fc]
mov edx, dword [ebp - 0x1c]
shr edx, 0x10
and edx, 0xff
xor eax, dword [edx*4 + 0x5e14fc]
mov ecx, dword [ebp - 0x18]
shr ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5e18fc]
mov edx, dword [ebp - 0x24]
and edx, 0xff
xor eax, dword [edx*4 + 0x5e1cfc]
mov ecx, dword [ebp - 4]
xor eax, dword [ecx + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
shr eax, 0x18
mov eax, dword [eax*4 + 0x5e10fc]
mov edx, dword [ebp - 0x20]
shr edx, 0x10
and edx, 0xff
xor eax, dword [edx*4 + 0x5e14fc]
mov ecx, dword [ebp - 0x1c]
shr ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5e18fc]
mov edx, dword [ebp - 0x18]
and edx, 0xff
xor eax, dword [edx*4 + 0x5e1cfc]
mov ecx, dword [ebp - 4]
xor eax, dword [ecx + 0xc]
mov dword [ebp - 0x14], eax
jmp 0x405199
mov eax, dword [ebp - 0x18]
shr eax, 0x18
movzx eax, byte [eax + 0x5e20fc]
shl eax, 0x18
mov edx, dword [ebp - 0x24]
shr edx, 0x10
and edx, 0xff
xor ecx, ecx
mov cl, byte [edx + 0x5e20fc]
shl ecx, 0x10
xor eax, ecx
mov edx, dword [ebp - 0x20]
shr edx, 8
and edx, 0xff
xor ecx, ecx
mov cl, byte [edx + 0x5e20fc]
shl ecx, 8
xor eax, ecx
mov edx, dword [ebp - 0x1c]
and edx, 0xff
xor ecx, ecx
mov cl, byte [edx + 0x5e20fc]
xor eax, ecx
mov edx, dword [ebp - 4]
xor eax, dword [edx]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
shr eax, 0x18
mov ecx, dword [ebp + 0xc]
mov byte [ecx], al
mov eax, dword [ebp - 8]
shr eax, 0x10
mov edx, dword [ebp + 0xc]
mov byte [edx + 1], al
mov ecx, dword [ebp - 8]
shr ecx, 8
mov ebx, dword [ebp + 0xc]
mov byte [ebx + 2], cl
mov al, byte [ebp - 8]
mov edx, dword [ebp + 0xc]
mov byte [edx + 3], al
mov ecx, dword [ebp - 0x1c]
shr ecx, 0x18
xor eax, eax
mov al, byte [ecx + 0x5e20fc]
shl eax, 0x18
mov edx, dword [ebp - 0x18]
shr edx, 0x10
and edx, 0xff
xor ecx, ecx
mov cl, byte [edx + 0x5e20fc]
shl ecx, 0x10
xor eax, ecx
mov edx, dword [ebp - 0x24]
shr edx, 8
and edx, 0xff
xor ecx, ecx
mov cl, byte [edx + 0x5e20fc]
shl ecx, 8
xor eax, ecx
mov edx, dword [ebp - 0x20]
and edx, 0xff
xor ecx, ecx
mov cl, byte [edx + 0x5e20fc]
xor eax, ecx
mov edx, dword [ebp - 4]
xor eax, dword [edx + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
shr eax, 0x18
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 4], al
mov eax, dword [ebp - 0xc]
shr eax, 0x10
mov edx, dword [ebp + 0xc]
mov byte [edx + 5], al
mov ecx, dword [ebp - 0xc]
shr ecx, 8
mov ebx, dword [ebp + 0xc]
mov byte [ebx + 6], cl
mov al, byte [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov byte [edx + 7], al
mov ecx, dword [ebp - 0x20]
shr ecx, 0x18
xor eax, eax
mov al, byte [ecx + 0x5e20fc]
shl eax, 0x18
mov edx, dword [ebp - 0x1c]
shr edx, 0x10
and edx, 0xff
xor ecx, ecx
mov cl, byte [edx + 0x5e20fc]
shl ecx, 0x10
xor eax, ecx
mov edx, dword [ebp - 0x18]
shr edx, 8
and edx, 0xff
xor ecx, ecx
mov cl, byte [edx + 0x5e20fc]
shl ecx, 8
xor eax, ecx
mov edx, dword [ebp - 0x24]
and edx, 0xff
xor ecx, ecx
mov cl, byte [edx + 0x5e20fc]
xor eax, ecx
mov edx, dword [ebp - 4]
xor eax, dword [edx + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
shr eax, 0x18
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 8], al
mov eax, dword [ebp - 0x10]
shr eax, 0x10
mov edx, dword [ebp + 0xc]
mov byte [edx + 9], al
mov ecx, dword [ebp - 0x10]
shr ecx, 8
mov ebx, dword [ebp + 0xc]
mov byte [ebx + 0xa], cl
mov al, byte [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov byte [edx + 0xb], al
mov ecx, dword [ebp - 0x24]
shr ecx, 0x18
xor eax, eax
mov al, byte [ecx + 0x5e20fc]
shl eax, 0x18
mov edx, dword [ebp - 0x20]
shr edx, 0x10
and edx, 0xff
xor ecx, ecx
mov cl, byte [edx + 0x5e20fc]
shl ecx, 0x10
xor eax, ecx
mov edx, dword [ebp - 0x1c]
shr edx, 8
and edx, 0xff
xor ecx, ecx
mov cl, byte [edx + 0x5e20fc]
shl ecx, 8
xor eax, ecx
mov edx, dword [ebp - 0x18]
and edx, 0xff
xor ecx, ecx
mov cl, byte [edx + 0x5e20fc]
xor eax, ecx
mov edx, dword [ebp - 4]
xor eax, dword [edx + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
shr eax, 0x18
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0xc], al
mov eax, dword [ebp - 0x14]
shr eax, 0x10
mov edx, dword [ebp + 0xc]
mov byte [edx + 0xd], al
mov ecx, dword [ebp - 0x14]
shr ecx, 8
mov ebx, dword [ebp + 0xc]
mov byte [ebx + 0xe], cl
mov al, byte [ebp - 0x14]
mov edx, dword [ebp + 0xc]
mov byte [edx + 0xf], al
pop ebx
mov esp, ebp
pop ebp
ret