Function at 0x1017a07
Capabilities:
Encode data using xor
Get file size
Read file via mapping

Disassembly:
mov eax, 0x1056d13
call fcn.0101d9b8
sub esp, 0x20
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
call fcn.01010c62
xor edi, edi
inc edi
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x10]
call fcn.01010900
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
push ebx
push 3
push ebx
push edi
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x2c], esi
je 0x1017c36
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x1017c2a
push ebx
push edi
push ebx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, ebx
mov dword [ebp - 0x28], eax
je 0x1017c2a
push edi
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
mov dword [ebp + 0xc], esi
je 0x1017c1f
xor eax, eax
mov ax, word [esi]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], eax
movzx eax, ax
cmp eax, 0xbbef
je 0x1017acf
cmp eax, 0xfeff
je 0x1017ac5
cmp eax, 0xfffe
jne 0x1017b78
shr edi, 1
dec edi
mov ebx, edi
jmp 0x1017bb2
cmp edi, 2
jbe 0x1017b78
cmp byte [esi + 2], 0xbf
jne 0x1017b78
add esi, 3
mov dword [ebp - 0x18], 0xfde9
mov dword [ebp - 0x1c], esi
sub edi, 3
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
push eax
push eax
push edi
push dword [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
call esi
mov ebx, eax
test ebx, ebx
je 0x1017c15
lea eax, [ebx + 1]
push eax
lea ecx, [ebp - 0x10]
call fcn.01011310
push ebx
push eax
push edi
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
push 0
push dword [ebp - 0x18]
call esi
test eax, eax
jne 0x1017b3e
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.01010a85
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp + 0xc]
test eax, eax
je 0x1017c18
test ebx, ebx
mov ecx, eax
jbe 0x1017b64
mov edx, ebx
cmp word [ecx], 0
jne 0x1017b5f
mov word [ecx], 0x20
inc ecx
inc ecx
dec edx
jne 0x1017b54
and word [eax + ebx*2], 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.01010a85
jmp 0x1017c18
or dword [ebp - 0x24], 0xffffffff
lea eax, [ebp - 0x24]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
test eax, eax
mov dword [ebp - 0x24], eax
je 0x1017b95
mov ebx, edi
shr ebx, 1
jmp 0x1017ba8
push edi
push esi
call fcn.010165fb
neg eax
sbb eax, eax
and eax, 0xfde9
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x24], 0
je 0x1017af2
lea eax, [ebx + 1]
push eax
lea ecx, [ebp - 0x10]
call fcn.01011310
cmp word [ebp - 0x20], 0xfeff
jne 0x1017bd5
add esi, 2
mov ecx, ebx
mov edi, eax
rep movsw word es:[edi], word [esi]
jmp 0x1017b41
cmp word [ebp - 0x20], 0xfffe
jne 0x1017bc9
test ebx, ebx
lea ecx, [esi + 2]
jbe 0x1017b44
mov dword [ebp + 0xc], eax
sub dword [ebp + 0xc], ecx
mov dword [ebp - 0x20], ebx
movzx dx, byte [ecx + 1]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
xor eax, eax
mov ah, byte [ecx]
xor edx, eax
mov eax, dword [ebp - 0x24]
mov word [edi + ecx], dx
inc ecx
inc ecx
dec dword [ebp - 0x20]
jne 0x1017bf1
jmp 0x1017b44
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
inc edi
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], ebx
jne 0x1017c50
push ebx
lea ecx, [ebp + 0xc]
call fcn.0101236d
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], edi
jmp 0x1017c53
lea eax, [ebp - 0x10]
mov ecx, dword [ebp + 8]
push eax
call fcn.01010eb5
or dword [ebp - 0x14], 2
mov dword [ebp - 4], edi
test byte [ebp - 0x14], 1
pop edi
pop esi
pop ebx
je 0x1017c78
and dword [ebp - 0x14], 0xfffffffe
lea ecx, [ebp + 0xc]
call fcn.01010c92
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.01010c92
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword fs:[0], ecx
leave
ret 8