Function at 0x1017c350
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x1017c3d6
test edi, edi
je 0x1017c3b8
cmp byte [edi], 0
mov esi, edi
je 0x1017c376
nop
inc esi
cmp byte [esi], 0
jne 0x1017c370
mov ebx, dword [ebp + 8]
sub esi, edi
add ebx, 0x19c
and esi, 0x3fffffff
cmp dword [ebx + 0xc], 0
je 0x1017c39d
push esi
push edi
call fcn.101a0ec0
xor edx, edx
add esp, 8
div dword [ebx]
jmp 0x1017c39f
xor edx, edx
push edx
push esi
push edi
push ebx
call fcn.10157540
add esp, 0x10
test eax, eax
je 0x1017c3b4
mov ecx, dword [eax + 8]
jmp 0x1017c3be
xor ecx, ecx
jmp 0x1017c3be
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
test ecx, ecx
je 0x1017c3e0
movzx eax, byte [ebp + 0xc]
lea eax, [eax + eax*4]
lea eax, [eax - 5]
lea eax, [ecx + eax*4]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x1017c3e0
cmp dword [eax + 0xc], 0
jne 0x1017c57d
movzx ebx, byte [ebp + 0xc]
mov esi, dword [ebp + 8]
push edi
push ebx
push esi
call fcn.1014c610
add esp, 0xc
test edi, edi
je 0x1017c454
cmp byte [edi], 0
mov esi, edi
je 0x1017c406
nop dword [eax]
inc esi
cmp byte [esi], 0
jne 0x1017c400
mov eax, dword [ebp + 8]
sub esi, edi
add eax, 0x19c
and esi, 0x3fffffff
mov dword [ebp + 0x10], eax
cmp dword [eax + 0xc], 0
je 0x1017c439
push esi
push edi
call fcn.101a0ec0
mov ecx, dword [ebp + 8]
xor edx, edx
add esp, 8
div dword [ecx + 0x19c]
mov eax, dword [ebp + 0x10]
jmp 0x1017c43b
xor edx, edx
push edx
push esi
push edi
push eax
call fcn.10157540
add esp, 0x10
test eax, eax
je 0x1017c450
mov eax, dword [eax + 8]
jmp 0x1017c457
xor eax, eax
jmp 0x1017c457
mov eax, dword [esi + 0x2c]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x1017c57d
lea ecx, [ebx + ebx*4]
lea eax, [eax + ecx*4]
add eax, 0xffffffec
mov dword [ebp + 0x10], eax
test eax, eax
je 0x1017c57d
cmp dword [eax + 0xc], 0
jne 0x1017c57d
mov esi, dword [eax]
xor edx, edx
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], edx
nop word [eax + eax]
mov bl, byte [edx + 0x101d24b4]
mov byte [ebp - 1], bl
test esi, esi
je 0x1017c539
cmp byte [esi], 0
mov ecx, esi
je 0x1017c4ae
inc ecx
cmp byte [ecx], 0
jne 0x1017c4a8
mov eax, dword [ebp + 8]
sub ecx, esi
add eax, 0x19c
and ecx, 0x3fffffff
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], eax
cmp dword [eax + 0xc], 0
je 0x1017c518
xor edi, edi
mov dword [ebp - 0xc], esi
mov ebx, ecx
test ecx, ecx
je 0x1017c503
mov ecx, esi
nop word [eax + eax]
movzx eax, byte [ecx]
lea edx, [edi*8]
dec ebx
lea ecx, [ecx + 1]
movzx esi, byte [eax + 0x101d1f48]
xor esi, edx
xor edi, esi
test ebx, ebx
jg 0x1017c4e0
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
mov bl, byte [ebp - 1]
mov eax, edi
mov edi, dword [ebp + 8]
xor edx, edx
div dword [edi + 0x19c]
mov eax, dword [ebp - 0x18]
jmp 0x1017c51a
xor edx, edx
push edx
push ecx
push esi
push eax
call fcn.10157540
add esp, 0x10
test eax, eax
je 0x1017c532
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 8]
jmp 0x1017c53f
mov edx, dword [ebp - 8]
xor ecx, ecx
jmp 0x1017c53f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
test ecx, ecx
je 0x1017c54f
movzx eax, bl
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*4]
add ecx, 0xffffffec
cmp dword [ecx + 0xc], 0
jne 0x1017c56b
inc edx
mov dword [ebp - 8], edx
cmp edx, 3
jl 0x1017c490
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov eax, edx
movups xmm0, xmmword [ecx]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret