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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call section..text
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x401806
mov eax, dword [ebp - 0x14]
jmp 0x401bbd
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0xf0]
shl eax, 2
mov dword [ebp - 0xc], eax
jmp 0x401833
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
sub eax, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jge 0x4018f8
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + eax*4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edx, dword [esi + edx*4]
mov dword [ecx + eax*4], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [ecx + eax*4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + eax*4 + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edx, dword [esi + edx*4 + 4]
mov dword [ecx + eax*4 + 4], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [ecx + eax*4 + 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + eax*4 + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edx, dword [esi + edx*4 + 8]
mov dword [ecx + eax*4 + 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [ecx + eax*4 + 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + eax*4 + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edx, dword [esi + edx*4 + 0xc]
mov dword [ecx + eax*4 + 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [ecx + eax*4 + 0xc], edx
jmp 0x401821
mov dword [ebp - 8], 1
jmp 0x401908
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0xf0]
jge 0x401bbb
mov eax, dword [ebp - 4]
add eax, 0x10
mov dword [ebp - 4], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + eax]
shr eax, 0x18
mov eax, dword [eax*4 + str.ccccwwww]
and eax, 0xff
push 4
pop ecx
imul ecx, ecx, 0
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx]
shr ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
mov eax, dword [eax*4 + 0x6b5f88]
xor eax, dword [ecx*4 + 0x6b5b88]
push 4
pop ecx
imul ecx, ecx, 0
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx]
shr ecx, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6b5788]
push 4
pop ecx
imul ecx, ecx, 0
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6b5388]
push 4
pop ecx
imul ecx, ecx, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + eax]
shr eax, 0x18
mov eax, dword [eax*4 + str.ccccwwww]
and eax, 0xff
push 4
pop ecx
shl ecx, 0
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx]
shr ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
mov eax, dword [eax*4 + 0x6b5f88]
xor eax, dword [ecx*4 + 0x6b5b88]
push 4
pop ecx
shl ecx, 0
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx]
shr ecx, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6b5788]
push 4
pop ecx
shl ecx, 0
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6b5388]
push 4
pop ecx
shl ecx, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
push 4
pop eax
shl eax, 1
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + eax]
shr eax, 0x18
mov eax, dword [eax*4 + str.ccccwwww]
and eax, 0xff
push 4
pop ecx
shl ecx, 1
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx]
shr ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
mov eax, dword [eax*4 + 0x6b5f88]
xor eax, dword [ecx*4 + 0x6b5b88]
push 4
pop ecx
shl ecx, 1
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx]
shr ecx, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6b5788]
push 4
pop ecx
shl ecx, 1
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6b5388]
push 4
pop ecx
shl ecx, 1
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
push 4
pop eax
imul eax, eax, 3
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + eax]
shr eax, 0x18
mov eax, dword [eax*4 + str.ccccwwww]
and eax, 0xff
push 4
pop ecx
imul ecx, ecx, 3
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx]
shr ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
mov eax, dword [eax*4 + 0x6b5f88]
xor eax, dword [ecx*4 + 0x6b5b88]
push 4
pop ecx
imul ecx, ecx, 3
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx]
shr ecx, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6b5788]
push 4
pop ecx
imul ecx, ecx, 3
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6b5388]
push 4
pop ecx
imul ecx, ecx, 3
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
jmp 0x401901
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret