Function at 0x407a60
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x21c
push ebx
xor ebx, ebx
push ebp
mov ebp, dword [esp + 0x228]
xor eax, eax
push esi
push edi
mov ecx, 0x10
lea edi, [esp + 0xb4]
mov dword [esp + 0xb0], ebx
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov ecx, 0x10
lea edi, [esp + 0x70]
mov dword [esp + 0x6c], ebx
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [esp + 0x5a], ecx
mov dword [esp + 0x5e], ecx
mov dword [esp + 0x62], ecx
mov word [esp + 0x66], cx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov ecx, 0x19
lea edi, [esp + 0x1c6]
mov word [esp + 0x1c4], bx
rep stosd dword es:[edi], eax
xor edx, edx
mov ecx, 0x19
lea edi, [esp + 0xf6]
mov word [esp + 0xf4], bx
rep stosd dword es:[edi], eax
mov dword [esp + 0x50], edx
mov ecx, 0x19
lea edi, [esp + 0x15e]
xor esi, esi
cmp ebp, ebx
mov word [esp + 0x15c], bx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x54], edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x3c], eax
mov word [esp + 0x58], bx
rep stosd dword es:[edi], eax
mov dword [esp + 0x18], ebx
jne 0x407b59
pop edi
pop esi
pop ebp
mov eax, 0xfffffff8
pop ebx
add esp, 0x21c
ret
mov eax, dword [esp + 0x240]
cmp eax, 0xffffffff
je 0x407b72
imul eax, eax, 0x3e8
mov dword [esp + 0x240], eax
mov eax, 0xc
mov dword [esp + 0x40], eax
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 8]
cmp eax, 4
mov ecx, 0x44
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], 1
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov edx, 2
jne 0x407eae
cmp dword [ebp + 0x14], edx
jne 0x407eab
cmp dword [ebp + 0x98], ebx
jne 0x407eab
lea edx, [ebp + 0xcf]
push edx
lea eax, [ebp + 0x9c]
push eax
lea ecx, [ebp + 0x102]
push ecx
push ebp
call fcn.00401a80
add esp, 0x10
test eax, eax
je 0x407e4a
mov eax, dword [esp + 0x238]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407bf2
sub eax, edx
mov ebx, eax
cmp dword [ebp + 0x268], 7
jne 0x407c20
lea eax, [ebp + 0x26c]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407c10
sub eax, edx
add eax, 3
mov dword [esp + 0x10], eax
cmp dword [ebp + 0x2a0], 3
jne 0x407c42
lea eax, [ebp + 0x2a4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407c32
sub eax, edx
add eax, 3
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
lea edi, [ebx + edx]
add edi, esi
lea edi, [edi + edi + 0x24]
push edi
call fcn.00409552
mov esi, eax
add esp, 4
test esi, esi
jne 0x407c82
push str.Failed_to_allocate_memory_to_schedule_the_process.
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 3
push 1
push ebp
call fcn.00409040
mov edi, 0xfffffff3
jmp 0x407e65
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor eax, eax
test ebx, ebx
jle 0x407cb1
mov ecx, dword [esp + 0x238]
movsx dx, byte [eax + ecx]
mov word [esi + eax*2], dx
inc eax
cmp eax, ebx
jl 0x407ca3
cmp dword [ebp + 0x268], 7
jne 0x407d01
mov word [esi + eax*2], 0x20
inc eax
mov word [esi + eax*2], 0x2f
inc eax
mov word [esi + eax*2], 0x6d
inc eax
mov word [esi + eax*2], 0x3d
mov cl, byte [ebp + 0x26c]
lea edx, [ebp + 0x26c]
inc eax
test cl, cl
je 0x407d01
jmp 0x407cf0
movsx cx, cl
mov word [esi + eax*2], cx
mov cl, byte [edx + 1]
inc eax
inc edx
test cl, cl
jne 0x407cf0
cmp dword [ebp + 0x2a0], 3
jne 0x407d52
mov word [esi + eax*2], 0x20
inc eax
mov word [esi + eax*2], 0x2f
inc eax
mov word [esi + eax*2], 0x67
inc eax
mov word [esi + eax*2], 0x3d
mov cl, byte [ebp + 0x2a4]
lea edx, [ebp + 0x2a4]
inc eax
test cl, cl
je 0x407d52
lea eax, [esi + eax*2]
lea esp, [esp]
movsx cx, cl
mov word [eax], cx
mov cl, byte [edx + 1]
add eax, 2
inc edx
test cl, cl
jne 0x407d40
lea edx, [esp + 0x58]
push edx
mov dword [esp + 0x40], esi
mov byte [esp + 0x3d], 0
mov dword [esp + 0x38], 0
mov byte [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0x60]
movzx ecx, word [esp + 0x62]
imul eax, eax, 0x3c
lea edx, [eax + ecx + 1]
movzx eax, word [esp + 0x66]
imul edx, edx, 0xea60
add edx, eax
push str.netapi32.dll
mov dword [esp + 0x34], edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x407dc8
push str.Failed_to_load_the_NETAPI32.DLL
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 3
push 1
push ebp
call fcn.00409040
mov edi, 0xfffffff5
jmp 0x407e65
push str.NetScheduleJobAdd
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x407df5
push str.Failed_to_get_the_NetScheduleJobAdd_function.
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 3
push 1
push ebp
call fcn.00409040
mov edi, 0xfffffffa
jmp 0x407e65
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x34]
push edx
push 0
call eax
mov edi, eax
test edi, edi
je 0x407e32
push str.Failed_to_schedule_the_process.
push edi
push 3
push 1
push ebp
call fcn.00409040
xor eax, eax
add esp, 0x14
cmp edi, 0x888
setne al
dec eax
and eax, 0xfffffffb
add eax, 0xfffffff1
mov edi, eax
jmp 0x407e68
push str.Process_was_successfully_scheduled.
push 0
push 1
push 3
push ebp
call fcn.00409040
mov edi, 1
jmp 0x407e65
push str.Failed_to_logon_as_Administrator_to_schedule_the_process.
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 3
push 1
push ebp
call fcn.00409040
mov edi, 0xfffffff4
add esp, 0x14
push ebp
call fcn.00401c50
mov ebx, dword [esp + 0x20]
add esp, 4
test ebx, ebx
je 0x407e80
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
je 0x407e8d
push esi
call fcn.004091b2
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x407e9e
push eax
call fcn.004091b2
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret
cmp eax, 4
jbe 0x408223
cmp dword [ebp + 0x14], edx
jne 0x408223
cmp dword [ebp + 0x98], ebx
jne 0x408223
mov dword [esp + 0xb0], ecx
xor eax, eax
movsx cx, byte [eax + ebp + 0x9c]
mov word [esp + eax*2 + 0x1c4], cx
inc eax
cmp eax, 0x33
jb 0x407ed2
xor eax, eax
jmp 0x407ef0
movsx dx, byte [eax + ebp + 0xcf]
mov word [esp + eax*2 + 0xf4], dx
inc eax
cmp eax, 0x33
jb 0x407ef0
xor eax, eax
lea esp, [esp]
movsx cx, byte [eax + ebp + 0x102]
mov word [esp + eax*2 + 0x15c], cx
inc eax
cmp eax, 0x33
jb 0x407f10
mov eax, dword [esp + 0x234]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407f31
sub eax, edx
mov esi, eax
lea edi, [esi + esi + 2]
push edi
call fcn.00409552
mov edx, eax
add esp, 4
cmp edx, ebx
mov dword [esp + 0x18], edx
jne 0x407f76
push str.Could_not_allocate_the_memory_to_convert_the_executable_name.
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 3
push 1
push ebp
call fcn.00409040
add esp, 0x14
mov edi, 0xfffffff3
jmp 0x407e8d
mov ecx, edi
mov ebx, ecx
shr ecx, 2
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
xor eax, eax
test esi, esi
jle 0x407fae
mov ecx, dword [esp + 0x234]
jmp 0x407fa0
movsx di, byte [eax + ecx]
mov word [edx + eax*2], di
inc eax
cmp eax, esi
jl 0x407fa0
mov eax, dword [esp + 0x238]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407fb8
sub eax, edx
mov ebx, eax
cmp dword [ebp + 0x268], 7
jne 0x407fe5
lea eax, [ebp + 0x26c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407fd5
sub eax, edx
add eax, 3
mov dword [esp + 0x10], eax
cmp dword [ebp + 0x2a0], 3
jne 0x408007
lea eax, [ebp + 0x2a4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407ff7
sub eax, edx
add eax, 3
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
lea edi, [ebx + edx]
add edi, esi
lea edi, [edi + edi + 0x24]
push edi
call fcn.00409552
mov esi, eax
add esp, 4
test esi, esi
jne 0x40804a
push str.Failed_to_allocate_memory_to_schedule_the_process.
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 3
push 1
push ebp
call fcn.00409040
add esp, 0x14
mov edi, 0xfffffff3
jmp 0x407e80
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor eax, eax
test ebx, ebx
jle 0x40807e
mov ecx, dword [esp + 0x238]
jmp 0x408070
movsx dx, byte [eax + ecx]
mov word [esi + eax*2], dx
inc eax
cmp eax, ebx
jl 0x408070
cmp dword [ebp + 0x268], 7
jne 0x4080c4
mov word [esi + eax*2], 0x20
inc eax
mov word [esi + eax*2], 0x2f
inc eax
mov word [esi + eax*2], 0x6d
inc eax
mov word [esi + eax*2], 0x3d
mov cl, byte [ebp + 0x26c]
lea edx, [ebp + 0x26c]
inc eax
test cl, cl
je 0x4080c4
movsx cx, cl
mov word [esi + eax*2], cx
mov cl, byte [edx + 1]
inc eax
inc edx
test cl, cl
jne 0x4080b3
cmp dword [ebp + 0x2a0], 3
jne 0x408112
mov word [esi + eax*2], 0x20
inc eax
mov word [esi + eax*2], 0x2f
inc eax
mov word [esi + eax*2], 0x67
inc eax
mov word [esi + eax*2], 0x3d
mov cl, byte [ebp + 0x2a4]
lea edx, [ebp + 0x2a4]
inc eax
test cl, cl
je 0x408112
lea eax, [esi + eax*2]
lea esp, [esp]
movsx cx, cl
mov word [eax], cx
mov cl, byte [edx + 1]
add eax, 2
inc edx
test cl, cl
jne 0x408100
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x408146
push str.Failed_to_load_the_ADVAPI32.DLL
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 3
push 1
push ebp
call fcn.00409040
add esp, 0x14
mov edi, 0xfffffff5
jmp 0x407e75
push str.CreateProcessWithLogonW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x408179
push str.Failed_to_get_the_CreateProcessWithLogonW_function.
mov edi, 0xfffffffa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 3
push 1
push ebp
call fcn.00409040
add esp, 0x14
jmp 0x407e75
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0xb4]
push ecx
push 0
push 0
push 0
push esi
push edx
push 1
lea ecx, [esp + 0x114]
push ecx
lea edx, [esp + 0x180]
push edx
lea ecx, [esp + 0x1ec]
push ecx
call eax
test eax, eax
je 0x4081e4
push str.Running_the_installation_process_as_an_administrator.
push 0
push 1
push 3
push ebp
mov edi, 2
call fcn.00409040
mov edx, dword [esp + 0x34]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x14
push edx
call ebp
mov eax, dword [esp + 0x24]
push eax
call ebp
jmp 0x407e75
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.Failed_to_create_the_installation_process_as_an_administrator.
mov edi, eax
push edi
push 3
push 1
push ebp
call fcn.00409040
add esp, 0x14
cmp edi, 0x52e
je 0x408219
cmp edi, 0x3e5
je 0x408219
mov edi, 0xffffffef
jmp 0x407e75
mov edi, 0xfffffff4
jmp 0x407e75
mov edi, dword [esp + 0x238]
mov esi, dword [esp + 0x234]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x70]
push edx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x5c]
push ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x408323
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408260
sub eax, edx
mov edx, eax
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408270
sub eax, esi
lea edx, [eax + edx + 0x80]
push edx
call fcn.00409552
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4082b8
mov eax, dword [esp + 0x234]
push edi
push eax
push str.Running__s__s_
push esi
call fcn.00409a14
push esi
push ebx
push 1
push 3
push ebp
call fcn.00409040
push esi
call fcn.004091b2
add esp, 0x28
mov ecx, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov eax, dword [esp + 0x23c]
xor edi, edi
cmp eax, 1
jne 0x40830f
mov edx, dword [esp + 0x240]
mov eax, dword [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x40830f
cmp eax, 0x80
je 0x40830f
push str.Timeout_or_other_error_occurred_while_waiting_for_the_installation_process.
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 3
push 1
push ebp
call fcn.00409040
add esp, 0x14
mov edi, 0xffffffea
mov ecx, dword [esp + 0x20]
push ecx
call esi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret
push str.Failed_to_create_the_installation_process.
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 3
push 1
push ebp
call fcn.00409040
add esp, 0x14
mov edi, 0xffffffee
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret