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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c736
mov eax, dword fs:[0]
push eax
mov eax, 0x289c
call fcn.004292a0
mov eax, dword [0x44e6d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
push 0x44
lea eax, [ebp - 0x28a8]
mov esi, ecx
push edi
push eax
mov dword [ebp - 0x2824], esi
mov dword [ebp - 0x2818], edi
call fcn.00426140
add esp, 0xc
mov dword [ebp - 0x28a8], 0x44
cmp dword [0x45ac94], edi
je 0x404653
cmp dword [0x45396c], 6
jb 0x404653
push 0x459a98
push str.WinSta0_s
lea edx, [ebp - 0x2810]
call fcn.00402350
lea ecx, [ebp - 0x2810]
add esp, 8
mov dword [ebp - 0x28a0], ecx
push 8
push 0x40
mov dword [ebp - 0x2834], 0xc
mov dword [ebp - 0x282c], edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
mov dword [ebp - 0x281c], ebx
cmp ebx, edi
je 0x4049e5
push 1
lea edx, [ebp - 0x285c]
push edx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x4049b7
push 2
push 8
push ebx
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x4049b7
push edi
push ebx
push 1
lea eax, [ebp - 0x285c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x4049b7
lea edx, [ebp - 0x1010]
lea ecx, [ebp - 0x285c]
push edx
mov dword [ebp - 0x2830], ecx
call fcn.00405af0
cmp word [0x459c90], di
je 0x4046fb
push 0x459c90
push str.128___s_
lea edx, [ebp - 0x1010]
call fcn.00402350
add esp, 8
jmp 0x404762
cmp word [0x45cca0], di
je 0x404762
lea edi, [ebp - 0x1010]
add edi, 0xfffffffe
lea ecx, [ecx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x404710
mov eax, dword [0x444600]
mov dword [edi], eax
mov eax, 0x45cca0
mov edx, eax
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404730
lea edi, [ebp - 0x1010]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x404746
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
call fcn.00402420
mov dword [ebp - 0x2820], 0xffffffff
cmp dword [0x45ac90], esi
je 0x4047ad
mov eax, dword [0x459afc]
test eax, eax
je 0x4047ad
call eax
lea ecx, [ebp - 0x2820]
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [0x45ac90]
test eax, eax
je 0x4047ad
xor edx, edx
cmp dword [ebp - 0x2820], edi
setne dl
mov esi, edx
cmp dword [0x45396c], 6
jae 0x40490a
test esi, esi
jne 0x40490a
call fcn.00403080
push eax
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4049b7
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x2814]
push eax
push 0x2000000
push esi
call ebx
test eax, eax
je 0x4048f8
mov eax, dword [ebp - 0x2814]
lea ecx, [ebp - 0x2848]
push ecx
push 0
lea edx, [ebp - 0x2828]
push edx
push 0
push 0
push 4
push 6
push eax
call dword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
test eax, eax
jne 0x4048eb
mov ecx, dword [ebp - 0x2814]
mov edi, dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
push eax
push eax
push eax
push eax
push 4
push 6
push ecx
call edi
test eax, eax
jne 0x4048d1
mov edx, dword [ebp - 0x2814]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x2814]
push eax
push 0x2000000
push esi
call ebx
test eax, eax
je 0x4048d1
mov ecx, dword [ebp - 0x2814]
push ecx
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x4048d1
lea edx, [ebp - 0x2844]
push edx
mov edx, dword [ebp - 0x2814]
lea eax, [ebp - 0x28a8]
push eax
push 0
push 0
push 0x4000000
push 0
push 0
push 0
lea ecx, [ebp - 0x1010]
push ecx
push 0x454a88
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [ebp - 0x2818], eax
test eax, eax
je 0x4048d1
mov eax, dword [ebp - 0x2840]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2844]
mov dword [0x45dcac], ecx
mov edx, dword [ebp - 0x2828]
mov eax, dword [ebp - 0x2814]
push 0
push edx
push 0
push 0
push 4
push 6
push eax
call edi
mov ecx, dword [ebp - 0x2814]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x281c]
jmp 0x4049b7
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x444604]
mov word [ebp + eax - 0x2010], cx
add eax, 2
test cx, cx
jne 0x404910
lea eax, [ebp - 0x1010]
mov edx, eax
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404930
lea edi, [ebp - 0x2010]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x404946
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [ebp - 0x2844]
push edx
lea eax, [ebp - 0x28a8]
push eax
push 0
push 0
push 0x20
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x2834]
push ecx
mov edx, ecx
push edx
lea eax, [ebp - 0x2010]
push eax
push 0x453a88
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x2818], eax
test eax, eax
je 0x4049b7
mov ecx, dword [ebp - 0x2840]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x2844]
mov dword [0x45dcac], edx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x2818], 0
je 0x4049e5
mov eax, dword [ebp - 0x2824]
mov ecx, dword [eax + 0x20]
push 0
push 2
push 0x111
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x404a79
lea edx, [ebp - 0x2818]
push edx
mov edi, 0x93
call fcn.00402390
mov esi, eax
lea eax, [ebp - 0x281c]
push eax
mov edi, 0x305
mov dword [ebp - 4], 0
call fcn.00402390
add esp, 8
mov ecx, dword [ebp - 0x2824]
mov byte [ebp - 4], 1
mov esi, dword [esi]
mov eax, dword [eax]
push pe_nt_image_headers32
push esi
push eax
call fcn.0040b057
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x281c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404a50
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2818]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404a79
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00425324
mov esp, ebp
pop ebp
ret