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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x57aa54]
xor eax, dword [ebp + 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x3c], ecx
and dword [ebp - 8], 0
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x54]
sub eax, 6
mov dword [ebp - 4], eax
and dword [ebp - 0x38], 0
jmp 0x45992b
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 4]
jge 0x459945
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp + 8]
mov ecx, dword [edx + ecx*4]
mov dword [ebp + eax*4 - 0x2c], ecx
jmp 0x459924
and dword [ebp - 0x30], 0
and dword [ebp - 0x34], 0
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 4]
jge 0x4599b1
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [eax + 0x54]
jg 0x4599b1
jmp 0x459974
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 4]
jge 0x45999e
cmp dword [ebp - 0x34], 4
jge 0x45999e
mov eax, dword [ebp - 0x30]
shl eax, 4
mov ecx, dword [ebp - 0x3c]
lea eax, [ecx + eax + 0x58]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
mov edx, dword [ebp + edx*4 - 0x2c]
mov dword [eax + ecx*4], edx
jmp 0x459966
cmp dword [ebp - 0x34], 4
jne 0x4599af
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
and dword [ebp - 0x34], 0
jmp 0x459951
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [eax + 0x54]
jg 0x459c07
mov eax, dword [ebp - 4]
movzx eax, byte [ebp + eax*4 - 0x2f]
movzx eax, byte [eax + str.cw]
movzx ecx, byte [ebp - 0x2c]
xor ecx, eax
mov byte [ebp - 0x2c], cl
mov eax, dword [ebp - 4]
movzx eax, byte [ebp + eax*4 - 0x2e]
movzx eax, byte [eax + str.cw]
movzx ecx, byte [ebp - 0x2b]
xor ecx, eax
mov byte [ebp - 0x2b], cl
mov eax, dword [ebp - 4]
movzx eax, byte [ebp + eax*4 - 0x2d]
movzx eax, byte [eax + str.cw]
movzx ecx, byte [ebp - 0x2a]
xor ecx, eax
mov byte [ebp - 0x2a], cl
mov eax, dword [ebp - 4]
movzx eax, byte [ebp + eax*4 - 0x30]
movzx eax, byte [eax + str.cw]
movzx ecx, byte [ebp - 0x29]
xor ecx, eax
mov byte [ebp - 0x29], cl
movzx eax, byte [ebp - 0x2c]
mov ecx, dword [ebp - 8]
xor eax, dword [ecx*4 + 0x576c68]
mov byte [ebp - 0x2c], al
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 8
je 0x459a72
mov dword [ebp - 0x38], 1
jmp 0x459a4e
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 4]
jge 0x459a6d
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp + eax*4 - 0x2c]
xor eax, dword [ebp + ecx*4 - 0x30]
mov ecx, dword [ebp - 0x38]
mov dword [ebp + ecx*4 - 0x2c], eax
jmp 0x459a47
jmp 0x459b9e
mov dword [ebp - 0x38], 1
jmp 0x459a82
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
cmp dword [ebp - 0x38], eax
jge 0x459aa6
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp + eax*4 - 0x2c]
xor eax, dword [ebp + ecx*4 - 0x30]
mov ecx, dword [ebp - 0x38]
mov dword [ebp + ecx*4 - 0x2c], eax
jmp 0x459a7b
mov eax, dword [ebp - 4]
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
mov eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
movzx eax, byte [ebp + eax*4 - 0x30]
movzx eax, byte [eax + str.cw]
movzx ecx, byte [ebp + ecx*4 - 0x2c]
xor ecx, eax
mov eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
mov byte [ebp + eax*4 - 0x2c], cl
mov eax, dword [ebp - 4]
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
mov eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
movzx eax, byte [ebp + eax*4 - 0x2f]
movzx eax, byte [eax + str.cw]
movzx ecx, byte [ebp + ecx*4 - 0x2b]
xor ecx, eax
mov eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
mov byte [ebp + eax*4 - 0x2b], cl
mov eax, dword [ebp - 4]
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
mov eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
movzx eax, byte [ebp + eax*4 - 0x2e]
movzx eax, byte [eax + str.cw]
movzx ecx, byte [ebp + ecx*4 - 0x2a]
xor ecx, eax
mov eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
mov byte [ebp + eax*4 - 0x2a], cl
mov eax, dword [ebp - 4]
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
mov eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
movzx eax, byte [ebp + eax*4 - 0x2d]
movzx eax, byte [eax + str.cw]
movzx ecx, byte [ebp + ecx*4 - 0x29]
xor ecx, eax
mov eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
mov byte [ebp + eax*4 - 0x29], cl
mov eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
inc eax
mov dword [ebp - 0x38], eax
jmp 0x459b7f
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 4]
jge 0x459b9e
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp + eax*4 - 0x2c]
xor eax, dword [ebp + ecx*4 - 0x30]
mov ecx, dword [ebp - 0x38]
mov dword [ebp + ecx*4 - 0x2c], eax
jmp 0x459b78
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 4]
jge 0x459c02
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [eax + 0x54]
jg 0x459c02
jmp 0x459bc5
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 4]
jge 0x459bef
cmp dword [ebp - 0x34], 4
jge 0x459bef
mov eax, dword [ebp - 0x30]
shl eax, 4
mov ecx, dword [ebp - 0x3c]
lea eax, [ecx + eax + 0x58]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
mov edx, dword [ebp + edx*4 - 0x2c]
mov dword [eax + ecx*4], edx
jmp 0x459bb7
cmp dword [ebp - 0x34], 4
jne 0x459c00
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
and dword [ebp - 0x34], 0
jmp 0x459ba2
jmp 0x4599b1
mov ecx, dword [ebp - 0xc]
xor ecx, dword [ebp + 4]
call fcn.0049c63c
leave
ret 4