Function at 0x401f2c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
call fcn.00410cbe
push eax
mov dword [ebp - 0x2c], eax
call fcn.00413c12
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
lea ecx, [eax + 0x28]
push eax
mov dword [ebp - 0x14], ecx
call fcn.00413c12
push 0x44
pop edi
sub eax, 0x14
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 0x80]
push ebx
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], ebx
xor esi, esi
call sub.msvcrt.dll_memset
mov dword [ebp - 0x80], edi
xor eax, eax
lea edi, [ebp - 0x3c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x14
stosd dword es:[edi], eax
cmp dword [ebp - 8], ebx
je 0x401fa6
mov eax, dword [ebp - 0x14]
cmp word [eax], 0x20
jne 0x401fa6
add dword [ebp - 0x14], 2
dec dword [ebp - 8]
push 0xc
pop eax
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx + eax*2]
mov edx, dword [ebp - 0x1c]
sub ecx, 0x41
shl edx, 4
or ecx, edx
inc eax
mov dword [ebp - 0x1c], ecx
cmp eax, 0x14
jb 0x401fa9
push ebx
push ebx
push ebx
push 2
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [ebp - 0x20], edi
cmp edi, ebx
jne 0x401fe4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x401fe9
mov eax, dword [edi]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], ebx
jne 0x402080
push 2
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push dword [edi + 4]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x402021
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x402080
push 2
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push dword [edi + 8]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x402050
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x402080
mov eax, dword [edi]
push 2
push ebx
mov dword [ebp + 8], eax
push ebx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push dword [ebp + 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x402080
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push dword [edi]
call fcn.00401453
push dword [ebp - 0x1c]
call fcn.00401453
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
jne 0x4021cf
lea esi, [edi + 0x16]
push esi
call fcn.00413c12
pop ecx
mov dword [ebp - 0x1c], eax
push 0x20
cmp byte [edi + 0x14], bl
je 0x40213b
push dword [ebp - 0x14]
call fcn.00413cab
pop ecx
pop ecx
test eax, eax
jne 0x4020d1
push 0x20
push esi
call fcn.00413cab
pop ecx
pop ecx
mov byte [ebp + 0xb], bl
test eax, eax
je 0x4020d5
mov byte [ebp + 0xb], 1
movzx eax, byte [ebp + 0xb]
xor ecx, ecx
cmp dword [ebp - 8], ebx
setne cl
add ecx, dword [ebp - 0x1c]
lea eax, [ecx + eax*2 + 2]
add eax, dword [ebp - 8]
add eax, dword [ebp - 0x28]
add eax, eax
push eax
call sub.msvcrt.dll_malloc
mov esi, eax
pop ecx
cmp esi, ebx
je 0x4021c8
xor edi, edi
cmp byte [ebp + 0xb], bl
je 0x40210f
push 0x22
pop eax
mov word [esi], ax
inc edi
push dword [ebp - 0x2c]
lea eax, [esi + edi*2]
push eax
call fcn.00413c66
add edi, dword [ebp - 0x28]
push 0x5c
pop eax
mov word [esi + edi*2], ax
mov eax, dword [ebp - 0x20]
add eax, 0x16
push eax
inc edi
lea eax, [esi + edi*2]
push eax
call fcn.00413c66
add esp, 0x10
jmp 0x40218f
push esi
call fcn.00413cab
test eax, eax
setne byte [ebp + 0xb]
movzx eax, byte [ebp + 0xb]
xor ecx, ecx
cmp dword [ebp - 8], ebx
setne cl
add ecx, dword [ebp - 0x1c]
lea eax, [ecx + eax*2]
add eax, dword [ebp - 8]
lea eax, [eax + eax + 2]
push eax
call sub.msvcrt.dll_malloc
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x4021c8
xor edi, edi
cmp byte [ebp + 0xb], bl
je 0x40217d
push 0x22
pop eax
mov word [esi], ax
inc edi
mov eax, dword [ebp - 0x20]
add eax, 0x16
push eax
lea eax, [esi + edi*2]
push eax
call fcn.00413c66
pop ecx
pop ecx
add edi, dword [ebp - 0x1c]
cmp byte [ebp + 0xb], bl
je 0x40219f
push 0x22
pop eax
mov word [esi + edi*2], ax
inc edi
cmp dword [ebp - 8], ebx
je 0x4021bd
push 0x20
pop eax
push dword [ebp - 0x14]
mov word [esi + edi*2], ax
inc edi
lea eax, [esi + edi*2]
push eax
call fcn.00413c66
add edi, dword [ebp - 8]
pop ecx
pop ecx
xor eax, eax
mov word [esi + edi*2], ax
mov edi, dword [ebp - 0x20]
jmp 0x4021cf
mov dword [ebp - 4], 0xe
cmp dword [ebp - 0xc], ebx
je 0x4021e8
push 0xffffffffffffffff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [ebp - 4], ebx
jne 0x4022a1
mov eax, dword [edi + 0x10]
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x4022a1
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x402264
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [str.error_embedded_command_failed]
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24]
push 0x419ac4
push eax
mov dword [ebp + 8], ecx
call fcn.00401000
push eax
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call fcn.00410451
add esp, 0x1c
push 0x30
push dword [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [ebp - 4], ebx
jne 0x4022a1
push 2
push ebx
push ebx
lea eax, [edi + 0xc]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x40228f
mov dword [edi + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 0x38]
call fcn.00401453
push dword [ebp - 0x3c]
call fcn.00401453
pop ecx
pop ecx
mov eax, dword [ebp - 4]
mov dword [edi + 0x10], eax
cmp dword [ebp - 0x18], ebx
je 0x4022b5
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [ebp - 0xc], ebx
je 0x4022c5
push 0xffffffffffffffff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xc]
call fcn.00401453
push dword [ebp - 0x18]
call fcn.00401453
push dword [ebp - 0x10]
call fcn.00401453
push esi
call fcn.0041273e
lea eax, [ebp - 0x24]
push eax
call fcn.00410024
mov eax, dword [ebp - 4]
add esp, 0x14
pop edi
pop esi
pop ebx
leave
ret