Function at 0x100170d1
Capabilities:
Encode data using xor

Disassembly:
push 0xfc
mov eax, 0x1003ab25
call fcn.10039131
mov esi, ecx
movzx eax, word [ebp + 0xc]
movzx ecx, word [ebp + 0x14]
movzx edi, word [ebp + 8]
and dword [ebp - 0x44], 0
mov dword [ebp - 0x60], eax
movzx eax, word [ebp + 0x10]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x64], ecx
mov dword [ebp - 4], 1
test di, di
je 0x10017448
test ax, ax
je 0x10017448
cmp dword [esi + 0x2c], 0
ja 0x10017448
cmp dword [ebp + 0x2c], 0x10
lea eax, [ebp + 0x18]
lea ecx, [ebp - 0x28]
cmovae eax, dword [ebp + 0x18]
push eax
call fcn.1000409e
push 2
pop ebx
mov byte [ebp - 4], bl
lea edx, [ebp - 0x28]
mov ecx, dword [esi + 4]
call fcn.1000b8a4
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.10003f4a
cmp dword [ebp + 0x44], 0x10
lea eax, [ebp + 0x30]
lea ecx, [ebp - 0x28]
cmovae eax, dword [ebp + 0x30]
push eax
call fcn.1000409e
mov byte [ebp - 4], 3
lea edx, [ebp - 0x28]
mov ecx, dword [esi + 8]
call fcn.1000b8a4
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.10003f4a
mov ecx, dword [esi + 0xc]
xor edx, edx
call fcn.1000b8c7
mov ecx, dword [esi + 0x10]
xor edx, edx
call fcn.1000b8c7
or eax, 0xffffffff
cmp di, ax
je 0x1001743e
cmp word [ebp - 0x5c], ax
je 0x1001743e
mov cl, 0x7d
mov dword [ebp - 0x50], 0x10040e7d
mov dword [ebp - 0x4c], 0x2111121f
xor edx, edx
mov byte [ebp - 0x48], 0
xor cl, byte [ebp + edx - 0x4f]
mov byte [ebp + edx - 0x4f], cl
inc edx
cmp edx, 7
jae 0x100171dd
mov cl, byte [ebp - 0x50]
jmp 0x100171ca
lea eax, [ebp - 0x4f]
mov byte [ebp - 0x48], 0
push eax
mov edx, 0x1004f3d8
lea ecx, [ebp - 0x28]
call fcn.1000a8a8
pop ecx
mov eax, dword [ebp - 0x60]
mov byte [ebp - 4], 4
test ax, ax
jne 0x10017242
movaps xmm0, xmmword [0x10047900]
xor ebx, ebx
movups xmmword [ebp - 0x7c], xmm0
mov dword [ebp - 0x6c], 0x1c56130a
mov edx, ebx
mov word [ebp - 0x68], 0xc00
mov byte [ebp - 0x66], bl
mov cl, byte [ebp - 0x7c]
xor byte [ebp + edx - 0x7b], cl
inc edx
cmp edx, 0x15
jb 0x1001721e
lea eax, [ebp - 0x7b]
mov byte [ebp - 0x66], bl
push eax
lea ecx, [ebp - 0xd8]
call fcn.1000409e
xor ebx, ebx
inc ebx
jmp 0x100172a9
cmp dword [ebp - 0x14], 0x10
movaps xmm0, xmmword [0x100478b0]
cwde
push eax
movsx eax, di
push eax
lea eax, [ebp - 0x28]
mov word [ebp - 0x98], 0x1b
cmovae eax, dword [ebp - 0x28]
xor edx, edx
push 1
push eax
movups xmmword [ebp - 0xa8], xmm0
mov cl, byte [ebp - 0xa8]
xor byte [ebp + edx - 0xa7], cl
inc edx
cmp edx, 0x10
jb 0x1001726f
sub esp, 0x18
mov byte [ebp - 0x97], 0
lea eax, [ebp - 0xa7]
mov ecx, esp
push eax
call fcn.1000409e
lea eax, [ebp - 0xc0]
push eax
call fcn.10003b83
add esp, 0x2c
and dword [ebp - 0x30], 0
lea ecx, [ebp - 0x40]
push eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.10003b0e
mov dword [ebp - 4], 6
test bl, 2
je 0x100172e5
push 0
and ebx, 0xfffffffd
lea ecx, [ebp - 0xc0]
push 1
mov dword [ebp - 0x44], ebx
call fcn.10003f4a
mov byte [ebp - 4], 7
test bl, 1
je 0x10017303
push 0
and ebx, 0xfffffffe
lea ecx, [ebp - 0xd8]
push 1
mov dword [ebp - 0x44], ebx
call fcn.10003f4a
mov ecx, dword [esi + 0x14]
lea edx, [ebp - 0x40]
call fcn.1000b51f
mov ecx, dword [esi + 0x14]
sub esp, 0x1c
call fcn.1000b565
mov eax, dword [ebp - 0x64]
add esp, 0x1c
test ax, ax
jne 0x10017375
movaps xmm0, xmmword [0x10047c20]
xor edx, edx
movups xmmword [ebp - 0x94], xmm0
mov dword [ebp - 0x84], 0x2a60253c
mov word [ebp - 0x80], 0x3a36
mov byte [ebp - 0x7e], al
mov cl, byte [ebp - 0x94]
xor byte [ebp + edx - 0x93], cl
inc edx
cmp edx, 0x15
jb 0x10017347
lea eax, [ebp - 0x93]
mov byte [ebp - 0x7e], 0
push eax
lea ecx, [ebp - 0x108]
call fcn.1000409e
or ebx, 4
jmp 0x100173ce
cmp dword [ebp - 0x14], 0x10
movaps xmm0, xmmword [str._b_b_]
cwde
push eax
mov eax, dword [ebp - 0x5c]
cwde
push eax
lea eax, [ebp - 0x28]
mov word [ebp - 0x48], 0xf
cmovae eax, dword [ebp - 0x28]
xor edx, edx
push 1
push eax
movups xmmword [ebp - 0x58], xmm0
mov cl, byte [ebp - 0x58]
xor byte [ebp + edx - 0x57], cl
inc edx
cmp edx, 0x10
jb 0x1001739d
sub esp, 0x18
mov byte [ebp - 0x47], 0
lea eax, [ebp - 0x57]
mov ecx, esp
push eax
call fcn.1000409e
lea eax, [ebp - 0xf0]
push eax
call fcn.10003b83
add esp, 0x2c
or ebx, 8
push eax
lea ecx, [ebp - 0x40]
call fcn.10006e3f
test bl, 8
je 0x100173ee
push 0
push 1
lea ecx, [ebp - 0xf0]
and ebx, 0xfffffff7
call fcn.10003f4a
mov dword [ebp - 4], 7
test bl, 4
je 0x10017409
push 0
push 1
lea ecx, [ebp - 0x108]
call fcn.10003f4a
mov ecx, dword [esi + 0x18]
lea edx, [ebp - 0x40]
call fcn.1000b51f
mov ecx, dword [esi + 0x18]
sub esp, 0x1c
call fcn.1000b565
add esp, 0x1c
lea ecx, [ebp - 0x40]
push 0
push 1
call fcn.10003f4a
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.10003f4a
mov ecx, dword [esi + 0x34]
mov dl, 1
call fcn.1000b043
push 0
push 1
lea ecx, [ebp + 0x18]
call fcn.10003f4a
push 0
push 1
lea ecx, [ebp + 0x30]
call fcn.10003f4a
call fcn.100390db
ret 0x40