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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
push 0x100199d4
lea esp, [esp + 4]
nop
nop
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0x80
je 0x10001812
cmp dword [ebp - 0x24], 0xc0
je 0x1000181b
cmp dword [ebp - 0x24], 0x100
je 0x10001824
jmp 0x1000182d
mov dword [ebp - 0x14], 4
jmp 0x10001835
mov dword [ebp - 0x14], 6
jmp 0x10001835
mov dword [ebp - 0x14], 8
jmp 0x10001835
or eax, 0xffffffff
jmp 0x10001b35
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 0x80
je 0x10001858
cmp dword [ebp - 0x28], 0xc0
je 0x10001861
cmp dword [ebp - 0x28], 0x100
je 0x1000186a
jmp 0x10001873
mov dword [ebp - 4], 4
jmp 0x1000187d
mov dword [ebp - 4], 6
jmp 0x1000187d
mov dword [ebp - 4], 8
jmp 0x1000187d
mov eax, 0xfffffffe
jmp 0x10001b35
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 4]
jle 0x10001890
mov ecx, dword [ebp - 0x14]
add ecx, 6
mov dword [ebp - 0x2c], ecx
jmp 0x10001899
mov edx, dword [ebp - 4]
add edx, 6
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
jmp 0x100018c1
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x14]
jge 0x100018ed
mov ecx, dword [ebp - 0x18]
add ecx, 1
imul ecx, dword [ebp - 4]
cmp dword [ebp - 0x1c], ecx
jge 0x100018ed
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp + 8]
mov ecx, dword [esi + ecx*4]
mov dword [eax + edx*4 + 0x2c], ecx
jmp 0x100018af
mov edx, dword [ebp - 0x18]
add edx, 1
imul edx, dword [ebp - 4]
cmp dword [ebp - 0x1c], edx
jge 0x10001aae
mov dword [ebp - 0xc], 0
jmp 0x10001912
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 4
jge 0x10001955
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
lea eax, [edx + ecx*4 - 4]
mov ecx, dword [ebp - 0xc]
add ecx, 1
and ecx, 0x80000003
jns 0x10001935
dec ecx
or ecx, 0xfffffffc
inc ecx
movzx edx, byte [eax + ecx]
movzx eax, byte [edx + str.cw]
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0xc]
movzx edx, byte [ecx]
xor edx, eax
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0xc]
mov byte [eax], dl
jmp 0x10001909
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx]
mov eax, dword [ebp - 8]
xor edx, dword [eax*4 + 0x1001eec8]
mov ecx, dword [ebp - 0x10]
mov byte [ecx], dl
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 0x14], 8
je 0x100019b6
mov dword [ebp - 0x20], 1
jmp 0x1000198b
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x14]
jge 0x100019b1
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp + 8]
mov edx, dword [eax + edx*4]
xor edx, dword [esi + ecx*4 - 4]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
mov dword [ecx + eax*4], edx
jmp 0x10001982
jmp 0x10001a62
mov dword [ebp - 0x20], 1
jmp 0x100019c8
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 4
jge 0x100019ec
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp + 8]
mov eax, dword [ecx + eax*4]
xor eax, dword [esi + edx*4 - 4]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp + 8]
mov dword [edx + ecx*4], eax
jmp 0x100019bf
mov dword [ebp - 0xc], 0
jmp 0x100019fe
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 4
jge 0x10001a2c
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + 0xc]
movzx eax, byte [edx + str.cw]
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + 0x10]
xor edx, eax
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0xc]
mov byte [eax + 0x10], dl
jmp 0x100019f5
mov dword [ebp - 0x20], 5
jmp 0x10001a3e
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 8
jge 0x10001a62
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp + 8]
mov edx, dword [eax + edx*4]
xor edx, dword [esi + ecx*4 - 4]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
mov dword [ecx + eax*4], edx
jmp 0x10001a35
mov dword [ebp - 0x20], 0
jmp 0x10001a7d
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x14]
jge 0x10001aa9
mov edx, dword [ebp - 0x18]
add edx, 1
imul edx, dword [ebp - 4]
cmp dword [ebp - 0x1c], edx
jge 0x10001aa9
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp + 8]
mov edx, dword [esi + edx*4]
mov dword [ecx + eax*4 + 0x2c], edx
jmp 0x10001a6b
jmp 0x100018ed
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x14]
mov dword [edx + 4], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 8], edx
mov dword [ebp - 0xc], 0
jmp 0x10001ada
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 2
jge 0x10001b2d
mov dword [ebp - 0x20], 0
jmp 0x10001af2
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 4
jge 0x10001b2b
mov edx, dword [ebp - 4]
sub edx, 4
sar edx, 1
shl edx, 5
mov eax, dword [ebp - 0xc]
shl eax, 4
lea ecx, [edx + eax + 0x1001f140]
mov edx, dword [ebp - 0xc]
shl edx, 4
mov eax, dword [ebp + 0x14]
lea edx, [eax + edx + 0xc]
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x20]
mov ecx, dword [ecx + esi*4]
mov dword [edx + eax*4], ecx
jmp 0x10001ae9
jmp 0x10001ad1
nop
nop
nop
nop
nop
nop
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret