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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007711b
mov eax, dword fs:[0]
push eax
sub esp, 0x500
mov eax, dword [0x100c0040]
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.10033390
push esi
lea eax, [ebp - 0x4c8]
mov dword [ebp - 0x50c], 0x44
push 0x44
push eax
call fcn.10033390
push esi
lea eax, [ebp - 0x484]
mov dword [ebp - 0x4c8], 0x44
push 0x10
push eax
call fcn.10033390
add esp, 0x20
lea ecx, [ebp - 0x440]
mov edx, 0x100a84d0
push esi
call fcn.100177c0
add esp, 8
mov dword [ebp - 4], esi
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x440]
call fcn.1001e6e0
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 7
jbe 0x10035413
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 0x10035492
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 0x10035498
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 0x1003550a
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x440]
call fcn.1001e6e0
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 7
jbe 0x100354ef
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 0x100357e4
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.1001e6e0
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 7
jbe 0x10035562
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 0x10035779
mov edi, dword [ebp - 0x468]
nop dword [eax]
cmp eax, 0x400
jae 0x1003581b
mov byte [ebp + eax - 0x410], 0
test edi, edi
je 0x10035744
lea eax, [ebp - 0x410]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100355f4
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 0x10035651
mov eax, 7
mov dword [ebp - 0x418], 0
xor ecx, ecx
mov dword [ebp - 0x414], eax
mov word [ebp - 0x428], cx
jmp 0x1003566b
push eax
push ecx
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x428]
call fcn.10020190
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 0x100a6bf4
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 0x100356d1
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 0x10035721
mov ecx, dword [ebp - 0x428]
lea eax, [eax*2 + 2]
mov edx, ecx
cmp eax, 0x1000
jb 0x10035716
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x10035816
test ecx, ecx
je 0x10035721
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 0x100355d0
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.1001e6e0
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 7
jbe 0x1003579e
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 0x100357e4
cmp dword [ebp - 0x474], 0
jne 0x100357e4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.10005610
xor eax, eax
jmp 0x100357fb
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.10053e7d
mov esp, ebp
pop ebp
ret
call fcn.100590cf
call fcn.100546c1
int3