Function at 0x589170
Capabilities:
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x6d74f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x414], 0
mov dword [ebp - 0x410], 1
jmp 0x5891a8
mov eax, dword [ebp - 0x414]
add eax, 1
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0x100
jge 0x58920a
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 0x589199
mov dword [ebp - 0x414], 0
mov dword [ebp - 0x410], 1
jmp 0x58922f
mov ecx, dword [ebp - 0x414]
add ecx, 1
mov dword [ebp - 0x414], ecx
cmp dword [ebp - 0x414], 0xa
jge 0x589276
mov edx, dword [ebp - 0x414]
mov eax, dword [ebp - 0x410]
mov dword [edx*4 + 0x70c900], 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 0x589220
mov byte [0x70c000], 0x63
mov byte [0x70e18b], 0
mov dword [ebp - 0x414], 1
jmp 0x58929f
mov eax, dword [ebp - 0x414]
add eax, 1
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0x100
jge 0x5893ca
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 + 0x70c000], al
mov ecx, dword [ebp - 0x410]
mov dl, byte [ebp - 0x414]
mov byte [ecx + 0x70e128], dl
jmp 0x589290
mov dword [ebp - 0x414], 0
jmp 0x5893e5
mov eax, dword [ebp - 0x414]
add eax, 1
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0x100
jge 0x5896f6
mov ecx, dword [ebp - 0x414]
movzx edx, byte [ecx + 0x70c000]
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 + 0x70dd28], eax
mov edx, dword [ebp - 0x414]
mov eax, dword [edx*4 + 0x70dd28]
shl eax, 8
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx*4 + 0x70dd28]
shr edx, 0x18
or eax, edx
mov ecx, dword [ebp - 0x414]
mov dword [ecx*4 + 0x70d928], eax
mov edx, dword [ebp - 0x414]
mov eax, dword [edx*4 + 0x70d928]
shl eax, 8
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx*4 + 0x70d928]
shr edx, 0x18
or eax, edx
mov ecx, dword [ebp - 0x414]
mov dword [ecx*4 + 0x70d528], eax
mov edx, dword [ebp - 0x414]
mov eax, dword [edx*4 + 0x70d528]
shl eax, 8
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx*4 + 0x70d528]
shr edx, 0x18
or eax, edx
mov ecx, dword [ebp - 0x414]
mov dword [ecx*4 + 0x70d128], eax
mov edx, dword [ebp - 0x414]
movzx eax, byte [edx + 0x70e128]
mov dword [ebp - 0x410], eax
mov ecx, 0xe
test ecx, ecx
je 0x589556
cmp dword [ebp - 0x410], 0
je 0x589556
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 0x589560
mov dword [ebp - 0x820], 0
mov eax, 9
test eax, eax
je 0x58959c
cmp dword [ebp - 0x410], 0
je 0x58959c
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 0x5895a6
mov dword [ebp - 0x824], 0
mov eax, 0xd
test eax, eax
je 0x5895e2
cmp dword [ebp - 0x410], 0
je 0x5895e2
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 0x5895ec
mov dword [ebp - 0x828], 0
mov eax, 0xb
test eax, eax
je 0x589628
cmp dword [ebp - 0x410], 0
je 0x589628
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 0x589632
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 + 0x70cd28], eax
mov edx, dword [ebp - 0x414]
mov eax, dword [edx*4 + 0x70cd28]
shl eax, 8
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx*4 + 0x70cd28]
shr edx, 0x18
or eax, edx
mov ecx, dword [ebp - 0x414]
mov dword [ecx*4 + 0x70c928], eax
mov edx, dword [ebp - 0x414]
mov eax, dword [edx*4 + 0x70c928]
shl eax, 8
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx*4 + 0x70c928]
shr edx, 0x18
or eax, edx
mov ecx, dword [ebp - 0x414]
mov dword [ecx*4 + 0x70c500], eax
mov edx, dword [ebp - 0x414]
mov eax, dword [edx*4 + 0x70c500]
shl eax, 8
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx*4 + 0x70c500]
shr edx, 0x18
or eax, edx
mov ecx, dword [ebp - 0x414]
mov dword [ecx*4 + 0x70c100], eax
jmp 0x5893d6
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059146f
mov esp, ebp
pop ebp
ret