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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
cmp dword [0x453620], 0
jne 0x401021
call fcn.004279c0
mov dword [0x453620], 1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0x80
je 0x401044
cmp dword [ebp - 0x50], 0xc0
je 0x401053
cmp dword [ebp - 0x50], 0x100
je 0x401062
jmp 0x401071
mov eax, dword [ebp + 8]
mov dword [eax + 0x200], 0xa
jmp 0x401076
mov eax, dword [ebp + 8]
mov dword [eax + 0x200], 0xc
jmp 0x401076
mov eax, dword [ebp + 8]
mov dword [eax + 0x200], 0xe
jmp 0x401076
jmp 0x401764
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x40108e
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
sar eax, 5
cmp dword [ebp - 4], eax
jge 0x4010de
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + eax*4]
shl edx, 0x18
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ecx + eax*4 + 1]
shl eax, 0x10
or edx, eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + ecx*4 + 2]
shl ecx, 8
or edx, ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ecx + eax*4 + 3]
or edx, eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [eax + ecx*4], edx
jmp 0x401085
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x200]
mov dword [ebp - 0x50], ecx
cmp dword [ebp - 0x50], 0xa
je 0x401109
cmp dword [ebp - 0x50], 0xc
je 0x4011db
cmp dword [ebp - 0x50], 0xe
je 0x4012d1
jmp 0x401436
mov dword [ebp - 4], 0
jmp 0x401124
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
add ecx, 0x10
mov dword [ebp - 8], ecx
cmp dword [ebp - 4], 0xa
jge 0x4011d6
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [eax]
xor edx, dword [ecx*4 + 0x4464d0]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
movzx eax, cl
movzx ecx, byte [eax + 0x4442d0]
shl ecx, 0x18
xor edx, ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
shr ecx, 8
movzx eax, cl
movzx ecx, byte [eax + 0x4442d0]
shl ecx, 0x10
xor edx, ecx
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0xc]
movzx eax, byte [ecx + 0x4442d0]
shl eax, 8
xor edx, eax
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0xc]
shr eax, 0x18
movzx ecx, al
movzx eax, byte [ecx + 0x4442d0]
xor edx, eax
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 4]
xor edx, dword [ecx + 0x10]
mov eax, dword [ebp - 8]
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 8]
xor edx, dword [ecx + 0x14]
mov eax, dword [ebp - 8]
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 0xc]
xor edx, dword [ecx + 0x18]
mov eax, dword [ebp - 8]
mov dword [eax + 0x1c], edx
jmp 0x401112
jmp 0x401436
mov dword [ebp - 4], 0
jmp 0x4011f6
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
add ecx, 0x18
mov dword [ebp - 8], ecx
cmp dword [ebp - 4], 8
jge 0x4012cc
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [eax]
xor edx, dword [ecx*4 + 0x4464d0]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x14]
shr ecx, 0x10
movzx eax, cl
movzx ecx, byte [eax + 0x4442d0]
shl ecx, 0x18
xor edx, ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x14]
shr ecx, 8
movzx eax, cl
movzx ecx, byte [eax + 0x4442d0]
shl ecx, 0x10
xor edx, ecx
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0x14]
movzx eax, byte [ecx + 0x4442d0]
shl eax, 8
xor edx, eax
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0x14]
shr eax, 0x18
movzx ecx, al
movzx eax, byte [ecx + 0x4442d0]
xor edx, eax
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x18], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 4]
xor edx, dword [ecx + 0x18]
mov eax, dword [ebp - 8]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 8]
xor edx, dword [ecx + 0x1c]
mov eax, dword [ebp - 8]
mov dword [eax + 0x20], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 0xc]
xor edx, dword [ecx + 0x20]
mov eax, dword [ebp - 8]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 0x10]
xor edx, dword [ecx + 0x24]
mov eax, dword [ebp - 8]
mov dword [eax + 0x28], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 0x14]
xor edx, dword [ecx + 0x28]
mov eax, dword [ebp - 8]
mov dword [eax + 0x2c], edx
jmp 0x4011e4
jmp 0x401436
mov dword [ebp - 4], 0
jmp 0x4012ec
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
add ecx, 0x20
mov dword [ebp - 8], ecx
cmp dword [ebp - 4], 7
jge 0x401436
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [eax]
xor edx, dword [ecx*4 + 0x4464d0]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1c]
shr ecx, 0x10
movzx eax, cl
movzx ecx, byte [eax + 0x4442d0]
shl ecx, 0x18
xor edx, ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1c]
shr ecx, 8
movzx eax, cl
movzx ecx, byte [eax + 0x4442d0]
shl ecx, 0x10
xor edx, ecx
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0x1c]
movzx eax, byte [ecx + 0x4442d0]
shl eax, 8
xor edx, eax
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0x1c]
shr eax, 0x18
movzx ecx, al
movzx eax, byte [ecx + 0x4442d0]
xor edx, eax
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x20], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 4]
xor edx, dword [ecx + 0x20]
mov eax, dword [ebp - 8]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 8]
xor edx, dword [ecx + 0x24]
mov eax, dword [ebp - 8]
mov dword [eax + 0x28], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 0xc]
xor edx, dword [ecx + 0x28]
mov eax, dword [ebp - 8]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x2c]
shr ecx, 0x18
movzx edx, cl
movzx eax, byte [edx + 0x4442d0]
shl eax, 0x18
mov ecx, dword [ebp - 8]
xor eax, dword [ecx + 0x10]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0x2c]
shr ecx, 0x10
movzx edx, cl
movzx ecx, byte [edx + 0x4442d0]
shl ecx, 0x10
xor eax, ecx
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0x2c]
shr ecx, 8
movzx edx, cl
movzx ecx, byte [edx + 0x4442d0]
shl ecx, 8
xor eax, ecx
mov edx, dword [ebp - 8]
movzx ecx, byte [edx + 0x2c]
movzx edx, byte [ecx + 0x4442d0]
xor eax, edx
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x30], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 0x14]
xor edx, dword [ecx + 0x30]
mov eax, dword [ebp - 8]
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 0x18]
xor edx, dword [ecx + 0x34]
mov eax, dword [ebp - 8]
mov dword [eax + 0x38], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 0x1c]
xor edx, dword [ecx + 0x38]
mov eax, dword [ebp - 8]
mov dword [eax + 0x3c], edx
jmp 0x4012da
cmp dword [0x453624], 0
jne 0x4014d6
mov dword [ebp - 4], 0
jmp 0x401455
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jge 0x4014cc
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x4442d0]
mov edx, dword [ebp - 4]
mov eax, dword [ecx*4 + 0x4454d0]
mov dword [edx*4 + 0x452e20], eax
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x4442d0]
mov edx, dword [ebp - 4]
mov eax, dword [ecx*4 + 0x4458d0]
mov dword [edx*4 + 0x452a20], eax
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x4442d0]
mov edx, dword [ebp - 4]
mov eax, dword [ecx*4 + 0x445cd0]
mov dword [edx*4 + 0x452620], eax
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x4442d0]
mov edx, dword [ebp - 4]
mov eax, dword [ecx*4 + 0x4460d0]
mov dword [edx*4 + 0x453220], eax
jmp 0x40144c
mov dword [0x453624], 1
mov eax, dword [ebp + 8]
add eax, 0x100
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 1
jmp 0x401563
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x200]
jge 0x4016eb
mov eax, dword [ebp - 8]
sub eax, 0x20
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
shr ecx, 0x18
movzx edx, cl
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
shr ecx, 0x10
movzx eax, cl
mov ecx, dword [edx*4 + 0x452e20]
xor ecx, dword [eax*4 + 0x452a20]
mov edx, dword [ebp - 8]
mov eax, dword [edx]
shr eax, 8
movzx edx, al
xor ecx, dword [edx*4 + 0x452620]
mov eax, dword [ebp - 8]
movzx edx, byte [eax]
xor ecx, dword [edx*4 + 0x453220]
mov eax, dword [ebp - 0xc]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
add ecx, 4
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
shr ecx, 0x18
movzx edx, cl
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
shr ecx, 0x10
movzx eax, cl
mov ecx, dword [edx*4 + 0x452e20]
xor ecx, dword [eax*4 + 0x452a20]
mov edx, dword [ebp - 8]
mov eax, dword [edx]
shr eax, 8
movzx edx, al
xor ecx, dword [edx*4 + 0x452620]
mov eax, dword [ebp - 8]
movzx edx, byte [eax]
xor ecx, dword [edx*4 + 0x453220]
mov eax, dword [ebp - 0xc]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
add ecx, 4
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
shr ecx, 0x18
movzx edx, cl
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
shr ecx, 0x10
movzx eax, cl
mov ecx, dword [edx*4 + 0x452e20]
xor ecx, dword [eax*4 + 0x452a20]
mov edx, dword [ebp - 8]
mov eax, dword [edx]
shr eax, 8
movzx edx, al
xor ecx, dword [edx*4 + 0x452620]
mov eax, dword [ebp - 8]
movzx edx, byte [eax]
xor ecx, dword [edx*4 + 0x453220]
mov eax, dword [ebp - 0xc]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
add ecx, 4
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
shr ecx, 0x18
movzx edx, cl
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
shr ecx, 0x10
movzx eax, cl
mov ecx, dword [edx*4 + 0x452e20]
xor ecx, dword [eax*4 + 0x452a20]
mov edx, dword [ebp - 8]
mov eax, dword [edx]
shr eax, 8
movzx edx, al
xor ecx, dword [edx*4 + 0x452620]
mov eax, dword [ebp - 8]
movzx edx, byte [eax]
xor ecx, dword [edx*4 + 0x453220]
mov eax, dword [ebp - 0xc]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
add ecx, 4
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
jmp 0x40155a
mov eax, dword [ebp - 8]
sub eax, 0x20
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 8], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret