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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10067f9b
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.1002d240
push esi
lea eax, [ebp - 0x4c8]
mov dword [ebp - 0x50c], 0x44
push 0x44
push eax
call fcn.1002d240
push esi
lea eax, [ebp - 0x484]
mov dword [ebp - 0x4c8], 0x44
push 0x10
push eax
call fcn.1002d240
add esp, 0x20
lea ecx, [ebp - 0x440]
mov edx, 0x10098090
push esi
call fcn.10014790
add esp, 8
mov dword [ebp - 4], esi
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x440]
call fcn.10018e60
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 7
jbe 0x1002f2c3
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 0x1002f342
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 0x1002f348
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 0x1002f3ba
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x440]
call fcn.10018e60
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 7
jbe 0x1002f39f
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 0x1002f694
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.10018e60
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 7
jbe 0x1002f412
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 0x1002f629
mov edi, dword [ebp - 0x468]
nop dword [eax]
cmp eax, 0x400
jae 0x1002f6cb
mov byte [ebp + eax - 0x410], 0
test edi, edi
je 0x1002f5f4
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002f4a4
sub ecx, edx
mov byte [ebp - 4], 6
lea eax, [ebp - 0x410]
add eax, ecx
mov dword [ebp - 0x418], 0
lea edx, [ebp - 0x410]
mov dword [ebp - 0x414], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x428], xmm0
cmp edx, eax
jne 0x1002f501
mov eax, 7
mov dword [ebp - 0x418], 0
xor ecx, ecx
mov dword [ebp - 0x414], eax
mov word [ebp - 0x428], cx
jmp 0x1002f51b
push ecx
push eax
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x428]
call fcn.1001a910
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 0x1002f581
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 0x1002f5d1
mov ecx, dword [ebp - 0x428]
lea eax, [eax*2 + 2]
mov edx, ecx
cmp eax, 0x1000
jb 0x1002f5c6
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x1002f6c6
test ecx, ecx
je 0x1002f5d1
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 0x1002f480
mov edi, dword [ebp - 0x45c]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x440]
call fcn.10018e60
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 7
jbe 0x1002f64e
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
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x46c], 0
je 0x1002f694
cmp dword [ebp - 0x474], 0
jne 0x1002f694
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.10005610
xor eax, eax
jmp 0x1002f6ab
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.1004d46a
mov esp, ebp
pop ebp
ret
call fcn.10050fef
call fcn.1004dcb1
int3