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

Disassembly:
push ebp
xor ecx, ecx
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
xor eax, eax
mov cl, byte [edx]
mov ebx, dword [ebp + 0x10]
shl ecx, 0x18
mov dword [ebp - 0x24], ecx
mov al, byte [edx + 3]
xor ecx, eax
xor eax, eax
mov dword [ebp - 0x24], ecx
mov ebx, dword [ebx]
xor ecx, ebx
xor ebx, ebx
mov dword [ebp - 0x24], ecx
mov al, byte [edx + 1]
shl eax, 0x10
xor ecx, eax
xor eax, eax
mov dword [ebp - 0x24], ecx
mov al, byte [edx + 2]
shl eax, 8
xor ecx, eax
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp + 0x10]
mov al, byte [edx + 7]
mov bl, byte [edx + 0xb]
and eax, 0xff
mov edi, eax
mov eax, dword [ecx + 4]
xor edi, eax
xor eax, eax
mov al, byte [edx + 4]
shl eax, 0x18
xor edi, eax
xor eax, eax
mov al, byte [edx + 5]
shl eax, 0x10
xor edi, eax
xor eax, eax
mov al, byte [edx + 6]
shl eax, 8
xor edi, eax
mov eax, dword [ecx + 8]
xor ebx, eax
xor eax, eax
mov al, byte [edx + 8]
shl eax, 0x18
xor ebx, eax
xor eax, eax
mov al, byte [edx + 9]
shl eax, 0x10
xor ebx, eax
xor eax, eax
mov al, byte [edx + 0xa]
shl eax, 8
xor ebx, eax
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov esi, dword [eax + 0xc]
xor eax, eax
mov cl, byte [edx + 0xf]
mov al, byte [edx + 0xc]
shl eax, 0x18
xor ecx, esi
xor ecx, eax
xor eax, eax
mov al, byte [edx + 0xd]
shl eax, 0x10
xor ecx, eax
xor eax, eax
mov al, byte [edx + 0xe]
mov edx, dword [ebp + 0x10]
shl eax, 8
mov edx, dword [edx + 0xf0]
xor ecx, eax
sar edx, 1
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
jmp 0x496df5
mov edx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x28]
movzx eax, byte [ebp - 0x1c]
shr edx, 0x18
mov eax, dword [eax*4 + 0x4d3d80]
mov ecx, dword [edx*4 + 0x4d3180]
xor eax, ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov ebx, dword [ebx]
xor eax, ebx
mov dword [ebp - 0x24], eax
mov eax, esi
shr eax, 0x10
and eax, 0xff
mov edx, dword [eax*4 + 0x4d3580]
mov eax, dword [ebp - 0x24]
xor eax, edx
mov edx, dword [ebp - 0x1c]
shr edx, 0x18
mov dword [ebp - 0x24], eax
movzx eax, ch
mov edi, dword [ebp - 0x24]
mov ebx, dword [eax*4 + 0x4d3980]
movzx eax, cl
xor edi, ebx
mov ebx, dword [edx*4 + 0x4d3180]
mov dword [ebp - 0x24], edi
mov edi, dword [eax*4 + 0x4d3d80]
mov eax, dword [ebp - 0x28]
xor edi, ebx
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x20]
shr eax, 0x10
xor edi, edx
and eax, 0xff
mov edx, esi
mov ebx, dword [eax*4 + 0x4d3580]
movzx eax, dh
xor edi, ebx
mov edx, dword [eax*4 + 0x4d3980]
mov eax, esi
xor edi, edx
mov edx, ecx
shr edx, 0x18
and eax, 0xff
shr esi, 0x18
mov ecx, dword [ebp - 0x28]
mov ebx, dword [eax*4 + 0x4d3d80]
mov eax, dword [edx*4 + 0x4d3180]
xor ebx, eax
mov eax, dword [ecx + 8]
xor ebx, eax
mov eax, dword [ebp - 0x1c]
shr eax, 0x10
and eax, 0xff
mov edx, dword [eax*4 + 0x4d3580]
xor ebx, edx
mov edx, dword [ebp - 0x20]
movzx eax, dh
mov ecx, dword [eax*4 + 0x4d3980]
movzx eax, dl
xor ebx, ecx
mov ecx, dword [eax*4 + 0x4d3d80]
mov eax, dword [esi*4 + 0x4d3180]
xor ecx, eax
mov esi, dword [ebp - 0x18]
shr esi, 0x10
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x18], esi
movzx eax, byte [ebp - 0x18]
xor ecx, edx
mov edx, dword [eax*4 + 0x4d3580]
xor ecx, edx
mov edx, dword [ebp - 0x1c]
movzx eax, dh
mov esi, dword [eax*4 + 0x4d3980]
xor ecx, esi
mov eax, edi
mov edx, dword [ebp - 0x24]
shr edx, 0x18
and eax, 0xff
mov eax, dword [eax*4 + 0x4d3d80]
mov dword [ebp - 0x20], eax
mov eax, dword [edx*4 + 0x4d3180]
mov edx, dword [ebp - 0x20]
xor edx, eax
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
mov edx, dword [edx + 0x10]
xor eax, edx
mov dword [ebp - 0x20], eax
mov eax, ecx
shr eax, 0x10
and eax, 0xff
mov edx, dword [eax*4 + 0x4d3580]
mov eax, dword [ebp - 0x20]
xor eax, edx
mov dword [ebp - 0x20], eax
movzx eax, bh
mov esi, dword [ebp - 0x20]
mov edx, dword [eax*4 + 0x4d3980]
movzx eax, bl
xor esi, edx
mov edx, edi
shr edx, 0x18
mov eax, dword [eax*4 + 0x4d3d80]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], esi
mov eax, dword [edx*4 + 0x4d3180]
mov edx, dword [ebp - 0x1c]
xor edx, eax
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
mov edx, dword [edx + 0x14]
xor eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
shr eax, 0x10
and eax, 0xff
mov edx, dword [eax*4 + 0x4d3580]
mov eax, dword [ebp - 0x1c]
xor eax, edx
mov dword [ebp - 0x1c], eax
movzx eax, ch
mov esi, dword [ebp - 0x1c]
mov edx, dword [eax*4 + 0x4d3980]
xor esi, edx
mov edx, ebx
movzx eax, cl
shr edx, 0x18
mov dword [ebp - 0x1c], esi
shr ecx, 0x18
mov eax, dword [eax*4 + 0x4d3d80]
shr ebx, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [edx*4 + 0x4d3180]
mov edx, dword [ebp - 0x18]
xor edx, eax
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
mov edx, dword [edx + 0x18]
xor eax, edx
mov dword [ebp - 0x18], eax
mov eax, edi
shr eax, 0x10
and eax, 0xff
mov edx, dword [eax*4 + 0x4d3580]
mov eax, dword [ebp - 0x18]
xor eax, edx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
movzx eax, dh
mov edx, dword [eax*4 + 0x4d3980]
mov eax, dword [ebp - 0x18]
xor eax, edx
mov dword [ebp - 0x18], eax
movzx eax, byte [ebp - 0x24]
mov esi, dword [eax*4 + 0x4d3d80]
mov eax, dword [ecx*4 + 0x4d3180]
mov ecx, dword [ebp - 0x28]
xor esi, eax
mov eax, dword [ecx + 0x1c]
add ecx, 0x20
xor esi, eax
mov dword [ebp - 0x28], ecx
movzx eax, bl
mov ebx, dword [eax*4 + 0x4d3580]
xor esi, ebx
mov ebx, edi
movzx eax, bh
mov edx, dword [eax*4 + 0x4d3980]
xor esi, edx
dec dword [ebp - 0x14]
jne 0x496cd3
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp + 0x10]
shl eax, 5
xor edx, edx
lea ecx, [ebx + eax]
mov eax, dword [ebp - 0x20]
shr eax, 0x18
mov ebx, dword [ebp - 0x18]
mov dl, byte [eax + 0x4d4180]
movzx eax, byte [ebp - 0x1c]
shl edx, 0x18
mov al, byte [eax + 0x4d4180]
and eax, 0xff
xor edx, eax
mov eax, esi
shr eax, 0x10
and eax, 0xff
mov al, byte [eax + 0x4d4180]
and eax, 0xff
shl eax, 0x10
xor edx, eax
movzx eax, bh
mov ebx, dword [ecx]
mov al, byte [eax + 0x4d4180]
and eax, 0xff
shl eax, 8
xor edx, eax
xor edx, ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
shr eax, 0x18
mov byte [ebx + 3], dl
mov byte [ebx], al
mov eax, edx
shr eax, 0x10
mov byte [ebx + 1], al
mov eax, edx
shr eax, 8
xor edx, edx
mov byte [ebx + 2], al
mov ebx, esi
mov eax, dword [ebp - 0x1c]
shr eax, 0x18
mov dl, byte [eax + 0x4d4180]
movzx eax, byte [ebp - 0x18]
shl edx, 0x18
mov al, byte [eax + 0x4d4180]
and eax, 0xff
xor edx, eax
mov eax, dword [ebp - 0x20]
shr eax, 0x10
and eax, 0xff
mov al, byte [eax + 0x4d4180]
and eax, 0xff
shl eax, 0x10
xor edx, eax
movzx eax, bh
mov ebx, dword [ebp + 0xc]
mov al, byte [eax + 0x4d4180]
and eax, 0xff
shl eax, 8
xor edx, eax
mov eax, dword [ecx + 4]
xor edx, eax
mov eax, edx
mov byte [ebx + 7], dl
shr eax, 0x18
mov byte [ebx + 4], al
mov eax, edx
shr eax, 0x10
mov byte [ebx + 5], al
mov eax, edx
shr eax, 8
xor edx, edx
mov byte [ebx + 6], al
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x20]
shr eax, 0x18
mov dl, byte [eax + 0x4d4180]
mov eax, esi
shl edx, 0x18
and eax, 0xff
shr esi, 0x18
mov al, byte [eax + 0x4d4180]
and eax, 0xff
xor edx, eax
mov eax, dword [ebp - 0x1c]
shr eax, 0x10
and eax, 0xff
mov al, byte [eax + 0x4d4180]
and eax, 0xff
shl eax, 0x10
xor edx, eax
movzx eax, bh
mov ebx, dword [ebp + 0xc]
mov al, byte [eax + 0x4d4180]
and eax, 0xff
shl eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
xor edx, eax
mov eax, edx
shr eax, 0x18
mov byte [ebx + 8], al
mov eax, edx
shr eax, 0x10
mov byte [ebx + 0xb], dl
mov byte [ebx + 9], al
mov eax, edx
shr eax, 8
xor edx, edx
mov byte [ebx + 0xa], al
mov dl, byte [esi + 0x4d4180]
movzx eax, byte [ebp - 0x20]
shl edx, 0x18
mov ebx, dword [ebp - 0x1c]
mov al, byte [eax + 0x4d4180]
and eax, 0xff
xor edx, eax
mov eax, dword [ebp - 0x18]
shr eax, 0x10
mov dword [ebp - 0x18], eax
movzx eax, byte [ebp - 0x18]
mov al, byte [eax + 0x4d4180]
and eax, 0xff
shl eax, 0x10
xor edx, eax
movzx eax, bh
mov al, byte [eax + 0x4d4180]
and eax, 0xff
shl eax, 8
xor edx, eax
mov eax, dword [ecx + 0xc]
xor edx, eax
mov ecx, dword [ebp + 0xc]
mov eax, edx
shr eax, 0x18
mov byte [ecx + 0xf], dl
mov byte [ecx + 0xc], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 0xd], al
mov eax, edx
shr eax, 8
mov byte [ecx + 0xe], al
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret