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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
movzx ecx, byte [eax + 4]
test ecx, ecx
jne 0x1001ec9b
mov edx, dword [str.Object_not_Initialized]
mov dword [ebp - 0x2c], edx
push 0x100ed630
lea eax, [ebp - 0x2c]
push eax
call fcn.100a9b3b
mov ecx, dword [ebp - 0x34]
cmp dword [ecx + 0x3c9], 0x10
jne 0x1001ecbc
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x34]
call fcn.1001e150
jmp 0x1001f01c
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 0x3c9]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jne 0x1001ece0
mov dword [ebp - 0x38], 0
jmp 0x1001ecef
xor edx, edx
cmp dword [ebp - 4], 6
setne dl
add edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
shl ecx, 5
mov edx, dword [ecx + 0x100dea98]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x10]
shl eax, 5
mov ecx, dword [eax + 0x100deaa0]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x10]
shl edx, 5
mov eax, dword [edx + 0x100deaa8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x34]
add ecx, 0x451
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], 0
jmp 0x1001ed40
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 4]
jge 0x1001eddc
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx]
shl edx, 0x18
mov eax, dword [ebp - 0x14]
mov dword [eax], edx
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
shl eax, 0x10
mov ecx, dword [ebp - 0x14]
or eax, dword [ecx]
mov edx, dword [ebp - 0x14]
mov dword [edx], eax
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx]
shl edx, 8
mov eax, dword [ebp - 0x14]
or edx, dword [eax]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], edx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx]
mov eax, dword [ebp - 0x30]
or edx, dword [eax]
mov ecx, dword [ebp - 0x30]
mov dword [ecx], edx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ecx]
xor ecx, dword [eax + edx*4 + 5]
mov edx, dword [ebp - 0x30]
mov dword [edx], ecx
jmp 0x1001ed37
mov dword [ebp - 0x28], 1
jmp 0x1001edee
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x28]
cmp edx, dword [ecx + 0x3cd]
jge 0x1001eef1
mov dword [ebp - 0xc], 0
jmp 0x1001ee12
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 4]
jge 0x1001eec9
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + edx*4 + 0x451]
sar ecx, 0x18
and ecx, 0xff
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x1c]
cdq
idiv dword [ebp - 4]
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + edx*4 + 0x451]
sar edx, 0x10
and edx, 0xff
mov ecx, dword [ecx*4 + 0x100dba70]
xor ecx, dword [edx*4 + 0x100dbe70]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x18]
cdq
idiv dword [ebp - 4]
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + edx*4 + 0x451]
sar edx, 8
and edx, 0xff
xor ecx, dword [edx*4 + 0x100dc270]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
cdq
idiv dword [ebp - 4]
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + edx*4 + 0x451]
and edx, 0xff
xor ecx, dword [edx*4 + 0x100dc670]
mov eax, dword [ebp - 0x28]
shl eax, 5
mov edx, dword [ebp - 0x34]
lea eax, [edx + eax + 5]
mov edx, dword [ebp - 0xc]
xor ecx, dword [eax + edx*4]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x34]
mov dword [edx + eax*4 + 0x431], ecx
jmp 0x1001ee09
mov eax, dword [ebp - 4]
shl eax, 2
push eax
mov ecx, dword [ebp - 0x34]
add ecx, 0x431
push ecx
mov edx, dword [ebp - 0x34]
add edx, 0x451
push edx
call fcn.1009e2f0
add esp, 0xc
jmp 0x1001ede5
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x24], 0
jmp 0x1001ef0a
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 4]
jge 0x1001f01c
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x3cd]
shl eax, 5
mov ecx, dword [ebp - 0x34]
lea edx, [ecx + eax + 5]
mov eax, dword [ebp - 0xc]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + edx*4 + 0x451]
sar ecx, 0x18
and ecx, 0xff
movsx edx, byte [ecx + str.cw]
mov eax, dword [ebp - 0x20]
sar eax, 0x18
xor edx, eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x24]
mov byte [ecx], dl
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x1c]
cdq
idiv dword [ebp - 4]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + edx*4 + 0x451]
sar ecx, 0x10
and ecx, 0xff
movsx edx, byte [ecx + str.cw]
mov eax, dword [ebp - 0x20]
sar eax, 0x10
xor edx, eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x24]
mov byte [ecx], dl
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x18]
cdq
idiv dword [ebp - 4]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + edx*4 + 0x451]
sar ecx, 8
and ecx, 0xff
movsx edx, byte [ecx + str.cw]
mov eax, dword [ebp - 0x20]
sar eax, 8
xor edx, eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x24]
mov byte [ecx], dl
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
cdq
idiv dword [ebp - 4]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + edx*4 + 0x451]
and ecx, 0xff
movsx edx, byte [ecx + str.cw]
xor edx, dword [ebp - 0x20]
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x24]
mov byte [eax], dl
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
jmp 0x1001ef01
mov esp, ebp
pop ebp
ret 8