Function at 0x51a620
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b6dc
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x61094c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xf8], esi
mov dword [ebp - 0x100], eax
test eax, eax
jne 0x51a697
push str.invalid_substitutor
push 0x62
push str.XMLUpdater::v2::CExecuteLocalCommand::ExecuteLocalCommand
push str.E:BT71e4c9fa_1978_4386_a3da_49ea31fa22b7WebAdvisor_XmlUpdater_srcXmlUpdaterExecuteLocalCommand.cpp
push 1
call fcn.00500ef0
add esp, 0x14
xor al, al
jmp 0x51aba5
cmp byte [ebp + 0x20], 0
je 0x51a6df
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x51a6a7
mov eax, dword [esi]
push eax
call fcn.00519100
add esp, 4
test al, al
jne 0x51a6df
cmp dword [esi + 0x14], 8
jb 0x51a6bc
mov esi, dword [esi]
push esi
push str.Signature_check_failed_for_command__s
push 0x67
push str.XMLUpdater::v2::CExecuteLocalCommand::ExecuteLocalCommand
push str.E:BT71e4c9fa_1978_4386_a3da_49ea31fa22b7WebAdvisor_XmlUpdater_srcXmlUpdaterExecuteLocalCommand.cpp
push 1
call fcn.00500ef0
add esp, 0x18
xor al, al
jmp 0x51aba5
xorps xmm0, xmm0
movups xmmword [ebp - 0xb0], xmm0
cmp byte [ebp + 0x18], 0
mov dword [ebp - 4], 0
movlpd qword [ebp - 0x98], xmm0
movlpd qword [ebp - 0x90], xmm0
movlpd qword [ebp - 0x88], xmm0
movlpd qword [ebp - 0x80], xmm0
movlpd qword [ebp - 0x78], xmm0
movlpd qword [ebp - 0x70], xmm0
movlpd qword [ebp - 0x68], xmm0
movlpd qword [ebp - 0x60], xmm0
mov dword [ebp - 0x9c], 0x44
je 0x51a73e
xor eax, eax
mov dword [ebp - 0x70], 1
mov word [ebp - 0x6c], ax
mov ecx, dword [esi + 0x10]
mov eax, SysReAllocString
sub eax, ecx
mov dword [ebp - 0xf0], ecx
cmp eax, 1
jb 0x51abc2
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x40], esi
jb 0x51a765
mov eax, dword [esi]
mov dword [ebp - 0x40], eax
inc ecx
mov dword [ebp - 0xec], 0
mov edi, 7
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 0
lea eax, [ebp - 0xec]
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0xb8], eax
cmp ecx, edi
jbe 0x51a7e9
mov edi, ecx
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x51a7b3
mov edi, SysReAllocString
jmp 0x51a7bd
mov eax, 0xa
cmp edi, eax
cmovb edi, eax
xor ecx, ecx
mov eax, edi
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
lea ecx, [ebp - 0xec]
call fcn.00425ae0
mov ecx, dword [ebp - 0xbc]
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xdc], ecx
mov ecx, 0x22
mov dword [ebp - 0xd8], edi
mov word [eax], cx
lea ecx, [eax + 2]
mov eax, dword [ebp - 0xf0]
add eax, eax
push eax
push dword [ebp - 0x40]
push ecx
call fcn.00555ce0
mov eax, dword [ebp - 0xb8]
xor edx, edx
mov ecx, dword [ebp - 0xbc]
add esp, 0xc
mov word [eax + ecx*2], dx
push 2
push 0x5bdb44
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 1
call fcn.00425920
mov dword [ebp - 0xd4], 0
xor ecx, ecx
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xd4], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xc4], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov eax, dword [ebp - 0xf4]
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x51a89a
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0xd4]
call fcn.00425920
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x48], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0xd4]
call fcn.00424600
lea ecx, [ebp - 0xec]
call fcn.00424600
mov edi, dword [ebp - 0x48]
xor ecx, ecx
inc edi
mov edx, 2
mov eax, edi
mul edx
push 0x5af620
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0055466b
add esp, 8
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 6
test eax, eax
jne 0x51a937
push str.Failed_to_allocate_memory_for_cmdLine.
push 0x77
push str.XMLUpdater::v2::CExecuteLocalCommand::ExecuteLocalCommand
push str.E:BT71e4c9fa_1978_4386_a3da_49ea31fa22b7WebAdvisor_XmlUpdater_srcXmlUpdaterExecuteLocalCommand.cpp
push 1
call fcn.00500ef0
add esp, 0x14
mov byte [ebp - 0xb1], 0
jmp 0x51ab75
cmp dword [ebp - 0x44], 8
lea edx, [ebp - 0x58]
cmovae edx, dword [ebp - 0x58]
test edi, edi
je 0x51a99c
cmp edi, 0x7fffffff
ja 0x51a993
mov esi, SysReAllocString
mov ecx, eax
sub esi, edi
sub edx, eax
nop dword [eax]
lea eax, [esi + edi]
test eax, eax
je 0x51a97b
movzx eax, word [edx + ecx]
test ax, ax
je 0x51a97b
mov word [ecx], ax
add ecx, 2
sub edi, 1
jne 0x51a960
mov esi, dword [ebp - 0xf8]
lea eax, [ecx - 2]
test edi, edi
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x40]
jmp 0x51a99c
test edi, edi
je 0x51a99c
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 0xfc]
cmp dword [ecx + 0x14], 8
jb 0x51a9aa
mov ecx, dword [ecx]
lea edx, [ebp - 0xb0]
push edx
lea edx, [ebp - 0x9c]
push edx
push ecx
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x51a9f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x40]
push eax
push esi
push str.Unable_to_run__s__error___d_
push 0x7e
push str.XMLUpdater::v2::CExecuteLocalCommand::ExecuteLocalCommand
push str.E:BT71e4c9fa_1978_4386_a3da_49ea31fa22b7WebAdvisor_XmlUpdater_srcXmlUpdaterExecuteLocalCommand.cpp
push 1
call fcn.00500ef0
add esp, 0x1c
jmp 0x51aa68
push 0xffffffffffffffff
push dword [ebp - 0xb0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x51aa1f
cmp dword [esi + 0x14], 8
jb 0x51aa12
mov esi, dword [esi]
push esi
push str.Wait_for_process_failed_for_command__s
push 0x84
jmp 0x51aa51
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], 0
push eax
push dword [ebp - 0xb0]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x51aa7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_get_process_exit_code___d_
push 0x8b
push str.XMLUpdater::v2::CExecuteLocalCommand::ExecuteLocalCommand
push str.E:BT71e4c9fa_1978_4386_a3da_49ea31fa22b7WebAdvisor_XmlUpdater_srcXmlUpdaterExecuteLocalCommand.cpp
push 1
call fcn.00500ef0
mov esi, dword [ebp - 0x40]
add esp, 0x18
mov byte [ebp - 0xb1], 0
test esi, esi
je 0x51ab75
jmp 0x51ab6c
cmp byte [ebp + 0x1c], 0
je 0x51aaba
cmp dword [esi + 0x14], 8
jb 0x51aa8a
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x51aaba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_delete_executable___d_
push 0x93
push str.XMLUpdater::v2::CExecuteLocalCommand::ExecuteLocalCommand
push str.E:BT71e4c9fa_1978_4386_a3da_49ea31fa22b7WebAdvisor_XmlUpdater_srcXmlUpdaterExecuteLocalCommand.cpp
push 1
call fcn.00500ef0
add esp, 0x18
mov ecx, dword [ebp - 0xa0]
lea esi, [ebp - 0x12]
mov eax, 0xcccccccd
sub esi, 2
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [esi], cx
mov ecx, edx
test ecx, ecx
jne 0x51aac3
xor eax, eax
mov dword [ebp - 0xd4], edx
mov word [ebp - 0xd4], ax
lea eax, [ebp - 0x12]
mov dword [ebp - 0xc4], edx
mov dword [ebp - 0xc0], 7
cmp esi, eax
je 0x51ab1a
sub eax, esi
lea ecx, [ebp - 0xd4]
sar eax, 1
push eax
push esi
call fcn.00425810
push dword [0x60c6f4]
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 7
call fcn.00424740
mov ecx, dword [ebp - 0x100]
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 8
push eax
call fcn.005029e0
lea ecx, [ebp - 0xec]
call fcn.00424600
lea ecx, [ebp - 0xd4]
call fcn.00424600
mov esi, dword [ebp - 0x40]
mov byte [ebp - 0xb1], 1
push esi
call fcn.004697f0
add esp, 4
lea ecx, [ebp - 0x58]
call fcn.00424600
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x51ab8e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xb0]
test eax, eax
je 0x51ab9f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0xb1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00553daa
mov esp, ebp
pop ebp
ret 0x1c
call fcn.00421430
int3