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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
mov cl, byte [eax + 4]
test ecx, ecx
jne 0x40226a
push 0x412240
lea ecx, [ebp - 0x38]
call fcn.00406567
push 0x410858
lea edx, [ebp - 0x38]
push edx
call fcn.00406985
mov eax, dword [ebp - 0x3c]
add eax, 8
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx]
shl edx, 0x18
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx]
shl edx, 0x10
mov eax, dword [ebp - 8]
or eax, edx
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx]
shl eax, 8
mov ecx, dword [ebp - 8]
or ecx, eax
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax]
mov edx, dword [ebp - 8]
or edx, ecx
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 8]
xor edx, dword [ecx]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax]
shl ecx, 0x18
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax]
shl ecx, 0x10
mov edx, dword [ebp - 0xc]
or edx, ecx
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx]
shl edx, 8
mov eax, dword [ebp - 0xc]
or eax, edx
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp - 0xc]
or ecx, eax
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
xor ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx]
shl eax, 0x18
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx]
shl eax, 0x10
mov ecx, dword [ebp - 0x10]
or ecx, eax
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax]
shl ecx, 8
mov edx, dword [ebp - 0x10]
or edx, ecx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp - 0x10]
or eax, edx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
xor eax, dword [edx + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx]
shl edx, 0x18
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx]
shl edx, 0x10
mov eax, dword [ebp - 0x18]
or eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx]
shl eax, 8
mov ecx, dword [ebp - 0x18]
or ecx, eax
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax]
mov edx, dword [ebp - 0x18]
or edx, ecx
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
xor edx, dword [ecx + 0xc]
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 1
jmp 0x402444
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 4]
cmp edx, dword [ecx + 0x3d0]
jge 0x4025c4
mov eax, dword [ebp - 4]
shl eax, 5
mov ecx, dword [ebp - 0x3c]
lea edx, [ecx + eax + 8]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 8]
sar eax, 0x18
and eax, 0xff
mov ecx, dword [ebp - 0xc]
sar ecx, 0x10
and ecx, 0xff
mov edx, dword [eax*4 + 0x40cb08]
xor edx, dword [ecx*4 + 0x40cf08]
mov eax, dword [ebp - 0x10]
sar eax, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x40d308]
mov ecx, dword [ebp - 0x18]
and ecx, 0xff
xor edx, dword [ecx*4 + 0x40d708]
mov eax, dword [ebp - 0x2c]
xor edx, dword [eax]
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0xc]
sar ecx, 0x18
and ecx, 0xff
mov edx, dword [ebp - 0x10]
sar edx, 0x10
and edx, 0xff
mov eax, dword [ecx*4 + 0x40cb08]
xor eax, dword [edx*4 + 0x40cf08]
mov ecx, dword [ebp - 0x18]
sar ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x40d308]
mov edx, dword [ebp - 8]
and edx, 0xff
xor eax, dword [edx*4 + 0x40d708]
mov ecx, dword [ebp - 0x2c]
xor eax, dword [ecx + 4]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x10]
sar edx, 0x18
and edx, 0xff
mov eax, dword [ebp - 0x18]
sar eax, 0x10
and eax, 0xff
mov ecx, dword [edx*4 + 0x40cb08]
xor ecx, dword [eax*4 + 0x40cf08]
mov edx, dword [ebp - 8]
sar edx, 8
and edx, 0xff
xor ecx, dword [edx*4 + 0x40d308]
mov eax, dword [ebp - 0xc]
and eax, 0xff
xor ecx, dword [eax*4 + 0x40d708]
mov edx, dword [ebp - 0x2c]
xor ecx, dword [edx + 8]
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x18]
sar eax, 0x18
and eax, 0xff
mov ecx, dword [ebp - 8]
sar ecx, 0x10
and ecx, 0xff
mov edx, dword [eax*4 + 0x40cb08]
xor edx, dword [ecx*4 + 0x40cf08]
mov eax, dword [ebp - 0xc]
sar eax, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x40d308]
mov ecx, dword [ebp - 0x10]
and ecx, 0xff
xor edx, dword [ecx*4 + 0x40d708]
mov eax, dword [ebp - 0x2c]
xor edx, dword [eax + 0xc]
mov dword [ebp - 0x28], edx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x18], ecx
jmp 0x40243b
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x3d0]
shl eax, 5
mov ecx, dword [ebp - 0x3c]
lea edx, [ecx + eax + 8]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 8]
sar edx, 0x18
and edx, 0xff
movsx eax, byte [edx + str.cw]
mov ecx, dword [ebp - 0x1c]
sar ecx, 0x18
xor eax, ecx
mov edx, dword [ebp + 0xc]
mov byte [edx], al
mov eax, dword [ebp - 0xc]
sar eax, 0x10
and eax, 0xff
movsx ecx, byte [eax + str.cw]
mov edx, dword [ebp - 0x1c]
sar edx, 0x10
xor ecx, edx
mov eax, dword [ebp + 0xc]
mov byte [eax + 1], cl
mov ecx, dword [ebp - 0x10]
sar ecx, 8
and ecx, 0xff
movsx edx, byte [ecx + str.cw]
mov eax, dword [ebp - 0x1c]
sar eax, 8
xor edx, eax
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 2], dl
mov edx, dword [ebp - 0x18]
and edx, 0xff
movsx eax, byte [edx + str.cw]
xor eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 3], al
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 4]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0xc]
sar ecx, 0x18
and ecx, 0xff
movsx edx, byte [ecx + str.cw]
mov eax, dword [ebp - 0x1c]
sar eax, 0x18
xor edx, eax
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 4], dl
mov edx, dword [ebp - 0x10]
sar edx, 0x10
and edx, 0xff
movsx eax, byte [edx + str.cw]
mov ecx, dword [ebp - 0x1c]
sar ecx, 0x10
xor eax, ecx
mov edx, dword [ebp + 0xc]
mov byte [edx + 5], al
mov eax, dword [ebp - 0x18]
sar eax, 8
and eax, 0xff
movsx ecx, byte [eax + str.cw]
mov edx, dword [ebp - 0x1c]
sar edx, 8
xor ecx, edx
mov eax, dword [ebp + 0xc]
mov byte [eax + 6], cl
mov ecx, dword [ebp - 8]
and ecx, 0xff
movsx edx, byte [ecx + str.cw]
xor edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0xc]
mov byte [eax + 7], dl
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x10]
sar eax, 0x18
and eax, 0xff
movsx ecx, byte [eax + str.cw]
mov edx, dword [ebp - 0x1c]
sar edx, 0x18
xor ecx, edx
mov eax, dword [ebp + 0xc]
mov byte [eax + 8], cl
mov ecx, dword [ebp - 0x18]
sar ecx, 0x10
and ecx, 0xff
movsx edx, byte [ecx + str.cw]
mov eax, dword [ebp - 0x1c]
sar eax, 0x10
xor edx, eax
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 9], dl
mov edx, dword [ebp - 8]
sar edx, 8
and edx, 0xff
movsx eax, byte [edx + str.cw]
mov ecx, dword [ebp - 0x1c]
sar ecx, 8
xor eax, ecx
mov edx, dword [ebp + 0xc]
mov byte [edx + 0xa], al
mov eax, dword [ebp - 0xc]
and eax, 0xff
movsx ecx, byte [eax + str.cw]
xor ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 0xc]
mov byte [edx + 0xb], cl
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x18]
sar edx, 0x18
and edx, 0xff
movsx eax, byte [edx + str.cw]
mov ecx, dword [ebp - 0x1c]
sar ecx, 0x18
xor eax, ecx
mov edx, dword [ebp + 0xc]
mov byte [edx + 0xc], al
mov eax, dword [ebp - 8]
sar eax, 0x10
and eax, 0xff
movsx ecx, byte [eax + str.cw]
mov edx, dword [ebp - 0x1c]
sar edx, 0x10
xor ecx, edx
mov eax, dword [ebp + 0xc]
mov byte [eax + 0xd], cl
mov ecx, dword [ebp - 0xc]
sar ecx, 8
and ecx, 0xff
movsx edx, byte [ecx + str.cw]
mov eax, dword [ebp - 0x1c]
sar eax, 8
xor edx, eax
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0xe], dl
mov edx, dword [ebp - 0x10]
and edx, 0xff
movsx eax, byte [edx + str.cw]
xor eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0xf], al
mov esp, ebp
pop ebp
ret 8