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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov eax, dword [ebp + 8]
cmp byte [eax + 4], 0
jne 0x404373
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x427f44
push 0x404328
call fcn.0042058c
add esp, 0x24
mov edx, dword [ebp + 8]
add edx, 0x1e8
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [ecx]
shl eax, 0x18
mov dword [ebp - 8], eax
inc dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
xor ecx, ecx
mov cl, byte [edx]
shl ecx, 0x10
or dword [ebp - 8], ecx
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [eax]
shl edx, 8
or dword [ebp - 8], edx
inc dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [ecx]
or dword [ebp - 8], eax
inc dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov ecx, dword [edx]
xor dword [ebp - 8], ecx
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [eax]
shl edx, 0x18
mov dword [ebp - 0xc], edx
inc dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [ecx]
shl eax, 0x10
or dword [ebp - 0xc], eax
inc dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
xor ecx, ecx
mov cl, byte [edx]
shl ecx, 8
or dword [ebp - 0xc], ecx
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [eax]
or dword [ebp - 0xc], edx
inc dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 4]
xor dword [ebp - 0xc], eax
mov edx, dword [ebp + 0xc]
xor ecx, ecx
mov cl, byte [edx]
shl ecx, 0x18
mov dword [ebp - 0x10], ecx
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [eax]
shl edx, 0x10
or dword [ebp - 0x10], edx
inc dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [ecx]
shl eax, 8
or dword [ebp - 0x10], eax
inc dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
xor ecx, ecx
mov cl, byte [edx]
or dword [ebp - 0x10], ecx
inc dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
xor dword [ebp - 0x10], edx
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [ecx]
shl eax, 0x18
mov dword [ebp - 0x14], eax
inc dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
xor ecx, ecx
mov cl, byte [edx]
shl ecx, 0x10
or dword [ebp - 0x14], ecx
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [eax]
shl edx, 8
or dword [ebp - 0x14], edx
inc dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [ecx]
or dword [ebp - 0x14], eax
inc dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0xc]
xor dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], 1
jmp 0x404611
mov eax, dword [ebp - 0x28]
shl eax, 5
add eax, dword [ebp + 8]
add eax, 0x1e8
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
sar edx, 0x18
and edx, 0xff
mov ecx, dword [edx*4 + 0x425ec4]
mov eax, dword [ebp - 0x14]
sar eax, 0x10
and eax, 0xff
xor ecx, dword [eax*4 + 0x4262c4]
mov edx, dword [ebp - 0x10]
sar edx, 8
and edx, 0xff
xor ecx, dword [edx*4 + 0x4266c4]
mov eax, dword [ebp - 0xc]
and eax, 0xff
xor ecx, dword [eax*4 + 0x426ac4]
mov edx, dword [ebp - 4]
xor ecx, dword [edx]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0xc]
sar ecx, 0x18
and ecx, 0xff
mov eax, dword [ecx*4 + 0x425ec4]
mov edx, dword [ebp - 8]
sar edx, 0x10
and edx, 0xff
xor eax, dword [edx*4 + 0x4262c4]
mov ecx, dword [ebp - 0x14]
sar ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x4266c4]
mov edx, dword [ebp - 0x10]
and edx, 0xff
xor eax, dword [edx*4 + 0x426ac4]
mov ecx, dword [ebp - 4]
xor eax, dword [ecx + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
sar eax, 0x18
and eax, 0xff
mov eax, dword [eax*4 + 0x425ec4]
mov edx, dword [ebp - 0xc]
sar edx, 0x10
and edx, 0xff
xor eax, dword [edx*4 + 0x4262c4]
mov ecx, dword [ebp - 8]
sar ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x4266c4]
mov edx, dword [ebp - 0x14]
and edx, 0xff
xor eax, dword [edx*4 + 0x426ac4]
mov ecx, dword [ebp - 4]
xor eax, dword [ecx + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
sar eax, 0x18
and eax, 0xff
mov eax, dword [eax*4 + 0x425ec4]
mov edx, dword [ebp - 0x10]
sar edx, 0x10
and edx, 0xff
xor eax, dword [edx*4 + 0x4262c4]
mov ecx, dword [ebp - 0xc]
sar ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x4266c4]
mov edx, dword [ebp - 8]
and edx, 0xff
xor eax, dword [edx*4 + 0x426ac4]
mov ecx, dword [ebp - 4]
xor eax, dword [ecx + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x14], ecx
inc dword [ebp - 0x28]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x3d0]
cmp edx, dword [ebp - 0x28]
jg 0x4044a2
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3d0]
shl eax, 5
add eax, dword [ebp + 8]
add eax, 0x1e8
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
mov ecx, dword [edx]
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
sar eax, 0x18
mov edx, dword [ebp - 8]
sar edx, 0x18
and edx, 0xff
xor al, byte [edx + 0x424dc4]
mov ecx, dword [ebp + 0x10]
mov byte [ecx], al
mov eax, dword [ebp - 0x2c]
sar eax, 0x10
mov edx, dword [ebp - 0x14]
sar edx, 0x10
and edx, 0xff
xor al, byte [edx + 0x424dc4]
mov ecx, dword [ebp + 0x10]
mov byte [ecx + 1], al
mov eax, dword [ebp - 0x2c]
sar eax, 8
mov edx, dword [ebp - 0x10]
sar edx, 8
and edx, 0xff
xor al, byte [edx + 0x424dc4]
mov ecx, dword [ebp + 0x10]
mov byte [ecx + 2], al
mov al, byte [ebp - 0x2c]
mov edx, dword [ebp - 0xc]
and edx, 0xff
xor al, byte [edx + 0x424dc4]
mov ecx, dword [ebp + 0x10]
mov byte [ecx + 3], al
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov dword [ebp - 0x2c], edx
mov ecx, dword [ebp - 0x2c]
sar ecx, 0x18
mov eax, dword [ebp - 0xc]
sar eax, 0x18
and eax, 0xff
xor cl, byte [eax + 0x424dc4]
mov edx, dword [ebp + 0x10]
mov byte [edx + 4], cl
mov ecx, dword [ebp - 0x2c]
sar ecx, 0x10
mov eax, dword [ebp - 8]
sar eax, 0x10
and eax, 0xff
xor cl, byte [eax + 0x424dc4]
mov edx, dword [ebp + 0x10]
mov byte [edx + 5], cl
mov ecx, dword [ebp - 0x2c]
sar ecx, 8
mov eax, dword [ebp - 0x14]
sar eax, 8
and eax, 0xff
xor cl, byte [eax + 0x424dc4]
mov edx, dword [ebp + 0x10]
mov byte [edx + 6], cl
mov cl, byte [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
and eax, 0xff
xor cl, byte [eax + 0x424dc4]
mov edx, dword [ebp + 0x10]
mov byte [edx + 7], cl
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 8]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
sar edx, 0x18
mov ecx, dword [ebp - 0x10]
sar ecx, 0x18
and ecx, 0xff
xor dl, byte [ecx + 0x424dc4]
mov eax, dword [ebp + 0x10]
mov byte [eax + 8], dl
mov edx, dword [ebp - 0x2c]
sar edx, 0x10
mov ecx, dword [ebp - 0xc]
sar ecx, 0x10
and ecx, 0xff
xor dl, byte [ecx + 0x424dc4]
mov eax, dword [ebp + 0x10]
mov byte [eax + 9], dl
mov edx, dword [ebp - 0x2c]
sar edx, 8
mov ecx, dword [ebp - 8]
sar ecx, 8
and ecx, 0xff
xor dl, byte [ecx + 0x424dc4]
mov eax, dword [ebp + 0x10]
mov byte [eax + 0xa], dl
mov dl, byte [ebp - 0x2c]
mov ecx, dword [ebp - 0x14]
and ecx, 0xff
xor dl, byte [ecx + 0x424dc4]
mov eax, dword [ebp + 0x10]
mov byte [eax + 0xb], dl
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
sar eax, 0x18
mov edx, dword [ebp - 0x14]
sar edx, 0x18
and edx, 0xff
xor al, byte [edx + 0x424dc4]
mov ecx, dword [ebp + 0x10]
mov byte [ecx + 0xc], al
mov eax, dword [ebp - 0x2c]
sar eax, 0x10
mov edx, dword [ebp - 0x10]
sar edx, 0x10
and edx, 0xff
xor al, byte [edx + 0x424dc4]
mov ecx, dword [ebp + 0x10]
mov byte [ecx + 0xd], al
mov eax, dword [ebp - 0x2c]
sar eax, 8
mov edx, dword [ebp - 0xc]
sar edx, 8
and edx, 0xff
xor al, byte [edx + 0x424dc4]
mov ecx, dword [ebp + 0x10]
mov byte [ecx + 0xe], al
mov al, byte [ebp - 0x2c]
mov edx, dword [ebp - 8]
and edx, 0xff
xor al, byte [edx + 0x424dc4]
mov ecx, dword [ebp + 0x10]
mov byte [ecx + 0xf], al
mov esp, ebp
pop ebp
ret