Function at 0x40a790
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 0x40a889
pop edi
pop esi
pop ebp
mov eax, 0xfffffff8
pop ebx
add esp, 0x21c
ret
mov eax, dword [esp + 0x240]
cmp eax, 0xffffffff
je 0x40a8a2
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 0x40abde
cmp dword [ebp + 0x14], edx
jne 0x40abdb
cmp dword [ebp + 0x98], ebx
jne 0x40abdb
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 0x40ab7a
mov eax, dword [esp + 0x238]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a922
sub eax, edx
mov ebx, eax
cmp dword [ebp + 0x268], 7
jne 0x40a950
lea eax, [ebp + 0x26c]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a940
sub eax, edx
add eax, 3
mov dword [esp + 0x10], eax
cmp dword [ebp + 0x2c0], 3
jne 0x40a972
lea eax, [ebp + 0x2c4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a962
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.0040c292
mov esi, eax
add esp, 4
test esi, esi
jne 0x40a9b2
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.0040bd80
mov edi, 0xfffffff3
jmp 0x40ab95
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 0x40a9e1
mov ecx, dword [esp + 0x238]
movsx dx, byte [eax + ecx]
mov word [esi + eax*2], dx
inc eax
cmp eax, ebx
jl 0x40a9d3
cmp dword [ebp + 0x268], 7
jne 0x40aa31
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 0x40aa31
jmp 0x40aa20
movsx cx, cl
mov word [esi + eax*2], cx
mov cl, byte [edx + 1]
inc eax
inc edx
test cl, cl
jne 0x40aa20
cmp dword [ebp + 0x2c0], 3
jne 0x40aa82
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 + 0x2c4]
lea edx, [ebp + 0x2c4]
inc eax
test cl, cl
je 0x40aa82
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 0x40aa70
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 0x40aaf8
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.0040bd80
mov edi, 0xfffffff5
jmp 0x40ab95
push str.NetScheduleJobAdd
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40ab25
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.0040bd80
mov edi, 0xfffffffa
jmp 0x40ab95
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x34]
push edx
push 0
call eax
mov edi, eax
test edi, edi
je 0x40ab62
push str.Failed_to_schedule_the_process.
push edi
push 3
push 1
push ebp
call fcn.0040bd80
xor eax, eax
add esp, 0x14
cmp edi, 0x888
setne al
dec eax
and eax, 0xfffffffb
add eax, 0xfffffff1
mov edi, eax
jmp 0x40ab98
push str.Process_was_successfully_scheduled.
push 0
push 1
push 3
push ebp
call fcn.0040bd80
mov edi, 1
jmp 0x40ab95
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.0040bd80
mov edi, 0xfffffff4
add esp, 0x14
push ebp
call fcn.00401c50
mov ebx, dword [esp + 0x20]
add esp, 4
test ebx, ebx
je 0x40abb0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
je 0x40abbd
push esi
call fcn.0040bef2
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40abce
push eax
call fcn.0040bef2
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret
cmp eax, 4
jbe 0x40af53
cmp dword [ebp + 0x14], edx
jne 0x40af53
cmp dword [ebp + 0x98], ebx
jne 0x40af53
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 0x40ac02
xor eax, eax
jmp 0x40ac20
movsx dx, byte [eax + ebp + 0xcf]
mov word [esp + eax*2 + 0xf4], dx
inc eax
cmp eax, 0x33
jb 0x40ac20
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 0x40ac40
mov eax, dword [esp + 0x234]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ac61
sub eax, edx
mov esi, eax
lea edi, [esi + esi + 2]
push edi
call fcn.0040c292
mov edx, eax
add esp, 4
cmp edx, ebx
mov dword [esp + 0x18], edx
jne 0x40aca6
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.0040bd80
add esp, 0x14
mov edi, 0xfffffff3
jmp 0x40abbd
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 0x40acde
mov ecx, dword [esp + 0x234]
jmp 0x40acd0
movsx di, byte [eax + ecx]
mov word [edx + eax*2], di
inc eax
cmp eax, esi
jl 0x40acd0
mov eax, dword [esp + 0x238]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ace8
sub eax, edx
mov ebx, eax
cmp dword [ebp + 0x268], 7
jne 0x40ad15
lea eax, [ebp + 0x26c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ad05
sub eax, edx
add eax, 3
mov dword [esp + 0x10], eax
cmp dword [ebp + 0x2c0], 3
jne 0x40ad37
lea eax, [ebp + 0x2c4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ad27
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.0040c292
mov esi, eax
add esp, 4
test esi, esi
jne 0x40ad7a
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.0040bd80
add esp, 0x14
mov edi, 0xfffffff3
jmp 0x40abb0
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 0x40adae
mov ecx, dword [esp + 0x238]
jmp 0x40ada0
movsx dx, byte [eax + ecx]
mov word [esi + eax*2], dx
inc eax
cmp eax, ebx
jl 0x40ada0
cmp dword [ebp + 0x268], 7
jne 0x40adf4
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 0x40adf4
movsx cx, cl
mov word [esi + eax*2], cx
mov cl, byte [edx + 1]
inc eax
inc edx
test cl, cl
jne 0x40ade3
cmp dword [ebp + 0x2c0], 3
jne 0x40ae42
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 + 0x2c4]
lea edx, [ebp + 0x2c4]
inc eax
test cl, cl
je 0x40ae42
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 0x40ae30
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x40ae76
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.0040bd80
add esp, 0x14
mov edi, 0xfffffff5
jmp 0x40aba5
push str.CreateProcessWithLogonW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40aea9
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.0040bd80
add esp, 0x14
jmp 0x40aba5
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 0x40af14
push str.Running_the_installation_process_as_an_administrator.
push 0
push 1
push 3
push ebp
mov edi, 2
call fcn.0040bd80
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 0x40aba5
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.0040bd80
add esp, 0x14
cmp edi, 0x52e
je 0x40af49
cmp edi, 0x3e5
je 0x40af49
mov edi, 0xffffffef
jmp 0x40aba5
mov edi, 0xfffffff4
jmp 0x40aba5
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 0x40b053
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40af90
sub eax, edx
mov edx, eax
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40afa0
sub eax, esi
lea edx, [eax + edx + 0x80]
push edx
call fcn.0040c292
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x40afe8
mov eax, dword [esp + 0x234]
push edi
push eax
push str.Running__s__s_
push esi
call fcn.0040c6b6
push esi
push ebx
push 1
push 3
push ebp
call fcn.0040bd80
push esi
call fcn.0040bef2
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 0x40b03f
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 0x40b03f
cmp eax, 0x80
je 0x40b03f
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.0040bd80
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.0040bd80
add esp, 0x14
mov edi, 0xffffffee
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret