Function at 0x4e87ad
Capabilities:
Encrypt data using aes

Disassembly:
lea esp, [esp + 1]
mov byte [esp], ch
mov byte [esp], bl
pushfd
push word [esp + 1]
jmp 0x4e87c4
push bx
mov word [esp], di
lea esp, [esp]
pushal
lea esp, [esp + 2]
shl edx, 8
pushfd
mov byte [esp], al
pop word [esp]
jmp 0x4e86a4
pop word [esp + 0x1b]
pop dword [esp + 0xf]
pop dword [esp + 9]
push word [esp + 0x12]
lea esp, [esp + 0x1c]
push ebp
pushal
pushal
mov byte [esp + 0x21], al
mov dword [esp + 0x27], esi
pop dword [esp + 0x2b]
mov word [esp + 0xc], di
mov word [esp + 8], si
mov dword [esp + 0x38], esi
pushal
push word [esp + 1]
pop dword [esp + 3]
mov dword [esp + 1], ecx
mov word [esp + 0xf], dx
push dword [esp + 6]
push word [esp + 0x1e]
lea esp, [esp + 0x5c]
push edi
movzx edx, byte [eax]
shl edx, 8
movzx esi, byte [eax + 1]
push esp
add esp, 1
mov byte [esp + 1], cl
mov byte [esp], al
lea esp, [esp + 2]
lea esp, [esp + 1]
xor edx, esi
push bp
mov byte [esp], al
mov word [esp], ax
lea esp, [esp + 2]
movzx esi, byte [eax + 2]
jmp 0x4e86c4
pushfd
lea esp, [esp + 4]
push ax
mov byte [esp], dh
mov byte [esp], bh
mov word [esp], dx
mov byte [esp], ah
push word [esp]
pushfd
mov dword [esp + 4], ebx
pushal
jmp 0x4e86ee
pushfd
lea esp, [esp + 4]
lea esp, [esp + 4]
jmp 0x4e8781
lea esp, [esp + 3]
lea esp, [esp + 0x24]
sub esp, 0
sub esp, 0x1c
pushal
pop dword [esp + 0x1f]
sub esp, 0x1c
jmp 0x529742
mov word [esp], cx
lea esp, [esp + 6]
lea esp, [esp + 2]
jmp 0x529a7c
lea esp, [esp + 0x54]
push edx
xor edx, esi
pushfd
push dword [esp + 2]
jmp 0x529726
cmp ebx, 0x4f5508
jne 0x5298a5
push 0xa
pop eax
pop edi
pop esi
jmp 0x52978f
lea esp, [esp + 2]
shr eax, 0x10
pushfd
mov dword [esp], ecx
mov dword [esp], esi
lea esp, [esp + 4]
mov esi, 0xff
and eax, esi
push ecx
mov ecx, eax
lea ecx, [ecx*4]
lea ecx, [ecx + 0x4f3ce0]
mov eax, dword [ecx]
pop ecx
xor eax, 0x1000000
mov edi, edx
shr edi, 8
pushal
add esp, 0xb
pushfd
lea esp, [esp + 1]
and edi, esi
push sp
mov byte [esp], al
lea esp, [esp + 1]
lea esp, [esp]
lea esp, [esp]
push edx
push edx
lea esp, [esp + 1]
lea esp, [esp + 0x20]
mov edi, dword [edi*4 + 0x4f3ce0]
and edi, 0xff0000
mov ebx, dword [ecx + 4]
and eax, 0xff000000
xor eax, edi
mov edi, edx
shr edi, 0x18
movzx edi, byte [edi*4 + 0x4f3ce0]
xor eax, edi
mov edi, edx
and edi, esi
mov edi, dword [edi*4 + 0x4f3ce0]
mov ebp, 0xff00
and edi, ebp
xor eax, edi
xor eax, dword [ecx]
lea edi, [ecx + 0x10]
xor ebx, eax
push edx
push word [esp]
pop word [esp]
lea esp, [esp]
push dword [esp + 2]
push dword [esp + 2]
lea esp, [esp + 0xc]
mov dword [edi], eax
push ebp
mov ebp, ecx
lea ebp, [ebp + 8]
mov eax, dword [ebp]
pop ebp
xor eax, ebx
push esi
mov esi, ecx
lea esi, [esi + 0x14]
mov dword [esi], ebx
pop esi
mov dword [ecx + 0x18], eax
xor edx, eax
mov dword [ecx + 0x1c], edx
call fcn.0050a1c7
pushal
mov bx, 0x15b9
lea eax, [ecx*4]
mov bp, word [esp]
lea ebx, [edx - 0x24ff]
xchg bp, cx
mov al, byte [esp]
xchg si, bx
sete dh
bswap dx
mov dword [esp + 0x1c], edi
pushal
pop word [esp + 8]
lea esp, [esp + 4]
pop word [esp + 0xa]
lea esp, [esp + 7]
mov word [esp + 8], ax
pop word [esp + 5]
lea esp, [esp + 3]
lea esp, [esp + 0xc]
popal
mov edx, dword [eax + 0xc]
pushal
mov ebp, dword [esp]
xchg si, bp
mov esi, dword [esp]
mov dword [esp + 0x18], edx
pushal
lea esp, [esp + 2]
pop dword [esp + 0x12]
push word [esp + 0xe]
lea esp, [esp + 0x1c]
popal
shr ecx, 8
mov edi, edx
and ecx, esi
mov ecx, dword [ecx*4 + 0x4f3ce0]
shr edi, 0x10
pushal
mov word [esp + 0xd], sp
mov word [esp + 6], sp
push dword [esp + 0x1b]
push ebp
lea esp, [esp + 2]
pop word [esp + 0x18]
push dword [esp + 0x1b]
lea esp, [esp + 0x28]
and edi, esi
mov edi, dword [edi*4 + 0x4f3ce0]
and ecx, 0xff0000
and edi, 0xff000000
stc
xor ecx, edi
pushal
pushal
mov dword [esp + 7], edi
lea esp, [esp + 0x40]
pushal
xchg cl, al
not bx
mov dword [esp], edx
pushfd
pop word [esp]
lea esp, [esp + 2]
popal
and edx, esi
mov edx, dword [edx*4 + 0x4f3ce0]
shr edi, 0x18
movzx edi, byte [edi*4 + 0x4f3ce0]
xor ecx, edi
and edx, ebp
sub esp, 7
mov byte [esp + 2], bl
mov dword [esp], ebp
mov byte [esp + 2], bh
lea esp, [esp + 3]
xor ecx, edx
lea esp, [esp + 4]
xor ecx, dword [ebx]
lea edi, [eax + 0x10]
xor ecx, dword [eax]
add ebx, 4
mov dword [edi], ecx
push ebp
mov ebp, eax
lea ebp, [ebp + 4]
mov edx, dword [ebp]
pop ebp
xor edx, ecx
mov dword [eax + 0x14], edx
mov ecx, dword [eax + 8]
stc
clc
sub esp, 6
add esp, 0
mov byte [esp + 3], ch
mov dword [esp], edi
sub esp, 0xc
mov word [esp + 2], di
lea esp, [esp + 2]
xor ecx, edx
pushfd
push si
mov byte [esp + 1], dh
mov dword [esp], edx
lea esp, [esp + 2]
lea esp, [esp + 0x14]
push esi
mov esi, eax
lea esi, [esi + 0x18]
mov dword [esi], ecx
pop esi
push ebx
pushal
lea ecx, [edx - 0x4ba8]
xchg esi, ebx
lea edi, [edi + 0xc842337]
xchg bx, bp
mov bh, 0xcf
lea ecx, [ebp + 0x1f0c1be8]
mov bl, ch
bswap bx
mov dword [esp + 0x10], eax
pushal
lea esp, [esp + 0x20]
popal
lea ebx, [ebx + 0xc]
mov edx, dword [ebx]
pop ebx
stc
sub esp, 0x17
mov word [esp + 5], bx
pop dword [esp + 0xe]
lea esp, [esp + 3]
xor edx, ecx
pushfd
push dword [esp + 1]
mov byte [esp + 1], bl
pop dword [esp]
mov byte [esp + 1], dl
pushfd
push word [esp + 5]
lea esp, [esp + 2]
lea esp, [esp + 0x18]
mov dword [eax + 0x1c], edx
jmp 0x5297ac
lea esp, [esp + 4]
movzx esi, byte [eax + 3]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 5]
mov dword [ecx], edx
movzx edx, byte [eax + 4]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 6]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 7]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 9]
push eax
mov eax, ecx
lea eax, [eax + 4]
mov dword [eax], edx
pop eax
movzx edx, byte [eax + 8]
push di
lea esp, [esp + 1]
lea esp, [esp]
pushfd
lea esp, [esp + 1]
shl edx, 8
push ecx
push word [esp]
push dx
pushal
pop word [esp + 0x15]
mov byte [esp + 5], dl
mov dword [esp + 3], ebx
lea esp, [esp + 2]
lea esp, [esp + 0x28]
xor edx, esi
movzx esi, byte [eax + 0xa]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 0xb]
shl edx, 8
sub esp, 0
push edx
push dword [esp + 1]
xor edx, esi
pushal
lea esp, [esp + 0x17]
push ebx
push dword [esp + 4]
mov word [esp + 0xb], di
mov dword [esp + 2], ebp
pop dword [esp + 3]
lea esp, [esp + 1]
lea esp, [esp + 0x14]
movzx esi, byte [eax + 0xd]
push ebp
mov ebp, ecx
lea ebp, [ebp + 8]
mov dword [ebp], edx
pop ebp
movzx edx, byte [eax + 0xc]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 0xe]
movzx eax, byte [eax + 0xf]
shl edx, 8
sub esp, 7
push cx
mov word [esp], di
push word [esp]
lea esp, [esp + 3]
xor edx, esi
pushal
pushfd
lea esp, [esp + 3]
lea esp, [esp + 0x11]
push dword [esp + 8]
lea esp, [esp + 0x1c]
shl edx, 8
pushfd
xor edx, eax
push cx
pushfd
push word [esp + 3]
push dword [esp + 1]
pushal
push word [esp + 0x1e]
lea esp, [esp + 2]
lea esp, [esp + 0x30]
mov dword [ecx + 0xc], edx
mov eax, edx
push ax
jmp 0x5297ca