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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a1500
mov eax, dword fs:[0]
push eax
sub esp, 0x508
mov eax, dword [0x100ef034]
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 - 0x470], ecx
mov eax, dword [ebp + 0xc]
push 0
mov dword [ebp - 0x474], eax
lea eax, [ebp - 0x514]
push 0x44
push eax
mov dword [ebp - 0x464], 0
call fcn.10055ad0
push 0
lea eax, [ebp - 0x4d0]
mov dword [ebp - 0x514], 0x44
push 0x44
push eax
call fcn.10055ad0
push 0
lea eax, [ebp - 0x48c]
mov dword [ebp - 0x4d0], 0x44
push 0x10
push eax
call fcn.10055ad0
add esp, 0x1c
lea ecx, [ebp - 0x440]
call fcn.1003b2e0
add esp, 8
mov dword [ebp - 4], 0
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x440]
call fcn.10047330
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x10055de6
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 - 0x468], edi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x428]
call fcn.10038340
cmp edi, 0xffffffff
je 0x10055e71
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x4a4], 0x100
call esi
mov edi, eax
call esi
push 0
push 1
push 2
lea ecx, [ebp - 0x494]
push ecx
push edi
mov edi, dword [ebp - 0x468]
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 - 0x498], eax
mov eax, dword [ebp - 0x494]
mov dword [ebp - 0x490], eax
jmp 0x10055e77
mov eax, dword [ebp - 0x494]
mov dword [ebp - 0x460], eax
lea eax, [ebp - 0x48c]
push eax
lea eax, [ebp - 0x4d0]
push eax
push 0
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 0x10055eb1
jmp 0x10056211
push 0xffffffffffffffff
push dword [ebp - 0x48c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x478]
push eax
push dword [ebp - 0x48c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [ebp - 0x46c], eax
lea ecx, [ebp - 0x440]
lea eax, [ebp - 0x458]
push eax
call fcn.10047330
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
jb 0x10055f09
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push eax
call esi
mov dword [ebp - 0x460], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x458]
call fcn.10038340
mov eax, dword [ebp - 0x474]
xor edi, edi
mov dword [ebp - 0x468], edi
test eax, eax
je 0x10055f60
push edi
push 0x80
push 4
push edi
push 3
push 0x10000004
push eax
call esi
mov edi, eax
mov dword [ebp - 0x468], eax
mov esi, dword [ebp - 0x460]
lea eax, [ebp - 0x45c]
push 0
push eax
push 0x3ff
lea eax, [ebp - 0x410]
mov dword [ebp - 0x45c], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x45c]
test eax, eax
je 0x100561a3
nop word [eax + eax]
cmp eax, 0x400
jae 0x10056248
cmp dword [ebp - 0x470], 0
mov byte [ebp + eax - 0x410], 0
je 0x1005611f
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10055fd0
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 0x1005602d
mov eax, 7
mov dword [ebp - 0x418], 0
xor ecx, ecx
mov dword [ebp - 0x414], eax
mov word [ebp - 0x428], cx
jmp 0x10056047
push ecx
push eax
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x428]
call fcn.10048330
mov eax, dword [ebp - 0x414]
or dword [ebp - 0x464], 1
lea esi, [ebp - 0x428]
cmp eax, 8
push 2
cmovae esi, dword [ebp - 0x428]
call dword [sym.imp.msi.dll_MsiDatabaseExportA]
mov edi, eax
mov dword [ebp - 0x474], edi
mov byte [ebp - 4], 7
push 0x100ca18c
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 - 0x470]
call dword [sym.imp.msi.dll_MsiProvideComponentW]
mov byte [ebp - 4], 6
test edi, edi
je 0x100560ab
push edi
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
and dword [ebp - 0x464], 0xfffffffe
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x414]
cmp ecx, 8
jb 0x100560f6
mov edx, dword [ebp - 0x428]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100560ec
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10056243
push ecx
push edx
call fcn.100768a6
add esp, 8
mov edi, dword [ebp - 0x468]
xor eax, eax
mov esi, dword [ebp - 0x460]
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 7
mov word [ebp - 0x428], ax
test edi, edi
je 0x10056179
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push dword [ebp - 0x45c]
mov esi, eax
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LockFile]
push 0
lea eax, [ebp - 0x47c]
push eax
push dword [ebp - 0x45c]
lea eax, [ebp - 0x410]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push dword [ebp - 0x45c]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_UnlockFile]
mov esi, dword [ebp - 0x460]
push 0
lea eax, [ebp - 0x45c]
push eax
push 0x3ff
lea eax, [ebp - 0x410]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x45c]
test eax, eax
jne 0x10055fa0
test edi, edi
je 0x100561ae
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x440]
call fcn.10047330
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 8
jb 0x100561d3
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x428]
call fcn.10038340
cmp dword [ebp - 0x46c], 0
je 0x10056211
cmp dword [ebp - 0x478], 0
jne 0x10056211
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.10038340
xor eax, eax
jmp 0x10056228
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.10038340
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.1007685e
mov esp, ebp
pop ebp
ret
call fcn.1007bd92
call fcn.10076a06
int3