Function at 0x585120
Capabilities:
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x6e2f0c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x414], 0
mov dword [ebp - 0x410], 1
jmp 0x585158
mov eax, dword [ebp - 0x414]
add eax, 1
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0x100
jge 0x5851ba
mov ecx, dword [ebp - 0x414]
mov edx, dword [ebp - 0x410]
mov dword [ebp + ecx*4 - 0x408], edx
mov eax, dword [ebp - 0x410]
mov ecx, dword [ebp - 0x414]
mov dword [ebp + eax*4 - 0x818], ecx
mov edx, dword [ebp - 0x410]
shl edx, 1
mov eax, dword [ebp - 0x410]
and eax, 0x80
neg eax
sbb eax, eax
and eax, 0x1b
xor edx, eax
xor edx, dword [ebp - 0x410]
and edx, 0xff
mov dword [ebp - 0x410], edx
jmp 0x585149
mov dword [ebp - 0x414], 0
mov dword [ebp - 0x410], 1
jmp 0x5851df
mov ecx, dword [ebp - 0x414]
add ecx, 1
mov dword [ebp - 0x414], ecx
cmp dword [ebp - 0x414], 0xa
jge 0x585226
mov edx, dword [ebp - 0x414]
mov eax, dword [ebp - 0x410]
mov dword [edx*4 + 0x723308], eax
mov ecx, dword [ebp - 0x410]
shl ecx, 1
mov edx, dword [ebp - 0x410]
and edx, 0x80
neg edx
sbb edx, edx
and edx, 0x1b
xor ecx, edx
and ecx, 0xff
mov dword [ebp - 0x410], ecx
jmp 0x5851d0
mov byte [0x722a08], 0x63
mov byte [0x724b93], 0
mov dword [ebp - 0x414], 1
jmp 0x58524f
mov eax, dword [ebp - 0x414]
add eax, 1
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0x100
jge 0x58537a
mov ecx, dword [ebp - 0x414]
mov edx, 0xff
sub edx, dword [ebp + ecx*4 - 0x818]
mov eax, dword [ebp + edx*4 - 0x408]
mov dword [ebp - 0x410], eax
mov ecx, dword [ebp - 0x410]
mov dword [ebp - 0x40c], ecx
mov edx, dword [ebp - 0x40c]
shl edx, 1
mov eax, dword [ebp - 0x40c]
sar eax, 7
or edx, eax
and edx, 0xff
mov dword [ebp - 0x40c], edx
mov ecx, dword [ebp - 0x410]
xor ecx, dword [ebp - 0x40c]
mov dword [ebp - 0x410], ecx
mov edx, dword [ebp - 0x40c]
shl edx, 1
mov eax, dword [ebp - 0x40c]
sar eax, 7
or edx, eax
and edx, 0xff
mov dword [ebp - 0x40c], edx
mov ecx, dword [ebp - 0x410]
xor ecx, dword [ebp - 0x40c]
mov dword [ebp - 0x410], ecx
mov edx, dword [ebp - 0x40c]
shl edx, 1
mov eax, dword [ebp - 0x40c]
sar eax, 7
or edx, eax
and edx, 0xff
mov dword [ebp - 0x40c], edx
mov ecx, dword [ebp - 0x410]
xor ecx, dword [ebp - 0x40c]
mov dword [ebp - 0x410], ecx
mov edx, dword [ebp - 0x40c]
shl edx, 1
mov eax, dword [ebp - 0x40c]
sar eax, 7
or edx, eax
and edx, 0xff
mov dword [ebp - 0x40c], edx
mov ecx, dword [ebp - 0x40c]
xor ecx, 0x63
xor ecx, dword [ebp - 0x410]
mov dword [ebp - 0x410], ecx
mov edx, dword [ebp - 0x414]
mov al, byte [ebp - 0x410]
mov byte [edx + 0x722a08], al
mov ecx, dword [ebp - 0x410]
mov dl, byte [ebp - 0x414]
mov byte [ecx + 0x724b30], dl
jmp 0x585240
mov dword [ebp - 0x414], 0
jmp 0x585395
mov eax, dword [ebp - 0x414]
add eax, 1
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0x100
jge 0x5856a6
mov ecx, dword [ebp - 0x414]
movzx edx, byte [ecx + 0x722a08]
mov dword [ebp - 0x410], edx
mov eax, dword [ebp - 0x410]
shl eax, 1
mov ecx, dword [ebp - 0x410]
and ecx, 0x80
neg ecx
sbb ecx, ecx
and ecx, 0x1b
xor eax, ecx
and eax, 0xff
mov dword [ebp - 0x40c], eax
mov edx, dword [ebp - 0x40c]
xor edx, dword [ebp - 0x410]
and edx, 0xff
mov dword [ebp - 0x81c], edx
mov eax, dword [ebp - 0x410]
shl eax, 8
xor eax, dword [ebp - 0x40c]
mov ecx, dword [ebp - 0x410]
shl ecx, 0x10
xor eax, ecx
mov edx, dword [ebp - 0x81c]
shl edx, 0x18
xor eax, edx
mov ecx, dword [ebp - 0x414]
mov dword [ecx*4 + 0x724730], eax
mov edx, dword [ebp - 0x414]
mov eax, dword [edx*4 + 0x724730]
shl eax, 8
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx*4 + 0x724730]
shr edx, 0x18
or eax, edx
mov ecx, dword [ebp - 0x414]
mov dword [ecx*4 + 0x724330], eax
mov edx, dword [ebp - 0x414]
mov eax, dword [edx*4 + 0x724330]
shl eax, 8
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx*4 + 0x724330]
shr edx, 0x18
or eax, edx
mov ecx, dword [ebp - 0x414]
mov dword [ecx*4 + 0x723f30], eax
mov edx, dword [ebp - 0x414]
mov eax, dword [edx*4 + 0x723f30]
shl eax, 8
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx*4 + 0x723f30]
shr edx, 0x18
or eax, edx
mov ecx, dword [ebp - 0x414]
mov dword [ecx*4 + 0x723b30], eax
mov edx, dword [ebp - 0x414]
movzx eax, byte [edx + 0x724b30]
mov dword [ebp - 0x410], eax
mov ecx, 0xe
test ecx, ecx
je 0x585506
cmp dword [ebp - 0x410], 0
je 0x585506
mov edx, dword [ebp - 0x410]
mov eax, dword [ebp - 0x7e0]
add eax, dword [ebp + edx*4 - 0x818]
cdq
mov ecx, 0xff
idiv ecx
mov edx, dword [ebp + edx*4 - 0x408]
mov dword [ebp - 0x820], edx
jmp 0x585510
mov dword [ebp - 0x820], 0
mov eax, 9
test eax, eax
je 0x58554c
cmp dword [ebp - 0x410], 0
je 0x58554c
mov ecx, dword [ebp - 0x410]
mov eax, dword [ebp - 0x7f4]
add eax, dword [ebp + ecx*4 - 0x818]
cdq
mov ecx, 0xff
idiv ecx
mov edx, dword [ebp + edx*4 - 0x408]
mov dword [ebp - 0x824], edx
jmp 0x585556
mov dword [ebp - 0x824], 0
mov eax, 0xd
test eax, eax
je 0x585592
cmp dword [ebp - 0x410], 0
je 0x585592
mov ecx, dword [ebp - 0x410]
mov eax, dword [ebp - 0x7e4]
add eax, dword [ebp + ecx*4 - 0x818]
cdq
mov ecx, 0xff
idiv ecx
mov edx, dword [ebp + edx*4 - 0x408]
mov dword [ebp - 0x828], edx
jmp 0x58559c
mov dword [ebp - 0x828], 0
mov eax, 0xb
test eax, eax
je 0x5855d8
cmp dword [ebp - 0x410], 0
je 0x5855d8
mov ecx, dword [ebp - 0x410]
mov eax, dword [ebp - 0x7ec]
add eax, dword [ebp + ecx*4 - 0x818]
cdq
mov ecx, 0xff
idiv ecx
mov edx, dword [ebp + edx*4 - 0x408]
mov dword [ebp - 0x82c], edx
jmp 0x5855e2
mov dword [ebp - 0x82c], 0
mov eax, dword [ebp - 0x824]
shl eax, 8
xor eax, dword [ebp - 0x820]
mov ecx, dword [ebp - 0x828]
shl ecx, 0x10
xor eax, ecx
mov edx, dword [ebp - 0x82c]
shl edx, 0x18
xor eax, edx
mov ecx, dword [ebp - 0x414]
mov dword [ecx*4 + 0x723730], eax
mov edx, dword [ebp - 0x414]
mov eax, dword [edx*4 + 0x723730]
shl eax, 8
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx*4 + 0x723730]
shr edx, 0x18
or eax, edx
mov ecx, dword [ebp - 0x414]
mov dword [ecx*4 + 0x723330], eax
mov edx, dword [ebp - 0x414]
mov eax, dword [edx*4 + 0x723330]
shl eax, 8
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx*4 + 0x723330]
shr edx, 0x18
or eax, edx
mov ecx, dword [ebp - 0x414]
mov dword [ecx*4 + 0x722f08], eax
mov edx, dword [ebp - 0x414]
mov eax, dword [edx*4 + 0x722f08]
shl eax, 8
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx*4 + 0x722f08]
shr edx, 0x18
or eax, edx
mov ecx, dword [ebp - 0x414]
mov dword [ecx*4 + 0x722b08], eax
jmp 0x585386
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058d3fe
mov esp, ebp
pop ebp
ret