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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push esi
push edi
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 8]
add ecx, 0x18
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 8]
movzx esi, byte [edx]
push 0x1d
mov ecx, dword [ebp - 0x1c]
call fcn.10171850
movzx eax, byte [eax]
movzx edi, byte [eax + str.cw]
push 0
mov ecx, dword [ebp - 0x20]
call fcn.10171850
movzx ecx, byte [eax]
xor ecx, edi
xor ecx, esi
mov byte [ebp - 9], cl
mov edx, dword [ebp - 8]
add edx, 0x18
mov dword [ebp - 0x24], edx
push 0
mov ecx, dword [ebp - 0x24]
call fcn.10171850
mov cl, byte [ebp - 9]
mov byte [eax], cl
mov edx, dword [ebp - 8]
add edx, 0x18
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0x28], eax
push 0x1e
mov ecx, dword [ebp - 0x28]
call fcn.10171850
movzx ecx, byte [eax]
movzx esi, byte [ecx + str.cw]
push 1
mov ecx, dword [ebp - 0x2c]
call fcn.10171850
movzx edx, byte [eax]
xor edx, esi
mov byte [ebp - 0xa], dl
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0x30], eax
push 1
mov ecx, dword [ebp - 0x30]
call fcn.10171850
mov cl, byte [ebp - 0xa]
mov byte [eax], cl
mov edx, dword [ebp - 8]
add edx, 0x18
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0x34], eax
push 0x1f
mov ecx, dword [ebp - 0x34]
call fcn.10171850
movzx ecx, byte [eax]
movzx esi, byte [ecx + str.cw]
push 2
mov ecx, dword [ebp - 0x38]
call fcn.10171850
movzx edx, byte [eax]
xor edx, esi
mov byte [ebp - 0xb], dl
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0x3c], eax
push 2
mov ecx, dword [ebp - 0x3c]
call fcn.10171850
mov cl, byte [ebp - 0xb]
mov byte [eax], cl
mov edx, dword [ebp - 8]
add edx, 0x18
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0x40], eax
push 0x1c
mov ecx, dword [ebp - 0x40]
call fcn.10171850
movzx ecx, byte [eax]
movzx esi, byte [ecx + str.cw]
push 3
mov ecx, dword [ebp - 0x44]
call fcn.10171850
movzx edx, byte [eax]
xor edx, esi
mov byte [ebp - 0xc], dl
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0x48], eax
push 3
mov ecx, dword [ebp - 0x48]
call fcn.10171850
mov cl, byte [ebp - 0xc]
mov byte [eax], cl
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
shl eax, 1
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx]
sar edx, 7
and edx, 1
imul ecx, edx, 0x1b
xor eax, ecx
mov edx, dword [ebp + 8]
mov byte [edx], al
mov byte [ebp - 1], 4
jmp 0x1016f234
movzx eax, byte [ebp - 1]
add eax, 4
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
cmp ecx, 0x10
jge 0x1016f3ac
mov edx, dword [ebp - 8]
add edx, 0x18
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0x4c], eax
movzx ecx, byte [ebp - 1]
sub ecx, 4
push ecx
mov ecx, dword [ebp - 0x4c]
call fcn.10171850
movzx esi, byte [eax]
movzx edx, byte [ebp - 1]
push edx
mov ecx, dword [ebp - 0x50]
call fcn.10171850
movzx eax, byte [eax]
xor eax, esi
mov byte [ebp - 0xd], al
mov ecx, dword [ebp - 8]
add ecx, 0x18
mov dword [ebp - 0x54], ecx
movzx edx, byte [ebp - 1]
push edx
mov ecx, dword [ebp - 0x54]
call fcn.10171850
mov cl, byte [ebp - 0xd]
mov byte [eax], cl
mov edx, dword [ebp - 8]
add edx, 0x18
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0x58], eax
movzx ecx, byte [ebp - 1]
sub ecx, 3
push ecx
mov ecx, dword [ebp - 0x58]
call fcn.10171850
movzx esi, byte [eax]
movzx edx, byte [ebp - 1]
add edx, 1
push edx
mov ecx, dword [ebp - 0x5c]
call fcn.10171850
movzx eax, byte [eax]
xor eax, esi
mov byte [ebp - 0xe], al
mov ecx, dword [ebp - 8]
add ecx, 0x18
mov dword [ebp - 0x60], ecx
movzx edx, byte [ebp - 1]
add edx, 1
push edx
mov ecx, dword [ebp - 0x60]
call fcn.10171850
mov cl, byte [ebp - 0xe]
mov byte [eax], cl
mov edx, dword [ebp - 8]
add edx, 0x18
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0x64], eax
movzx ecx, byte [ebp - 1]
sub ecx, 2
push ecx
mov ecx, dword [ebp - 0x64]
call fcn.10171850
movzx esi, byte [eax]
movzx edx, byte [ebp - 1]
add edx, 2
push edx
mov ecx, dword [ebp - 0x68]
call fcn.10171850
movzx eax, byte [eax]
xor eax, esi
mov byte [ebp - 0xf], al
mov ecx, dword [ebp - 8]
add ecx, 0x18
mov dword [ebp - 0x6c], ecx
movzx edx, byte [ebp - 1]
add edx, 2
push edx
mov ecx, dword [ebp - 0x6c]
call fcn.10171850
mov cl, byte [ebp - 0xf]
mov byte [eax], cl
mov edx, dword [ebp - 8]
add edx, 0x18
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0x70], eax
movzx ecx, byte [ebp - 1]
sub ecx, 1
push ecx
mov ecx, dword [ebp - 0x70]
call fcn.10171850
movzx esi, byte [eax]
movzx edx, byte [ebp - 1]
add edx, 3
push edx
mov ecx, dword [ebp - 0x74]
call fcn.10171850
movzx eax, byte [eax]
xor eax, esi
mov byte [ebp - 0x10], al
mov ecx, dword [ebp - 8]
add ecx, 0x18
mov dword [ebp - 0x78], ecx
movzx edx, byte [ebp - 1]
add edx, 3
push edx
mov ecx, dword [ebp - 0x78]
call fcn.10171850
mov cl, byte [ebp - 0x10]
mov byte [eax], cl
jmp 0x1016f22a
mov edx, dword [ebp - 8]
add edx, 0x18
mov dword [ebp - 0x80], edx
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0x7c], eax
push 0xc
mov ecx, dword [ebp - 0x7c]
call fcn.10171850
movzx ecx, byte [eax]
movzx esi, byte [ecx + str.cw]
push 0x10
mov ecx, dword [ebp - 0x80]
call fcn.10171850
movzx edx, byte [eax]
xor edx, esi
mov byte [ebp - 0x11], dl
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0x84], eax
push 0x10
mov ecx, dword [ebp - 0x84]
call fcn.10171850
mov cl, byte [ebp - 0x11]
mov byte [eax], cl
mov edx, dword [ebp - 8]
add edx, 0x18
mov dword [ebp - 0x8c], edx
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0x88], eax
push 0xd
mov ecx, dword [ebp - 0x88]
call fcn.10171850
movzx ecx, byte [eax]
movzx esi, byte [ecx + str.cw]
push 0x11
mov ecx, dword [ebp - 0x8c]
call fcn.10171850
movzx edx, byte [eax]
xor edx, esi
mov byte [ebp - 0x12], dl
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0x90], eax
push 0x11
mov ecx, dword [ebp - 0x90]
call fcn.10171850
mov cl, byte [ebp - 0x12]
mov byte [eax], cl
mov edx, dword [ebp - 8]
add edx, 0x18
mov dword [ebp - 0x98], edx
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0x94], eax
push 0xe
mov ecx, dword [ebp - 0x94]
call fcn.10171850
movzx ecx, byte [eax]
movzx esi, byte [ecx + str.cw]
push 0x12
mov ecx, dword [ebp - 0x98]
call fcn.10171850
movzx edx, byte [eax]
xor edx, esi
mov byte [ebp - 0x13], dl
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0x9c], eax
push 0x12
mov ecx, dword [ebp - 0x9c]
call fcn.10171850
mov cl, byte [ebp - 0x13]
mov byte [eax], cl
mov edx, dword [ebp - 8]
add edx, 0x18
mov dword [ebp - 0xa4], edx
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xa0], eax
push 0xf
mov ecx, dword [ebp - 0xa0]
call fcn.10171850
movzx ecx, byte [eax]
movzx esi, byte [ecx + str.cw]
push 0x13
mov ecx, dword [ebp - 0xa4]
call fcn.10171850
movzx edx, byte [eax]
xor edx, esi
mov byte [ebp - 0x14], dl
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xa8], eax
push 0x13
mov ecx, dword [ebp - 0xa8]
call fcn.10171850
mov cl, byte [ebp - 0x14]
mov byte [eax], cl
mov byte [ebp - 1], 0x14
jmp 0x1016f538
movzx edx, byte [ebp - 1]
add edx, 4
mov byte [ebp - 1], dl
movzx eax, byte [ebp - 1]
cmp eax, 0x20
jge 0x1016f6f8
mov ecx, dword [ebp - 8]
add ecx, 0x18
mov dword [ebp - 0xb0], ecx
mov edx, dword [ebp - 8]
add edx, 0x18
mov dword [ebp - 0xac], edx
movzx eax, byte [ebp - 1]
sub eax, 4
push eax
mov ecx, dword [ebp - 0xac]
call fcn.10171850
movzx esi, byte [eax]
movzx ecx, byte [ebp - 1]
push ecx
mov ecx, dword [ebp - 0xb0]
call fcn.10171850
movzx edx, byte [eax]
xor edx, esi
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xb4], eax
movzx ecx, byte [ebp - 1]
push ecx
mov ecx, dword [ebp - 0xb4]
call fcn.10171850
mov dl, byte [ebp - 0x15]
mov byte [eax], dl
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 8]
add ecx, 0x18
mov dword [ebp - 0xb8], ecx
movzx edx, byte [ebp - 1]
sub edx, 3
push edx
mov ecx, dword [ebp - 0xb8]
call fcn.10171850
movzx esi, byte [eax]
movzx eax, byte [ebp - 1]
add eax, 1
push eax
mov ecx, dword [ebp - 0xbc]
call fcn.10171850
movzx ecx, byte [eax]
xor ecx, esi
mov byte [ebp - 0x16], cl
mov edx, dword [ebp - 8]
add edx, 0x18
mov dword [ebp - 0xc0], edx
movzx eax, byte [ebp - 1]
add eax, 1
push eax
mov ecx, dword [ebp - 0xc0]
call fcn.10171850
mov cl, byte [ebp - 0x16]
mov byte [eax], cl
mov edx, dword [ebp - 8]
add edx, 0x18
mov dword [ebp - 0xc8], edx
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc4], eax
movzx ecx, byte [ebp - 1]
sub ecx, 2
push ecx
mov ecx, dword [ebp - 0xc4]
call fcn.10171850
movzx esi, byte [eax]
movzx edx, byte [ebp - 1]
add edx, 2
push edx
mov ecx, dword [ebp - 0xc8]
call fcn.10171850
movzx eax, byte [eax]
xor eax, esi
mov byte [ebp - 0x17], al
mov ecx, dword [ebp - 8]
add ecx, 0x18
mov dword [ebp - 0xcc], ecx
movzx edx, byte [ebp - 1]
add edx, 2
push edx
mov ecx, dword [ebp - 0xcc]
call fcn.10171850
mov cl, byte [ebp - 0x17]
mov byte [eax], cl
mov edx, dword [ebp - 8]
add edx, 0x18
mov dword [ebp - 0xd4], edx
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xd0], eax
movzx ecx, byte [ebp - 1]
sub ecx, 1
push ecx
mov ecx, dword [ebp - 0xd0]
call fcn.10171850
movzx esi, byte [eax]
movzx edx, byte [ebp - 1]
add edx, 3
push edx
mov ecx, dword [ebp - 0xd4]
call fcn.10171850
movzx eax, byte [eax]
xor eax, esi
mov byte [ebp - 0x18], al
mov ecx, dword [ebp - 8]
add ecx, 0x18
mov dword [ebp - 0xd8], ecx
movzx edx, byte [ebp - 1]
add edx, 3
push edx
mov ecx, dword [ebp - 0xd8]
call fcn.10171850
mov cl, byte [ebp - 0x18]
mov byte [eax], cl
jmp 0x1016f52e
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4