Function at 0x405aa0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x160
push ebx
push ebp
push esi
mov ebp, ecx
mov ecx, dword [ebp + 0x10]
push edi
call fcn.00408120
mov edi, dword [esp + 0x174]
mov dword [ebp + 0x2c], eax
lea esi, [edi + 4]
mov esi, dword [esi]
push ecx
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
sub esi, 0x10
mov dword [esp + 0x14], esp
mov ebx, esp
call dword [eax + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x405af0
cmp eax, dword [esi]
jne 0x405af0
mov eax, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x405b25
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x405b58
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov edx, ecx
shr ecx, 2
add esi, 0x10
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x178]
add eax, 0x10
mov dword [ebx], eax
mov ecx, dword [ebp + 0x10]
call fcn.004088f0
test eax, eax
jne 0x405b83
mov ecx, dword [ebp + 0x10]
call fcn.004081a0
test eax, eax
jne 0x405b5d
push 4
lea esi, [edi + 4]
push str._tmp
mov ecx, esi
call fcn.00401de0
jmp 0x405ac1
call fcn.004015c0
mov dword [edi + 0x18], 0
mov ecx, dword [ebp + 0x10]
call fcn.00408390
push edi
mov ecx, ebp
call fcn.004055d0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x160
ret 4
mov ebx, 2
mov dword [edi + 0x18], ebx
mov eax, dword [ebp + 0x2c]
mov esi, dword [ebp + 0x3c]
add esi, eax
mov eax, dword [ebp + 0x38]
mov ecx, esi
cmp ecx, eax
mov dword [ebp + 0x3c], esi
jbe 0x405ba2
mov dword [ebp + 0x3c], eax
mov edx, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x3c]
inc edx
mov dword [ebp + 0x34], ecx
mov dword [ebp + 0x28], edx
mov eax, dword [edi + 0x14]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x405bd8
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x14], esp
mov esi, esp
push eax
call fcn.00401b40
add eax, 0x10
add esp, 4
mov ecx, ebp
mov dword [esi], eax
call fcn.00404ce0
mov ecx, dword [ebp + 4]
xor edx, edx
lea ecx, [ecx]
test ecx, ecx
je 0x405bff
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp edx, eax
jae 0x405bff
mov eax, dword [ecx + edx*4]
cmp dword [eax + 0x18], ebx
jne 0x405db8
inc edx
jmp 0x405be0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor eax, eax
mov byte [esp + 0x6c], 0
mov ecx, 0x40
lea edi, [esp + 0x6d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edx, edx
mov eax, dword [ebp + 4]
test eax, eax
mov dword [esp + 0x14], edx
je 0x405db8
mov ecx, dword [ebp + 8]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x405db8
mov ecx, dword [ebp + 0x18]
test ecx, ecx
jne 0x405db8
lea esi, [edx*4]
mov ecx, dword [esi + eax]
mov edi, dword [ecx + 0xc]
test edi, edi
je 0x405d77
mov edx, dword [esp + 0x174]
mov ecx, dword [edx + 0x10]
mov edx, dword [ecx - 0xc]
test edx, edx
mov edx, dword [esi + eax]
jne 0x405c8c
mov eax, dword [edx + 4]
push eax
push 0x43305c
lea ecx, [esp + 0x74]
push 0x104
push ecx
call fcn.004155ef
add esp, 0x10
jmp 0x405cae
mov ecx, dword [edx + 0x10]
mov edx, dword [esi + eax]
mov eax, dword [edx + 4]
push ecx
push eax
push str._s__s
lea ecx, [esp + 0x78]
push 0x104
push ecx
call fcn.004155ef
add esp, 0x14
mov edx, dword [ebp + 4]
mov eax, dword [edx + esi]
add edx, esi
mov dword [ebp + 0x20], eax
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
push 0x30
push 0
mov dword [esp + 0x40], 0x44
mov word [esp + 0x70], 5
mov dword [esp + 0x6c], 1
mov edx, dword [edx]
push 0
mov dword [edx + 0x18], 3
push 0
lea edx, [esp + 0x8c]
push edx
push 0
call ebx
test eax, eax
je 0x405d95
mov eax, 0x103
mov dword [esp + 0x10], eax
mov ecx, dword [ebp + 0x18]
test ecx, ecx
jne 0x405d7d
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
cmp eax, 0x103
je 0x405d27
mov eax, dword [ebp + 4]
add eax, esi
mov eax, dword [eax]
mov dword [eax + 0x18], 2
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x1c]
push edx
call esi
mov edx, dword [esp + 0x14]
inc edx
jmp 0x405c1c
cmp eax, 0x103
jne 0x405d51
mov eax, dword [ebp + 4]
mov edx, dword [eax + esi]
add eax, esi
mov dword [edx + 0x18], 4
jmp 0x405d5f
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + ecx*4]
lea eax, [eax + ecx*4]
mov dword [edx + 0x18], 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x160
ret 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x160
ret 4