Function at 0x1003ef20
Capabilities:
Create process on windows
Delete file
Read file on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x44c]
sub esp, 0x44c
push 0xffffffffffffffff
push 0x10085866
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x100c6034]
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 - 0x20], ecx
mov eax, dword [ebp + 0x458]
xor ebx, ebx
push ebx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0xc4]
push 0x44
push eax
mov dword [ebp - 0x18], ebx
call fcn.1003ecd0
push ebx
lea eax, [ebp - 0x80]
mov dword [ebp - 0xc4], 0x44
push 0x44
push eax
call fcn.1003ecd0
push ebx
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x80], 0x44
push 0x10
push eax
call fcn.1003ecd0
add esp, 0x1c
lea ecx, [ebp + 0x18]
call fcn.10029a20
add esp, 8
mov dword [ebp - 4], ebx
lea eax, [ebp + 0x30]
push eax
lea ecx, [ebp + 0x18]
call fcn.10031e50
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x1003efd1
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 2
push 0
push 3
push 0x10000000
push eax
call esi
mov edi, eax
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x30]
call fcn.10027d30
cmp edi, 0xffffffff
je 0x1003f044
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x54], 0x100
call esi
mov edi, eax
call esi
push 0
push 1
push 2
lea ecx, [ebp - 0x44]
push ecx
push edi
mov edi, dword [ebp - 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x40], eax
jmp 0x1003f047
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
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 0x1003f075
jmp 0x1003f2c5
push 0xffffffffffffffff
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp + 0x18]
lea eax, [ebp]
push eax
call fcn.10031e50
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
jb 0x1003f0b8
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push eax
call esi
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.10027d30
mov eax, dword [ebp - 0x24]
xor edi, edi
test eax, eax
je 0x1003f0fa
push edi
push 0x80
push 4
push edi
push 3
push 0x10000004
push eax
call esi
mov edi, eax
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push 0
push eax
push 0x3ff
lea eax, [ebp + 0x48]
mov dword [ebp - 0x14], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1003f269
cmp eax, 0x400
jae 0x1003f2fc
cmp dword [ebp - 0x20], 0
mov byte [ebp + eax + 0x48], 0
je 0x1003f200
lea eax, [ebp + 0x48]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003f145
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.10032d40
or ebx, 1
lea esi, [ebp + 0x30]
mov dword [ebp - 0x18], ebx
cmp dword [ebp + 0x44], 8
push 2
cmovae esi, dword [ebp + 0x30]
call dword [sym.imp.msi.dll_MsiDatabaseExportA]
mov ebx, eax
mov dword [ebp - 0x24], ebx
mov byte [ebp - 4], 7
push 0x100a77ac
push 0
push ebx
call dword [sym.imp.msi.dll_MsiReinstallFeatureW]
push esi
push 1
push ebx
call dword [sym.imp.msi.dll_MsiReinstallFeatureW]
push ebx
push 0x4000000
push dword [ebp - 0x20]
call dword [sym.imp.msi.dll_MsiProvideComponentW]
mov byte [ebp - 4], 6
test ebx, ebx
je 0x1003f1e8
push ebx
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov ebx, dword [ebp - 0x18]
and ebx, 0xfffffffe
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x30]
call fcn.10027d30
mov esi, dword [ebp - 0x10]
test edi, edi
je 0x1003f248
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push dword [ebp - 0x14]
mov esi, eax
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LockFile]
push 0
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x14]
lea eax, [ebp + 0x48]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push dword [ebp - 0x14]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_UnlockFile]
mov esi, dword [ebp - 0x10]
push 0
lea eax, [ebp - 0x14]
push eax
push 0x3ff
lea eax, [ebp + 0x48]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x1003f125
test edi, edi
je 0x1003f274
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x18]
call fcn.10031e50
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 8
jb 0x1003f293
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.10027d30
cmp dword [ebp - 0x1c], 0
je 0x1003f2c5
cmp dword [ebp - 0x28], 0
jne 0x1003f2c5
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
call fcn.10027d30
xor eax, eax
jmp 0x1003f2d9
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
call fcn.10027d30
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.1005c4e7
lea esp, [ebp + 0x44c]
pop ebp
ret
call fcn.1005c68f
int3