Function at 0x401000
Capabilities:
Encrypt data using aes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
and dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0
je 0x401017
cmp dword [ebp + 0x10], 0
jne 0x40101f
or eax, 0xffffffff
jmp 0x4017d8
cmp dword [ebp + 0xc], 0x80
je 0x401042
cmp dword [ebp + 0xc], 0xc0
je 0x401042
cmp dword [ebp + 0xc], 0x100
je 0x401042
push 0xfffffffffffffffe
pop eax
jmp 0x4017d8
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x80
jne 0x401060
mov eax, dword [ebp + 0x10]
mov dword [eax + 0xf0], 0xa
jmp 0x401085
cmp dword [ebp + 0xc], 0xc0
jne 0x401078
mov eax, dword [ebp + 0x10]
mov dword [eax + 0xf0], 0xc
jmp 0x401085
mov eax, dword [ebp + 0x10]
mov dword [eax + 0xf0], 0xe
xor eax, eax
inc eax
imul eax, eax, 0
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx + eax]
shl eax, 0x18
xor ecx, ecx
inc ecx
shl ecx, 0
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx]
shl ecx, 0x10
xor eax, ecx
xor ecx, ecx
inc ecx
shl ecx, 1
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx]
shl ecx, 8
xor eax, ecx
xor ecx, ecx
inc ecx
imul ecx, ecx, 3
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx]
xor eax, ecx
push 4
pop ecx
imul ecx, ecx, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
xor eax, eax
inc eax
imul eax, eax, 0
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx + eax + 4]
shl eax, 0x18
xor ecx, ecx
inc ecx
shl ecx, 0
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx + 4]
shl ecx, 0x10
xor eax, ecx
xor ecx, ecx
inc ecx
shl ecx, 1
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx + 4]
shl ecx, 8
xor eax, ecx
xor ecx, ecx
inc ecx
imul ecx, ecx, 3
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx + 4]
xor eax, ecx
push 4
pop ecx
shl ecx, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
xor eax, eax
inc eax
imul eax, eax, 0
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx + eax + 8]
shl eax, 0x18
xor ecx, ecx
inc ecx
shl ecx, 0
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx + 8]
shl ecx, 0x10
xor eax, ecx
xor ecx, ecx
inc ecx
shl ecx, 1
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx + 8]
shl ecx, 8
xor eax, ecx
xor ecx, ecx
inc ecx
imul ecx, ecx, 3
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx + 8]
xor eax, ecx
push 4
pop ecx
shl ecx, 1
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
xor eax, eax
inc eax
imul eax, eax, 0
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx + eax + 0xc]
shl eax, 0x18
xor ecx, ecx
inc ecx
shl ecx, 0
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx + 0xc]
shl ecx, 0x10
xor eax, ecx
xor ecx, ecx
inc ecx
shl ecx, 1
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx + 0xc]
shl ecx, 8
xor eax, ecx
xor ecx, ecx
inc ecx
imul ecx, ecx, 3
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx + 0xc]
xor eax, ecx
push 4
pop ecx
imul ecx, ecx, 3
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
cmp dword [ebp + 0xc], 0x80
jne 0x4012f8
xor eax, eax
inc eax
je 0x4012f8
push 4
pop eax
imul eax, eax, 3
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + eax]
mov dword [ebp - 8], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 8]
shr ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff000000
mov edx, dword [ebp - 4]
xor ecx, dword [edx + eax]
mov eax, dword [ebp - 8]
shr eax, 8
and eax, 0xff
mov eax, dword [eax*4 + str.ccccwwww]
and eax, 0xff0000
xor ecx, eax
mov eax, dword [ebp - 8]
and eax, 0xff
mov eax, dword [eax*4 + str.ccccwwww]
and eax, 0xff00
xor ecx, eax
mov eax, dword [ebp - 8]
shr eax, 0x18
mov eax, dword [eax*4 + str.ccccwwww]
and eax, 0xff
xor ecx, eax
mov eax, dword [ebp - 0xc]
xor ecx, dword [eax*4 + 0x6b4f60]
push 4
pop eax
shl eax, 2
mov edx, dword [ebp - 4]
mov dword [edx + eax], ecx
push 4
pop eax
shl eax, 0
push 4
pop ecx
shl ecx, 2
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov eax, dword [edx + eax]
xor eax, dword [esi + ecx]
push 4
pop ecx
imul ecx, ecx, 5
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
push 4
pop eax
shl eax, 1
push 4
pop ecx
imul ecx, ecx, 5
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov eax, dword [edx + eax]
xor eax, dword [esi + ecx]
push 4
pop ecx
imul ecx, ecx, 6
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
push 4
pop eax
imul eax, eax, 3
push 4
pop ecx
imul ecx, ecx, 6
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov eax, dword [edx + eax]
xor eax, dword [esi + ecx]
push 4
pop ecx
imul ecx, ecx, 7
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xa
jne 0x4012ea
xor eax, eax
jmp 0x4017d8
mov eax, dword [ebp - 4]
add eax, 0x10
mov dword [ebp - 4], eax
jmp 0x4011d5
xor eax, eax
inc eax
imul eax, eax, 0
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx + eax + 0x10]
shl eax, 0x18
xor ecx, ecx
inc ecx
shl ecx, 0
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx + 0x10]
shl ecx, 0x10
xor eax, ecx
xor ecx, ecx
inc ecx
shl ecx, 1
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx + 0x10]
shl ecx, 8
xor eax, ecx
xor ecx, ecx
inc ecx
imul ecx, ecx, 3
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx + 0x10]
xor eax, ecx
push 4
pop ecx
shl ecx, 2
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
xor eax, eax
inc eax
imul eax, eax, 0
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx + eax + 0x14]
shl eax, 0x18
xor ecx, ecx
inc ecx
shl ecx, 0
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx + 0x14]
shl ecx, 0x10
xor eax, ecx
xor ecx, ecx
inc ecx
shl ecx, 1
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx + 0x14]
shl ecx, 8
xor eax, ecx
xor ecx, ecx
inc ecx
imul ecx, ecx, 3
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx + 0x14]
xor eax, ecx
push 4
pop ecx
imul ecx, ecx, 5
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
cmp dword [ebp + 0xc], 0xc0
jne 0x401514
xor eax, eax
inc eax
je 0x401514
push 4
pop eax
imul eax, eax, 5
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + eax]
mov dword [ebp - 8], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 8]
shr ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff000000
mov edx, dword [ebp - 4]
xor ecx, dword [edx + eax]
mov eax, dword [ebp - 8]
shr eax, 8
and eax, 0xff
mov eax, dword [eax*4 + str.ccccwwww]
and eax, 0xff0000
xor ecx, eax
mov eax, dword [ebp - 8]
and eax, 0xff
mov eax, dword [eax*4 + str.ccccwwww]
and eax, 0xff00
xor ecx, eax
mov eax, dword [ebp - 8]
shr eax, 0x18
mov eax, dword [eax*4 + str.ccccwwww]
and eax, 0xff
xor ecx, eax
mov eax, dword [ebp - 0xc]
xor ecx, dword [eax*4 + 0x6b4f60]
push 4
pop eax
imul eax, eax, 6
mov edx, dword [ebp - 4]
mov dword [edx + eax], ecx
push 4
pop eax
shl eax, 0
push 4
pop ecx
imul ecx, ecx, 6
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov eax, dword [edx + eax]
xor eax, dword [esi + ecx]
push 4
pop ecx
imul ecx, ecx, 7
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
push 4
pop eax
shl eax, 1
push 4
pop ecx
imul ecx, ecx, 7
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov eax, dword [edx + eax]
xor eax, dword [esi + ecx]
push 4
pop ecx
shl ecx, 3
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
push 4
pop eax
imul eax, eax, 3
push 4
pop ecx
shl ecx, 3
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov eax, dword [edx + eax]
xor eax, dword [esi + ecx]
push 4
pop ecx
imul ecx, ecx, 9
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 8
jne 0x4014be
xor eax, eax
jmp 0x4017d8
push 4
pop eax
shl eax, 2
push 4
pop ecx
imul ecx, ecx, 9
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov eax, dword [edx + eax]
xor eax, dword [esi + ecx]
push 4
pop ecx
imul ecx, ecx, 0xa
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
push 4
pop eax
imul eax, eax, 5
push 4
pop ecx
imul ecx, ecx, 0xa
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov eax, dword [edx + eax]
xor eax, dword [esi + ecx]
push 4
pop ecx
imul ecx, ecx, 0xb
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
mov eax, dword [ebp - 4]
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x4013a9
xor eax, eax
inc eax
imul eax, eax, 0
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx + eax + 0x18]
shl eax, 0x18
xor ecx, ecx
inc ecx
shl ecx, 0
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx + 0x18]
shl ecx, 0x10
xor eax, ecx
xor ecx, ecx
inc ecx
shl ecx, 1
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx + 0x18]
shl ecx, 8
xor eax, ecx
xor ecx, ecx
inc ecx
imul ecx, ecx, 3
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx + 0x18]
xor eax, ecx
push 4
pop ecx
imul ecx, ecx, 6
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
xor eax, eax
inc eax
imul eax, eax, 0
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx + eax + 0x1c]
shl eax, 0x18
xor ecx, ecx
inc ecx
shl ecx, 0
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx + 0x1c]
shl ecx, 0x10
xor eax, ecx
xor ecx, ecx
inc ecx
shl ecx, 1
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx + 0x1c]
shl ecx, 8
xor eax, ecx
xor ecx, ecx
inc ecx
imul ecx, ecx, 3
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx + 0x1c]
xor eax, ecx
push 4
pop ecx
imul ecx, ecx, 7
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
cmp dword [ebp + 0xc], 0x100
jne 0x4017d6
xor eax, eax
inc eax
je 0x4017d6
push 4
pop eax
imul eax, eax, 7
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + eax]
mov dword [ebp - 8], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 8]
shr ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff000000
mov edx, dword [ebp - 4]
xor ecx, dword [edx + eax]
mov eax, dword [ebp - 8]
shr eax, 8
and eax, 0xff
mov eax, dword [eax*4 + str.ccccwwww]
and eax, 0xff0000
xor ecx, eax
mov eax, dword [ebp - 8]
and eax, 0xff
mov eax, dword [eax*4 + str.ccccwwww]
and eax, 0xff00
xor ecx, eax
mov eax, dword [ebp - 8]
shr eax, 0x18
mov eax, dword [eax*4 + str.ccccwwww]
and eax, 0xff
xor ecx, eax
mov eax, dword [ebp - 0xc]
xor ecx, dword [eax*4 + 0x6b4f60]
push 4
pop eax
shl eax, 3
mov edx, dword [ebp - 4]
mov dword [edx + eax], ecx
push 4
pop eax
shl eax, 0
push 4
pop ecx
shl ecx, 3
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov eax, dword [edx + eax]
xor eax, dword [esi + ecx]
push 4
pop ecx
imul ecx, ecx, 9
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
push 4
pop eax
shl eax, 1
push 4
pop ecx
imul ecx, ecx, 9
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov eax, dword [edx + eax]
xor eax, dword [esi + ecx]
push 4
pop ecx
imul ecx, ecx, 0xa
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
push 4
pop eax
imul eax, eax, 3
push 4
pop ecx
imul ecx, ecx, 0xa
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov eax, dword [edx + eax]
xor eax, dword [esi + ecx]
push 4
pop ecx
imul ecx, ecx, 0xb
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 7
jne 0x4016da
xor eax, eax
jmp 0x4017d8
push 4
pop eax
imul eax, eax, 0xb
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + eax]
mov dword [ebp - 8], eax
push 4
pop eax
shl eax, 2
mov ecx, dword [ebp - 8]
shr ecx, 0x18
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff000000
mov edx, dword [ebp - 4]
xor ecx, dword [edx + eax]
mov eax, dword [ebp - 8]
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + str.ccccwwww]
and eax, 0xff0000
xor ecx, eax
mov eax, dword [ebp - 8]
shr eax, 8
and eax, 0xff
mov eax, dword [eax*4 + str.ccccwwww]
and eax, 0xff00
xor ecx, eax
mov eax, dword [ebp - 8]
and eax, 0xff
mov eax, dword [eax*4 + str.ccccwwww]
and eax, 0xff
xor ecx, eax
push 4
pop eax
imul eax, eax, 0xc
mov edx, dword [ebp - 4]
mov dword [edx + eax], ecx
push 4
pop eax
imul eax, eax, 5
push 4
pop ecx
imul ecx, ecx, 0xc
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov eax, dword [edx + eax]
xor eax, dword [esi + ecx]
push 4
pop ecx
imul ecx, ecx, 0xd
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
push 4
pop eax
imul eax, eax, 6
push 4
pop ecx
imul ecx, ecx, 0xd
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov eax, dword [edx + eax]
xor eax, dword [esi + ecx]
push 4
pop ecx
imul ecx, ecx, 0xe
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
push 4
pop eax
imul eax, eax, 7
push 4
pop ecx
imul ecx, ecx, 0xe
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov eax, dword [edx + eax]
xor eax, dword [esi + ecx]
push 4
pop ecx
imul ecx, ecx, 0xf
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
mov eax, dword [ebp - 4]
add eax, 0x20
mov dword [ebp - 4], eax
jmp 0x4015c5
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret