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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
jne 0x4885f8
push dword [ebp + 8]
call fcn.00487df4
add esp, 4
sub esp, 0xc
push 0x40
call fcn.00487970
add esp, 0x10
mov eax, dword [ebp + 8]
mov dword [eax + 4], 1
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
shl eax, 4
add eax, dword [ebp + 8]
add eax, 0xf8
mov eax, dword [eax]
xor eax, dword [edx]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp + 0x10]
add edx, 4
mov eax, dword [ebp - 0xc]
shl eax, 4
add eax, dword [ebp + 8]
add eax, 0xfc
mov eax, dword [eax]
xor eax, dword [edx]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp + 0x10]
add edx, 8
mov eax, dword [ebp - 0xc]
shl eax, 4
add eax, dword [ebp + 8]
add eax, 0x100
mov eax, dword [eax]
xor eax, dword [edx]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp + 0x10]
add edx, 0xc
mov eax, dword [ebp - 0xc]
shl eax, 4
add eax, dword [ebp + 8]
add eax, 0x104
mov eax, dword [eax]
xor eax, dword [edx]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0xc]
mov edx, 0
mov dl, byte [ebp - 0x28]
mov eax, 0
mov al, byte [ebp - 0x1b]
mov eax, dword [eax*4 + 0x4f3ee0]
mov edx, dword [edx*4 + 0x4f3ae0]
xor edx, eax
mov eax, 0
mov al, byte [ebp - 0x1e]
xor edx, dword [eax*4 + 0x4f42e0]
mov eax, 0
mov al, byte [ebp - 0x21]
mov eax, dword [eax*4 + 0x4f46e0]
xor eax, edx
mov dword [ecx], eax
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov edx, 0
mov dl, byte [ebp - 0x24]
mov eax, 0
mov al, byte [ebp - 0x27]
mov eax, dword [eax*4 + 0x4f3ee0]
mov edx, dword [edx*4 + 0x4f3ae0]
xor edx, eax
mov eax, 0
mov al, byte [ebp - 0x1a]
xor edx, dword [eax*4 + 0x4f42e0]
mov eax, 0
mov al, byte [ebp - 0x1d]
mov eax, dword [eax*4 + 0x4f46e0]
xor eax, edx
mov dword [ecx], eax
mov ecx, dword [ebp + 0xc]
add ecx, 8
mov edx, 0
mov dl, byte [ebp - 0x20]
mov eax, 0
mov al, byte [ebp - 0x23]
mov eax, dword [eax*4 + 0x4f3ee0]
mov edx, dword [edx*4 + 0x4f3ae0]
xor edx, eax
mov eax, 0
mov al, byte [ebp - 0x26]
xor edx, dword [eax*4 + 0x4f42e0]
mov eax, 0
mov al, byte [ebp - 0x19]
mov eax, dword [eax*4 + 0x4f46e0]
xor eax, edx
mov dword [ecx], eax
mov ecx, dword [ebp + 0xc]
add ecx, 0xc
mov edx, 0
mov dl, byte [ebp - 0x1c]
mov eax, 0
mov al, byte [ebp - 0x1f]
mov eax, dword [eax*4 + 0x4f3ee0]
mov edx, dword [edx*4 + 0x4f3ae0]
xor edx, eax
mov eax, 0
mov al, byte [ebp - 0x22]
xor edx, dword [eax*4 + 0x4f42e0]
mov eax, 0
mov al, byte [ebp - 0x25]
mov eax, dword [eax*4 + 0x4f46e0]
xor eax, edx
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jle 0x48891f
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
shl eax, 4
add eax, dword [ebp + 8]
add eax, 0xf8
mov eax, dword [eax]
xor eax, dword [edx]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp + 0xc]
add edx, 4
mov eax, dword [ebp - 0x10]
shl eax, 4
add eax, dword [ebp + 8]
add eax, 0xfc
mov eax, dword [eax]
xor eax, dword [edx]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp + 0xc]
add edx, 8
mov eax, dword [ebp - 0x10]
shl eax, 4
add eax, dword [ebp + 8]
add eax, 0x100
mov eax, dword [eax]
xor eax, dword [edx]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp + 0xc]
add edx, 0xc
mov eax, dword [ebp - 0x10]
shl eax, 4
add eax, dword [ebp + 8]
add eax, 0x104
mov eax, dword [eax]
xor eax, dword [edx]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0xc]
mov edx, 0
mov dl, byte [ebp - 0x28]
mov eax, 0
mov al, byte [ebp - 0x1b]
mov eax, dword [eax*4 + 0x4f3ee0]
mov edx, dword [edx*4 + 0x4f3ae0]
xor edx, eax
mov eax, 0
mov al, byte [ebp - 0x1e]
xor edx, dword [eax*4 + 0x4f42e0]
mov eax, 0
mov al, byte [ebp - 0x21]
mov eax, dword [eax*4 + 0x4f46e0]
xor eax, edx
mov dword [ecx], eax
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov edx, 0
mov dl, byte [ebp - 0x24]
mov eax, 0
mov al, byte [ebp - 0x27]
mov eax, dword [eax*4 + 0x4f3ee0]
mov edx, dword [edx*4 + 0x4f3ae0]
xor edx, eax
mov eax, 0
mov al, byte [ebp - 0x1a]
xor edx, dword [eax*4 + 0x4f42e0]
mov eax, 0
mov al, byte [ebp - 0x1d]
mov eax, dword [eax*4 + 0x4f46e0]
xor eax, edx
mov dword [ecx], eax
mov ecx, dword [ebp + 0xc]
add ecx, 8
mov edx, 0
mov dl, byte [ebp - 0x20]
mov eax, 0
mov al, byte [ebp - 0x23]
mov eax, dword [eax*4 + 0x4f3ee0]
mov edx, dword [edx*4 + 0x4f3ae0]
xor edx, eax
mov eax, 0
mov al, byte [ebp - 0x26]
xor edx, dword [eax*4 + 0x4f42e0]
mov eax, 0
mov al, byte [ebp - 0x19]
mov eax, dword [eax*4 + 0x4f46e0]
xor eax, edx
mov dword [ecx], eax
mov ecx, dword [ebp + 0xc]
add ecx, 0xc
mov edx, 0
mov dl, byte [ebp - 0x1c]
mov eax, 0
mov al, byte [ebp - 0x1f]
mov eax, dword [eax*4 + 0x4f3ee0]
mov edx, dword [edx*4 + 0x4f3ae0]
xor edx, eax
mov eax, 0
mov al, byte [ebp - 0x22]
xor edx, dword [eax*4 + 0x4f42e0]
mov eax, 0
mov al, byte [ebp - 0x25]
mov eax, dword [eax*4 + 0x4f46e0]
xor eax, edx
mov dword [ecx], eax
lea eax, [ebp - 0x10]
dec dword [eax]
jmp 0x488785
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
add eax, 0x108
mov eax, dword [eax]
xor eax, dword [edx]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp + 0xc]
add edx, 4
mov eax, dword [ebp + 8]
add eax, 0x10c
mov eax, dword [eax]
xor eax, dword [edx]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp + 0xc]
add edx, 8
mov eax, dword [ebp + 8]
add eax, 0x110
mov eax, dword [eax]
xor eax, dword [edx]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp + 0xc]
add edx, 0xc
mov eax, dword [ebp + 8]
add eax, 0x114
mov eax, dword [eax]
xor eax, dword [edx]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp + 0xc]
mov eax, 0
mov al, byte [ebp - 0x28]
mov al, byte [eax + 0x4f4ae0]
mov byte [edx], al
mov edx, dword [ebp + 0xc]
inc edx
mov eax, 0
mov al, byte [ebp - 0x1b]
mov al, byte [eax + 0x4f4ae0]
mov byte [edx], al
mov edx, dword [ebp + 0xc]
add edx, 2
mov eax, 0
mov al, byte [ebp - 0x1e]
mov al, byte [eax + 0x4f4ae0]
mov byte [edx], al
mov edx, dword [ebp + 0xc]
add edx, 3
mov eax, 0
mov al, byte [ebp - 0x21]
mov al, byte [eax + 0x4f4ae0]
mov byte [edx], al
mov edx, dword [ebp + 0xc]
add edx, 4
mov eax, 0
mov al, byte [ebp - 0x24]
mov al, byte [eax + 0x4f4ae0]
mov byte [edx], al
mov edx, dword [ebp + 0xc]
add edx, 5
mov eax, 0
mov al, byte [ebp - 0x27]
mov al, byte [eax + 0x4f4ae0]
mov byte [edx], al
mov edx, dword [ebp + 0xc]
add edx, 6
mov eax, 0
mov al, byte [ebp - 0x1a]
mov al, byte [eax + 0x4f4ae0]
mov byte [edx], al
mov edx, dword [ebp + 0xc]
add edx, 7
mov eax, 0
mov al, byte [ebp - 0x1d]
mov al, byte [eax + 0x4f4ae0]
mov byte [edx], al
mov edx, dword [ebp + 0xc]
add edx, 8
mov eax, 0
mov al, byte [ebp - 0x20]
mov al, byte [eax + 0x4f4ae0]
mov byte [edx], al
mov edx, dword [ebp + 0xc]
add edx, 9
mov eax, 0
mov al, byte [ebp - 0x23]
mov al, byte [eax + 0x4f4ae0]
mov byte [edx], al
mov edx, dword [ebp + 0xc]
add edx, 0xa
mov eax, 0
mov al, byte [ebp - 0x26]
mov al, byte [eax + 0x4f4ae0]
mov byte [edx], al
mov edx, dword [ebp + 0xc]
add edx, 0xb
mov eax, 0
mov al, byte [ebp - 0x19]
mov al, byte [eax + 0x4f4ae0]
mov byte [edx], al
mov edx, dword [ebp + 0xc]
add edx, 0xc
mov eax, 0
mov al, byte [ebp - 0x1c]
mov al, byte [eax + 0x4f4ae0]
mov byte [edx], al
mov edx, dword [ebp + 0xc]
add edx, 0xd
mov eax, 0
mov al, byte [ebp - 0x1f]
mov al, byte [eax + 0x4f4ae0]
mov byte [edx], al
mov edx, dword [ebp + 0xc]
add edx, 0xe
mov eax, 0
mov al, byte [ebp - 0x22]
mov al, byte [eax + 0x4f4ae0]
mov byte [edx], al
mov edx, dword [ebp + 0xc]
add edx, 0xf
mov eax, 0
mov al, byte [ebp - 0x25]
mov al, byte [eax + 0x4f4ae0]
mov byte [edx], al
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
add eax, 0xf8
mov eax, dword [eax]
xor eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov eax, dword [ebp + 8]
add eax, 0xfc
mov eax, dword [eax]
xor eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [ebp + 0xc]
add ecx, 8
mov edx, dword [ebp + 0xc]
add edx, 8
mov eax, dword [ebp + 8]
add eax, 0x100
mov eax, dword [eax]
xor eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [ebp + 0xc]
add ecx, 0xc
mov edx, dword [ebp + 0xc]
add edx, 0xc
mov eax, dword [ebp + 8]
add eax, 0x104
mov eax, dword [eax]
xor eax, dword [edx]
mov dword [ecx], eax
leave
ret