Function at 0x49aa10
Capabilities:
Encrypt data using aes

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
mov ebp, dword [eax]
mov ecx, dword [eax + 4]
mov esi, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov edi, edx
bswap ebp
bswap ecx
bswap esi
bswap ebx
xor ebp, dword [edx]
xor ecx, dword [edx + 4]
xor esi, dword [edx + 8]
xor ebx, dword [edx + 0xc]
mov edx, dword [edx + 0xf0]
shr edx, 1
lea eax, [edx*8]
dec edx
mov dword [esp + 0x1c], edx
lea edx, [edi + 0x2c]
mov dword [esp + 0x20], eax
mov dword [esp], edx
nop dword [eax]
mov edx, ecx
mov dword [esp + 0xc], ecx
shr ecx, 0xe
mov eax, ebp
mov edi, esi
mov dword [esp + 4], ebp
and ecx, 0x3fc
shr eax, 0x18
mov ecx, dword [ecx + 0x51e6a0]
xor ecx, dword [eax*4 + 0x51e2a0]
mov eax, edx
mov edx, esi
shr edx, 0xe
shr eax, 0x18
and edx, 0x3fc
mov esi, dword [edx + 0x51e6a0]
mov edx, ebx
shr edx, 0xe
and edx, 0x3fc
mov edx, dword [edx + 0x51e6a0]
xor esi, dword [eax*4 + 0x51e2a0]
mov eax, edi
shr eax, 0x18
xor edx, dword [eax*4 + 0x51e2a0]
movzx eax, bl
mov dword [esp + 0x18], eax
movzx eax, bh
shr ebx, 0x18
mov dword [esp + 0x14], eax
mov eax, dword [esp + 4]
movzx ebp, al
mov dword [esp + 0x10], ebp
movzx ebp, ah
shr eax, 0xe
and eax, 0x3fc
mov dword [esp + 8], ebp
mov eax, dword [eax + 0x51e6a0]
xor eax, dword [ebx*4 + 0x51e2a0]
mov ebx, edi
movzx edi, bl
mov dword [esp + 0x24], edi
movzx edi, bh
mov ebx, dword [esp + 0xc]
xor ecx, dword [edi*4 + 0x51daa0]
mov edi, dword [esp + 0x14]
movzx ebp, bl
movzx ebx, bh
xor esi, dword [edi*4 + 0x51daa0]
mov edi, dword [esp + 8]
xor eax, dword [ebx*4 + 0x51daa0]
mov ebx, dword [esp + 0x24]
xor edx, dword [edi*4 + 0x51daa0]
mov edi, dword [esp + 0x18]
xor eax, dword [ebx*4 + 0x51dea0]
xor ecx, dword [edi*4 + 0x51dea0]
xor edx, dword [ebp*4 + 0x51dea0]
mov ebp, dword [esp]
mov edi, dword [esp + 0x10]
xor ecx, dword [ebp - 0x1c]
xor esi, dword [edi*4 + 0x51dea0]
xor edx, dword [ebp - 0x14]
xor eax, dword [ebp - 0x10]
mov ebx, ecx
xor esi, dword [ebp - 0x18]
shr ebx, 0x18
cmp dword [esp + 0x1c], 0
mov dword [esp + 4], esi
je 0x49ac84
mov edi, esi
shr esi, 0xe
dec dword [esp + 0x1c]
and esi, 0x3fc
mov ebp, dword [esi + 0x51e6a0]
mov esi, edx
shr esi, 0xe
and esi, 0x3fc
xor ebp, dword [ebx*4 + 0x51e2a0]
mov ebx, edi
mov edi, dword [esi + 0x51e6a0]
mov esi, eax
shr esi, 0xe
shr ebx, 0x18
and esi, 0x3fc
mov esi, dword [esi + 0x51e6a0]
xor edi, dword [ebx*4 + 0x51e2a0]
mov ebx, edx
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x51e2a0]
movzx ebx, al
mov dword [esp + 0x18], ebx
movzx ebx, ah
shr eax, 0x18
mov dword [esp + 0x14], ebx
movzx ebx, cl
mov dword [esp + 0x10], ebx
movzx ebx, ch
shr ecx, 0xe
and ecx, 0x3fc
mov dword [esp + 0xc], ebx
mov ebx, dword [ecx + 0x51e6a0]
movzx ecx, dh
xor ebp, dword [ecx*4 + 0x51daa0]
mov ecx, dword [esp + 0x14]
xor ebx, dword [eax*4 + 0x51e2a0]
movzx eax, dl
mov dword [esp + 8], eax
mov eax, dword [esp + 4]
xor edi, dword [ecx*4 + 0x51daa0]
mov ecx, dword [esp + 0xc]
movzx edx, al
movzx eax, ah
xor esi, dword [ecx*4 + 0x51daa0]
xor ebx, dword [eax*4 + 0x51daa0]
mov eax, dword [esp + 0x18]
xor esi, dword [edx*4 + 0x51dea0]
mov edx, dword [esp]
xor ebp, dword [eax*4 + 0x51dea0]
mov eax, dword [esp + 0x10]
xor esi, dword [edx - 4]
xor edi, dword [eax*4 + 0x51dea0]
mov eax, dword [esp + 8]
xor ebp, dword [edx - 0xc]
xor ebx, dword [eax*4 + 0x51dea0]
xor edi, dword [edx - 8]
xor ebx, dword [edx]
add edx, 0x20
mov ecx, edi
mov dword [esp], edx
jmp 0x49aa60
movzx edi, byte [ebx*4 + 0x51daa3]
mov ebx, esi
mov ebp, esi
shr ebx, 0x18
movzx esi, byte [ebx*4 + 0x51daa3]
mov ebx, edx
shr ebx, 0x18
shl edi, 0x18
mov dword [esp], esi
movzx esi, byte [ebx*4 + 0x51daa3]
mov ebx, ebp
mov ebp, dword [esp + 0x20]
shr ebx, 0xe
and ebx, 0x3fc
movzx ebx, byte [ebx + 0x51dea2]
shl esi, 0x18
shl ebx, 0x10
or ebx, edi
movzx edi, dh
movzx edi, byte [edi*4 + str.cc]
shl edi, 8
or edi, ebx
movzx ebx, al
movzx ebx, byte [ebx*4 + 0x51e6a0]
or ebx, edi
mov edi, dword [esp + 0x44]
xor ebx, dword [edi + ebp*4]
mov edi, dword [esp + 0x40]
bswap ebx
mov dword [edi], ebx
mov edi, edx
mov ebx, dword [esp]
movzx edx, dl
shr edi, 0xe
and edi, 0x3fc
movzx edi, byte [edi + 0x51dea2]
shl ebx, 0x18
shl edi, 0x10
or edi, ebx
movzx ebx, ah
movzx ebx, byte [ebx*4 + str.cc]
shl ebx, 8
or ebx, edi
movzx edi, cl
movzx edi, byte [edi*4 + 0x51e6a0]
or edi, ebx
mov ebx, dword [esp + 0x44]
xor edi, dword [ebx + ebp*4 + 4]
mov ebx, dword [esp + 0x40]
bswap edi
mov dword [ebx + 4], edi
mov edi, eax
mov ebx, dword [esp + 4]
shr eax, 0x18
shr edi, 0xe
movzx eax, byte [eax*4 + 0x51daa3]
and edi, 0x3fc
movzx edi, byte [edi + 0x51dea2]
shl eax, 0x18
shl edi, 0x10
or edi, esi
movzx esi, ch
shr ecx, 0xe
movzx esi, byte [esi*4 + str.cc]
and ecx, 0x3fc
movzx ecx, byte [ecx + 0x51dea2]
shl esi, 8
or esi, edi
movzx edi, bl
shl ecx, 0x10
movzx edi, byte [edi*4 + 0x51e6a0]
or ecx, eax
or edi, esi
mov esi, dword [esp + 0x44]
xor edi, dword [esi + ebp*4 + 8]
mov esi, dword [esp + 0x40]
bswap edi
mov dword [esi + 8], edi
mov edi, esi
movzx esi, bh
movzx eax, byte [esi*4 + str.cc]
movzx esi, byte [edx*4 + 0x51e6a0]
mov edx, dword [esp + 0x44]
shl eax, 8
or eax, ecx
or esi, eax
xor esi, dword [edx + ebp*4 + 0xc]
bswap esi
mov dword [edi + 0xc], esi
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret