Function at 0x4089e0
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f30c
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x10a8
call fcn.0040e970
mov eax, dword [0x41500c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x102c], esi
mov eax, dword [ebx + 8]
push ecx
push 0x410c7c
push 0
mov dword [ebp - 0x1044], eax
call fcn.004071a0
mov ecx, eax
call fcn.0040a8f0
push ecx
push 0x410c94
push 0
call fcn.004071a0
mov ecx, eax
call fcn.0040a8f0
call fcn.00401e50
mov ecx, eax
test ecx, ecx
jne 0x408a75
push 0x80004005
call fcn.00401f40
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x103c], eax
lea eax, [ebp - 0x103c]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.00401090
add esp, 4
cmp eax, 0x800b0100
jne 0x408ad7
push dword [ebp - 0x103c]
lea eax, [ebp - 0x820]
push 0x410cc4
push eax
call fcn.004074f0
add esp, 8
mov byte [ebp - 4], 1
push dword [eax]
push 2
call fcn.004071a0
mov ecx, eax
call fcn.0040a8f0
jmp 0x408b98
push ecx
push 0x410cd8
push 0
call fcn.004071a0
mov ecx, eax
call fcn.0040a8f0
push esi
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x1050], esi
test esi, esi
jne 0x408bbb
lea eax, [ebp - 0x818]
mov dword [ebp - 0x81c], 0x400
mov dword [ebp - 0x820], eax
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x820]
call fcn.0040a7b0
sub esp, 0x808
mov byte [ebp - 4], 3
mov edi, esp
lea eax, [ebp - 0x1028]
mov ecx, 0x202
lea esi, [ebp - 0x820]
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0x102c]
push str.OpenProcess_id_u_
push eax
call fcn.004074f0
add esp, 0x810
mov byte [ebp - 4], 4
push dword [eax]
push 2
call fcn.004071a0
mov ecx, eax
call fcn.0040a8f0
mov eax, dword [ebp - 0x1028]
lea ecx, [ebp - 0x1020]
cmp eax, ecx
je 0x408b98
push eax
call fcn.0040dca4
add esp, 4
mov eax, dword [ebp - 0x820]
lea ecx, [ebp - 0x818]
cmp eax, ecx
je 0x408bb1
push eax
call fcn.0040dca4
add esp, 4
mov esi, 0x80004005
jmp 0x409035
mov dword [ebp - 0x1054], esi
push ecx
push 0x410d18
push 0
mov byte [ebp - 4], 5
call fcn.004071a0
mov ecx, eax
call fcn.0040a8f0
lea eax, [ebp - 0x1030]
mov dword [ebp - 0x1030], 0
push eax
push 0xf01ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x408cbc
lea eax, [ebp - 0x818]
mov dword [ebp - 0x81c], 0x400
mov dword [ebp - 0x820], eax
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x820]
call fcn.0040a7b0
sub esp, 0x808
mov byte [ebp - 4], 7
mov edi, esp
lea eax, [ebp - 0x1028]
mov ecx, 0x202
lea esi, [ebp - 0x820]
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0x102c]
push str.OpenProcessToken_id_u_
push eax
call fcn.004074f0
add esp, 0x810
mov byte [ebp - 4], 8
push dword [eax]
push 2
call fcn.004071a0
mov ecx, eax
call fcn.0040a8f0
mov eax, dword [ebp - 0x1028]
lea ecx, [ebp - 0x1020]
cmp eax, ecx
je 0x408c93
push eax
call fcn.0040dca4
add esp, 4
mov eax, dword [ebp - 0x820]
lea ecx, [ebp - 0x818]
cmp eax, ecx
je 0x408cac
push eax
call fcn.0040dca4
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x80004005
jmp 0x40902d
mov eax, dword [ebp - 0x1030]
mov dword [ebp - 0x104c], eax
mov dword [ebp - 0x1058], eax
push ecx
push 0x410d64
push 0
mov byte [ebp - 4], 9
call fcn.004071a0
mov ecx, eax
call fcn.0040a8f0
lea eax, [ebp - 0x1040]
mov dword [ebp - 0x1034], 0
push eax
push 4
lea eax, [ebp - 0x1034]
mov dword [ebp - 0x1040], 0
push eax
push 0x13
push dword [ebp - 0x1030]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x408d81
lea eax, [ebp - 0x818]
mov dword [ebp - 0x81c], 0x400
mov dword [ebp - 0x820], eax
mov byte [ebp - 4], 0xa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x820]
call fcn.0040a7b0
sub esp, 0x808
mov byte [ebp - 4], 0xb
mov edi, esp
lea eax, [ebp - 0x1028]
mov ecx, 0x202
lea esi, [ebp - 0x820]
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0x102c]
push str.GetTokenInformation_id_u_
push eax
call fcn.004074f0
mov byte [ebp - 4], 0xc
jmp 0x408e2e
push dword [ebp - 0x1034]
lea eax, [ebp - 0x1028]
push str.tlt.token:__X
push eax
call fcn.004074f0
add esp, 8
mov byte [ebp - 4], 0xd
push dword [eax]
push 0
call fcn.004071a0
mov ecx, eax
call fcn.0040a8f0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1020]
mov eax, dword [ebp - 0x1028]
cmp eax, ecx
je 0x408dcc
push eax
call fcn.0040dca4
add esp, 4
push 0
push dword [ebp - 0x1030]
lea eax, [ebp - 0x1038]
mov dword [ebp - 0x1038], 0
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x408e80
lea ecx, [ebp - 0x820]
call fcn.0040a880
sub esp, 0x808
mov byte [ebp - 4], 0xe
mov edi, esp
mov esi, eax
lea eax, [ebp - 0x1028]
mov ecx, 0x202
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0x102c]
push str.CreateEnvironmentBlock_id_u_
push eax
call fcn.004074f0
mov byte [ebp - 4], 0xf
add esp, 0x810
push dword [eax]
push 2
call fcn.004071a0
mov ecx, eax
call fcn.0040a8f0
mov eax, dword [ebp - 0x1028]
lea ecx, [ebp - 0x1020]
cmp eax, ecx
je 0x408e5d
push eax
call fcn.0040dca4
add esp, 4
mov eax, dword [ebp - 0x820]
lea ecx, [ebp - 0x818]
cmp eax, ecx
je 0x408e76
push eax
call fcn.0040dca4
add esp, 4
mov esi, 0x80004005
jmp 0x40901f
mov eax, dword [ebp - 0x1038]
mov dword [ebp - 0x1048], eax
mov dword [ebp - 0x105c], eax
push ecx
push 0x410e30
push 0
mov byte [ebp - 4], 0x10
call fcn.004071a0
mov ecx, eax
call fcn.0040a8f0
push 0x44
lea eax, [ebp - 0x10b8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x10b8], 0x44
xorps xmm0, xmm0
lea ecx, [ebp - 0x102c]
movups xmmword [ebp - 0x106c], xmm0
call fcn.00402d50
push dword [ebp - 0x1044]
lea eax, [ebp - 0x102c]
mov byte [ebp - 4], 0x11
push edi
push str.__s___s
push eax
call fcn.00401740
mov eax, dword [ebp - 0x102c]
add esp, 0x10
cmp dword [eax - 4], 1
jle 0x408f1b
push dword [eax - 0xc]
lea ecx, [ebp - 0x102c]
call fcn.00401a80
mov eax, dword [ebp - 0x102c]
lea ecx, [ebp - 0x106c]
push ecx
lea ecx, [ebp - 0x10b8]
push ecx
push 0
push dword [ebp - 0x1038]
push 0x400
push 0
push 0
push 0
push eax
push edi
push dword [ebp - 0x1034]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x408fe2
lea ecx, [ebp - 0x820]
call fcn.0040a880
sub esp, 0x808
mov byte [ebp - 4], 0x12
mov edi, esp
mov esi, eax
lea eax, [ebp - 0x1028]
mov ecx, 0x202
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0x102c]
push dword [ebp - 0x1034]
push str.CreateProcessAsUser_tlt.token:__X___s_
push eax
call fcn.004074f0
add esp, 0x814
mov byte [ebp - 4], 0x13
push dword [eax]
push 2
call fcn.004071a0
mov ecx, eax
call fcn.0040a8f0
mov eax, dword [ebp - 0x1028]
lea ecx, [ebp - 0x1020]
cmp eax, ecx
je 0x408fc2
push eax
call fcn.0040dca4
add esp, 4
mov eax, dword [ebp - 0x820]
lea ecx, [ebp - 0x818]
cmp eax, ecx
je 0x408fdb
push eax
call fcn.0040dca4
add esp, 4
mov esi, 0x80004005
jmp 0x409008
push ecx
push 0x410ea8
push 0
call fcn.004071a0
mov ecx, eax
call fcn.0040a8f0
push dword [ebp - 0x106c]
call esi
push dword [ebp - 0x1068]
call esi
xor esi, esi
lea ecx, [ebp - 0x102c]
call fcn.00401450
push dword [ebp - 0x1048]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
push dword [ebp - 0x104c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x1050]
call edi
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edi, dword [ebp - 0x103c]
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40905a
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040d7a5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret