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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx edx, byte [eax + 2]
push ebx
movzx ebx, byte [eax + 3]
shl ebx, 8
or ebx, edx
movzx edx, byte [eax + 1]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 4]
shl ebx, 8
or ebx, edx
movzx edx, byte [eax]
push edi
movzx edi, byte [eax + 6]
shl ebx, 8
or ebx, edx
movzx edx, byte [eax + 7]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 5]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 4]
shl edx, 8
or edx, edi
xor edx, dword [ecx + 4]
movzx edi, byte [eax + 0xa]
mov dword [ebp - 4], edx
movzx edx, byte [eax + 0xb]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 9]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 8]
shl edx, 8
or edx, edi
xor edx, dword [ecx + 8]
movzx edi, byte [eax + 0xe]
xor ebx, dword [ecx]
mov dword [ebp - 8], edx
movzx edx, byte [eax + 0xf]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 0xd]
movzx eax, byte [eax + 0xc]
shl edx, 8
or edx, edi
shl edx, 8
or edx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax]
xor edx, dword [ecx + 0xc]
sar edi, 1
add ecx, 0x10
dec edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], edi
mov eax, 0xff
test edi, edi
mov edi, dword [ebp - 8]
mov dword [ebp - 0x10], edx
jle 0x8371c9
shr edi, 0x10
and edi, eax
shr edx, 8
and edx, eax
mov edx, dword [edx*4 + 0x83bd70]
xor edx, dword [edi*4 + 0x83b948]
mov edi, dword [ebp - 4]
shr edi, 0x18
xor edx, dword [edi*4 + 0x83b548]
mov edi, ebx
and edi, eax
xor edx, dword [edi*4 + 0x83c170]
mov edi, ebx
xor edx, dword [ecx]
shr edi, 8
and edi, eax
mov dword [ebp + 8], edx
mov edx, dword [ebp - 0x10]
shr edx, 0x10
and edx, eax
mov edx, dword [edx*4 + 0x83b948]
xor edx, dword [edi*4 + 0x83bd70]
mov edi, dword [ebp - 8]
shr edi, 0x18
xor edx, dword [edi*4 + 0x83b548]
mov edi, dword [ebp - 4]
and edi, eax
xor edx, dword [edi*4 + 0x83c170]
mov edi, dword [ebp - 4]
shr edi, 8
and edi, eax
mov edi, dword [edi*4 + 0x83bd70]
shr ebx, 0x10
and ebx, eax
xor edi, dword [ebx*4 + 0x83b948]
mov ebx, dword [ebp - 0x10]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x83b548]
mov ebx, dword [ebp - 8]
and ebx, eax
xor edi, dword [ebx*4 + 0x83c170]
mov ebx, dword [ebp - 4]
xor edi, dword [ecx + 8]
shr ebx, 0x10
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 8]
shr edi, 8
and edi, eax
mov edi, dword [edi*4 + 0x83bd70]
and ebx, eax
xor edi, dword [ebx*4 + 0x83b948]
mov ebx, dword [ebp - 0x14]
xor edx, dword [ecx + 4]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x83b548]
mov ebx, dword [ebp - 0x10]
and ebx, eax
xor edi, dword [ebx*4 + 0x83c170]
mov ebx, dword [ebp - 0xc]
xor edi, dword [ecx + 0xc]
shr ebx, 0x10
mov dword [ebp - 0x10], edi
shr edi, 8
and edi, eax
mov edi, dword [edi*4 + 0x83bd70]
and ebx, eax
xor edi, dword [ebx*4 + 0x83b948]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x83b548]
mov ebx, dword [ebp + 8]
and ebx, eax
xor edi, dword [ebx*4 + 0x83c170]
mov ebx, dword [ebp + 8]
xor edi, dword [ecx + 0x10]
shr ebx, 8
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x10]
shr edi, 0x10
and edi, eax
and ebx, eax
mov edi, dword [edi*4 + 0x83b948]
xor edi, dword [ebx*4 + 0x83bd70]
mov ebx, dword [ebp - 0xc]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x83b548]
mov ebx, edx
and ebx, eax
xor edi, dword [ebx*4 + 0x83c170]
mov ebx, dword [ebp + 8]
xor edi, dword [ecx + 0x14]
shr ebx, 0x10
mov dword [ebp - 4], edi
mov edi, edx
shr edi, 8
and edi, eax
mov edi, dword [edi*4 + 0x83bd70]
and ebx, eax
xor edi, dword [ebx*4 + 0x83b948]
mov ebx, dword [ebp - 0x10]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x83b548]
mov ebx, dword [ebp - 0xc]
and ebx, eax
xor edi, dword [ebx*4 + 0x83c170]
mov ebx, dword [ebp - 0x14]
xor edi, dword [ecx + 0x18]
shr edx, 0x10
mov dword [ebp - 8], edi
mov edi, dword [ebp - 0xc]
shr edi, 8
and edi, eax
mov edi, dword [edi*4 + 0x83bd70]
and edx, eax
xor edi, dword [edx*4 + 0x83b948]
mov edx, dword [ebp + 8]
shr edx, 0x18
xor edi, dword [edx*4 + 0x83b548]
mov edx, dword [ebp - 0x10]
and edx, eax
xor edi, dword [edx*4 + 0x83c170]
add ecx, 0x20
xor edi, dword [ecx - 4]
dec dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0
mov edx, edi
jmp 0x836fdc
shr edx, 8
and edx, eax
mov edx, dword [edx*4 + 0x83bd70]
shr edi, 0x10
and edi, eax
xor edx, dword [edi*4 + 0x83b948]
mov edi, dword [ebp - 4]
shr edi, 0x18
xor edx, dword [edi*4 + 0x83b548]
mov edi, ebx
and edi, eax
xor edx, dword [edi*4 + 0x83c170]
mov edi, ebx
xor edx, dword [ecx]
shr edi, 8
mov dword [ebp + 8], edx
mov edx, dword [ebp - 0x10]
shr edx, 0x10
and edx, eax
and edi, eax
mov dword [ebp - 0x18], edi
mov edi, dword [edx*4 + 0x83b948]
mov edx, dword [ebp - 0x18]
xor edi, dword [edx*4 + 0x83bd70]
mov edx, dword [ebp - 8]
shr edx, 0x18
xor edi, dword [edx*4 + 0x83b548]
mov edx, dword [ebp - 4]
and edx, eax
xor edi, dword [edx*4 + 0x83c170]
mov edx, dword [ebp - 4]
shr edx, 8
shr ebx, 0x10
and edx, eax
mov edx, dword [edx*4 + 0x83bd70]
and ebx, eax
xor edx, dword [ebx*4 + 0x83b948]
mov ebx, dword [ebp - 0x10]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x83b548]
mov ebx, dword [ebp - 8]
and ebx, eax
xor edx, dword [ebx*4 + 0x83c170]
mov ebx, dword [ebp - 4]
xor edx, dword [ecx + 8]
xor edi, dword [ecx + 4]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 8]
shr edx, 8
shr ebx, 0x10
and edx, eax
mov edx, dword [edx*4 + 0x83bd70]
and ebx, eax
xor edx, dword [ebx*4 + 0x83b948]
mov ebx, dword [ebp - 0x14]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x83b548]
mov ebx, dword [ebp - 0x10]
and ebx, eax
xor edx, dword [ebx*4 + 0x83c170]
mov ebx, edi
xor edx, dword [ecx + 0xc]
shr ebx, 0x18
movzx ebx, byte [ebx + 0x83d570]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0xc]
shr edx, 0x10
and edx, eax
movzx edx, byte [edx + 0x83d570]
shl ebx, 8
xor edx, ebx
mov ebx, dword [ebp - 0x10]
shr ebx, 8
and ebx, eax
movzx ebx, byte [ebx + 0x83d570]
shl edx, 8
xor edx, ebx
mov ebx, dword [ebp + 8]
shl edx, 8
and ebx, eax
movzx ebx, byte [ebx + 0x83d570]
xor edx, ebx
xor edx, dword [ecx + 0x10]
mov ebx, dword [ebp - 0xc]
shr ebx, 0x18
movzx ebx, byte [ebx + 0x83d570]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x10]
shl ebx, 8
shr edx, 0x10
and edx, eax
movzx edx, byte [edx + 0x83d570]
xor edx, ebx
mov ebx, dword [ebp + 8]
shr ebx, 8
and ebx, eax
movzx ebx, byte [ebx + 0x83d570]
shl edx, 8
xor edx, ebx
mov ebx, edi
and ebx, eax
movzx ebx, byte [ebx + 0x83d570]
shl edx, 8
xor edx, ebx
xor edx, dword [ecx + 0x14]
mov ebx, dword [ebp - 0x10]
shr ebx, 0x18
movzx ebx, byte [ebx + 0x83d570]
mov dword [ebp - 4], edx
mov edx, dword [ebp + 8]
shl ebx, 8
shr edx, 0x10
and edx, eax
movzx edx, byte [edx + 0x83d570]
xor edx, ebx
mov ebx, edi
shr ebx, 8
and ebx, eax
movzx ebx, byte [ebx + 0x83d570]
shl edx, 8
xor edx, ebx
mov ebx, dword [ebp - 0xc]
and ebx, eax
movzx ebx, byte [ebx + 0x83d570]
shr edi, 0x10
and edi, eax
shl edx, 8
xor edx, ebx
movzx ebx, byte [edi + 0x83d570]
mov edi, dword [ebp + 8]
xor edx, dword [ecx + 0x18]
shr edi, 0x18
movzx edi, byte [edi + 0x83d570]
shl edi, 8
xor ebx, edi
mov edi, dword [ebp - 0xc]
shr edi, 8
and edi, eax
movzx edi, byte [edi + 0x83d570]
shl ebx, 8
xor ebx, edi
mov edi, dword [ebp - 0x10]
and edi, eax
movzx eax, byte [edi + 0x83d570]
shl ebx, 8
xor ebx, eax
xor ebx, dword [ecx + 0x1c]
mov eax, dword [ebp - 0x14]
mov ecx, eax
shr ecx, 8
mov byte [esi + 1], cl
mov ecx, eax
mov byte [esi], al
shr eax, 0x18
shr ecx, 0x10
mov byte [esi + 3], al
mov eax, dword [ebp - 4]
mov byte [esi + 2], cl
mov ecx, eax
shr ecx, 8
mov byte [esi + 4], al
mov byte [esi + 5], cl
mov ecx, eax
shr eax, 0x18
mov byte [esi + 7], al
mov eax, edx
shr eax, 8
mov byte [esi + 9], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 0xa], al
mov eax, ebx
shr eax, 8
mov byte [esi + 0xd], al
mov eax, ebx
mov byte [esi + 0xc], bl
shr ebx, 0x18
shr eax, 0x10
shr ecx, 0x10
mov byte [esi + 8], dl
shr edx, 0x18
pop edi
mov byte [esi + 0xe], al
mov byte [esi + 0xf], bl
mov byte [esi + 6], cl
mov byte [esi + 0xb], dl
xor eax, eax
pop ebx
leave
ret