Function at 0x407260
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 0x407359
pop edi
pop esi
pop ebp
mov eax, 0xfffffff8
pop ebx
add esp, 0x21c
ret
mov eax, dword [esp + 0x240]
cmp eax, 0xffffffff
je 0x407372
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 0x4076ae
cmp dword [ebp + 0x14], edx
jne 0x4076ab
cmp dword [ebp + 0x98], ebx
jne 0x4076ab
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 0x40764a
mov eax, dword [esp + 0x238]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4073f2
sub eax, edx
mov ebx, eax
cmp dword [ebp + 0x264], 7
jne 0x407420
lea eax, [ebp + 0x268]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407410
sub eax, edx
add eax, 3
mov dword [esp + 0x10], eax
cmp dword [ebp + 0x29c], 3
jne 0x407442
lea eax, [ebp + 0x2a0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407432
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.00408d52
mov esi, eax
add esp, 4
test esi, esi
jne 0x407482
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.00408840
mov edi, 0xfffffff3
jmp 0x407665
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 0x4074b1
mov ecx, dword [esp + 0x238]
movsx dx, byte [eax + ecx]
mov word [esi + eax*2], dx
inc eax
cmp eax, ebx
jl 0x4074a3
cmp dword [ebp + 0x264], 7
jne 0x407501
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 + 0x268]
lea edx, [ebp + 0x268]
inc eax
test cl, cl
je 0x407501
jmp 0x4074f0
movsx cx, cl
mov word [esi + eax*2], cx
mov cl, byte [edx + 1]
inc eax
inc edx
test cl, cl
jne 0x4074f0
cmp dword [ebp + 0x29c], 3
jne 0x407552
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 + 0x2a0]
lea edx, [ebp + 0x2a0]
inc eax
test cl, cl
je 0x407552
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 0x407540
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 0x4075c8
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.00408840
mov edi, 0xfffffff5
jmp 0x407665
push str.NetScheduleJobAdd
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4075f5
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.00408840
mov edi, 0xfffffffa
jmp 0x407665
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x34]
push edx
push 0
call eax
mov edi, eax
test edi, edi
je 0x407632
push str.Failed_to_schedule_the_process.
push edi
push 3
push 1
push ebp
call fcn.00408840
xor eax, eax
add esp, 0x14
cmp edi, 0x888
setne al
dec eax
and eax, 0xfffffffb
add eax, 0xfffffff1
mov edi, eax
jmp 0x407668
push str.Process_was_successfully_scheduled.
push 0
push 1
push 3
push ebp
call fcn.00408840
mov edi, 1
jmp 0x407665
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.00408840
mov edi, 0xfffffff4
add esp, 0x14
push ebp
call fcn.00401c50
mov ebx, dword [esp + 0x20]
add esp, 4
test ebx, ebx
je 0x407680
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
je 0x40768d
push esi
call fcn.004089b2
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40769e
push eax
call fcn.004089b2
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret
cmp eax, 4
jbe 0x407a23
cmp dword [ebp + 0x14], edx
jne 0x407a23
cmp dword [ebp + 0x98], ebx
jne 0x407a23
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 0x4076d2
xor eax, eax
jmp 0x4076f0
movsx dx, byte [eax + ebp + 0xcf]
mov word [esp + eax*2 + 0xf4], dx
inc eax
cmp eax, 0x33
jb 0x4076f0
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 0x407710
mov eax, dword [esp + 0x234]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407731
sub eax, edx
mov esi, eax
lea edi, [esi + esi + 2]
push edi
call fcn.00408d52
mov edx, eax
add esp, 4
cmp edx, ebx
mov dword [esp + 0x18], edx
jne 0x407776
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.00408840
add esp, 0x14
mov edi, 0xfffffff3
jmp 0x40768d
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 0x4077ae
mov ecx, dword [esp + 0x234]
jmp 0x4077a0
movsx di, byte [eax + ecx]
mov word [edx + eax*2], di
inc eax
cmp eax, esi
jl 0x4077a0
mov eax, dword [esp + 0x238]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4077b8
sub eax, edx
mov ebx, eax
cmp dword [ebp + 0x264], 7
jne 0x4077e5
lea eax, [ebp + 0x268]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4077d5
sub eax, edx
add eax, 3
mov dword [esp + 0x10], eax
cmp dword [ebp + 0x29c], 3
jne 0x407807
lea eax, [ebp + 0x2a0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4077f7
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.00408d52
mov esi, eax
add esp, 4
test esi, esi
jne 0x40784a
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.00408840
add esp, 0x14
mov edi, 0xfffffff3
jmp 0x407680
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 0x40787e
mov ecx, dword [esp + 0x238]
jmp 0x407870
movsx dx, byte [eax + ecx]
mov word [esi + eax*2], dx
inc eax
cmp eax, ebx
jl 0x407870
cmp dword [ebp + 0x264], 7
jne 0x4078c4
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 + 0x268]
lea edx, [ebp + 0x268]
inc eax
test cl, cl
je 0x4078c4
movsx cx, cl
mov word [esi + eax*2], cx
mov cl, byte [edx + 1]
inc eax
inc edx
test cl, cl
jne 0x4078b3
cmp dword [ebp + 0x29c], 3
jne 0x407912
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 + 0x2a0]
lea edx, [ebp + 0x2a0]
inc eax
test cl, cl
je 0x407912
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 0x407900
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x407946
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.00408840
add esp, 0x14
mov edi, 0xfffffff5
jmp 0x407675
push str.CreateProcessWithLogonW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x407979
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.00408840
add esp, 0x14
jmp 0x407675
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 0x4079e4
push str.Running_the_installation_process_as_an_administrator.
push 0
push 1
push 3
push ebp
mov edi, 2
call fcn.00408840
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 0x407675
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.00408840
add esp, 0x14
cmp edi, 0x52e
je 0x407a19
cmp edi, 0x3e5
je 0x407a19
mov edi, 0xffffffef
jmp 0x407675
mov edi, 0xfffffff4
jmp 0x407675
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 0x407b23
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407a60
sub eax, edx
mov edx, eax
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407a70
sub eax, esi
lea edx, [eax + edx + 0x80]
push edx
call fcn.00408d52
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x407ab8
mov eax, dword [esp + 0x234]
push edi
push eax
push str.Running__s__s_
push esi
call fcn.00409214
push esi
push ebx
push 1
push 3
push ebp
call fcn.00408840
push esi
call fcn.004089b2
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 0x407b0f
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 0x407b0f
cmp eax, 0x80
je 0x407b0f
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.00408840
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.00408840
add esp, 0x14
mov edi, 0xffffffee
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret