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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], edi
cmp byte [edi + 4], 0
je 0x1008e46c
mov esi, dword [ebp + 8]
movzx ebx, byte [esi]
movzx edx, byte [esi + 1]
movzx ecx, byte [esi + 2]
movzx eax, byte [esi + 3]
shl ebx, 8
or ebx, edx
movzx edx, byte [esi + 5]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 6]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 4]
xor ebx, dword [edi + 8]
mov dword [ebp - 4], eax
mov edi, dword [ebp - 4]
movzx eax, byte [esi + 7]
shl edi, 8
or edi, edx
mov edx, edi
mov dword [ebp - 4], edi
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 0xa]
shl edx, 8
or edx, eax
mov eax, dword [ebp - 0xc]
xor edx, dword [eax + 0xc]
movzx eax, byte [esi + 8]
mov dword [ebp + 8], eax
mov edi, dword [ebp + 8]
movzx eax, byte [esi + 0xb]
mov dword [ebp - 4], edx
movzx edx, byte [esi + 9]
shl edi, 8
or edi, edx
mov edx, edi
mov dword [ebp + 8], edi
mov edi, dword [ebp - 0xc]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 0xc]
shl ecx, 8
shl edx, 8
or edx, eax
movzx eax, byte [esi + 0xd]
xor edx, dword [edi + 0x10]
or ecx, eax
movzx eax, byte [esi + 0xe]
shl ecx, 8
or ecx, eax
mov dword [ebp + 8], edx
movzx eax, byte [esi + 0xf]
shl ecx, 8
or ecx, eax
mov eax, dword [edi + 0x3d0]
xor ecx, dword [edi + 0x14]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x14], eax
cmp eax, 1
jle 0x1008e2eb
lea esi, [edi + 0x30]
dec eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], eax
jmp 0x1008e1cd
mov edx, dword [ebp + 8]
mov eax, ecx
sar eax, 8
movzx ecx, al
mov eax, edx
sar eax, 0x10
movzx eax, al
mov edx, dword [ebp - 4]
mov edi, dword [ecx*4 + 0x100ac158]
xor edi, dword [eax*4 + 0x100ab3f8]
mov eax, edx
sar eax, 0x18
movzx eax, al
xor edi, dword [eax*4 + 0x100acd78]
movzx eax, bl
xor edi, dword [eax*4 + 0x100abd58]
mov eax, dword [ebp - 8]
xor edi, dword [esi - 4]
sar eax, 0x10
movzx ecx, al
mov eax, dword [ebp + 8]
sar eax, 0x18
movzx eax, al
mov esi, dword [ecx*4 + 0x100ab3f8]
xor esi, dword [eax*4 + 0x100acd78]
mov eax, ebx
sar eax, 8
movzx eax, al
xor esi, dword [eax*4 + 0x100ac158]
movzx eax, dl
xor esi, dword [eax*4 + 0x100abd58]
mov eax, dword [ebp - 0x10]
xor esi, dword [eax]
mov eax, dword [ebp - 8]
sar eax, 0x18
movzx ecx, al
mov eax, edx
sar eax, 8
movzx eax, al
mov edx, dword [ecx*4 + 0x100acd78]
mov ecx, dword [ebp + 8]
xor edx, dword [eax*4 + 0x100ac158]
mov eax, ebx
sar eax, 0x10
movzx eax, al
sar ebx, 0x18
mov dword [ebp + 8], esi
xor edx, dword [eax*4 + 0x100ab3f8]
movzx eax, cl
sar ecx, 8
movzx ecx, cl
xor edx, dword [eax*4 + 0x100abd58]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x100ac158]
xor edx, dword [eax + 4]
mov eax, dword [ebp - 4]
sar eax, 0x10
movzx eax, al
mov dword [ebp - 4], edi
xor ecx, dword [eax*4 + 0x100ab3f8]
movzx eax, bl
xor ecx, dword [eax*4 + 0x100acd78]
mov eax, dword [ebp - 8]
movzx eax, al
xor ecx, dword [eax*4 + 0x100abd58]
mov eax, dword [ebp - 0x10]
mov esi, eax
add esi, 0x20
mov dword [ebp - 0x10], esi
xor ecx, dword [eax - 8]
sub dword [ebp - 0x18], 1
mov ebx, ecx
mov ecx, edx
mov dword [ebp - 8], ecx
jne 0x1008e1ca
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
shl eax, 5
mov dword [ebp - 0x14], eax
mov esi, dword [ebp + 0xc]
mov edx, dword [eax + edi + 8]
mov eax, ebx
sar eax, 0x18
mov ecx, edx
movzx eax, al
sar ecx, 0x18
xor cl, byte [eax + 0x100abc58]
mov eax, dword [ebp - 4]
sar eax, 0x10
movzx eax, al
mov byte [esi], cl
mov ecx, edx
sar ecx, 0x10
xor cl, byte [eax + 0x100abc58]
mov eax, dword [ebp + 8]
sar eax, 8
movzx eax, al
mov byte [esi + 1], cl
mov ecx, edx
sar ecx, 8
xor cl, byte [eax + 0x100abc58]
mov eax, dword [ebp - 8]
movzx eax, al
mov byte [esi + 2], cl
mov al, byte [eax + 0x100abc58]
xor al, dl
mov edx, dword [ebp - 0x14]
mov byte [esi + 3], al
mov eax, dword [ebp - 0xc]
mov edx, dword [edx + eax + 0xc]
mov ecx, edx
mov eax, dword [ebp - 4]
sar eax, 0x18
movzx eax, al
sar ecx, 0x18
xor cl, byte [eax + 0x100abc58]
mov eax, dword [ebp + 8]
sar eax, 0x10
mov byte [esi + 4], cl
mov ecx, edx
movzx eax, al
sar ecx, 0x10
xor cl, byte [eax + 0x100abc58]
mov eax, dword [ebp - 8]
sar eax, 8
mov byte [esi + 5], cl
mov ecx, edx
movzx eax, al
sar ecx, 8
xor cl, byte [eax + 0x100abc58]
mov byte [esi + 6], cl
mov ecx, dword [ebp - 0x14]
movzx eax, bl
mov al, byte [eax + 0x100abc58]
xor al, dl
mov byte [esi + 7], al
mov eax, dword [ebp - 0xc]
mov edx, dword [ecx + eax + 0x10]
mov ecx, edx
mov eax, dword [ebp + 8]
sar eax, 0x18
movzx eax, al
sar ecx, 0x18
xor cl, byte [eax + 0x100abc58]
mov eax, dword [ebp - 8]
sar eax, 0x10
mov byte [esi + 8], cl
mov ecx, edx
movzx eax, al
sar ecx, 0x10
xor cl, byte [eax + 0x100abc58]
mov eax, ebx
sar eax, 8
mov byte [esi + 9], cl
mov ecx, edx
movzx eax, al
sar ecx, 8
xor cl, byte [eax + 0x100abc58]
mov eax, dword [ebp - 4]
movzx eax, al
mov byte [esi + 0xa], cl
mov ecx, dword [ebp - 0x14]
sar ebx, 0x10
mov al, byte [eax + 0x100abc58]
xor al, dl
mov byte [esi + 0xb], al
mov eax, dword [ebp - 0xc]
pop edi
mov edx, dword [ecx + eax + 0x14]
mov ecx, edx
mov eax, dword [ebp - 8]
sar eax, 0x18
movzx eax, al
sar ecx, 0x18
xor cl, byte [eax + 0x100abc58]
mov byte [esi + 0xc], cl
mov ecx, edx
movzx eax, bl
sar ecx, 0x10
xor cl, byte [eax + 0x100abc58]
mov eax, dword [ebp - 4]
sar eax, 8
movzx eax, al
mov byte [esi + 0xd], cl
mov ecx, edx
sar ecx, 8
xor cl, byte [eax + 0x100abc58]
mov eax, dword [ebp + 8]
movzx eax, al
mov byte [esi + 0xe], cl
mov al, byte [eax + 0x100abc58]
xor al, dl
mov byte [esi + 0xf], al
pop esi
pop ebx
leave
ret 8
push 0x100f9a3c
lea ecx, [ebp - 0x24]
call fcn.1000a347
push 0x1010bd8c
lea eax, [ebp - 0x24]
push eax
call sub.VCrUnTImE140.DlL__CxxThrowException
int3