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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x7140f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax + 4]
test eax, eax
jne 0x4193d2
jmp 0x4199b4
push 0x20
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x20]
lea eax, [ecx + eax + 0x1e8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
shl eax, 0x18
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
shl eax, 0x10
or eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
shl eax, 8
or eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
or eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
xor edx, dword [ecx + eax]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
shl eax, 0x18
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
shl eax, 0x10
or eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
shl eax, 8
or eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
or eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
xor edx, dword [ecx + eax]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
shl eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
shl eax, 0x10
or eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
shl eax, 8
or eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
or eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
push 4
pop eax
shl eax, 1
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
xor edx, dword [ecx + eax]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
shl eax, 0x18
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
shl eax, 0x10
or eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
shl eax, 8
or eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
or eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
push 4
pop eax
imul eax, eax, 3
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
xor edx, dword [ecx + eax]
mov dword [ebp - 8], edx
mov dword [ebp - 0x24], 1
jmp 0x419584
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [eax + 0x3d0]
jge 0x419721
mov eax, dword [ebp - 0x24]
shl eax, 5
mov ecx, dword [ebp - 0x20]
lea eax, [ecx + eax + 0x1e8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
sar eax, 0x18
and eax, 0xff
mov ecx, dword [ebp - 8]
sar ecx, 0x10
and ecx, 0xff
mov eax, dword [eax*4 + 0x68e650]
xor eax, dword [ecx*4 + 0x68ea50]
mov ecx, dword [ebp - 0xc]
sar ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x68ee50]
mov ecx, dword [ebp - 0x10]
and ecx, 0xff
xor eax, dword [ecx*4 + 0x68f250]
push 4
pop ecx
imul ecx, ecx, 0
mov edx, dword [ebp - 0x1c]
xor eax, dword [edx + ecx]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x10]
sar eax, 0x18
and eax, 0xff
mov ecx, dword [ebp - 0x14]
sar ecx, 0x10
and ecx, 0xff
mov eax, dword [eax*4 + 0x68e650]
xor eax, dword [ecx*4 + 0x68ea50]
mov ecx, dword [ebp - 8]
sar ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x68ee50]
mov ecx, dword [ebp - 0xc]
and ecx, 0xff
xor eax, dword [ecx*4 + 0x68f250]
push 4
pop ecx
shl ecx, 0
mov edx, dword [ebp - 0x1c]
xor eax, dword [edx + ecx]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xc]
sar eax, 0x18
and eax, 0xff
mov ecx, dword [ebp - 0x10]
sar ecx, 0x10
and ecx, 0xff
mov eax, dword [eax*4 + 0x68e650]
xor eax, dword [ecx*4 + 0x68ea50]
mov ecx, dword [ebp - 0x14]
sar ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x68ee50]
mov ecx, dword [ebp - 8]
and ecx, 0xff
xor eax, dword [ecx*4 + 0x68f250]
push 4
pop ecx
shl ecx, 1
mov edx, dword [ebp - 0x1c]
xor eax, dword [edx + ecx]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 8]
sar eax, 0x18
and eax, 0xff
mov ecx, dword [ebp - 0xc]
sar ecx, 0x10
and ecx, 0xff
mov eax, dword [eax*4 + 0x68e650]
xor eax, dword [ecx*4 + 0x68ea50]
mov ecx, dword [ebp - 0x10]
sar ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x68ee50]
mov ecx, dword [ebp - 0x14]
and ecx, 0xff
xor eax, dword [ecx*4 + 0x68f250]
push 4
pop ecx
imul ecx, ecx, 3
mov edx, dword [ebp - 0x1c]
xor eax, dword [edx + ecx]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 8], eax
jmp 0x41957d
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x3d0]
shl eax, 5
mov ecx, dword [ebp - 0x20]
lea eax, [ecx + eax + 0x1e8]
mov dword [ebp - 0x1c], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
sar eax, 0x18
and eax, 0xff
movsx eax, byte [eax + 0x68d550]
mov ecx, dword [ebp - 0x18]
sar ecx, 0x18
xor eax, ecx
xor ecx, ecx
inc ecx
imul ecx, ecx, 0
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx], al
mov eax, dword [ebp - 8]
sar eax, 0x10
and eax, 0xff
movsx eax, byte [eax + 0x68d550]
mov ecx, dword [ebp - 0x18]
sar ecx, 0x10
xor eax, ecx
xor ecx, ecx
inc ecx
shl ecx, 0
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx], al
mov eax, dword [ebp - 0xc]
sar eax, 8
and eax, 0xff
movsx eax, byte [eax + 0x68d550]
mov ecx, dword [ebp - 0x18]
sar ecx, 8
xor eax, ecx
xor ecx, ecx
inc ecx
shl ecx, 1
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx], al
mov eax, dword [ebp - 0x10]
and eax, 0xff
movsx eax, byte [eax + 0x68d550]
xor eax, dword [ebp - 0x18]
xor ecx, ecx
inc ecx
imul ecx, ecx, 3
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx], al
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
sar eax, 0x18
and eax, 0xff
movsx eax, byte [eax + 0x68d550]
mov ecx, dword [ebp - 0x18]
sar ecx, 0x18
xor eax, ecx
xor ecx, ecx
inc ecx
shl ecx, 2
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx], al
mov eax, dword [ebp - 0x14]
sar eax, 0x10
and eax, 0xff
movsx eax, byte [eax + 0x68d550]
mov ecx, dword [ebp - 0x18]
sar ecx, 0x10
xor eax, ecx
xor ecx, ecx
inc ecx
imul ecx, ecx, 5
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx], al
mov eax, dword [ebp - 8]
sar eax, 8
and eax, 0xff
movsx eax, byte [eax + 0x68d550]
mov ecx, dword [ebp - 0x18]
sar ecx, 8
xor eax, ecx
xor ecx, ecx
inc ecx
imul ecx, ecx, 6
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx], al
mov eax, dword [ebp - 0xc]
and eax, 0xff
movsx eax, byte [eax + 0x68d550]
xor eax, dword [ebp - 0x18]
xor ecx, ecx
inc ecx
imul ecx, ecx, 7
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx], al
push 4
pop eax
shl eax, 1
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
sar eax, 0x18
and eax, 0xff
movsx eax, byte [eax + 0x68d550]
mov ecx, dword [ebp - 0x18]
sar ecx, 0x18
xor eax, ecx
xor ecx, ecx
inc ecx
shl ecx, 3
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx], al
mov eax, dword [ebp - 0x10]
sar eax, 0x10
and eax, 0xff
movsx eax, byte [eax + 0x68d550]
mov ecx, dword [ebp - 0x18]
sar ecx, 0x10
xor eax, ecx
xor ecx, ecx
inc ecx
imul ecx, ecx, 9
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx], al
mov eax, dword [ebp - 0x14]
sar eax, 8
and eax, 0xff
movsx eax, byte [eax + 0x68d550]
mov ecx, dword [ebp - 0x18]
sar ecx, 8
xor eax, ecx
xor ecx, ecx
inc ecx
imul ecx, ecx, 0xa
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx], al
mov eax, dword [ebp - 8]
and eax, 0xff
movsx eax, byte [eax + 0x68d550]
xor eax, dword [ebp - 0x18]
xor ecx, ecx
inc ecx
imul ecx, ecx, 0xb
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx], al
push 4
pop eax
imul eax, eax, 3
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
sar eax, 0x18
and eax, 0xff
movsx eax, byte [eax + 0x68d550]
mov ecx, dword [ebp - 0x18]
sar ecx, 0x18
xor eax, ecx
xor ecx, ecx
inc ecx
imul ecx, ecx, 0xc
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx], al
mov eax, dword [ebp - 0xc]
sar eax, 0x10
and eax, 0xff
movsx eax, byte [eax + 0x68d550]
mov ecx, dword [ebp - 0x18]
sar ecx, 0x10
xor eax, ecx
xor ecx, ecx
inc ecx
imul ecx, ecx, 0xd
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx], al
mov eax, dword [ebp - 0x10]
sar eax, 8
and eax, 0xff
movsx eax, byte [eax + 0x68d550]
mov ecx, dword [ebp - 0x18]
sar ecx, 8
xor eax, ecx
xor ecx, ecx
inc ecx
imul ecx, ecx, 0xe
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx], al
mov eax, dword [ebp - 0x14]
and eax, 0xff
movsx eax, byte [eax + 0x68d550]
xor eax, dword [ebp - 0x18]
xor ecx, ecx
inc ecx
imul ecx, ecx, 0xf
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx], al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006486fb
leave
ret 8