Function at 0x40f095
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0x48
call fcn.004790b3
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0x12
rep stosd dword es:[edi], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x40f0ee
push eax
mov ebx, eax
call fcn.004011ea
inc eax
push eax
call fcn.004790b3
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40f0ff
push ebx
call fcn.004790b9
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x48e230
push dword [ebp - 4]
call fcn.004012b1
add esp, 8
cmp eax, 0
jne 0x40f155
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0047ab40
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40f151
push ebx
call fcn.004790b9
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
test eax, eax
je 0x40f173
push eax
mov ebx, eax
call fcn.004011ea
inc eax
push eax
call fcn.004790b3
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f184
push ebx
call fcn.004790b9
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x48e230
push dword [ebp - 8]
call fcn.004012b1
add esp, 8
cmp eax, 0
jne 0x40f1da
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0047ab40
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f1d6
push ebx
call fcn.004790b9
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 0x28]
mov eax, dword [ebx]
test eax, eax
je 0x40f1f8
push eax
mov ebx, eax
call fcn.004011ea
inc eax
push eax
call fcn.004790b3
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40f209
push ebx
call fcn.004790b9
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push 0x48e230
push dword [ebp - 0xc]
call fcn.004012b1
add esp, 8
cmp eax, 0
je 0x40f24f
lea eax, [ebp - 0xc]
push eax
call fcn.00403d9b
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40f246
push ebx
call fcn.004790b9
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
jmp 0x40f288
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0047ab40
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40f284
push ebx
call fcn.004790b9
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x34], 0
mov eax, 0
sete al
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40f30d
mov ebx, dword [ebp + 0x30]
mov eax, dword [ebx]
push eax
push 0x48
call fcn.004790b3
add esp, 4
pop esi
mov edi, eax
push eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
push esi
push edi
test eax, eax
je 0x40f2d8
push eax
mov ebx, eax
call fcn.004011ea
inc eax
push eax
call fcn.004790b3
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
stosd dword es:[edi], eax
mov ecx, 0xf
rep movsd dword es:[edi], dword [esi]
pop eax
push eax
mov ebx, dword [ebp - 0x10]
push ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40f2fb
push ebx
call fcn.004790b9
add esp, 4
pop ebx
call fcn.004790b9
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
jmp 0x40f31f
mov ebx, dword [ebp - 0x10]
add ebx, 0x2c
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 0x44
cmp dword [ebp + 0x1c], 0
jne 0x40f33f
mov dword [ebp + 0x18], 1
mov ebx, dword [ebp - 0x10]
add ebx, 0x30
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp - 0x14]
mov word [ebx], ax
mov dword [ebp - 0x14], esp
mov ebx, dword [ebp + 0x38]
push dword [ebx]
mov eax, dword [ebp - 0x10]
push eax
push 0x44
call fcn.004790b3
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push dword [ebp - 0xc]
push 0
push 0
push dword [ebp + 0x20]
push 0
push 0
push dword [ebp - 8]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x40f470
push 0x557
push 0x407dc97
push 6
call fcn.004790bf
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x18]
push ebx
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.0040f05e
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.004790b9
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x40f549
mov eax, 0xffffffff
jmp 0x40f5ba
cmp dword [ebp + 0x3c], 0
jne 0x40f5a5
mov ebx, dword [ebp + 0x38]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
cmp dword [ebx], 0
je 0x40f57f
mov ebx, dword [ebp + 0x38]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
push dword [ebx]
call fcn.00402ec6
mov ebx, dword [ebp + 0x38]
mov ebx, dword [ebx]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
cmp dword [ebx], 0
je 0x40f5a5
mov ebx, dword [ebp + 0x38]
mov ebx, dword [ebx]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
push dword [ebx]
call fcn.00402ec6
mov ebx, dword [ebp + 0x38]
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebx]
jmp 0x40f5ba
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40f5cb
push ebx
call fcn.004790b9
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f5db
push ebx
call fcn.004790b9
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40f5eb
push ebx
call fcn.004790b9
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40f602
push ebx
call fcn.004790b9
add esp, 4
pop ebx
call fcn.004790b9
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x38