Function at 0x10017010
Capabilities:
Create process on windows
Delete file
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x44c]
sub esp, 0x44c
push 0xffffffffffffffff
push 0x10043cae
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x10067024]
xor eax, ebp
mov dword [ebp + 0x448], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 0x454]
xor ebx, ebx
push ebx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xc0]
push 0x44
push eax
mov dword [ebp - 0x20], ebx
call fcn.10014f40
push ebx
lea eax, [ebp - 0x7c]
mov dword [ebp - 0xc0], 0x44
push 0x44
push eax
call fcn.10014f40
push ebx
lea eax, [ebp - 0x38]
mov dword [ebp - 0x7c], 0x44
push 0x10
push eax
call fcn.10014f40
add esp, 0x20
lea ecx, [ebp + 0x18]
mov edx, 0x10057168
push ebx
call fcn.100092c0
add esp, 8
mov dword [ebp - 4], ebx
lea eax, [ebp + 0x30]
push eax
lea ecx, [ebp + 0x18]
call fcn.1000d6e0
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x100170c7
mov eax, dword [eax]
push 0
push 0x80
push 2
push 0
push 3
push 0x10000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x30]
call fcn.10003630
cmp esi, 0xffffffff
je 0x10017132
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x50], 0x100
call esi
mov edi, eax
call esi
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x40]
push 0
push 1
push 2
push ecx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x3c], edi
jmp 0x10017135
mov edi, dword [ebp - 0x40]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x18]
push 0
push 0x8000020
push 1
push 0
push 0
push dword [ebp - 0x1c]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1001718c
lea eax, [ebp + 0x30]
push eax
lea ecx, [ebp + 0x18]
call fcn.1000d6e0
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x10017174
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x30]
call fcn.10003630
jmp 0x10017375
push 0xffffffffffffffff
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [ebp - 0x18], eax
lea ecx, [ebp + 0x18]
lea eax, [ebp]
push eax
call fcn.1000d6e0
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
jb 0x100171cb
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.10003630
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x3ff
lea eax, [ebp + 0x48]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10017322
mov edi, dword [ebp - 0x14]
cmp eax, 0x400
jae 0x100173ac
mov byte [ebp + eax + 0x48], 0
test edi, edi
je 0x100172fb
lea eax, [ebp + 0x48]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10017240
sub eax, edx
mov byte [ebp - 4], 6
lea ecx, [ebp + 0x48]
push dword [ebp - 0x28]
add eax, ecx
mov dword [ebp + 0x30], 0
xor ecx, ecx
mov dword [ebp + 0x40], 0
push eax
lea eax, [ebp + 0x48]
mov word [ebp + 0x30], cx
mov dword [ebp + 0x44], 0
lea ecx, [ebp + 0x30]
push eax
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x44], 7
call fcn.1000e840
or ebx, 0x10
lea esi, [ebp + 0x30]
mov dword [ebp - 0x20], ebx
cmp dword [ebp + 0x44], 8
push 2
cmovae esi, dword [ebp + 0x30]
call dword [sym.imp.msi.dll_MsiDatabaseExportA]
mov edi, eax
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 7
push 0x1005645c
push 0
push edi
call dword [sym.imp.msi.dll_MsiReinstallFeatureW]
push esi
push 1
push edi
call dword [sym.imp.msi.dll_MsiReinstallFeatureW]
push edi
push 0x4000000
push dword [ebp - 0x14]
call dword [sym.imp.msi.dll_MsiProvideComponentW]
mov byte [ebp - 4], 6
test edi, edi
je 0x100172e3
push edi
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
and ebx, 0xffffffef
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x30]
call fcn.10003630
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x14]
push 0
lea eax, [ebp - 0x10]
push eax
push 0x3ff
lea eax, [ebp + 0x48]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x10017220
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x18]
call fcn.1000d6e0
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 8
jb 0x1001733d
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.10003630
push 0
call esi
cmp dword [ebp - 0x18], 0
je 0x10017375
cmp dword [ebp - 0x28], 0
jne 0x10017375
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
call fcn.10003630
xor eax, eax
jmp 0x10017389
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
call fcn.10003630
mov eax, 0x643
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x448]
xor ecx, ebp
call fcn.1002c803
lea esp, [ebp + 0x44c]
pop ebp
ret
call fcn.1002cf97
int3