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

Disassembly:
push 0xffffffffffffffff
push 0x407e2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x46c
push ebx
push ebp
push esi
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x3c]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov dword [esp + 0x1c], eax
mov ecx, 0xff
mov dword [esp + 0x20], eax
lea edi, [esp + 0x7d]
mov dword [esp + 0x24], eax
mov byte [esp + 0x7c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x48c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x7c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x18], ebx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x7c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0x38], 0x44
rep movsb byte es:[edi], byte [esi]
mov edi, 0x409084
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x3c], ebx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x7c]
and ecx, 3
mov dword [esp + 0x6c], ebx
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x490]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov word [esp + 0x6a], bx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov dword [esp + 0x40], ebx
and ecx, 3
mov dword [esp + 0x64], ebx
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x7c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00401e28
mov ebp, eax
add esp, 4
or eax, 0xffffffff
cmp ebp, ebx
mov dword [esp + 0x14], eax
je 0x40120d
lea edi, [esp + 0x7c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
push edx
push ebx
push ebx
push 0x20
push 1
push ebx
push ebx
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4011d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov cl, byte [esp + 0x13]
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x28], cl
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
push eax
lea edx, [esp + 0x2c]
push str.CreateProcessByCurrentUser____CreateProcessAsUser___Error_is__d_n
push edx
mov dword [esp + 0x490], ebx
call fcn.004015c0
mov eax, dword [esp + 0x38]
add esp, 0xc
cmp eax, ebx
jne 0x4011a6
mov eax, 0x408100
push eax
call fcn.00401000
mov ecx, dword [esp + 0x30]
add esp, 4
cmp ecx, ebx
je 0x401200
mov al, byte [ecx - 1]
cmp al, bl
je 0x4011c9
cmp al, 0xff
je 0x4011c9
dec al
mov byte [ecx - 1], al
jmp 0x401200
dec ecx
push ecx
call fcn.004018a0
add esp, 4
jmp 0x401200
mov eax, dword [esp + 0x494]
cmp eax, ebx
je 0x4011e8
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
jmp 0x4011fc
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x1c]
push eax
call esi
mov dword [esp + 0x14], ebx
push ebp
call fcn.004018a0
mov eax, dword [esp + 0x18]
add esp, 4
mov ecx, dword [esp + 0x47c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x478
ret