Function at 0x10002490
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 - 0x434]
sub esp, 0x434
push 0xffffffffffffffff
push 0x10026a7d
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x1003b014]
xor eax, ebp
mov dword [ebp + 0x430], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 0x440]
push 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xc0]
push 0x44
push eax
call fcn.10001bf0
push 0
lea eax, [ebp - 0x7c]
mov dword [ebp - 0xc0], 0x44
push 0x44
push eax
call fcn.10001bf0
push 0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x7c], 0x44
push 0x10
push eax
call fcn.10001bf0
add esp, 0x1c
lea ecx, [ebp + 0x18]
call fcn.100012e0
add esp, 8
mov dword [ebp - 4], 0
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x18]
call fcn.10002c30
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x10002543
mov eax, dword [eax]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 2
push 0
push 3
push 0x10000000
push eax
call ebx
mov esi, eax
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.10001b50
cmp esi, 0xffffffff
je 0x100025b0
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x50], 0x100
call esi
mov edi, eax
call esi
mov esi, dword [ebp - 0x14]
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 0x100025b3
mov edi, dword [ebp - 0x40]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
push 0
push 0x8000020
push 1
push 0
push 0
push dword [ebp - 0x18]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x100025de
jmp 0x100027ac
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 - 0x24]
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.10002c30
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
jb 0x1000261d
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push eax
call ebx
mov esi, eax
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.10001b50
mov eax, dword [ebp - 0x1c]
xor edi, edi
test eax, eax
je 0x10002661
push edi
push 0x80
push 4
push edi
push 3
push 0x10000004
push eax
call ebx
mov edi, eax
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x3ff
lea eax, [ebp + 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1000274a
mov ebx, dword [ebp - 0x20]
nop dword [eax]
cmp eax, 0x400
jae 0x100027e3
mov byte [ebp + eax + 0x30], 0
test ebx, ebx
je 0x100026e1
push 2
call dword [sym.imp.msi.dll_MsiDatabaseExportA]
mov esi, eax
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 6
lea eax, [ebp + 0x30]
push eax
push 0
push esi
call dword [sym.imp.msi.dll_MsiReinstallFeatureFromDescriptorW]
push esi
push 0x4000000
push ebx
call dword [sym.imp.msi.dll_MsiProvideComponentW]
mov byte [ebp - 4], 0
test esi, esi
je 0x100026de
push esi
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov esi, dword [ebp - 0x14]
test edi, edi
je 0x10002729
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push dword [ebp - 0x10]
mov esi, eax
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LockFile]
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
lea eax, [ebp + 0x30]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push dword [ebp - 0x10]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_UnlockFile]
mov esi, dword [ebp - 0x14]
push 0
lea eax, [ebp - 0x10]
push eax
push 0x3ff
lea eax, [ebp + 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x10002690
test edi, edi
je 0x10002759
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x1000275f
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x18]
call fcn.10002c30
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 8
jb 0x1000277a
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.10001b50
cmp dword [ebp - 0x18], 0
je 0x100027ac
cmp dword [ebp - 0x24], 0
jne 0x100027ac
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
call fcn.10001b50
xor eax, eax
jmp 0x100027c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
call fcn.10001b50
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 + 0x430]
xor ecx, ebp
call fcn.1000feb6
lea esp, [ebp + 0x434]
pop ebp
ret
call fcn.1001051c
int3