Function at 0x51d2d0
Capabilities:
Create process on windows
Delete file
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3623
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x720
mov eax, dword [0x6121d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x6d4], edx
mov edi, ecx
mov eax, dword [ebx + 8]
mov dword [ebp - 0x6cc], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x6d0], eax
xor eax, eax
mov byte [ebp - 0x6c1], 0
mov byte [ebp - 0x6c2], 0
mov dword [ebp - 0x67c], 7
mov dword [ebp - 0x680], 0
mov word [ebp - 0x690], ax
push 0x44
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x730]
push eax
call fcn.0056fec0
xorps xmm0, xmm0
mov dword [ebp - 0x730], 0x44
xor eax, eax
mov dword [ebp - 0x64c], 7
add esp, 0xc
mov dword [ebp - 0x650], 0
movups xmmword [ebp - 0x6e4], xmm0
mov word [ebp - 0x660], ax
lea ecx, [ebp - 0x660]
mov byte [ebp - 4], 1
call fcn.00521500
mov esi, eax
test esi, esi
js 0x51d7f3
push str.cmd.exe__S__C___
lea edx, [ebp - 0x660]
lea ecx, [ebp - 0x648]
call fcn.004c9400
add esp, 4
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.0051b5a0
mov esi, eax
test esi, esi
js 0x51d7b8
cmp dword [edi + 0x14], 8
jb 0x51d3ed
mov edx, dword [edi]
jmp 0x51d3ef
mov edx, edi
cmp word [edx], 0
jne 0x51d3f9
xor ecx, ecx
jmp 0x51d40f
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51d400
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x648]
call fcn.004b3f10
push 2
push 0x5f761c
lea ecx, [ebp - 0x648]
call fcn.004b3f10
push 0xffffffffffffffff
push 0
push dword [ebp - 0x6d4]
lea ecx, [ebp - 0x648]
call fcn.004b4030
cmp byte [ebx + 0x10], 0
je 0x51d5d3
lea eax, [ebp - 0x630]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x51d518
lea eax, [ebp - 0x220]
push eax
push 0
push str.OPSWAT
lea eax, [ebp - 0x630]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x51d518
push 0x5f7654
lea ecx, [ebp - 0x648]
call fcn.004b2120
push 0x5e9594
lea edx, [ebp - 0x648]
lea ecx, [ebp - 0x6c0]
call fcn.004c9400
add esp, 4
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
push ecx
mov edx, eax
lea ecx, [ebp - 0x6a8]
call fcn.004b58f0
add esp, 4
push 0x5e9594
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x678]
call fcn.004b58f0
add esp, 4
lea ecx, [ebp - 0x648]
push eax
call fcn.004b21e0
lea ecx, [ebp - 0x678]
call fcn.004ab5f0
lea ecx, [ebp - 0x6a8]
call fcn.004ab5f0
lea ecx, [ebp - 0x6c0]
mov byte [ebp - 4], 2
call fcn.004ab5f0
cmp byte [ebx + 0x14], 0
je 0x51d5d3
lea eax, [ebp - 0x428]
push eax
push 0
push str.OPSWAT
lea eax, [ebp - 0x630]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x51d5d3
push str._2_
lea ecx, [ebp - 0x648]
call fcn.004b2120
push 0x5e9594
lea edx, [ebp - 0x648]
lea ecx, [ebp - 0x678]
call fcn.004c9400
add esp, 4
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 5
push ecx
mov edx, eax
lea ecx, [ebp - 0x6a8]
call fcn.004b58f0
add esp, 4
push 0x5e9594
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x6c0]
call fcn.004b58f0
add esp, 4
lea ecx, [ebp - 0x648]
push eax
call fcn.004b21e0
lea ecx, [ebp - 0x6c0]
call fcn.004ab5f0
lea ecx, [ebp - 0x6a8]
call fcn.004ab5f0
lea ecx, [ebp - 0x678]
mov byte [ebp - 4], 2
call fcn.004ab5f0
push 1
push 0x5e9594
lea ecx, [ebp - 0x648]
call fcn.004b3f10
cmp dword [ebp - 0x634], 8
lea ecx, [ebp - 0x6e4]
push ecx
lea ecx, [ebp - 0x730]
push ecx
push 0
push 0
push 0x8000000
push 1
push 0
lea eax, [ebp - 0x648]
cmovae eax, dword [ebp - 0x648]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x51d687
cmp byte [ebx + 0x10], 0
je 0x51d668
push dword [ebx + 0x18]
push dword [ebp - 0x6e4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x51d656
mov ecx, dword [ebp - 0x6dc]
lea edx, [ebp - 0x6c8]
mov byte [ebp - 0x6c2], 1
call fcn.0051d9c0
jmp 0x51d668
push dword [ebp - 0x6d0]
push dword [ebp - 0x6e4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x6e0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x6e4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x6c1], 1
mov eax, dword [ebx + 0x10]
test al, al
je 0x51d7ae
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x678]
call fcn.004ab630
push dword [ebp - 0x6cc]
mov byte [ebp - 4], 7
lea edx, [ebp - 0x6c8]
push 1
lea ecx, [ebp - 0x678]
mov dword [ebp - 0x6c8], 0
call fcn.0051b610
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x678]
mov esi, eax
call fcn.004ab5f0
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebx + 0x14]
test cl, cl
je 0x51d767
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x678]
call fcn.004ab630
lea eax, [ebp - 0x690]
mov byte [ebp - 4], 8
push eax
push 1
lea edx, [ebp - 0x6c8]
mov dword [ebp - 0x6c8], 0
lea ecx, [ebp - 0x678]
call fcn.0051b610
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x678]
mov esi, eax
call fcn.004ab5f0
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x6cc]
lea eax, [ebp - 0x690]
push 0xffffffffffffffff
push 0
push eax
call fcn.004b4030
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x10]
cmp byte [ebp - 0x6c1], 0
je 0x51d7b5
push dword [ebx + 0x18]
or edx, 0xffffffff
cmp byte [ebp - 0x6c2], 0
push ecx
push eax
cmovne esi, edx
lea eax, [ebp - 0x648]
push esi
push dword [ebp - 0x6d0]
push dword [ebp - 0x6cc]
push eax
push dword [ebp - 0x6d4]
push edi
call fcn.00519e40
mov ecx, eax
call fcn.0051ac00
jmp 0x51d7b8
mov ecx, dword [ebx + 0x14]
xor esi, esi
jmp 0x51d76a
or esi, 0xffffffff
mov eax, dword [ebp - 0x634]
cmp eax, 8
jb 0x51d7d6
inc eax
lea ecx, [ebp - 0x648]
push eax
push dword [ebp - 0x648]
call fcn.004abec0
xor eax, eax
mov dword [ebp - 0x634], 7
mov dword [ebp - 0x638], 0
mov word [ebp - 0x648], ax
mov eax, dword [ebp - 0x64c]
cmp eax, 8
jb 0x51d811
inc eax
lea ecx, [ebp - 0x660]
push eax
push dword [ebp - 0x660]
call fcn.004abec0
mov ecx, dword [ebp - 0x67c]
xor eax, eax
mov dword [ebp - 0x64c], 7
mov dword [ebp - 0x650], 0
mov word [ebp - 0x660], ax
cmp ecx, 8
jb 0x51d84c
inc ecx
push ecx
push dword [ebp - 0x690]
lea ecx, [ebp - 0x690]
call fcn.004abec0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00540c56
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret