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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10067f2b
mov eax, dword fs:[0]
push eax
sub esp, 0x500
mov eax, dword [0x100ad040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x46c], edx
mov dword [ebp - 0x468], ecx
mov eax, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x470], eax
lea eax, [ebp - 0x50c]
push 0x44
push eax
mov dword [ebp - 0x460], esi
call fcn.1002d1b0
push esi
lea eax, [ebp - 0x4c8]
mov dword [ebp - 0x50c], 0x44
push 0x44
push eax
call fcn.1002d1b0
push esi
lea eax, [ebp - 0x484]
mov dword [ebp - 0x4c8], 0x44
push 0x10
push eax
call fcn.1002d1b0
add esp, 0x20
lea ecx, [ebp - 0x440]
mov edx, 0x10098090
push esi
call fcn.10014770
add esp, 8
mov dword [ebp - 4], esi
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x440]
call fcn.10018e20
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 7
jbe 0x1002f233
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 edi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x428]
call fcn.10005610
cmp edi, 0xffffffff
je 0x1002f2b2
mov dword [ebp - 0x49c], 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push 1
push 2
lea ecx, [ebp - 0x48c]
push ecx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [ebp - 0x460]
mov dword [ebp - 0x490], eax
mov eax, dword [ebp - 0x48c]
mov dword [ebp - 0x488], eax
jmp 0x1002f2b8
mov eax, dword [ebp - 0x48c]
mov dword [ebp - 0x45c], eax
lea eax, [ebp - 0x484]
push eax
lea eax, [ebp - 0x4c8]
push eax
push dword [ebp - 0x470]
push 0
push 0x8000020
push 1
push 0
push 0
push dword [ebp - 0x46c]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1002f32a
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x440]
call fcn.10018e20
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 7
jbe 0x1002f30f
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x428]
call fcn.10005610
jmp 0x1002f604
push 0xffffffffffffffff
push dword [ebp - 0x484]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x45c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x474]
push eax
push dword [ebp - 0x484]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [ebp - 0x46c], eax
lea ecx, [ebp - 0x440]
lea eax, [ebp - 0x458]
push eax
call fcn.10018e20
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 7
jbe 0x1002f382
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 edi, eax
mov dword [ebp - 0x45c], edi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x458]
call fcn.10005610
push 0
lea eax, [ebp - 0x464]
mov dword [ebp - 0x464], 0
push eax
push 0x3ff
lea eax, [ebp - 0x410]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x464]
test eax, eax
je 0x1002f599
mov edi, dword [ebp - 0x468]
nop dword [eax]
cmp eax, 0x400
jae 0x1002f63b
mov byte [ebp + eax - 0x410], 0
test edi, edi
je 0x1002f564
lea eax, [ebp - 0x410]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002f414
sub eax, edx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x410]
add ecx, eax
mov dword [ebp - 0x418], 0
lea edx, [ebp - 0x410]
mov dword [ebp - 0x414], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x428], xmm0
cmp edx, ecx
jne 0x1002f471
mov eax, 7
mov dword [ebp - 0x418], 0
xor ecx, ecx
mov dword [ebp - 0x414], eax
mov word [ebp - 0x428], cx
jmp 0x1002f48b
push eax
push ecx
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x428]
call fcn.1001a8d0
mov eax, dword [ebp - 0x414]
or esi, 0x10
cmp eax, 7
mov dword [ebp - 0x460], esi
lea esi, [ebp - 0x428]
cmova esi, dword [ebp - 0x428]
push 2
call dword [sym.imp.msi.dll_MsiDatabaseExportA]
mov edi, eax
mov dword [ebp - 0x470], edi
mov byte [ebp - 4], 7
push 0x10096650
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 - 0x468]
call dword [sym.imp.msi.dll_MsiProvideComponentW]
mov byte [ebp - 4], 6
test edi, edi
je 0x1002f4f1
push edi
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov esi, dword [ebp - 0x460]
and esi, 0xffffffef
mov dword [ebp - 0x460], esi
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x414]
cmp eax, 7
jbe 0x1002f541
mov ecx, dword [ebp - 0x428]
lea eax, [eax*2 + 2]
mov edx, ecx
cmp eax, 0x1000
jb 0x1002f536
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x1002f636
test ecx, ecx
je 0x1002f541
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [ebp - 0x468]
xor eax, eax
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 7
mov word [ebp - 0x428], ax
push 0
lea eax, [ebp - 0x464]
push eax
push 0x3ff
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x45c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x464]
test eax, eax
jne 0x1002f3f0
mov edi, dword [ebp - 0x45c]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x458]
push eax
lea ecx, [ebp - 0x440]
call fcn.10018e20
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 7
jbe 0x1002f5be
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x458]
call fcn.10005610
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x46c], 0
je 0x1002f604
cmp dword [ebp - 0x474], 0
jne 0x1002f604
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.10005610
xor eax, eax
jmp 0x1002f61b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.10005610
mov eax, 0x643
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004d40a
mov esp, ebp
pop ebp
ret
call fcn.10050f8f
call fcn.1004dc51
int3