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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push edi
push ecx
lea edi, [ebp - 0x40]
mov ecx, 0x10
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 4]
test ecx, ecx
jne 0x417831
push 0x457e60
lea ecx, [ebp - 0x38]
call fcn.0042da30
push 0x453774
lea edx, [ebp - 0x38]
push edx
call fcn.0042d660
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3cc], 0x10
jne 0x417852
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
call fcn.00417240
jmp 0x417baf
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3cc]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 4
jne 0x417876
mov dword [ebp - 0x40], 0
jmp 0x417883
xor ecx, ecx
cmp dword [ebp - 8], 6
setne cl
inc ecx
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
shl eax, 5
mov ecx, dword [eax + 0x44f638]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0xc]
shl edx, 5
mov eax, dword [edx + 0x44f640]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0xc]
shl ecx, 5
mov edx, dword [ecx + 0x44f648]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 4]
add eax, 0x454
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0
jmp 0x4178d3
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 8]
jge 0x41796f
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
shl ecx, 0x18
mov edx, dword [ebp - 0x24]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx]
shl edx, 0x10
mov eax, dword [ebp - 0x24]
or edx, dword [eax]
mov ecx, dword [ebp - 0x24]
mov dword [ecx], edx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
shl ecx, 8
mov edx, dword [ebp - 0x24]
or ecx, dword [edx]
mov eax, dword [ebp - 0x24]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
mov edx, dword [ebp - 0x3c]
or ecx, dword [edx]
mov eax, dword [ebp - 0x3c]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 0x24]
add edx, 4
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov eax, dword [eax]
xor eax, dword [edx + ecx*4 + 8]
mov ecx, dword [ebp - 0x3c]
mov dword [ecx], eax
jmp 0x4178ca
mov dword [ebp - 0x28], 1
jmp 0x417981
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [eax + 0x3d0]
jge 0x417a84
mov dword [ebp - 0x1c], 0
jmp 0x4179a5
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 8]
jge 0x417a5c
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 0x454]
sar ecx, 0x18
and ecx, 0xff
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x10]
cdq
idiv dword [ebp - 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax + edx*4 + 0x454]
sar edx, 0x10
and edx, 0xff
mov ecx, dword [ecx*4 + 0x44c610]
xor ecx, dword [edx*4 + 0x44ca10]
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x14]
cdq
idiv dword [ebp - 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax + edx*4 + 0x454]
sar edx, 8
and edx, 0xff
xor ecx, dword [edx*4 + 0x44ce10]
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x18]
cdq
idiv dword [ebp - 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax + edx*4 + 0x454]
and edx, 0xff
xor ecx, dword [edx*4 + 0x44d210]
mov eax, dword [ebp - 0x28]
shl eax, 5
mov edx, dword [ebp - 4]
lea eax, [edx + eax + 8]
mov edx, dword [ebp - 0x1c]
xor ecx, dword [eax + edx*4]
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov dword [edx + eax*4 + 0x434], ecx
jmp 0x41799c
mov eax, dword [ebp - 8]
shl eax, 2
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x434
push ecx
mov edx, dword [ebp - 4]
add edx, 0x454
push edx
call fcn.0042cfe0
add esp, 0xc
jmp 0x417978
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x2c], 0
jmp 0x417a9d
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 8]
jge 0x417baf
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x3d0]
shl eax, 5
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 8]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + edx*4 + 0x454]
sar ecx, 0x18
and ecx, 0xff
movsx edx, byte [ecx + str.cw]
mov eax, dword [ebp - 0x20]
sar eax, 0x18
xor edx, eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x2c]
mov byte [ecx], dl
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x10]
cdq
idiv dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + edx*4 + 0x454]
sar ecx, 0x10
and ecx, 0xff
movsx edx, byte [ecx + str.cw]
mov eax, dword [ebp - 0x20]
sar eax, 0x10
xor edx, eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x2c]
mov byte [ecx], dl
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x14]
cdq
idiv dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + edx*4 + 0x454]
sar ecx, 8
and ecx, 0xff
movsx edx, byte [ecx + str.cw]
mov eax, dword [ebp - 0x20]
sar eax, 8
xor edx, eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x2c]
mov byte [ecx], dl
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x18]
cdq
idiv dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + edx*4 + 0x454]
and ecx, 0xff
movsx edx, byte [ecx + str.cw]
xor edx, dword [ebp - 0x20]
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x2c]
mov byte [eax], dl
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
jmp 0x417a94
pop edi
add esp, 0x40
cmp ebp, esp
call fcn.0042c490
mov esp, ebp
pop ebp
ret 8