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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 4]
test eax, eax
jne 0x100153e7
push dword [0x100b0024]
lea ecx, [ebp - 0x44]
call fcn.10014b11
push 0x100ad5f0
lea eax, [ebp - 0x44]
push eax
call fcn.100236cc
mov eax, dword [ebp - 8]
cmp dword [eax + 0x3cc], 0x10
jne 0x10015406
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.10014bb1
jmp 0x1001577a
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3cc]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 4
jne 0x10015427
and dword [ebp - 0x2c], 0
jmp 0x10015443
cmp dword [ebp - 0xc], 6
jne 0x10015436
mov dword [ebp - 0x28], 1
jmp 0x1001543d
mov dword [ebp - 0x28], 2
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
shl eax, 5
push 8
pop ecx
shl ecx, 0
lea eax, [eax + ecx + 0x1009f7f8]
push 4
pop ecx
imul ecx, ecx, 0
mov eax, dword [eax + ecx]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
shl eax, 5
push 8
pop ecx
shl ecx, 1
lea eax, [eax + ecx + 0x1009f7f8]
push 4
pop ecx
imul ecx, ecx, 0
mov eax, dword [eax + ecx]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x24]
shl eax, 5
push 8
pop ecx
imul ecx, ecx, 3
lea eax, [eax + ecx + 0x1009f7f8]
push 4
pop ecx
imul ecx, ecx, 0
mov eax, dword [eax + ecx]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 8]
add eax, 0x454
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
jmp 0x100154bd
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jge 0x1001555a
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
shl eax, 0x18
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
shl eax, 0x10
mov ecx, dword [ebp - 0x14]
or eax, dword [ecx]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
shl eax, 8
mov ecx, dword [ebp - 0x14]
or eax, dword [ecx]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov ecx, dword [ebp - 0x18]
or eax, dword [ecx]
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
push 0x20
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 8]
lea eax, [ecx + eax + 8]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
mov ecx, dword [ecx]
xor ecx, dword [eax + edx*4]
mov eax, dword [ebp - 0x18]
mov dword [eax], ecx
jmp 0x100154b6
mov dword [ebp - 0x1c], 1
jmp 0x1001556a
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x3d0]
jge 0x10015663
and dword [ebp - 4], 0
jmp 0x10015589
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jge 0x1001563d
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + eax*4 + 0x454]
sar ecx, 0x18
and ecx, 0xff
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x30]
cdq
idiv dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + edx*4 + 0x454]
sar eax, 0x10
and eax, 0xff
mov ecx, dword [ecx*4 + 0x1009c7d8]
xor ecx, dword [eax*4 + 0x1009cbd8]
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x34]
cdq
idiv dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + edx*4 + 0x454]
sar eax, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x1009cfd8]
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x38]
cdq
idiv dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + edx*4 + 0x454]
and eax, 0xff
xor ecx, dword [eax*4 + 0x1009d3d8]
mov eax, dword [ebp - 0x1c]
shl eax, 5
mov edx, dword [ebp - 8]
lea eax, [edx + eax + 8]
mov edx, dword [ebp - 4]
xor ecx, dword [eax + edx*4]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + eax*4 + 0x434], ecx
jmp 0x10015582
mov eax, dword [ebp - 0xc]
shl eax, 2
push eax
mov eax, dword [ebp - 8]
add eax, 0x434
push eax
mov eax, dword [ebp - 8]
add eax, 0x454
push eax
call fcn.100229f0
add esp, 0xc
jmp 0x10015563
and dword [ebp - 4], 0
and dword [ebp - 0x10], 0
jmp 0x10015674
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jge 0x1001577a
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3d0]
shl eax, 5
mov ecx, dword [ebp - 8]
lea eax, [ecx + eax + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + eax*4 + 0x454]
sar eax, 0x18
and eax, 0xff
movsx eax, byte [eax + str.cw]
mov ecx, dword [ebp - 0x20]
sar ecx, 0x18
xor eax, ecx
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x10]
mov byte [ecx], al
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x30]
cdq
idiv dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + edx*4 + 0x454]
sar eax, 0x10
and eax, 0xff
movsx eax, byte [eax + str.cw]
mov ecx, dword [ebp - 0x20]
sar ecx, 0x10
xor eax, ecx
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x10]
mov byte [ecx], al
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x34]
cdq
idiv dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + edx*4 + 0x454]
sar eax, 8
and eax, 0xff
movsx eax, byte [eax + str.cw]
mov ecx, dword [ebp - 0x20]
sar ecx, 8
xor eax, ecx
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x10]
mov byte [ecx], al
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x38]
cdq
idiv dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + edx*4 + 0x454]
and eax, 0xff
movsx eax, byte [eax + str.cw]
xor eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x10]
mov byte [ecx], al
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
jmp 0x1001566d
leave
ret 8