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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], 4
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x100014ee
mov dword [ebp - 0x18], 8
jmp 0x100014f5
mov dword [ebp - 0x18], 4
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], ecx
movzx edx, byte [ebp + 0x10]
test edx, edx
je 0x1000150c
mov dword [ebp - 0x1c], 0xe
jmp 0x10001513
mov dword [ebp - 0x1c], 0xa
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
je 0x1000152a
mov dword [ebp - 0x20], 0xf0
jmp 0x10001531
mov dword [ebp - 0x20], 0xb0
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.100032d0
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0xc], edx
jmp 0x10001556
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x24]
lea edx, [ecx*4 + 4]
cmp dword [ebp - 0xc], edx
jae 0x10001813
mov eax, dword [ebp - 0xc]
lea ecx, [eax*4 - 4]
mov dword [ebp - 8], ecx
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
mov dl, byte [ecx]
mov byte [ebp + eax - 4], dl
mov eax, 1
shl eax, 0
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
mov dl, byte [ecx + 1]
mov byte [ebp + eax - 4], dl
mov eax, 1
shl eax, 1
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
mov dl, byte [ecx + 2]
mov byte [ebp + eax - 4], dl
mov eax, 1
imul ecx, eax, 3
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
mov al, byte [edx + 3]
mov byte [ebp + ecx - 4], al
mov eax, dword [ebp - 0xc]
xor edx, edx
div dword [ebp - 0x10]
test edx, edx
jne 0x100016e1
mov ecx, 1
imul edx, ecx, 0
movzx eax, byte [ebp + edx - 4]
mov dword [ebp - 8], eax
mov ecx, 1
shl ecx, 0
mov edx, 1
imul eax, edx, 0
mov cl, byte [ebp + ecx - 4]
mov byte [ebp + eax - 4], cl
mov edx, 1
shl edx, 1
mov eax, 1
shl eax, 0
mov cl, byte [ebp + edx - 4]
mov byte [ebp + eax - 4], cl
mov edx, 1
imul eax, edx, 3
mov ecx, 1
shl ecx, 1
mov dl, byte [ebp + eax - 4]
mov byte [ebp + ecx - 4], dl
mov eax, 1
imul ecx, eax, 3
mov dl, byte [ebp - 8]
mov byte [ebp + ecx - 4], dl
mov eax, 1
imul ecx, eax, 0
movzx edx, byte [ebp + ecx - 4]
mov eax, 1
imul ecx, eax, 0
mov dl, byte [edx + str.cw]
mov byte [ebp + ecx - 4], dl
mov eax, 1
shl eax, 0
movzx ecx, byte [ebp + eax - 4]
mov edx, 1
shl edx, 0
mov al, byte [ecx + str.cw]
mov byte [ebp + edx - 4], al
mov ecx, 1
shl ecx, 1
movzx edx, byte [ebp + ecx - 4]
mov eax, 1
shl eax, 1
mov cl, byte [edx + str.cw]
mov byte [ebp + eax - 4], cl
mov edx, 1
imul eax, edx, 3
movzx ecx, byte [ebp + eax - 4]
mov edx, 1
imul eax, edx, 3
mov cl, byte [ecx + str.cw]
mov byte [ebp + eax - 4], cl
mov edx, 1
imul eax, edx, 0
movzx ecx, byte [ebp + eax - 4]
mov eax, dword [ebp - 0xc]
xor edx, edx
div dword [ebp - 0x10]
movzx edx, byte [eax + 0x1000f3a0]
xor ecx, edx
mov eax, 1
imul edx, eax, 0
mov byte [ebp + edx - 4], cl
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10001774
mov eax, dword [ebp - 0xc]
xor edx, edx
div dword [ebp - 0x10]
cmp edx, 4
jne 0x10001774
mov ecx, 1
imul edx, ecx, 0
movzx eax, byte [ebp + edx - 4]
mov ecx, 1
imul edx, ecx, 0
mov al, byte [eax + str.cw]
mov byte [ebp + edx - 4], al
mov ecx, 1
shl ecx, 0
movzx edx, byte [ebp + ecx - 4]
mov eax, 1
shl eax, 0
mov cl, byte [edx + str.cw]
mov byte [ebp + eax - 4], cl
mov edx, 1
shl edx, 1
movzx eax, byte [ebp + edx - 4]
mov ecx, 1
shl ecx, 1
mov dl, byte [eax + str.cw]
mov byte [ebp + ecx - 4], dl
mov eax, 1
imul ecx, eax, 3
movzx edx, byte [ebp + ecx - 4]
mov eax, 1
imul ecx, eax, 3
mov dl, byte [edx + str.cw]
mov byte [ebp + ecx - 4], dl
mov eax, dword [ebp - 0xc]
shl eax, 2
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x10]
shl ecx, 2
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
movzx eax, byte [edx]
mov ecx, 1
imul edx, ecx, 0
movzx ecx, byte [ebp + edx - 4]
xor eax, ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x14]
mov byte [edx], al
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
movzx ecx, byte [eax + 1]
mov edx, 1
shl edx, 0
movzx eax, byte [ebp + edx - 4]
xor ecx, eax
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x14]
mov byte [edx + 1], cl
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
movzx ecx, byte [eax + 2]
mov edx, 1
shl edx, 1
movzx eax, byte [ebp + edx - 4]
xor ecx, eax
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x14]
mov byte [edx + 2], cl
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
movzx ecx, byte [eax + 3]
mov edx, 1
imul eax, edx, 3
movzx edx, byte [ebp + eax - 4]
xor ecx, edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x14]
mov byte [eax + 3], cl
jmp 0x1000154d
mov esp, ebp
pop ebp
ret