Function at 0x40a7e0
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 0x40a8d9
pop edi
pop esi
pop ebp
mov eax, 0xfffffff8
pop ebx
add esp, 0x21c
ret
mov eax, dword [esp + 0x240]
cmp eax, 0xffffffff
je 0x40a8f2
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 0x40ac2e
cmp dword [ebp + 0x14], edx
jne 0x40ac2b
cmp dword [ebp + 0x98], ebx
jne 0x40ac2b
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 0x40abca
mov eax, dword [esp + 0x238]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a972
sub eax, edx
mov ebx, eax
cmp dword [ebp + 0x268], 7
jne 0x40a9a0
lea eax, [ebp + 0x26c]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a990
sub eax, edx
add eax, 3
mov dword [esp + 0x10], eax
cmp dword [ebp + 0x2c0], 3
jne 0x40a9c2
lea eax, [ebp + 0x2c4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a9b2
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.0040c2e2
mov esi, eax
add esp, 4
test esi, esi
jne 0x40aa02
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.0040bdd0
mov edi, 0xfffffff3
jmp 0x40abe5
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 0x40aa31
mov ecx, dword [esp + 0x238]
movsx dx, byte [eax + ecx]
mov word [esi + eax*2], dx
inc eax
cmp eax, ebx
jl 0x40aa23
cmp dword [ebp + 0x268], 7
jne 0x40aa81
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 0x40aa81
jmp 0x40aa70
movsx cx, cl
mov word [esi + eax*2], cx
mov cl, byte [edx + 1]
inc eax
inc edx
test cl, cl
jne 0x40aa70
cmp dword [ebp + 0x2c0], 3
jne 0x40aad2
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 0x40aad2
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 0x40aac0
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 0x40ab48
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.0040bdd0
mov edi, 0xfffffff5
jmp 0x40abe5
push str.NetScheduleJobAdd
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40ab75
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.0040bdd0
mov edi, 0xfffffffa
jmp 0x40abe5
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x34]
push edx
push 0
call eax
mov edi, eax
test edi, edi
je 0x40abb2
push str.Failed_to_schedule_the_process.
push edi
push 3
push 1
push ebp
call fcn.0040bdd0
xor eax, eax
add esp, 0x14
cmp edi, 0x888
setne al
dec eax
and eax, 0xfffffffb
add eax, 0xfffffff1
mov edi, eax
jmp 0x40abe8
push str.Process_was_successfully_scheduled.
push 0
push 1
push 3
push ebp
call fcn.0040bdd0
mov edi, 1
jmp 0x40abe5
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.0040bdd0
mov edi, 0xfffffff4
add esp, 0x14
push ebp
call fcn.00401c50
mov ebx, dword [esp + 0x20]
add esp, 4
test ebx, ebx
je 0x40ac00
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
je 0x40ac0d
push esi
call fcn.0040bf42
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40ac1e
push eax
call fcn.0040bf42
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret
cmp eax, 4
jbe 0x40afa3
cmp dword [ebp + 0x14], edx
jne 0x40afa3
cmp dword [ebp + 0x98], ebx
jne 0x40afa3
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 0x40ac52
xor eax, eax
jmp 0x40ac70
movsx dx, byte [eax + ebp + 0xcf]
mov word [esp + eax*2 + 0xf4], dx
inc eax
cmp eax, 0x33
jb 0x40ac70
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 0x40ac90
mov eax, dword [esp + 0x234]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40acb1
sub eax, edx
mov esi, eax
lea edi, [esi + esi + 2]
push edi
call fcn.0040c2e2
mov edx, eax
add esp, 4
cmp edx, ebx
mov dword [esp + 0x18], edx
jne 0x40acf6
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.0040bdd0
add esp, 0x14
mov edi, 0xfffffff3
jmp 0x40ac0d
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 0x40ad2e
mov ecx, dword [esp + 0x234]
jmp 0x40ad20
movsx di, byte [eax + ecx]
mov word [edx + eax*2], di
inc eax
cmp eax, esi
jl 0x40ad20
mov eax, dword [esp + 0x238]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ad38
sub eax, edx
mov ebx, eax
cmp dword [ebp + 0x268], 7
jne 0x40ad65
lea eax, [ebp + 0x26c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ad55
sub eax, edx
add eax, 3
mov dword [esp + 0x10], eax
cmp dword [ebp + 0x2c0], 3
jne 0x40ad87
lea eax, [ebp + 0x2c4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ad77
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.0040c2e2
mov esi, eax
add esp, 4
test esi, esi
jne 0x40adca
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.0040bdd0
add esp, 0x14
mov edi, 0xfffffff3
jmp 0x40ac00
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 0x40adfe
mov ecx, dword [esp + 0x238]
jmp 0x40adf0
movsx dx, byte [eax + ecx]
mov word [esi + eax*2], dx
inc eax
cmp eax, ebx
jl 0x40adf0
cmp dword [ebp + 0x268], 7
jne 0x40ae44
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 0x40ae44
movsx cx, cl
mov word [esi + eax*2], cx
mov cl, byte [edx + 1]
inc eax
inc edx
test cl, cl
jne 0x40ae33
cmp dword [ebp + 0x2c0], 3
jne 0x40ae92
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 0x40ae92
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 0x40ae80
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x40aec6
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.0040bdd0
add esp, 0x14
mov edi, 0xfffffff5
jmp 0x40abf5
push str.CreateProcessWithLogonW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40aef9
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.0040bdd0
add esp, 0x14
jmp 0x40abf5
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 0x40af64
push str.Running_the_installation_process_as_an_administrator.
push 0
push 1
push 3
push ebp
mov edi, 2
call fcn.0040bdd0
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 0x40abf5
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.0040bdd0
add esp, 0x14
cmp edi, 0x52e
je 0x40af99
cmp edi, 0x3e5
je 0x40af99
mov edi, 0xffffffef
jmp 0x40abf5
mov edi, 0xfffffff4
jmp 0x40abf5
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 0x40b0a3
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40afe0
sub eax, edx
mov edx, eax
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40aff0
sub eax, esi
lea edx, [eax + edx + 0x80]
push edx
call fcn.0040c2e2
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x40b038
mov eax, dword [esp + 0x234]
push edi
push eax
push str.Running__s__s_
push esi
call fcn.0040c706
push esi
push ebx
push 1
push 3
push ebp
call fcn.0040bdd0
push esi
call fcn.0040bf42
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 0x40b08f
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 0x40b08f
cmp eax, 0x80
je 0x40b08f
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.0040bdd0
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.0040bdd0
add esp, 0x14
mov edi, 0xffffffee
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret