Function at 0x1009dbb0
Capabilities:
Encrypt data using aes

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 0x1009dbd9
cmp dword [ebp + 0xc], 0
je 0x1009dbd9
cmp dword [ebp + 0x10], 0
jne 0x1009dbf0
push 0xe0
push 0x10141bcc
push 0x10141c08
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 - 0xc]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [eax*4 + 0x100fa1c8]
xor edx, dword [ecx*4 + 0x100fa5c8]
mov eax, dword [ebp - 0x10]
shr eax, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x100fa9c8]
mov ecx, dword [ebp - 0x14]
and ecx, 0xff
xor edx, dword [ecx*4 + 0x100fadc8]
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 - 0x10]
shr edx, 0x10
and edx, 0xff
mov eax, dword [ecx*4 + 0x100fa1c8]
xor eax, dword [edx*4 + 0x100fa5c8]
mov ecx, dword [ebp - 0x14]
shr ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x100fa9c8]
mov edx, dword [ebp - 8]
and edx, 0xff
xor eax, dword [edx*4 + 0x100fadc8]
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 - 0x14]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [edx*4 + 0x100fa1c8]
xor ecx, dword [eax*4 + 0x100fa5c8]
mov edx, dword [ebp - 8]
shr edx, 8
and edx, 0xff
xor ecx, dword [edx*4 + 0x100fa9c8]
mov eax, dword [ebp - 0xc]
and eax, 0xff
xor ecx, dword [eax*4 + 0x100fadc8]
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 - 8]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [eax*4 + 0x100fa1c8]
xor edx, dword [ecx*4 + 0x100fa5c8]
mov eax, dword [ebp - 0xc]
shr eax, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x100fa9c8]
mov ecx, dword [ebp - 0x10]
and ecx, 0xff
xor edx, dword [ecx*4 + 0x100fadc8]
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 0x1009de2e
jmp 0x1009df5e
mov eax, dword [ebp - 0x18]
shr eax, 0x18
mov ecx, dword [ebp - 0x1c]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [eax*4 + 0x100fa1c8]
xor edx, dword [ecx*4 + 0x100fa5c8]
mov eax, dword [ebp - 0x20]
shr eax, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x100fa9c8]
mov ecx, dword [ebp - 0x24]
and ecx, 0xff
xor edx, dword [ecx*4 + 0x100fadc8]
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 - 0x20]
shr edx, 0x10
and edx, 0xff
mov eax, dword [ecx*4 + 0x100fa1c8]
xor eax, dword [edx*4 + 0x100fa5c8]
mov ecx, dword [ebp - 0x24]
shr ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x100fa9c8]
mov edx, dword [ebp - 0x18]
and edx, 0xff
xor eax, dword [edx*4 + 0x100fadc8]
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 - 0x24]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [edx*4 + 0x100fa1c8]
xor ecx, dword [eax*4 + 0x100fa5c8]
mov edx, dword [ebp - 0x18]
shr edx, 8
and edx, 0xff
xor ecx, dword [edx*4 + 0x100fa9c8]
mov eax, dword [ebp - 0x1c]
and eax, 0xff
xor ecx, dword [eax*4 + 0x100fadc8]
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 - 0x18]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [eax*4 + 0x100fa1c8]
xor edx, dword [ecx*4 + 0x100fa5c8]
mov eax, dword [ebp - 0x1c]
shr eax, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x100fa9c8]
mov ecx, dword [ebp - 0x20]
and ecx, 0xff
xor edx, dword [ecx*4 + 0x100fadc8]
mov eax, dword [ebp - 4]
xor edx, dword [eax + 0xc]
mov dword [ebp - 0x14], edx
jmp 0x1009dce9
mov ecx, dword [ebp - 0x18]
shr ecx, 0x18
mov edx, dword [ecx*4 + 0x100fa9c8]
and edx, 0xff000000
mov eax, dword [ebp - 0x1c]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [eax*4 + 0x100fadc8]
and ecx, 0xff0000
xor edx, ecx
mov eax, dword [ebp - 0x20]
shr eax, 8
and eax, 0xff
mov ecx, dword [eax*4 + 0x100fa1c8]
and ecx, 0xff00
xor edx, ecx
mov eax, dword [ebp - 0x24]
and eax, 0xff
mov ecx, dword [eax*4 + 0x100fa5c8]
and ecx, 0xff
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
mov edx, dword [ecx*4 + 0x100fa9c8]
and edx, 0xff000000
mov eax, dword [ebp - 0x20]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [eax*4 + 0x100fadc8]
and ecx, 0xff0000
xor edx, ecx
mov eax, dword [ebp - 0x24]
shr eax, 8
and eax, 0xff
mov ecx, dword [eax*4 + 0x100fa1c8]
and ecx, 0xff00
xor edx, ecx
mov eax, dword [ebp - 0x18]
and eax, 0xff
mov ecx, dword [eax*4 + 0x100fa5c8]
and ecx, 0xff
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
mov edx, dword [ecx*4 + 0x100fa9c8]
and edx, 0xff000000
mov eax, dword [ebp - 0x24]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [eax*4 + 0x100fadc8]
and ecx, 0xff0000
xor edx, ecx
mov eax, dword [ebp - 0x18]
shr eax, 8
and eax, 0xff
mov ecx, dword [eax*4 + 0x100fa1c8]
and ecx, 0xff00
xor edx, ecx
mov eax, dword [ebp - 0x1c]
and eax, 0xff
mov ecx, dword [eax*4 + 0x100fa5c8]
and ecx, 0xff
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
mov edx, dword [ecx*4 + 0x100fa9c8]
and edx, 0xff000000
mov eax, dword [ebp - 0x18]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [eax*4 + 0x100fadc8]
and ecx, 0xff0000
xor edx, ecx
mov eax, dword [ebp - 0x1c]
shr eax, 8
and eax, 0xff
mov ecx, dword [eax*4 + 0x100fa1c8]
and ecx, 0xff00
xor edx, ecx
mov eax, dword [ebp - 0x20]
and eax, 0xff
mov ecx, dword [eax*4 + 0x100fa5c8]
and ecx, 0xff
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