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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
lea edi, [ebp - 0x28]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
cmp dword [ebp + 8], 0
je 0x1009e1f9
cmp dword [ebp + 0xc], 0
je 0x1009e1f9
cmp dword [ebp + 0x10], 0
jne 0x1009e210
push 0x1a3
push str...SourcesCrALKMMkmm_aes.c
push str.in__out__key
call fcn.100caea7
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
push 8
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.100cadeb
add esp, 8
mov esi, eax
and esi, 0xff00ff
push 8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.100caddd
add esp, 8
and eax, 0xff00ff00
or esi, eax
mov eax, dword [ebp - 4]
xor esi, dword [eax]
mov dword [ebp - 8], esi
push 8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call fcn.100cadeb
add esp, 8
mov esi, eax
and esi, 0xff00ff
push 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call fcn.100caddd
add esp, 8
and eax, 0xff00ff00
or esi, eax
mov edx, dword [ebp - 4]
xor esi, dword [edx + 4]
mov dword [ebp - 0xc], esi
push 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call fcn.100cadeb
add esp, 8
mov esi, eax
and esi, 0xff00ff
push 8
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
call fcn.100caddd
add esp, 8
and eax, 0xff00ff00
or esi, eax
mov ecx, dword [ebp - 4]
xor esi, dword [ecx + 8]
mov dword [ebp - 0x10], esi
push 8
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
call fcn.100cadeb
add esp, 8
mov esi, eax
and esi, 0xff00ff
push 8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
call fcn.100caddd
add esp, 8
and eax, 0xff00ff00
or esi, eax
mov eax, dword [ebp - 4]
xor esi, dword [eax + 0xc]
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xf0]
sar edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 8]
shr eax, 0x18
mov ecx, dword [ebp - 0x14]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [eax*4 + 0x100fb1c8]
xor edx, dword [ecx*4 + 0x100fb5c8]
mov eax, dword [ebp - 0x10]
shr eax, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x100fb9c8]
mov ecx, dword [ebp - 0xc]
and ecx, 0xff
xor edx, dword [ecx*4 + 0x100fbdc8]
mov eax, dword [ebp - 4]
xor edx, dword [eax + 0x10]
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp - 0xc]
shr ecx, 0x18
mov edx, dword [ebp - 8]
shr edx, 0x10
and edx, 0xff
mov eax, dword [ecx*4 + 0x100fb1c8]
xor eax, dword [edx*4 + 0x100fb5c8]
mov ecx, dword [ebp - 0x14]
shr ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x100fb9c8]
mov edx, dword [ebp - 0x10]
and edx, 0xff
xor eax, dword [edx*4 + 0x100fbdc8]
mov ecx, dword [ebp - 4]
xor eax, dword [ecx + 0x14]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x10]
shr edx, 0x18
mov eax, dword [ebp - 0xc]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [edx*4 + 0x100fb1c8]
xor ecx, dword [eax*4 + 0x100fb5c8]
mov edx, dword [ebp - 8]
shr edx, 8
and edx, 0xff
xor ecx, dword [edx*4 + 0x100fb9c8]
mov eax, dword [ebp - 0x14]
and eax, 0xff
xor ecx, dword [eax*4 + 0x100fbdc8]
mov edx, dword [ebp - 4]
xor ecx, dword [edx + 0x18]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x14]
shr eax, 0x18
mov ecx, dword [ebp - 0x10]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [eax*4 + 0x100fb1c8]
xor edx, dword [ecx*4 + 0x100fb5c8]
mov eax, dword [ebp - 0xc]
shr eax, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x100fb9c8]
mov ecx, dword [ebp - 8]
and ecx, 0xff
xor edx, dword [ecx*4 + 0x100fbdc8]
mov eax, dword [ebp - 4]
xor edx, dword [eax + 0x1c]
mov dword [ebp - 0x24], edx
mov ecx, dword [ebp - 4]
add ecx, 0x20
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x28]
sub edx, 1
mov dword [ebp - 0x28], edx
jne 0x1009e44e
jmp 0x1009e57e
mov eax, dword [ebp - 0x18]
shr eax, 0x18
mov ecx, dword [ebp - 0x24]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [eax*4 + 0x100fb1c8]
xor edx, dword [ecx*4 + 0x100fb5c8]
mov eax, dword [ebp - 0x20]
shr eax, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x100fb9c8]
mov ecx, dword [ebp - 0x1c]
and ecx, 0xff
xor edx, dword [ecx*4 + 0x100fbdc8]
mov eax, dword [ebp - 4]
xor edx, dword [eax]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 0x1c]
shr ecx, 0x18
mov edx, dword [ebp - 0x18]
shr edx, 0x10
and edx, 0xff
mov eax, dword [ecx*4 + 0x100fb1c8]
xor eax, dword [edx*4 + 0x100fb5c8]
mov ecx, dword [ebp - 0x24]
shr ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x100fb9c8]
mov edx, dword [ebp - 0x20]
and edx, 0xff
xor eax, dword [edx*4 + 0x100fbdc8]
mov ecx, dword [ebp - 4]
xor eax, dword [ecx + 4]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x20]
shr edx, 0x18
mov eax, dword [ebp - 0x1c]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [edx*4 + 0x100fb1c8]
xor ecx, dword [eax*4 + 0x100fb5c8]
mov edx, dword [ebp - 0x18]
shr edx, 8
and edx, 0xff
xor ecx, dword [edx*4 + 0x100fb9c8]
mov eax, dword [ebp - 0x24]
and eax, 0xff
xor ecx, dword [eax*4 + 0x100fbdc8]
mov edx, dword [ebp - 4]
xor ecx, dword [edx + 8]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x24]
shr eax, 0x18
mov ecx, dword [ebp - 0x20]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [eax*4 + 0x100fb1c8]
xor edx, dword [ecx*4 + 0x100fb5c8]
mov eax, dword [ebp - 0x1c]
shr eax, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x100fb9c8]
mov ecx, dword [ebp - 0x18]
and ecx, 0xff
xor edx, dword [ecx*4 + 0x100fbdc8]
mov eax, dword [ebp - 4]
xor edx, dword [eax + 0xc]
mov dword [ebp - 0x14], edx
jmp 0x1009e309
mov ecx, dword [ebp - 0x18]
shr ecx, 0x18
movzx edx, byte [ecx + 0x100fc1c8]
shl edx, 0x18
mov eax, dword [ebp - 0x24]
shr eax, 0x10
and eax, 0xff
movzx ecx, byte [eax + 0x100fc1c8]
shl ecx, 0x10
xor edx, ecx
mov eax, dword [ebp - 0x20]
shr eax, 8
and eax, 0xff
movzx ecx, byte [eax + 0x100fc1c8]
shl ecx, 8
xor edx, ecx
mov eax, dword [ebp - 0x1c]
and eax, 0xff
movzx ecx, byte [eax + 0x100fc1c8]
xor edx, ecx
mov eax, dword [ebp - 4]
xor edx, dword [eax]
mov dword [ebp - 8], edx
push 8
mov ecx, dword [ebp - 8]
push ecx
call fcn.100cadeb
add esp, 8
mov esi, eax
and esi, 0xff00ff
push 8
mov edx, dword [ebp - 8]
push edx
call fcn.100caddd
add esp, 8
and eax, 0xff00ff00
or esi, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov ecx, dword [ebp - 0x1c]
shr ecx, 0x18
movzx edx, byte [ecx + 0x100fc1c8]
shl edx, 0x18
mov eax, dword [ebp - 0x18]
shr eax, 0x10
and eax, 0xff
movzx ecx, byte [eax + 0x100fc1c8]
shl ecx, 0x10
xor edx, ecx
mov eax, dword [ebp - 0x24]
shr eax, 8
and eax, 0xff
movzx ecx, byte [eax + 0x100fc1c8]
shl ecx, 8
xor edx, ecx
mov eax, dword [ebp - 0x20]
and eax, 0xff
movzx ecx, byte [eax + 0x100fc1c8]
xor edx, ecx
mov eax, dword [ebp - 4]
xor edx, dword [eax + 4]
mov dword [ebp - 0xc], edx
push 8
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.100cadeb
add esp, 8
mov esi, eax
and esi, 0xff00ff
push 8
mov edx, dword [ebp - 0xc]
push edx
call fcn.100caddd
add esp, 8
and eax, 0xff00ff00
or esi, eax
mov eax, dword [ebp + 0xc]
mov dword [eax + 4], esi
mov ecx, dword [ebp - 0x20]
shr ecx, 0x18
movzx edx, byte [ecx + 0x100fc1c8]
shl edx, 0x18
mov eax, dword [ebp - 0x1c]
shr eax, 0x10
and eax, 0xff
movzx ecx, byte [eax + 0x100fc1c8]
shl ecx, 0x10
xor edx, ecx
mov eax, dword [ebp - 0x18]
shr eax, 8
and eax, 0xff
movzx ecx, byte [eax + 0x100fc1c8]
shl ecx, 8
xor edx, ecx
mov eax, dword [ebp - 0x24]
and eax, 0xff
movzx ecx, byte [eax + 0x100fc1c8]
xor edx, ecx
mov eax, dword [ebp - 4]
xor edx, dword [eax + 8]
mov dword [ebp - 0x10], edx
push 8
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.100cadeb
add esp, 8
mov esi, eax
and esi, 0xff00ff
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.100caddd
add esp, 8
and eax, 0xff00ff00
or esi, eax
mov eax, dword [ebp + 0xc]
mov dword [eax + 8], esi
mov ecx, dword [ebp - 0x24]
shr ecx, 0x18
movzx edx, byte [ecx + 0x100fc1c8]
shl edx, 0x18
mov eax, dword [ebp - 0x20]
shr eax, 0x10
and eax, 0xff
movzx ecx, byte [eax + 0x100fc1c8]
shl ecx, 0x10
xor edx, ecx
mov eax, dword [ebp - 0x1c]
shr eax, 8
and eax, 0xff
movzx ecx, byte [eax + 0x100fc1c8]
shl ecx, 8
xor edx, ecx
mov eax, dword [ebp - 0x18]
and eax, 0xff
movzx ecx, byte [eax + 0x100fc1c8]
xor edx, ecx
mov eax, dword [ebp - 4]
xor edx, dword [eax + 0xc]
mov dword [ebp - 0x14], edx
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.100cadeb
add esp, 8
mov esi, eax
and esi, 0xff00ff
push 8
mov edx, dword [ebp - 0x14]
push edx
call fcn.100caddd
add esp, 8
and eax, 0xff00ff00
or esi, eax
mov eax, dword [ebp + 0xc]
mov dword [eax + 0xc], esi
pop edi
pop esi
add esp, 0x28
cmp ebp, esp
call fcn.100c8ed9
mov esp, ebp
pop ebp
ret