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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b65c
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 0x51a617
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.00500e60
add esp, 0x14
xor al, al
jmp 0x51ab25
cmp byte [ebp + 0x20], 0
je 0x51a65f
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x51a627
mov eax, dword [esi]
push eax
call fcn.00519080
add esp, 4
test al, al
jne 0x51a65f
cmp dword [esi + 0x14], 8
jb 0x51a63c
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.00500e60
add esp, 0x18
xor al, al
jmp 0x51ab25
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 0x51a6be
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 0x51ab42
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x40], esi
jb 0x51a6e5
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 0x51a769
mov edi, ecx
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x51a733
mov edi, SysReAllocString
jmp 0x51a73d
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.00555c60
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.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 0x51a81a
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.005545eb
add esp, 8
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 6
test eax, eax
jne 0x51a8b7
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.00500e60
add esp, 0x14
mov byte [ebp - 0xb1], 0
jmp 0x51aaf5
cmp dword [ebp - 0x44], 8
lea edx, [ebp - 0x58]
cmovae edx, dword [ebp - 0x58]
test edi, edi
je 0x51a91c
cmp edi, 0x7fffffff
ja 0x51a913
mov esi, SysReAllocString
mov ecx, eax
sub esi, edi
sub edx, eax
nop dword [eax]
lea eax, [esi + edi]
test eax, eax
je 0x51a8fb
movzx eax, word [edx + ecx]
test ax, ax
je 0x51a8fb
mov word [ecx], ax
add ecx, 2
sub edi, 1
jne 0x51a8e0
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 0x51a91c
test edi, edi
je 0x51a91c
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 0xfc]
cmp dword [ecx + 0x14], 8
jb 0x51a92a
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 0x51a978
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.00500e60
add esp, 0x1c
jmp 0x51a9e8
push 0xffffffffffffffff
push dword [ebp - 0xb0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x51a99f
cmp dword [esi + 0x14], 8
jb 0x51a992
mov esi, dword [esi]
push esi
push str.Wait_for_process_failed_for_command__s
push 0x84
jmp 0x51a9d1
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 0x51a9fc
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.00500e60
mov esi, dword [ebp - 0x40]
add esp, 0x18
mov byte [ebp - 0xb1], 0
test esi, esi
je 0x51aaf5
jmp 0x51aaec
cmp byte [ebp + 0x1c], 0
je 0x51aa3a
cmp dword [esi + 0x14], 8
jb 0x51aa0a
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x51aa3a
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.00500e60
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 0x51aa43
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 0x51aa9a
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.00502950
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.00469760
add esp, 4
lea ecx, [ebp - 0x58]
call fcn.00424580
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x51ab0e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xb0]
test eax, eax
je 0x51ab1f
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.00553d2a
mov esp, ebp
pop ebp
ret 0x1c
call fcn.004213b0
int3