Function at 0x40b0b0
Capabilities:
Encrypt data using aes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0
je 0x40b0ca
cmp dword [ebp + 0x10], 0
jne 0x40b0d2
or eax, 0xffffffff
jmp 0x40b961
cmp dword [ebp + 0xc], 0x80
je 0x40b0f7
cmp dword [ebp + 0xc], 0xc0
je 0x40b0f7
cmp dword [ebp + 0xc], 0x100
je 0x40b0f7
mov eax, 0xfffffffe
jmp 0x40b961
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x80
jne 0x40b115
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0xf0], 0xa
jmp 0x40b13a
cmp dword [ebp + 0xc], 0xc0
jne 0x40b12d
mov edx, dword [ebp + 0x10]
mov dword [edx + 0xf0], 0xc
jmp 0x40b13a
mov eax, dword [ebp + 0x10]
mov dword [eax + 0xf0], 0xe
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + edx]
shl ecx, 0x18
mov edx, 1
shl edx, 0
mov eax, dword [ebp + 8]
movzx edx, byte [eax + edx]
shl edx, 0x10
xor ecx, edx
mov eax, 1
shl eax, 1
mov edx, dword [ebp + 8]
movzx eax, byte [edx + eax]
shl eax, 8
xor ecx, eax
mov edx, 1
imul eax, edx, 3
mov edx, dword [ebp + 8]
movzx eax, byte [edx + eax]
xor ecx, eax
mov edx, 4
imul eax, edx, 0
mov edx, dword [ebp - 4]
mov dword [edx + eax], ecx
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx + 4]
shl eax, 0x18
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx + 4]
shl ecx, 0x10
xor eax, ecx
mov edx, 1
shl edx, 1
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx + 4]
shl edx, 8
xor eax, edx
mov ecx, 1
imul edx, ecx, 3
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx + 4]
xor eax, edx
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx + 8]
shl eax, 0x18
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx + 8]
shl ecx, 0x10
xor eax, ecx
mov edx, 1
shl edx, 1
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx + 8]
shl edx, 8
xor eax, edx
mov ecx, 1
imul edx, ecx, 3
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx + 8]
xor eax, edx
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx + 0xc]
shl eax, 0x18
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx + 0xc]
shl ecx, 0x10
xor eax, ecx
mov edx, 1
shl edx, 1
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx + 0xc]
shl edx, 8
xor eax, edx
mov ecx, 1
imul edx, ecx, 3
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx + 0xc]
xor eax, edx
mov ecx, 4
imul edx, ecx, 3
mov ecx, dword [ebp - 4]
mov dword [ecx + edx], eax
cmp dword [ebp + 0xc], 0x80
jne 0x40b3f4
mov edx, 1
test edx, edx
je 0x40b3f4
mov eax, 4
imul ecx, eax, 3
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx]
mov dword [ebp - 8], eax
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp - 8]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [eax*4 + str.ccccwwww]
and ecx, 0xff000000
mov eax, dword [ebp - 4]
xor ecx, dword [eax + edx]
mov edx, dword [ebp - 8]
shr edx, 8
and edx, 0xff
mov eax, dword [edx*4 + str.ccccwwww]
and eax, 0xff0000
xor ecx, eax
mov edx, dword [ebp - 8]
and edx, 0xff
mov eax, dword [edx*4 + str.ccccwwww]
and eax, 0xff00
xor ecx, eax
mov edx, dword [ebp - 8]
shr edx, 0x18
mov eax, dword [edx*4 + str.ccccwwww]
and eax, 0xff
xor ecx, eax
mov edx, dword [ebp - 0xc]
xor ecx, dword [edx*4 + 0x5ac5d0]
mov eax, 4
shl eax, 2
mov edx, dword [ebp - 4]
mov dword [edx + eax], ecx
mov eax, 4
shl eax, 0
mov ecx, 4
shl ecx, 2
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov eax, dword [edx + eax]
xor eax, dword [esi + ecx]
mov ecx, 4
imul edx, ecx, 5
mov ecx, dword [ebp - 4]
mov dword [ecx + edx], eax
mov edx, 4
shl edx, 1
mov eax, 4
imul ecx, eax, 5
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov edx, dword [eax + edx]
xor edx, dword [esi + ecx]
mov eax, 4
imul ecx, eax, 6
mov eax, dword [ebp - 4]
mov dword [eax + ecx], edx
mov ecx, 4
imul edx, ecx, 3
mov eax, 4
imul ecx, eax, 6
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov edx, dword [eax + edx]
xor edx, dword [esi + ecx]
mov eax, 4
imul ecx, eax, 7
mov eax, dword [ebp - 4]
mov dword [eax + ecx], edx
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0xa
jne 0x40b3e6
xor eax, eax
jmp 0x40b961
mov edx, dword [ebp - 4]
add edx, 0x10
mov dword [ebp - 4], edx
jmp 0x40b2b2
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx + 0x10]
shl eax, 0x18
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx + 0x10]
shl ecx, 0x10
xor eax, ecx
mov edx, 1
shl edx, 1
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx + 0x10]
shl edx, 8
xor eax, edx
mov ecx, 1
imul edx, ecx, 3
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx + 0x10]
xor eax, edx
mov ecx, 4
shl ecx, 2
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx + 0x14]
shl eax, 0x18
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx + 0x14]
shl ecx, 0x10
xor eax, ecx
mov edx, 1
shl edx, 1
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx + 0x14]
shl edx, 8
xor eax, edx
mov ecx, 1
imul edx, ecx, 3
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx + 0x14]
xor eax, edx
mov ecx, 4
imul edx, ecx, 5
mov ecx, dword [ebp - 4]
mov dword [ecx + edx], eax
cmp dword [ebp + 0xc], 0xc0
jne 0x40b64f
mov edx, 1
test edx, edx
je 0x40b64f
mov eax, 4
imul ecx, eax, 5
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx]
mov dword [ebp - 8], eax
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp - 8]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [eax*4 + str.ccccwwww]
and ecx, 0xff000000
mov eax, dword [ebp - 4]
xor ecx, dword [eax + edx]
mov edx, dword [ebp - 8]
shr edx, 8
and edx, 0xff
mov eax, dword [edx*4 + str.ccccwwww]
and eax, 0xff0000
xor ecx, eax
mov edx, dword [ebp - 8]
and edx, 0xff
mov eax, dword [edx*4 + str.ccccwwww]
and eax, 0xff00
xor ecx, eax
mov edx, dword [ebp - 8]
shr edx, 0x18
mov eax, dword [edx*4 + str.ccccwwww]
and eax, 0xff
xor ecx, eax
mov edx, dword [ebp - 0xc]
xor ecx, dword [edx*4 + 0x5ac5d0]
mov eax, 4
imul edx, eax, 6
mov eax, dword [ebp - 4]
mov dword [eax + edx], ecx
mov ecx, 4
shl ecx, 0
mov edx, 4
imul eax, edx, 6
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov ecx, dword [edx + ecx]
xor ecx, dword [esi + eax]
mov edx, 4
imul eax, edx, 7
mov edx, dword [ebp - 4]
mov dword [edx + eax], ecx
mov eax, 4
shl eax, 1
mov ecx, 4
imul edx, ecx, 7
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov eax, dword [ecx + eax]
xor eax, dword [esi + edx]
mov ecx, 4
shl ecx, 3
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
mov eax, 4
imul ecx, eax, 3
mov edx, 4
shl edx, 3
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov ecx, dword [eax + ecx]
xor ecx, dword [esi + edx]
mov edx, 4
imul eax, edx, 9
mov edx, dword [ebp - 4]
mov dword [edx + eax], ecx
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 8
jne 0x40b5ed
xor eax, eax
jmp 0x40b961
mov ecx, 4
shl ecx, 2
mov edx, 4
imul eax, edx, 9
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov ecx, dword [edx + ecx]
xor ecx, dword [esi + eax]
mov edx, 4
imul eax, edx, 0xa
mov edx, dword [ebp - 4]
mov dword [edx + eax], ecx
mov eax, 4
imul ecx, eax, 5
mov edx, 4
imul eax, edx, 0xa
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov ecx, dword [edx + ecx]
xor ecx, dword [esi + eax]
mov edx, 4
imul eax, edx, 0xb
mov edx, dword [ebp - 4]
mov dword [edx + eax], ecx
mov eax, dword [ebp - 4]
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x40b4b9
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + edx + 0x18]
shl ecx, 0x18
mov edx, 1
shl edx, 0
mov eax, dword [ebp + 8]
movzx edx, byte [eax + edx + 0x18]
shl edx, 0x10
xor ecx, edx
mov eax, 1
shl eax, 1
mov edx, dword [ebp + 8]
movzx eax, byte [edx + eax + 0x18]
shl eax, 8
xor ecx, eax
mov edx, 1
imul eax, edx, 3
mov edx, dword [ebp + 8]
movzx eax, byte [edx + eax + 0x18]
xor ecx, eax
mov edx, 4
imul eax, edx, 6
mov edx, dword [ebp - 4]
mov dword [edx + eax], ecx
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx + 0x1c]
shl eax, 0x18
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx + 0x1c]
shl ecx, 0x10
xor eax, ecx
mov edx, 1
shl edx, 1
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx + 0x1c]
shl edx, 8
xor eax, edx
mov ecx, 1
imul edx, ecx, 3
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx + 0x1c]
xor eax, edx
mov ecx, 4
imul edx, ecx, 7
mov ecx, dword [ebp - 4]
mov dword [ecx + edx], eax
cmp dword [ebp + 0xc], 0x100
jne 0x40b95f
mov edx, 1
test edx, edx
je 0x40b95f
mov eax, 4
imul ecx, eax, 7
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx]
mov dword [ebp - 8], eax
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp - 8]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [eax*4 + str.ccccwwww]
and ecx, 0xff000000
mov eax, dword [ebp - 4]
xor ecx, dword [eax + edx]
mov edx, dword [ebp - 8]
shr edx, 8
and edx, 0xff
mov eax, dword [edx*4 + str.ccccwwww]
and eax, 0xff0000
xor ecx, eax
mov edx, dword [ebp - 8]
and edx, 0xff
mov eax, dword [edx*4 + str.ccccwwww]
and eax, 0xff00
xor ecx, eax
mov edx, dword [ebp - 8]
shr edx, 0x18
mov eax, dword [edx*4 + str.ccccwwww]
and eax, 0xff
xor ecx, eax
mov edx, dword [ebp - 0xc]
xor ecx, dword [edx*4 + 0x5ac5d0]
mov eax, 4
shl eax, 3
mov edx, dword [ebp - 4]
mov dword [edx + eax], ecx
mov eax, 4
shl eax, 0
mov ecx, 4
shl ecx, 3
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov eax, dword [edx + eax]
xor eax, dword [esi + ecx]
mov ecx, 4
imul edx, ecx, 9
mov ecx, dword [ebp - 4]
mov dword [ecx + edx], eax
mov edx, 4
shl edx, 1
mov eax, 4
imul ecx, eax, 9
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov edx, dword [eax + edx]
xor edx, dword [esi + ecx]
mov eax, 4
imul ecx, eax, 0xa
mov eax, dword [ebp - 4]
mov dword [eax + ecx], edx
mov ecx, 4
imul edx, ecx, 3
mov eax, 4
imul ecx, eax, 0xa
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov edx, dword [eax + edx]
xor edx, dword [esi + ecx]
mov eax, 4
imul ecx, eax, 0xb
mov eax, dword [ebp - 4]
mov dword [eax + ecx], edx
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 7
jne 0x40b848
xor eax, eax
jmp 0x40b961
mov edx, 4
imul eax, edx, 0xb
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + eax]
mov dword [ebp - 8], edx
mov eax, 4
shl eax, 2
mov ecx, dword [ebp - 8]
shr ecx, 0x18
mov edx, dword [ecx*4 + str.ccccwwww]
and edx, 0xff000000
mov ecx, dword [ebp - 4]
xor edx, dword [ecx + eax]
mov eax, dword [ebp - 8]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [eax*4 + str.ccccwwww]
and ecx, 0xff0000
xor edx, ecx
mov eax, dword [ebp - 8]
shr eax, 8
and eax, 0xff
mov ecx, dword [eax*4 + str.ccccwwww]
and ecx, 0xff00
xor edx, ecx
mov eax, dword [ebp - 8]
and eax, 0xff
mov ecx, dword [eax*4 + str.ccccwwww]
and ecx, 0xff
xor edx, ecx
mov eax, 4
imul ecx, eax, 0xc
mov eax, dword [ebp - 4]
mov dword [eax + ecx], edx
mov ecx, 4
imul edx, ecx, 5
mov eax, 4
imul ecx, eax, 0xc
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov edx, dword [eax + edx]
xor edx, dword [esi + ecx]
mov eax, 4
imul ecx, eax, 0xd
mov eax, dword [ebp - 4]
mov dword [eax + ecx], edx
mov ecx, 4
imul edx, ecx, 6
mov eax, 4
imul ecx, eax, 0xd
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov edx, dword [eax + edx]
xor edx, dword [esi + ecx]
mov eax, 4
imul ecx, eax, 0xe
mov eax, dword [ebp - 4]
mov dword [eax + ecx], edx
mov ecx, 4
imul edx, ecx, 7
mov eax, 4
imul ecx, eax, 0xe
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov edx, dword [eax + edx]
xor edx, dword [esi + ecx]
mov eax, 4
imul ecx, eax, 0xf
mov eax, dword [ebp - 4]
mov dword [eax + ecx], edx
mov ecx, dword [ebp - 4]
add ecx, 0x20
mov dword [ebp - 4], ecx
jmp 0x40b714
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret