Function at 0x401000
Capabilities:
Encrypt data using aes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 0x10]
shr eax, 2
add eax, 6
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
mov edx, 8
test edx, edx
jbe 0x401045
mov eax, 0x10
xor edx, edx
mov ecx, 8
div ecx
test edx, edx
jne 0x401045
mov eax, 0x20
xor edx, edx
mov ecx, 8
div ecx
test edx, edx
je 0x40104e
mov dword [ebp - 0x18], 0
jmp 0x40108b
cmp dword [ebp + 0x10], 0x10
jae 0x40105f
mov dword [ebp - 0x18], 0x10
jmp 0x40108b
cmp dword [ebp + 0x10], 0x20
jbe 0x40106e
mov dword [ebp - 0x18], 0x20
jmp 0x40108b
mov edx, dword [ebp + 0x10]
add edx, 7
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
xor edx, edx
mov ecx, 8
div ecx
mov eax, dword [ebp - 0x14]
sub eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 0x18]
je 0x40109a
xor eax, eax
jmp 0x401546
mov edx, dword [ebp + 0x10]
shr edx, 2
shl edx, 2
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x1c]
jbe 0x4010b3
jmp 0x40119d
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.004070f0
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp + 0x10]
push ecx
push 0
mov edx, dword [ebp - 0x10]
add edx, dword [ebp + 0x10]
push edx
call fcn.00407070
add esp, 0xc
mov eax, dword [ebp + 0x10]
add eax, 3
shr eax, 2
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 0
jmp 0x4010fd
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x20]
jae 0x40119d
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x30], edx
mov eax, 8
cmp eax, 0x20
jb 0x401128
mov dword [ebp - 0x28], 0
jmp 0x401148
mov ecx, 8
test ecx, ecx
je 0x40113c
mov edx, dword [ebp - 0x30]
ror edx, 8
mov dword [ebp - 0x34], edx
jmp 0x401142
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x28], ecx
mov edx, 8
cmp edx, 0x20
jb 0x40115b
mov dword [ebp - 0x2c], 0
jmp 0x40117b
mov eax, 8
test eax, eax
je 0x40116f
mov ecx, dword [ebp - 0x30]
rol ecx, 8
mov dword [ebp - 0x38], ecx
jmp 0x401175
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
and ecx, 0xff00ff
mov edx, dword [ebp - 0x28]
and edx, 0xff00ff00
or edx, ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + eax*4], edx
jmp 0x4010f4
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x3c], edx
cmp dword [ebp - 0x3c], 0x10
je 0x4011c9
cmp dword [ebp - 0x3c], 0x18
je 0x4012ad
cmp dword [ebp - 0x3c], 0x20
je 0x4013b7
jmp 0x401544
mov eax, 1
test eax, eax
je 0x4012ad
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [eax*4 + str.ccccwwww]
and ecx, 0xff000000
mov edx, dword [ebp - 0x10]
xor ecx, dword [edx]
mov eax, dword [ebp - 8]
shr eax, 8
and eax, 0xff
mov edx, dword [eax*4 + str.ccccwwww]
and edx, 0xff0000
xor ecx, edx
mov eax, dword [ebp - 8]
and eax, 0xff
mov edx, dword [eax*4 + str.ccccwwww]
and edx, 0xff00
xor ecx, edx
mov eax, dword [ebp - 8]
shr eax, 0x18
mov edx, dword [eax*4 + str.ccccwwww]
and edx, 0xff
xor ecx, edx
mov eax, dword [ebp - 4]
xor ecx, dword [eax*4 + 0x4139f8]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + 4]
xor edx, dword [ecx + 0x10]
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x14], edx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx + 8]
xor eax, dword [edx + 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov ecx, dword [edx + 0xc]
xor ecx, dword [eax + 0x18]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xa
jne 0x40129f
mov eax, dword [ebp - 0xc]
jmp 0x401546
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
mov dword [ebp - 0x10], ecx
jmp 0x4011c9
mov edx, 1
test edx, edx
je 0x4013b7
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
shr edx, 0x10
and edx, 0xff
mov eax, dword [edx*4 + str.ccccwwww]
and eax, 0xff000000
mov ecx, dword [ebp - 0x10]
xor eax, dword [ecx]
mov edx, dword [ebp - 8]
shr edx, 8
and edx, 0xff
mov ecx, dword [edx*4 + str.ccccwwww]
and ecx, 0xff0000
xor eax, ecx
mov edx, dword [ebp - 8]
and edx, 0xff
mov ecx, dword [edx*4 + str.ccccwwww]
and ecx, 0xff00
xor eax, ecx
mov edx, dword [ebp - 8]
shr edx, 0x18
mov ecx, dword [edx*4 + str.ccccwwww]
and ecx, 0xff
xor eax, ecx
mov edx, dword [ebp - 4]
xor eax, dword [edx*4 + 0x4139f8]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov ecx, dword [edx + 4]
xor ecx, dword [eax + 0x18]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + 8]
xor edx, dword [ecx + 0x1c]
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x20], edx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx + 0xc]
xor eax, dword [edx + 0x20]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x24], eax
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 8
jne 0x401385
mov eax, dword [ebp - 0xc]
jmp 0x401546
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + 0x10]
xor edx, dword [ecx + 0x24]
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x28], edx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x14]
xor eax, dword [edx + 0x28]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x2c], eax
mov edx, dword [ebp - 0x10]
add edx, 0x18
mov dword [ebp - 0x10], edx
jmp 0x4012ad
mov eax, 1
test eax, eax
je 0x401544
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [eax*4 + str.ccccwwww]
and ecx, 0xff000000
mov edx, dword [ebp - 0x10]
xor ecx, dword [edx]
mov eax, dword [ebp - 8]
shr eax, 8
and eax, 0xff
mov edx, dword [eax*4 + str.ccccwwww]
and edx, 0xff0000
xor ecx, edx
mov eax, dword [ebp - 8]
and eax, 0xff
mov edx, dword [eax*4 + str.ccccwwww]
and edx, 0xff00
xor ecx, edx
mov eax, dword [ebp - 8]
shr eax, 0x18
mov edx, dword [eax*4 + str.ccccwwww]
and edx, 0xff
xor ecx, edx
mov eax, dword [ebp - 4]
xor ecx, dword [eax*4 + 0x4139f8]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x20], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + 4]
xor edx, dword [ecx + 0x20]
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x24], edx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx + 8]
xor eax, dword [edx + 0x24]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x28], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov ecx, dword [edx + 0xc]
xor ecx, dword [eax + 0x28]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x2c], ecx
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 7
jne 0x40148d
mov eax, dword [ebp - 0xc]
jmp 0x401546
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x2c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
shr eax, 0x18
mov ecx, dword [eax*4 + str.ccccwwww]
and ecx, 0xff000000
mov edx, dword [ebp - 0x10]
xor ecx, dword [edx + 0x10]
mov eax, dword [ebp - 8]
shr eax, 0x10
and eax, 0xff
mov edx, dword [eax*4 + str.ccccwwww]
and edx, 0xff0000
xor ecx, edx
mov eax, dword [ebp - 8]
shr eax, 8
and eax, 0xff
mov edx, dword [eax*4 + str.ccccwwww]
and edx, 0xff00
xor ecx, edx
mov eax, dword [ebp - 8]
and eax, 0xff
mov edx, dword [eax*4 + str.ccccwwww]
and edx, 0xff
xor ecx, edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x30], ecx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x14]
xor eax, dword [edx + 0x30]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x34], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov ecx, dword [edx + 0x18]
xor ecx, dword [eax + 0x34]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x38], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + 0x1c]
xor edx, dword [ecx + 0x38]
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x3c], edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
mov dword [ebp - 0x10], ecx
jmp 0x4013b7
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc