Function at 0x10001740
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b57d0
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x100dcd80]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov edx, 0x20
mov edi, dword [ebp + 0x10]
xorps xmm0, xmm0
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x14c], eax
mov eax, dword [ecx + 0x10]
cmp eax, edx
mov dword [ebp - 0x160], edi
cmovae eax, edx
mov byte [ebp - 0x145], 0
cmp dword [ecx + 0x14], 0xf
mov dword [ebp - 4], 0
movups xmmword [ebp - 0x44], xmm0
movups xmmword [ebp - 0x34], xmm0
jbe 0x100017b4
mov ecx, dword [ecx]
test eax, eax
je 0x100017ee
test ecx, ecx
je 0x100017de
cmp eax, 0x20
ja 0x100017d1
push eax
push ecx
lea eax, [ebp - 0x44]
push eax
call fcn.1008df10
add esp, 0xc
jmp 0x100017ee
call fcn.10091c69
mov dword [eax], 0x22
jmp 0x100017e9
call fcn.10091c69
mov dword [eax], 0x16
call fcn.10091b8f
mov eax, dword [esi + 0x10]
mov ecx, 0x10
cmp eax, ecx
xorps xmm0, xmm0
movups xmmword [ebp - 0x170], xmm0
cmovae eax, ecx
cmp dword [esi + 0x14], 0xf
movups xmmword [ebp - 0x24], xmm0
jbe 0x10001811
mov esi, dword [esi]
test eax, eax
je 0x1000185b
test esi, esi
je 0x10001846
cmp eax, 0x10
ja 0x10001839
push eax
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.1008df10
movups xmm0, xmmword [ebp - 0x24]
add esp, 0xc
movups xmmword [ebp - 0x170], xmm0
jmp 0x10001856
call fcn.10091c69
mov dword [eax], 0x22
jmp 0x10001851
call fcn.10091c69
mov dword [eax], 0x16
call fcn.10091b8f
mov ecx, 0x10
mov eax, dword [ebp - 0x14c]
mov esi, dword [edi + 4]
mov edx, dword [eax + 0x10]
mov eax, edx
and eax, 0xf
mov dword [ebp - 0x15c], edx
sub ecx, eax
mov eax, dword [edi]
mov dword [ebp - 0x158], ecx
add ecx, edx
mov edx, esi
sub edx, eax
cmp ecx, edx
jae 0x1000188b
lea esi, [eax + ecx]
jmp 0x100018d5
jbe 0x100018d8
mov eax, dword [edi + 8]
sub eax, dword [edi]
cmp ecx, eax
jbe 0x100018bb
lea eax, [ebp - 0x14d]
push eax
push ecx
mov ecx, edi
call fcn.100010f0
mov esi, dword [edi + 4]
jmp 0x100018d8
sub ecx, edx
push ecx
push 0
push esi
mov dword [ebp - 0x154], ecx
call fcn.1008e490
add esp, 0xc
add esi, dword [ebp - 0x154]
mov dword [edi + 4], esi
mov eax, dword [ebp - 0x14c]
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x154], ecx
jbe 0x100018f5
mov eax, dword [eax]
mov dword [ebp - 0x14c], eax
mov edx, dword [edi]
sub esi, edx
test ecx, ecx
je 0x1000195d
test edx, edx
jne 0x1000190e
call fcn.10091c69
mov dword [eax], 0x16
jmp 0x10001958
test eax, eax
je 0x10001923
cmp esi, ecx
jb 0x10001923
push ecx
push eax
push edx
call fcn.1008df10
add esp, 0xc
jmp 0x1000195d
push esi
push 0
push edx
call fcn.1008e490
add esp, 0xc
cmp dword [ebp - 0x14c], 0
jne 0x10001945
call fcn.10091c69
mov dword [eax], 0x16
jmp 0x10001958
cmp esi, dword [ebp - 0x154]
jae 0x1000195d
call fcn.10091c69
mov dword [eax], 0x22
call fcn.10091b8f
mov eax, dword [ebp - 0x158]
push eax
push eax
mov eax, dword [edi]
add eax, dword [ebp - 0x15c]
push eax
call fcn.1008e490
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x144]
push eax
call fcn.10002240
mov eax, dword [ebp - 0x160]
lea esi, [ebp - 0x54]
movups xmm0, xmmword [ebp - 0x170]
mov edi, dword [edi]
add esp, 0x14
mov ecx, dword [eax + 4]
movups xmmword [ebp - 0x54], xmm0
sub ecx, edi
je 0x100019ec
dec ecx
shr ecx, 4
inc ecx
mov dword [ebp - 0x14c], ecx
nop
mov eax, edi
sub esi, edi
mov edx, 0x10
nop dword [eax]
mov cl, byte [eax + esi]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x100019c0
lea eax, [ebp - 0x144]
push eax
push edi
call fcn.100014f0
mov esi, edi
add esp, 8
add edi, 0x10
sub dword [ebp - 0x14c], 1
jne 0x100019b0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1008c562
mov esp, ebp
pop ebp
ret 0xc