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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x6b4774]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x48]
sub ecx, 6
mov dword [ebp - 4], ecx
mov dword [ebp - 0x38], 0
jmp 0x507cb8
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 4]
jge 0x507cd2
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp + 8]
mov edx, dword [eax + edx*4]
mov dword [ebp + ecx*4 - 0x2c], edx
jmp 0x507caf
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 4]
jge 0x507d50
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x30]
cmp edx, dword [ecx + 0x48]
jg 0x507d50
jmp 0x507d0e
mov eax, dword [ebp - 0x38]
add eax, 1
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 4]
jge 0x507d38
cmp dword [ebp - 0x34], 4
jge 0x507d38
mov eax, dword [ebp - 0x30]
shl eax, 4
mov ecx, dword [ebp - 0x3c]
lea edx, [ecx + eax + 0x4c]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
mov ecx, dword [ebp + ecx*4 - 0x2c]
mov dword [edx + eax*4], ecx
jmp 0x507cfc
cmp dword [ebp - 0x34], 4
jne 0x507d4e
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], 0
jmp 0x507ce7
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [eax + 0x48]
jg 0x507fbc
mov edx, dword [ebp - 4]
movzx eax, byte [ebp + edx*4 - 0x2f]
movzx ecx, byte [eax + 0x6acb50]
movzx edx, byte [ebp - 0x2c]
xor edx, ecx
mov byte [ebp - 0x2c], dl
mov eax, dword [ebp - 4]
movzx ecx, byte [ebp + eax*4 - 0x2e]
movzx edx, byte [ecx + 0x6acb50]
movzx eax, byte [ebp - 0x2b]
xor eax, edx
mov byte [ebp - 0x2b], al
mov ecx, dword [ebp - 4]
movzx edx, byte [ebp + ecx*4 - 0x2d]
movzx eax, byte [edx + 0x6acb50]
movzx ecx, byte [ebp - 0x2a]
xor ecx, eax
mov byte [ebp - 0x2a], cl
mov edx, dword [ebp - 4]
movzx eax, byte [ebp + edx*4 - 0x30]
movzx ecx, byte [eax + 0x6acb50]
movzx edx, byte [ebp - 0x29]
xor edx, ecx
mov byte [ebp - 0x29], dl
movzx eax, byte [ebp - 0x2c]
mov ecx, dword [ebp - 8]
xor eax, dword [ecx*4 + 0x6afd50]
mov byte [ebp - 0x2c], al
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 4], 8
je 0x507e15
mov dword [ebp - 0x38], 1
jmp 0x507df1
mov eax, dword [ebp - 0x38]
add eax, 1
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [ebp - 4]
jge 0x507e10
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp + edx*4 - 0x2c]
xor ecx, dword [ebp + eax*4 - 0x30]
mov edx, dword [ebp - 0x38]
mov dword [ebp + edx*4 - 0x2c], ecx
jmp 0x507de8
jmp 0x507f47
mov dword [ebp - 0x38], 1
jmp 0x507e27
mov eax, dword [ebp - 0x38]
add eax, 1
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
cmp dword [ebp - 0x38], eax
jge 0x507e4b
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp + ecx*4 - 0x2c]
xor eax, dword [ebp + edx*4 - 0x30]
mov ecx, dword [ebp - 0x38]
mov dword [ebp + ecx*4 - 0x2c], eax
jmp 0x507e1e
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 edx, byte [ebp + eax*4 - 0x30]
movzx eax, byte [edx + 0x6acb50]
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 edx, byte [ebp + eax*4 - 0x2f]
movzx eax, byte [edx + 0x6acb50]
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 edx, byte [ebp + eax*4 - 0x2e]
movzx eax, byte [edx + 0x6acb50]
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 edx, byte [ebp + eax*4 - 0x2d]
movzx eax, byte [edx + 0x6acb50]
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
add eax, 1
mov dword [ebp - 0x38], eax
jmp 0x507f28
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 4]
jge 0x507f47
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp + ecx*4 - 0x2c]
xor eax, dword [ebp + edx*4 - 0x30]
mov ecx, dword [ebp - 0x38]
mov dword [ebp + ecx*4 - 0x2c], eax
jmp 0x507f1f
mov dword [ebp - 0x38], 0
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 4]
jge 0x507fb7
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [eax + 0x48]
jg 0x507fb7
jmp 0x507f75
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x34]
add eax, 1
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [ebp - 4]
jge 0x507f9f
cmp dword [ebp - 0x34], 4
jge 0x507f9f
mov edx, dword [ebp - 0x30]
shl edx, 4
mov eax, dword [ebp - 0x3c]
lea ecx, [eax + edx + 0x4c]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
mov eax, dword [ebp + eax*4 - 0x2c]
mov dword [ecx + edx*4], eax
jmp 0x507f63
cmp dword [ebp - 0x34], 4
jne 0x507fb5
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], 0
jmp 0x507f4e
jmp 0x507d50
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0058bad0
mov esp, ebp
pop ebp
ret 4