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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0x1c]
push edi
lea ecx, [edx + 2]
add edx, edx
lea edi, [esi + edx*8]
mov edx, dword [edi + 0x24]
xor edx, dword [ebx + 4]
mov dword [ebp - 8], edi
mov edi, dword [edi + 0x28]
xor edi, dword [ebx + 8]
add ecx, ecx
mov ecx, dword [esi + ecx*8]
xor ecx, dword [ebx]
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 8]
mov edi, dword [edi + 0x2c]
xor edi, dword [ebx + 0xc]
mov ebx, edi
shr ebx, 8
mov dword [ebp - 0x10], edi
movzx edi, bl
mov edi, dword [edi*4 + 0x4d9be8]
mov ebx, dword [ebp - 0x14]
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x4d9fe8]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4da3e8]
movzx ebx, cl
xor edi, dword [ebx*4 + 0x4d97e8]
mov ebx, dword [ebp - 0x10]
shr ebx, 0x10
mov dword [eax], edi
movzx edi, bl
mov edi, dword [edi*4 + 0x4d9fe8]
mov ebx, dword [ebp - 0x14]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4da3e8]
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x4d9be8]
movzx ebx, dl
xor edi, dword [ebx*4 + 0x4d97e8]
mov ebx, edx
mov dword [eax + 4], edi
mov edi, dword [ebp - 0x10]
shr ebx, 8
movzx ebx, bl
shr edi, 0x18
mov edi, dword [edi*4 + 0x4da3e8]
xor edi, dword [ebx*4 + 0x4d9be8]
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x4d9fe8]
movzx ebx, byte [ebp - 0x14]
xor edi, dword [ebx*4 + 0x4d97e8]
mov ebx, dword [ebp - 0x14]
mov dword [eax + 8], edi
shr edx, 0x10
shr ebx, 8
movzx edi, bl
movzx ebx, dl
mov edx, dword [edi*4 + 0x4d9be8]
xor edx, dword [ebx*4 + 0x4d9fe8]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x4da3e8]
movzx ecx, byte [ebp - 0x10]
xor edx, dword [ecx*4 + 0x4d97e8]
mov dword [eax + 0xc], edx
mov ecx, dword [esi + 0x1c]
dec ecx
cmp ecx, 1
jle 0x47470a
mov ebx, dword [eax + 8]
mov edi, dword [eax + 4]
mov dword [ebp - 4], edx
mov edx, ecx
add edx, edx
dec ecx
mov dword [ebp + 0xc], ebx
lea esi, [esi + edx*8 + 0x24]
mov dword [ebp - 8], ecx
jmp 0x4745f7
mov edi, dword [ebp - 0xc]
mov edx, dword [esi]
xor edx, edi
mov edi, dword [esi + 4]
xor edi, dword [ebp + 0xc]
mov ecx, dword [esi - 4]
mov dword [ebp - 0x14], edi
mov edi, dword [esi + 8]
xor edi, dword [ebp - 4]
xor ecx, dword [eax]
mov ebx, edi
shr ebx, 8
mov dword [ebp - 0x10], edi
movzx edi, bl
mov edi, dword [edi*4 + 0x4d9be8]
mov ebx, dword [ebp - 0x14]
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x4d9fe8]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4da3e8]
movzx ebx, cl
xor edi, dword [ebx*4 + 0x4d97e8]
mov ebx, dword [ebp - 0x10]
shr ebx, 0x10
mov dword [eax], edi
movzx edi, bl
mov edi, dword [edi*4 + 0x4d9fe8]
mov ebx, dword [ebp - 0x14]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4da3e8]
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x4d9be8]
movzx ebx, dl
xor edi, dword [ebx*4 + 0x4d97e8]
mov ebx, edx
mov dword [ebp - 0xc], edi
mov dword [eax + 4], edi
mov edi, dword [ebp - 0x10]
shr edi, 0x18
mov edi, dword [edi*4 + 0x4da3e8]
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x4d9be8]
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x4d9fe8]
movzx ebx, byte [ebp - 0x14]
xor edi, dword [ebx*4 + 0x4d97e8]
mov ebx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edi
mov dword [eax + 8], edi
shr ebx, 8
shr edx, 0x10
movzx edi, bl
mov edi, dword [edi*4 + 0x4d9be8]
movzx edx, dl
xor edi, dword [edx*4 + 0x4d9fe8]
shr ecx, 0x18
xor edi, dword [ecx*4 + 0x4da3e8]
movzx ecx, byte [ebp - 0x10]
xor edi, dword [ecx*4 + 0x4d97e8]
sub esi, 0x10
dec dword [ebp - 8]
mov ecx, edi
mov dword [ebp - 4], ecx
mov dword [eax + 0xc], ecx
jne 0x4745f4
mov esi, dword [ebp + 8]
mov edi, dword [esi + 0x38]
xor edi, dword [eax + 8]
mov ecx, dword [esi + 0x30]
xor ecx, dword [eax]
mov edx, dword [esi + 0x34]
mov dword [ebp - 0x14], edi
mov edi, dword [esi + 0x3c]
xor edi, dword [eax + 0xc]
xor edx, dword [eax + 4]
mov dword [ebp - 0x10], edi
movzx edi, cl
movzx ebx, byte [edi + 0x4da7e8]
mov byte [eax], bl
mov ebx, dword [ebp - 0x10]
shr ebx, 8
movzx edi, bl
movzx ebx, byte [edi + 0x4da7e8]
mov byte [eax + 1], bl
mov ebx, dword [ebp - 0x14]
shr ebx, 0x10
movzx edi, bl
movzx ebx, byte [edi + 0x4da7e8]
mov byte [eax + 2], bl
mov edi, edx
shr edi, 0x18
movzx ebx, byte [edi + 0x4da7e8]
mov byte [eax + 3], bl
movzx edi, dl
movzx ebx, byte [edi + 0x4da7e8]
mov byte [eax + 4], bl
mov ebx, ecx
shr ebx, 8
movzx edi, bl
movzx ebx, byte [edi + 0x4da7e8]
mov byte [eax + 5], bl
mov ebx, dword [ebp - 0x10]
shr ebx, 0x10
movzx edi, bl
movzx ebx, byte [edi + 0x4da7e8]
mov edi, dword [ebp - 0x14]
mov byte [eax + 6], bl
shr edi, 0x18
movzx ebx, byte [edi + 0x4da7e8]
movzx edi, byte [ebp - 0x14]
mov byte [eax + 7], bl
movzx ebx, byte [edi + 0x4da7e8]
mov byte [eax + 8], bl
mov ebx, edx
shr ebx, 8
movzx edi, bl
movzx ebx, byte [edi + 0x4da7e8]
mov byte [eax + 9], bl
mov ebx, ecx
shr ebx, 0x10
movzx edi, bl
movzx ebx, byte [edi + 0x4da7e8]
mov edi, dword [ebp - 0x10]
mov byte [eax + 0xa], bl
shr edi, 0x18
movzx ebx, byte [edi + 0x4da7e8]
movzx edi, byte [ebp - 0x10]
mov byte [eax + 0xb], bl
movzx ebx, byte [edi + 0x4da7e8]
mov byte [eax + 0xc], bl
mov ebx, dword [ebp - 0x14]
shr ebx, 8
shr edx, 0x10
movzx edi, bl
movzx ebx, byte [edi + 0x4da7e8]
movzx edx, dl
mov byte [eax + 0xd], bl
mov dl, byte [edx + 0x4da7e8]
mov byte [eax + 0xe], dl
shr ecx, 0x18
mov cl, byte [ecx + 0x4da7e8]
mov byte [eax + 0xf], cl
mov edx, dword [esi + 0x20]
xor dword [eax], edx
mov ecx, dword [esi + 0x24]
xor dword [eax + 4], ecx
mov edx, dword [esi + 0x28]
xor dword [eax + 8], edx
mov ecx, dword [esi + 0x2c]
xor dword [eax + 0xc], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret