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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
mov edx, dword [eax + 8]
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov esi, dword [eax + 0xc]
bswap edx
bswap edi
bswap ebx
bswap esi
xor edx, dword [ecx + 8]
xor edi, dword [ecx]
xor ebx, dword [ecx + 4]
xor esi, dword [ecx + 0xc]
mov dword [esp], edx
mov edx, dword [ecx + 0xf0]
add ecx, 0x2c
mov dword [esp + 0x10], ecx
shr edx, 1
lea eax, [edx*8]
dec edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], edx
nop
mov ebp, edi
mov dword [esp + 8], esi
shr esi, 0xe
mov eax, edi
mov dword [esp + 4], edi
mov edi, ebx
mov ecx, ebp
and esi, 0x3fc
shr eax, 0x18
mov edx, dword [esi + 0x51eec8]
shr ecx, 0xe
and ecx, 0x3fc
mov esi, dword [ecx + 0x51eec8]
mov ecx, edi
shr ecx, 0xe
xor edx, dword [eax*4 + 0x51eac8]
mov eax, ebx
and ecx, 0x3fc
shr eax, 0x18
mov ecx, dword [ecx + 0x51eec8]
xor esi, dword [eax*4 + 0x51eac8]
mov eax, dword [esp]
mov ebx, eax
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x51eac8]
mov ebx, dword [esp + 8]
movzx ebp, bl
mov dword [esp + 0xc], ebp
movzx ebp, bh
shr ebx, 0x18
mov dword [esp + 0x1c], ebp
movzx ebp, al
mov dword [esp + 8], ebp
movzx ebp, ah
shr eax, 0xe
and eax, 0x3fc
mov dword [esp + 0x18], ebp
mov eax, dword [eax + 0x51eec8]
xor eax, dword [ebx*4 + 0x51eac8]
mov ebx, dword [esp + 4]
movzx ebp, bl
mov dword [esp], ebp
movzx ebp, bh
mov ebx, edi
movzx edi, bl
movzx ebx, bh
xor ecx, dword [ebp*4 + 0x51f2c8]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x18]
xor edx, dword [ebx*4 + 0x51f2c8]
mov ebx, dword [esp + 0x1c]
xor esi, dword [ebx*4 + 0x51f2c8]
xor edx, dword [edi*4 + 0x51f6c8]
mov edi, dword [esp + 8]
mov ebx, dword [esp + 0x10]
xor esi, dword [edi*4 + 0x51f6c8]
mov edi, dword [esp + 0xc]
xor edx, dword [ebx - 0x1c]
xor ecx, dword [edi*4 + 0x51f6c8]
mov edi, dword [esp + 4]
xor esi, dword [ebx - 0x18]
mov ebp, esi
xor eax, dword [edi*4 + 0x51f2c8]
mov esi, dword [esp]
xor ecx, dword [ebx - 0x14]
mov dword [esp + 8], ebp
xor eax, dword [esi*4 + 0x51f6c8]
xor eax, dword [ebx - 0x10]
mov ebx, edx
shr ebx, 0x18
cmp dword [esp + 0x14], 0
je 0x49b084
mov esi, eax
dec dword [esp + 0x14]
shr esi, 0xe
and esi, 0x3fc
mov edi, dword [esi + 0x51eec8]
mov esi, ebp
shr esi, 0x18
mov dword [esp], esi
mov esi, edx
shr esi, 0xe
and esi, 0x3fc
xor edi, dword [ebx*4 + 0x51eac8]
mov ebx, dword [esi + 0x51eec8]
mov esi, dword [esp]
mov dword [esp], ecx
shr dword [esp], 0x18
xor ebx, dword [esi*4 + 0x51eac8]
mov esi, ebp
shr esi, 0xe
and esi, 0x3fc
mov ebp, dword [esi + 0x51eec8]
mov esi, dword [esp]
xor ebp, dword [esi*4 + 0x51eac8]
movzx esi, al
mov dword [esp], esi
movzx esi, ah
shr eax, 0x18
mov dword [esp + 0xc], esi
movzx esi, cl
mov dword [esp + 4], esi
movzx esi, ch
shr ecx, 0xe
and ecx, 0x3fc
mov dword [esp + 0x1c], esi
mov esi, dword [ecx + 0x51eec8]
movzx ecx, dh
xor ebp, dword [ecx*4 + 0x51f2c8]
mov ecx, dword [esp + 0x10]
xor esi, dword [eax*4 + 0x51eac8]
movzx eax, dl
mov edx, dword [esp + 8]
mov dword [esp + 0x18], eax
movzx eax, dl
movzx edx, dh
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
xor esi, dword [edx*4 + 0x51f2c8]
xor edi, dword [eax*4 + 0x51f2c8]
mov eax, dword [esp + 0xc]
xor ebx, dword [eax*4 + 0x51f2c8]
mov eax, dword [esp + 0x24]
xor edi, dword [eax*4 + 0x51f6c8]
mov eax, dword [esp + 4]
xor ebx, dword [eax*4 + 0x51f6c8]
mov eax, dword [esp]
xor edi, dword [ecx - 0xc]
xor ebp, dword [eax*4 + 0x51f6c8]
mov eax, dword [esp + 0x18]
xor ebx, dword [ecx - 8]
xor esi, dword [eax*4 + 0x51f6c8]
xor ebp, dword [ecx - 4]
xor esi, dword [ecx]
add ecx, 0x20
mov dword [esp], ebp
mov dword [esp + 0x10], ecx
jmp 0x49ae40
movzx edi, byte [ebx + 0x51fac8]
mov ebx, eax
mov dword [esp + 0xc], edx
shr ebx, 0x10
movzx esi, bl
mov ebx, ebp
shr ebx, 0x18
mov dword [esp + 0x10], esi
movzx esi, byte [ebx + 0x51fac8]
mov ebx, edx
mov edx, ebp
shl edi, 0x18
shr edx, 0x10
shr ebx, 0x10
movzx edx, dl
mov dword [esp + 4], edx
mov edx, dword [esp + 0x10]
mov dword [esp], esi
movzx esi, bl
mov ebx, ecx
shr ebx, 0x18
mov dword [esp + 0x14], esi
movzx esi, byte [ebx + 0x51fac8]
mov ebx, ebp
mov ebp, dword [esp + 0x20]
movzx edx, byte [edx + 0x51fac8]
shl esi, 0x18
shl edx, 0x10
or edx, edi
movzx edi, ch
movzx edi, byte [edi + 0x51fac8]
shl edi, 8
or edi, edx
movzx edx, bl
movzx edx, byte [edx + 0x51fac8]
or edx, edi
mov edi, dword [esp + 0x44]
mov ebx, edi
mov edi, dword [esp + 0x40]
xor edx, dword [ebx + ebp*4]
bswap edx
mov dword [edi], edx
mov edx, dword [esp + 0x14]
mov edi, dword [esp]
movzx edx, byte [edx + 0x51fac8]
shl edi, 0x18
shl edx, 0x10
or edx, edi
movzx edi, ah
movzx edi, byte [edi + 0x51fac8]
shl edi, 8
or edi, edx
movzx edx, cl
shr ecx, 0x10
movzx edx, byte [edx + 0x51fac8]
movzx ecx, cl
movzx ecx, byte [ecx + 0x51fac8]
or edx, edi
mov edi, dword [esp + 0x40]
xor edx, dword [ebx + ebp*4 + 4]
mov ebx, dword [esp + 0xc]
shl ecx, 0x10
bswap edx
mov dword [edi + 4], edx
mov edx, dword [esp + 4]
movzx edx, byte [edx + 0x51fac8]
shl edx, 0x10
or edx, esi
movzx esi, bh
movzx esi, byte [esi + 0x51fac8]
shl esi, 8
or esi, edx
movzx edx, al
shr eax, 0x18
movzx edx, byte [edx + 0x51fac8]
movzx eax, byte [eax + 0x51fac8]
or edx, esi
mov esi, dword [esp + 0x44]
shl eax, 0x18
or ecx, eax
xor edx, dword [esi + ebp*4 + 8]
movzx esi, bl
movzx ebx, byte [esi + 0x51fac8]
bswap edx
mov dword [edi + 8], edx
mov edx, dword [esp + 8]
movzx edx, dh
movzx eax, byte [edx + 0x51fac8]
mov edx, dword [esp + 0x44]
shl eax, 8
or eax, ecx
or ebx, eax
xor ebx, dword [edx + ebp*4 + 0xc]
bswap ebx
mov dword [edi + 0xc], ebx
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret