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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b20c
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 0x51a5b7
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.00500de0
add esp, 0x14
xor al, al
jmp 0x51aac5
cmp byte [ebp + 0x20], 0
je 0x51a5ff
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x51a5c7
mov eax, dword [esi]
push eax
call fcn.00519020
add esp, 4
test al, al
jne 0x51a5ff
cmp dword [esi + 0x14], 8
jb 0x51a5dc
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.00500de0
add esp, 0x18
xor al, al
jmp 0x51aac5
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 0x51a65e
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 0x51aae2
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x40], esi
jb 0x51a685
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 0x51a709
mov edi, ecx
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x51a6d3
mov edi, SysReAllocString
jmp 0x51a6dd
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.00425a60
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.00555c00
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 0x5bda24
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 1
call fcn.004258a0
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 0x51a7ba
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0xd4]
call fcn.004258a0
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.00424580
lea ecx, [ebp - 0xec]
call fcn.00424580
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.0055458b
add esp, 8
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 6
test eax, eax
jne 0x51a857
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.00500de0
add esp, 0x14
mov byte [ebp - 0xb1], 0
jmp 0x51aa95
cmp dword [ebp - 0x44], 8
lea edx, [ebp - 0x58]
cmovae edx, dword [ebp - 0x58]
test edi, edi
je 0x51a8bc
cmp edi, 0x7fffffff
ja 0x51a8b3
mov esi, SysReAllocString
mov ecx, eax
sub esi, edi
sub edx, eax
nop dword [eax]
lea eax, [esi + edi]
test eax, eax
je 0x51a89b
movzx eax, word [edx + ecx]
test ax, ax
je 0x51a89b
mov word [ecx], ax
add ecx, 2
sub edi, 1
jne 0x51a880
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 0x51a8bc
test edi, edi
je 0x51a8bc
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 0xfc]
cmp dword [ecx + 0x14], 8
jb 0x51a8ca
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 0x51a918
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.00500de0
add esp, 0x1c
jmp 0x51a988
push 0xffffffffffffffff
push dword [ebp - 0xb0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x51a93f
cmp dword [esi + 0x14], 8
jb 0x51a932
mov esi, dword [esi]
push esi
push str.Wait_for_process_failed_for_command__s
push 0x84
jmp 0x51a971
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 0x51a99c
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.00500de0
mov esi, dword [ebp - 0x40]
add esp, 0x18
mov byte [ebp - 0xb1], 0
test esi, esi
je 0x51aa95
jmp 0x51aa8c
cmp byte [ebp + 0x1c], 0
je 0x51a9da
cmp dword [esi + 0x14], 8
jb 0x51a9aa
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x51a9da
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.00500de0
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 0x51a9e3
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 0x51aa3a
sub eax, esi
lea ecx, [ebp - 0xd4]
sar eax, 1
push eax
push esi
call fcn.00425790
push dword [0x60c6f4]
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 7
call fcn.004246c0
mov ecx, dword [ebp - 0x100]
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 8
push eax
call fcn.005028d0
lea ecx, [ebp - 0xec]
call fcn.00424580
lea ecx, [ebp - 0xd4]
call fcn.00424580
mov esi, dword [ebp - 0x40]
mov byte [ebp - 0xb1], 1
push esi
call fcn.00469710
add esp, 4
lea ecx, [ebp - 0x58]
call fcn.00424580
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x51aaae
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xb0]
test eax, eax
je 0x51aabf
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.00553cca
mov esp, ebp
pop ebp
ret 0x1c
call fcn.004213b0
int3