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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
push esi
push edi
mov dword [ebp - 8], ecx
mov byte [ebp - 1], 0x1c
jmp 0x1016f71e
movzx eax, byte [ebp - 1]
sub eax, 4
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
cmp ecx, 0x10
jle 0x1016f896
mov edx, dword [ebp - 8]
add edx, 0x18
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0x20], eax
movzx ecx, byte [ebp - 1]
sub ecx, 4
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.10171850
movzx esi, byte [eax]
movzx edx, byte [ebp - 1]
push edx
mov ecx, dword [ebp - 0x24]
call fcn.10171850
movzx eax, byte [eax]
xor eax, esi
mov byte [ebp - 9], al
mov ecx, dword [ebp - 8]
add ecx, 0x18
mov dword [ebp - 0x28], ecx
movzx edx, byte [ebp - 1]
push edx
mov ecx, dword [ebp - 0x28]
call fcn.10171850
mov cl, byte [ebp - 9]
mov byte [eax], cl
mov edx, dword [ebp - 8]
add edx, 0x18
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0x2c], eax
movzx ecx, byte [ebp - 1]
sub ecx, 3
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.10171850
movzx esi, byte [eax]
movzx edx, byte [ebp - 1]
add edx, 1
push edx
mov ecx, dword [ebp - 0x30]
call fcn.10171850
movzx eax, byte [eax]
xor eax, esi
mov byte [ebp - 0xa], al
mov ecx, dword [ebp - 8]
add ecx, 0x18
mov dword [ebp - 0x34], ecx
movzx edx, byte [ebp - 1]
add edx, 1
push edx
mov ecx, dword [ebp - 0x34]
call fcn.10171850
mov cl, byte [ebp - 0xa]
mov byte [eax], cl
mov edx, dword [ebp - 8]
add edx, 0x18
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0x38], eax
movzx ecx, byte [ebp - 1]
sub ecx, 2
push ecx
mov ecx, dword [ebp - 0x38]
call fcn.10171850
movzx esi, byte [eax]
movzx edx, byte [ebp - 1]
add edx, 2
push edx
mov ecx, dword [ebp - 0x3c]
call fcn.10171850
movzx eax, byte [eax]
xor eax, esi
mov byte [ebp - 0xb], al
mov ecx, dword [ebp - 8]
add ecx, 0x18
mov dword [ebp - 0x40], ecx
movzx edx, byte [ebp - 1]
add edx, 2
push edx
mov ecx, dword [ebp - 0x40]
call fcn.10171850
mov cl, byte [ebp - 0xb]
mov byte [eax], cl
mov edx, dword [ebp - 8]
add edx, 0x18
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0x44], eax
movzx ecx, byte [ebp - 1]
sub ecx, 1
push ecx
mov ecx, dword [ebp - 0x44]
call fcn.10171850
movzx esi, byte [eax]
movzx edx, byte [ebp - 1]
add edx, 3
push edx
mov ecx, dword [ebp - 0x48]
call fcn.10171850
movzx eax, byte [eax]
xor eax, esi
mov byte [ebp - 0xc], al
mov ecx, dword [ebp - 8]
add ecx, 0x18
mov dword [ebp - 0x4c], ecx
movzx edx, byte [ebp - 1]
add edx, 3
push edx
mov ecx, dword [ebp - 0x4c]
call fcn.10171850
mov cl, byte [ebp - 0xc]
mov byte [eax], cl
jmp 0x1016f714
mov edx, dword [ebp - 8]
add edx, 0x18
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0x50], eax
push 0xc
mov ecx, dword [ebp - 0x50]
call fcn.10171850
movzx ecx, byte [eax]
movzx esi, byte [ecx + str.cw]
push 0x10
mov ecx, dword [ebp - 0x54]
call fcn.10171850
movzx edx, byte [eax]
xor edx, esi
mov byte [ebp - 0xd], dl
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0x58], eax
push 0x10
mov ecx, dword [ebp - 0x58]
call fcn.10171850
mov cl, byte [ebp - 0xd]
mov byte [eax], cl
mov edx, dword [ebp - 8]
add edx, 0x18
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0x5c], eax
push 0xd
mov ecx, dword [ebp - 0x5c]
call fcn.10171850
movzx ecx, byte [eax]
movzx esi, byte [ecx + str.cw]
push 0x11
mov ecx, dword [ebp - 0x60]
call fcn.10171850
movzx edx, byte [eax]
xor edx, esi
mov byte [ebp - 0xe], dl
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0x64], eax
push 0x11
mov ecx, dword [ebp - 0x64]
call fcn.10171850
mov cl, byte [ebp - 0xe]
mov byte [eax], cl
mov edx, dword [ebp - 8]
add edx, 0x18
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0x68], eax
push 0xe
mov ecx, dword [ebp - 0x68]
call fcn.10171850
movzx ecx, byte [eax]
movzx esi, byte [ecx + str.cw]
push 0x12
mov ecx, dword [ebp - 0x6c]
call fcn.10171850
movzx edx, byte [eax]
xor edx, esi
mov byte [ebp - 0xf], dl
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0x70], eax
push 0x12
mov ecx, dword [ebp - 0x70]
call fcn.10171850
mov cl, byte [ebp - 0xf]
mov byte [eax], cl
mov edx, dword [ebp - 8]
add edx, 0x18
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0x74], eax
push 0xf
mov ecx, dword [ebp - 0x74]
call fcn.10171850
movzx ecx, byte [eax]
movzx esi, byte [ecx + str.cw]
push 0x13
mov ecx, dword [ebp - 0x78]
call fcn.10171850
movzx edx, byte [eax]
xor edx, esi
mov byte [ebp - 0x10], dl
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0x7c], eax
push 0x13
mov ecx, dword [ebp - 0x7c]
call fcn.10171850
mov cl, byte [ebp - 0x10]
mov byte [eax], cl
mov byte [ebp - 1], 0xc
jmp 0x1016f9e6
movzx edx, byte [ebp - 1]
sub edx, 4
mov byte [ebp - 1], dl
movzx eax, byte [ebp - 1]
test eax, eax
jle 0x1016fb9f
mov ecx, dword [ebp - 8]
add ecx, 0x18
mov dword [ebp - 0x84], ecx
mov edx, dword [ebp - 8]
add edx, 0x18
mov dword [ebp - 0x80], edx
movzx eax, byte [ebp - 1]
sub eax, 4
push eax
mov ecx, dword [ebp - 0x80]
call fcn.10171850
movzx esi, byte [eax]
movzx ecx, byte [ebp - 1]
push ecx
mov ecx, dword [ebp - 0x84]
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 - 0x88], eax
movzx ecx, byte [ebp - 1]
push ecx
mov ecx, dword [ebp - 0x88]
call fcn.10171850
mov dl, byte [ebp - 0x11]
mov byte [eax], dl
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 8]
add ecx, 0x18
mov dword [ebp - 0x8c], ecx
movzx edx, byte [ebp - 1]
sub edx, 3
push edx
mov ecx, dword [ebp - 0x8c]
call fcn.10171850
movzx esi, byte [eax]
movzx eax, byte [ebp - 1]
add eax, 1
push eax
mov ecx, dword [ebp - 0x90]
call fcn.10171850
movzx ecx, byte [eax]
xor ecx, esi
mov byte [ebp - 0x12], cl
mov edx, dword [ebp - 8]
add edx, 0x18
mov dword [ebp - 0x94], edx
movzx eax, byte [ebp - 1]
add eax, 1
push eax
mov ecx, dword [ebp - 0x94]
call fcn.10171850
mov cl, byte [ebp - 0x12]
mov byte [eax], cl
mov edx, dword [ebp - 8]
add edx, 0x18
mov dword [ebp - 0x9c], edx
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0x98], eax
movzx ecx, byte [ebp - 1]
sub ecx, 2
push ecx
mov ecx, dword [ebp - 0x98]
call fcn.10171850
movzx esi, byte [eax]
movzx edx, byte [ebp - 1]
add edx, 2
push edx
mov ecx, dword [ebp - 0x9c]
call fcn.10171850
movzx eax, byte [eax]
xor eax, esi
mov byte [ebp - 0x13], al
mov ecx, dword [ebp - 8]
add ecx, 0x18
mov dword [ebp - 0xa0], ecx
movzx edx, byte [ebp - 1]
add edx, 2
push edx
mov ecx, dword [ebp - 0xa0]
call fcn.10171850
mov cl, byte [ebp - 0x13]
mov byte [eax], cl
mov edx, dword [ebp - 8]
add edx, 0x18
mov dword [ebp - 0xa8], edx
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xa4], eax
movzx ecx, byte [ebp - 1]
sub ecx, 1
push ecx
mov ecx, dword [ebp - 0xa4]
call fcn.10171850
movzx esi, byte [eax]
movzx edx, byte [ebp - 1]
add edx, 3
push edx
mov ecx, dword [ebp - 0xa8]
call fcn.10171850
movzx eax, byte [eax]
xor eax, esi
mov byte [ebp - 0x14], al
mov ecx, dword [ebp - 8]
add ecx, 0x18
mov dword [ebp - 0xac], ecx
movzx edx, byte [ebp - 1]
add edx, 3
push edx
mov ecx, dword [ebp - 0xac]
call fcn.10171850
mov cl, byte [ebp - 0x14]
mov byte [eax], cl
jmp 0x1016f9dc
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
and eax, 1
je 0x1016fbb3
mov dword [ebp - 0x1c], 0x8d
jmp 0x1016fbba
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx]
sar edx, 1
xor edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
mov byte [eax], dl
mov ecx, dword [ebp - 8]
add ecx, 0x18
mov dword [ebp - 0xb4], ecx
mov edx, dword [ebp - 8]
add edx, 0x18
mov dword [ebp - 0xb0], edx
mov eax, dword [ebp + 8]
movzx esi, byte [eax]
push 0x1d
mov ecx, dword [ebp - 0xb0]
call fcn.10171850
movzx ecx, byte [eax]
movzx edi, byte [ecx + str.cw]
push 0
mov ecx, dword [ebp - 0xb4]
call fcn.10171850
movzx edx, byte [eax]
xor edx, edi
xor edx, esi
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xb8], eax
push 0
mov ecx, dword [ebp - 0xb8]
call fcn.10171850
mov cl, byte [ebp - 0x15]
mov byte [eax], cl
mov edx, dword [ebp - 8]
add edx, 0x18
mov dword [ebp - 0xc0], edx
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xbc], eax
push 0x1e
mov ecx, dword [ebp - 0xbc]
call fcn.10171850
movzx ecx, byte [eax]
movzx esi, byte [ecx + str.cw]
push 1
mov ecx, dword [ebp - 0xc0]
call fcn.10171850
movzx edx, byte [eax]
xor edx, esi
mov byte [ebp - 0x16], dl
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc4], eax
push 1
mov ecx, dword [ebp - 0xc4]
call fcn.10171850
mov cl, byte [ebp - 0x16]
mov byte [eax], cl
mov edx, dword [ebp - 8]
add edx, 0x18
mov dword [ebp - 0xcc], edx
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc8], eax
push 0x1f
mov ecx, dword [ebp - 0xc8]
call fcn.10171850
movzx ecx, byte [eax]
movzx esi, byte [ecx + str.cw]
push 2
mov ecx, dword [ebp - 0xcc]
call fcn.10171850
movzx edx, byte [eax]
xor edx, esi
mov byte [ebp - 0x17], dl
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xd0], eax
push 2
mov ecx, dword [ebp - 0xd0]
call fcn.10171850
mov cl, byte [ebp - 0x17]
mov byte [eax], cl
mov edx, dword [ebp - 8]
add edx, 0x18
mov dword [ebp - 0xd8], edx
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xd4], eax
push 0x1c
mov ecx, dword [ebp - 0xd4]
call fcn.10171850
movzx ecx, byte [eax]
movzx esi, byte [ecx + str.cw]
push 3
mov ecx, dword [ebp - 0xd8]
call fcn.10171850
movzx edx, byte [eax]
xor edx, esi
mov byte [ebp - 0x18], dl
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xdc], eax
push 3
mov ecx, dword [ebp - 0xdc]
call fcn.10171850
mov cl, byte [ebp - 0x18]
mov byte [eax], cl
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4