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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx edx, byte [eax + 3]
shl edx, 8
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 4]
push ebx
push edi
movzx edi, byte [eax + 2]
or edx, edi
movzx edi, byte [eax + 1]
shl edx, 8
or edx, edi
movzx edi, byte [eax]
shl edx, 8
or edx, edi
xor edx, dword [ecx]
movzx edi, byte [eax + 6]
mov dword [ebp - 4], edx
movzx edx, byte [eax + 7]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 5]
movzx ebx, byte [eax + 0xb]
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 + 0xe]
mov dword [ebp - 8], edx
movzx edx, byte [eax + 0xa]
shl ebx, 8
or ebx, edx
movzx edx, byte [eax + 9]
shl ebx, 8
or ebx, edx
movzx edx, byte [eax + 8]
shl ebx, 8
or ebx, edx
movzx edx, byte [eax + 0xf]
xor ebx, dword [ecx + 8]
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
xor edx, dword [ecx + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], edx
mov edx, dword [eax]
sar edx, 1
add ecx, 0x10
dec edx
mov dword [ebp - 0x18], edx
mov eax, 0xff
test edx, edx
jmp 0x836c99
shr edi, 8
and edi, eax
shr edx, 0x10
shr ebx, 8
and ebx, eax
and edx, eax
mov edx, dword [edx*4 + 0x83c970]
xor edx, dword [edi*4 + 0x83cd70]
mov edi, dword [ebp - 0xc]
shr edi, 0x18
xor edx, dword [edi*4 + 0x83c570]
mov edi, dword [ebp - 4]
and edi, eax
xor edx, dword [edi*4 + 0x83d170]
mov edi, dword [ebp - 0xc]
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x83c970]
xor edi, dword [ebx*4 + 0x83cd70]
mov ebx, dword [ebp - 4]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x83c570]
mov ebx, dword [ebp - 8]
and ebx, eax
xor edi, dword [ebx*4 + 0x83d170]
mov ebx, dword [ebp - 4]
xor edi, dword [ecx + 4]
shr ebx, 0x10
mov dword [ebp + 8], edi
mov edi, dword [ebp - 0xc]
shr edi, 8
and edi, eax
mov edi, dword [edi*4 + 0x83cd70]
and ebx, eax
xor edi, dword [ebx*4 + 0x83c970]
mov ebx, dword [ebp - 8]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x83c570]
mov ebx, dword [ebp - 0x14]
and ebx, eax
xor edi, dword [ebx*4 + 0x83d170]
mov ebx, dword [ebp - 4]
xor edi, dword [ecx + 8]
shr ebx, 8
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 8]
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x83c970]
and ebx, eax
xor edi, dword [ebx*4 + 0x83cd70]
mov ebx, dword [ebp - 0x14]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x83c570]
mov ebx, dword [ebp - 0xc]
xor edx, dword [ecx]
and ebx, eax
xor edi, dword [ebx*4 + 0x83d170]
mov ebx, dword [ebp + 8]
xor edi, dword [ecx + 0xc]
shr ebx, 8
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 0x10]
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x83c970]
and ebx, eax
xor edi, dword [ebx*4 + 0x83cd70]
mov ebx, dword [ebp - 0xc]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x83c570]
mov ebx, edx
and ebx, eax
xor edi, dword [ebx*4 + 0x83d170]
mov ebx, dword [ebp - 0x10]
xor edi, dword [ecx + 0x10]
mov dword [ebp - 4], edi
mov edi, dword [ebp - 0xc]
shr edi, 0x10
and edi, eax
shr ebx, 8
mov edi, dword [edi*4 + 0x83c970]
and ebx, eax
xor edi, dword [ebx*4 + 0x83cd70]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x83c570]
mov ebx, dword [ebp + 8]
and ebx, eax
xor edi, dword [ebx*4 + 0x83d170]
mov ebx, edx
xor edi, dword [ecx + 0x14]
shr ebx, 0x10
mov dword [ebp - 8], edi
mov edi, dword [ebp - 0xc]
shr edi, 8
and edi, eax
mov edi, dword [edi*4 + 0x83cd70]
and ebx, eax
xor edi, dword [ebx*4 + 0x83c970]
mov ebx, dword [ebp + 8]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x83c570]
mov ebx, dword [ebp - 0x10]
and ebx, eax
xor edi, dword [ebx*4 + 0x83d170]
shr edx, 8
xor edi, dword [ecx + 0x18]
and edx, eax
mov ebx, edi
mov edi, dword [ebp + 8]
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x83c970]
xor edi, dword [edx*4 + 0x83cd70]
mov edx, dword [ebp - 0x10]
shr edx, 0x18
xor edi, dword [edx*4 + 0x83c570]
mov edx, dword [ebp - 0xc]
and edx, eax
xor edi, dword [edx*4 + 0x83d170]
add ecx, 0x20
xor edi, dword [ecx - 4]
dec dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 8]
mov dword [ebp - 0x14], ebx
mov edx, ebx
jg 0x836abb
shr edx, 0x10
and edx, eax
shr edi, 8
and edi, eax
shr ebx, 8
mov dword [ebp + 8], edi
mov edi, dword [edx*4 + 0x83c970]
mov edx, dword [ebp + 8]
xor edi, dword [edx*4 + 0x83cd70]
mov edx, dword [ebp - 0xc]
shr edx, 0x18
xor edi, dword [edx*4 + 0x83c570]
mov edx, dword [ebp - 4]
and edx, eax
xor edi, dword [edx*4 + 0x83d170]
mov edx, dword [ebp - 0xc]
shr edx, 0x10
and edx, eax
mov edx, dword [edx*4 + 0x83c970]
and ebx, eax
xor edx, dword [ebx*4 + 0x83cd70]
mov ebx, dword [ebp - 4]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x83c570]
mov ebx, dword [ebp - 8]
and ebx, eax
xor edx, dword [ebx*4 + 0x83d170]
mov ebx, dword [ebp - 4]
xor edx, dword [ecx + 4]
shr ebx, 0x10
mov dword [ebp + 8], edx
mov edx, dword [ebp - 0xc]
shr edx, 8
and edx, eax
mov edx, dword [edx*4 + 0x83cd70]
and ebx, eax
xor edx, dword [ebx*4 + 0x83c970]
mov ebx, dword [ebp - 8]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x83c570]
mov ebx, dword [ebp - 0x14]
and ebx, eax
xor edx, dword [ebx*4 + 0x83d170]
mov ebx, dword [ebp - 4]
xor edx, dword [ecx + 8]
shr ebx, 8
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 8]
shr edx, 0x10
and edx, eax
mov edx, dword [edx*4 + 0x83c970]
and ebx, eax
xor edx, dword [ebx*4 + 0x83cd70]
mov ebx, dword [ebp - 0x14]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x83c570]
mov ebx, dword [ebp - 0xc]
and ebx, eax
xor edx, dword [ebx*4 + 0x83d170]
mov ebx, dword [ebp - 0x10]
xor edx, dword [ecx + 0xc]
xor edi, dword [ecx]
mov dword [ebp - 0xc], edx
shr edx, 0x18
movzx edx, byte [edx + str.cw]
shr ebx, 0x10
and ebx, eax
movzx ebx, byte [ebx + str.cw]
shl edx, 8
xor ebx, edx
mov edx, dword [ebp + 8]
shr edx, 8
and edx, eax
movzx edx, byte [edx + str.cw]
shl ebx, 8
xor ebx, edx
mov edx, edi
and edx, eax
movzx edx, byte [edx + str.cw]
shl ebx, 8
xor ebx, edx
xor ebx, dword [ecx + 0x10]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 4], ebx
shr edx, 0x10
and edx, eax
movzx edx, byte [edx + str.cw]
mov ebx, edi
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
shl ebx, 8
xor edx, ebx
mov ebx, dword [ebp - 0x10]
shr ebx, 8
and ebx, eax
movzx ebx, byte [ebx + str.cw]
shl edx, 8
xor edx, ebx
mov ebx, dword [ebp + 8]
and ebx, eax
movzx ebx, byte [ebx + str.cw]
shl edx, 8
xor edx, ebx
xor edx, dword [ecx + 0x14]
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], edx
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
mov edx, edi
shr edx, 0x10
and edx, eax
movzx edx, byte [edx + str.cw]
shl ebx, 8
xor edx, ebx
mov ebx, dword [ebp - 0xc]
shr ebx, 8
and ebx, eax
movzx ebx, byte [ebx + str.cw]
shl edx, 8
xor edx, ebx
mov ebx, dword [ebp - 0x10]
and ebx, eax
movzx ebx, byte [ebx + str.cw]
shl edx, 8
xor edx, ebx
xor edx, dword [ecx + 0x18]
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 8]
shr edx, 0x10
and edx, eax
movzx edx, byte [edx + str.cw]
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
shr edi, 8
and edi, eax
movzx edi, byte [edi + str.cw]
shl ebx, 8
xor edx, ebx
shl edx, 8
xor edx, edi
mov edi, dword [ebp - 0xc]
and edi, eax
movzx eax, byte [edi + str.cw]
shl edx, 8
xor edx, eax
xor edx, dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
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 - 8]
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, dword [ebp - 0x14]
shr ecx, 0x10
mov byte [esi + 6], cl
mov ecx, eax
shr ecx, 8
mov byte [esi + 8], al
mov byte [esi + 9], cl
mov ecx, eax
shr eax, 0x18
mov byte [esi + 0xb], al
mov eax, edx
shr eax, 8
mov byte [esi + 0xd], al
mov eax, edx
shr eax, 0x10
shr ecx, 0x10
mov byte [esi + 0xc], dl
shr edx, 0x18
pop edi
mov byte [esi + 0xe], al
mov byte [esi + 0xa], cl
mov byte [esi + 0xf], dl
xor eax, eax
pop ebx
leave
ret