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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 4]
test eax, eax
jne 0x4199db
jmp 0x419d6e
mov eax, dword [ebp - 8]
cmp dword [eax + 0x3cc], 0x10
jne 0x4199fa
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.00418da5
jmp 0x419d6e
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3cc]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 4
jne 0x419a1b
and dword [ebp - 0x2c], 0
jmp 0x419a37
cmp dword [ebp - 0xc], 6
jne 0x419a2a
mov dword [ebp - 0x28], 1
jmp 0x419a31
mov dword [ebp - 0x28], 2
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
shl eax, 5
push 8
pop ecx
shl ecx, 0
lea eax, [eax + ecx + 0x690670]
push 4
pop ecx
imul ecx, ecx, 0
mov eax, dword [eax + ecx]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
shl eax, 5
push 8
pop ecx
shl ecx, 1
lea eax, [eax + ecx + 0x690670]
push 4
pop ecx
imul ecx, ecx, 0
mov eax, dword [eax + ecx]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x24]
shl eax, 5
push 8
pop ecx
imul ecx, ecx, 3
lea eax, [eax + ecx + 0x690670]
push 4
pop ecx
imul ecx, ecx, 0
mov eax, dword [eax + ecx]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 8]
add eax, 0x454
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
jmp 0x419ab1
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jge 0x419b4e
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
shl eax, 0x18
mov ecx, dword [ebp - 0x14]
mov dword [ecx], 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
mov ecx, dword [ebp - 0x14]
or eax, dword [ecx]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], 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
mov ecx, dword [ebp - 0x14]
or eax, dword [ecx]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov ecx, dword [ebp - 0x18]
or eax, dword [ecx]
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
push 0x20
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 8]
lea eax, [ecx + eax + 8]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
mov ecx, dword [ecx]
xor ecx, dword [eax + edx*4]
mov eax, dword [ebp - 0x18]
mov dword [eax], ecx
jmp 0x419aaa
mov dword [ebp - 0x1c], 1
jmp 0x419b5e
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x3d0]
jge 0x419c57
and dword [ebp - 4], 0
jmp 0x419b7d
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jge 0x419c31
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + eax*4 + 0x454]
sar ecx, 0x18
and ecx, 0xff
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x30]
cdq
idiv dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + edx*4 + 0x454]
sar eax, 0x10
and eax, 0xff
mov ecx, dword [ecx*4 + 0x68d650]
xor ecx, dword [eax*4 + 0x68da50]
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x34]
cdq
idiv dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + edx*4 + 0x454]
sar eax, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x68de50]
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x38]
cdq
idiv dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + edx*4 + 0x454]
and eax, 0xff
xor ecx, dword [eax*4 + 0x68e250]
mov eax, dword [ebp - 0x1c]
shl eax, 5
mov edx, dword [ebp - 8]
lea eax, [edx + eax + 8]
mov edx, dword [ebp - 4]
xor ecx, dword [eax + edx*4]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + eax*4 + 0x434], ecx
jmp 0x419b76
mov eax, dword [ebp - 0xc]
shl eax, 2
push eax
mov eax, dword [ebp - 8]
add eax, 0x434
push eax
mov eax, dword [ebp - 8]
add eax, 0x454
push eax
call fcn.00649f00
add esp, 0xc
jmp 0x419b57
and dword [ebp - 4], 0
and dword [ebp - 0x10], 0
jmp 0x419c68
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jge 0x419d6e
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3d0]
shl eax, 5
mov ecx, dword [ebp - 8]
lea eax, [ecx + eax + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + eax*4 + 0x454]
sar eax, 0x18
and eax, 0xff
movsx eax, byte [eax + str.cw]
mov ecx, dword [ebp - 0x20]
sar ecx, 0x18
xor eax, ecx
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x10]
mov byte [ecx], al
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x30]
cdq
idiv dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + edx*4 + 0x454]
sar eax, 0x10
and eax, 0xff
movsx eax, byte [eax + str.cw]
mov ecx, dword [ebp - 0x20]
sar ecx, 0x10
xor eax, ecx
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x10]
mov byte [ecx], al
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x34]
cdq
idiv dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + edx*4 + 0x454]
sar eax, 8
and eax, 0xff
movsx eax, byte [eax + str.cw]
mov ecx, dword [ebp - 0x20]
sar ecx, 8
xor eax, ecx
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x10]
mov byte [ecx], al
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x38]
cdq
idiv dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + edx*4 + 0x454]
and eax, 0xff
movsx eax, byte [eax + str.cw]
xor eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x10]
mov byte [ecx], al
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
jmp 0x419c61
leave
ret 8