Function at 0x10017b1a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
nop
mov eax, dword [ebp + 0x10]
movzx ecx, word [eax]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
xor eax, 0x7ff
shr eax, 4
shl eax, 2
mov ecx, dword [ebp + 0x14]
add ecx, eax
mov eax, dword [ecx]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
shr eax, 4
shl eax, 2
mov ecx, dword [ebp + 0x14]
add ecx, eax
mov eax, dword [ecx]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
add eax, 0x10
movzx ecx, word [eax]
sar ecx, 4
shl ecx, 2
mov eax, dword [ebp + 0x14]
add eax, ecx
mov ecx, dword [ebp - 4]
mov edx, dword [eax]
add ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, 0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
cmp eax, ecx
jae 0x10017bfc
jmp 0x10017b9d
mov eax, dword [ebp - 0x14]
mov ecx, eax
inc eax
mov dword [ebp - 0x14], eax
jmp 0x10017b7f
mov eax, dword [ebp + 8]
add eax, 4
mov ecx, dword [ebp - 0x14]
mov edx, 0x440
imul ecx, edx
add eax, ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
shl ecx, 4
shl ecx, 1
add eax, ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call fcn.100179fd
add esp, 0x10
mov eax, dword [ebp - 0x1c]
add eax, 0x10
mov ecx, dword [ebp - 0x18]
add ecx, 0x20
mov edx, dword [ebp + 0x14]
push edx
push ecx
mov ecx, dword [ebp - 0x10]
push ecx
push eax
call fcn.100179fd
add esp, 0x10
jmp 0x10017b92
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jbe 0x10017daa
mov eax, dword [ebp + 0x10]
add eax, 0x200
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
add eax, 4
add eax, 0x40
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
sub eax, 0xf
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
shr eax, 1
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
add eax, 0x10
movzx ecx, word [eax]
xor ecx, 0x7ff
sar ecx, 4
shl ecx, 2
mov eax, dword [ebp + 0x14]
add eax, ecx
mov ecx, dword [ebp - 4]
mov edx, dword [eax]
add ecx, edx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x20]
dec eax
mov dword [ebp - 0x20], eax
add eax, 0x80
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
and eax, 1
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x2c]
shr eax, 1
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
shl eax, 1
mov ecx, dword [ebp - 0x24]
add ecx, eax
mov eax, 0
mov edx, dword [ebp - 0x34]
sub eax, edx
and eax, 0x7ff
movzx edx, word [ecx]
xor edx, eax
shr edx, 4
shl edx, 2
mov eax, dword [ebp + 0x14]
add eax, edx
mov ecx, dword [ebp - 0x30]
mov edx, dword [eax]
add ecx, edx
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x2c]
cmp eax, 2
jae 0x10017c74
mov eax, dword [ebp - 0x20]
add eax, 0x80
shl eax, 1
mov ecx, dword [ebp - 0x24]
add ecx, eax
movzx eax, word [ecx]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x20]
shl eax, 1
shl eax, 2
mov ecx, dword [ebp - 0x28]
add ecx, eax
mov eax, dword [ebp - 0x38]
shr eax, 4
shl eax, 2
mov edx, dword [ebp + 0x14]
add edx, eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [edx]
add eax, ecx
mov ecx, dword [ebp - 0x3c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x20]
shl eax, 1
inc eax
shl eax, 2
mov ecx, dword [ebp - 0x28]
add ecx, eax
mov eax, dword [ebp - 0x38]
xor eax, 0x7ff
shr eax, 4
shl eax, 2
mov edx, dword [ebp + 0x14]
add edx, eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [edx]
add eax, ecx
mov ecx, dword [ebp - 0x3c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x20]
cmp eax, 0
jne 0x10017c5e
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
sub ecx, 0x10
shl ecx, 2
mov dword [ebp - 0x44], ecx
mov eax, 1
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp + 0xc]
cmp eax, ecx
jae 0x10017daa
jmp 0x10017d7b
mov eax, dword [ebp - 0x40]
mov ecx, eax
inc eax
mov dword [ebp - 0x40], eax
jmp 0x10017d5d
mov eax, dword [ebp + 8]
add eax, 4
mov ecx, dword [ebp - 0x40]
mov edx, 0x440
imul ecx, edx
add eax, ecx
add eax, 0x40
mov ecx, dword [ebp + 8]
add ecx, 4
add ecx, 0x40
mov edx, dword [ebp - 0x44]
push edx
push ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x10017d70
leave
ret