Function at 0x517b80
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 0x59dcc3
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x720
mov eax, dword [0x6071d4]
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.0056a7a0
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.0051bdb0
mov esi, eax
test esi, esi
js 0x5180a3
push str.cmd.exe__S__C___
lea edx, [ebp - 0x660]
lea ecx, [ebp - 0x648]
call fcn.004c50c0
add esp, 4
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00515e60
mov esi, eax
test esi, esi
js 0x518068
cmp dword [edi + 0x14], 8
jb 0x517c9d
mov edx, dword [edi]
jmp 0x517c9f
mov edx, edi
cmp word [edx], 0
jne 0x517ca9
xor ecx, ecx
jmp 0x517cbf
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x517cb0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x648]
call fcn.004af620
push 2
push 0x5ed47c
lea ecx, [ebp - 0x648]
call fcn.004af620
push 0xffffffffffffffff
push 0
push dword [ebp - 0x6d4]
lea ecx, [ebp - 0x648]
call fcn.004af740
cmp byte [ebx + 0x10], 0
je 0x517e83
lea eax, [ebp - 0x630]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x517dc8
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 0x517dc8
push 0x5ed464
lea ecx, [ebp - 0x648]
call fcn.004aef40
push 0x5dfa38
lea edx, [ebp - 0x648]
lea ecx, [ebp - 0x6c0]
call fcn.004c50c0
add esp, 4
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
push ecx
mov edx, eax
lea ecx, [ebp - 0x6a8]
call fcn.004b0740
add esp, 4
push 0x5dfa38
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x678]
call fcn.004b0740
add esp, 4
lea ecx, [ebp - 0x648]
push eax
call fcn.004af000
lea ecx, [ebp - 0x678]
call fcn.004a9470
lea ecx, [ebp - 0x6a8]
call fcn.004a9470
lea ecx, [ebp - 0x6c0]
mov byte [ebp - 4], 2
call fcn.004a9470
cmp byte [ebx + 0x14], 0
je 0x517e83
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 0x517e83
push str._2_
lea ecx, [ebp - 0x648]
call fcn.004aef40
push 0x5dfa38
lea edx, [ebp - 0x648]
lea ecx, [ebp - 0x678]
call fcn.004c50c0
add esp, 4
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 5
push ecx
mov edx, eax
lea ecx, [ebp - 0x6a8]
call fcn.004b0740
add esp, 4
push 0x5dfa38
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x6c0]
call fcn.004b0740
add esp, 4
lea ecx, [ebp - 0x648]
push eax
call fcn.004af000
lea ecx, [ebp - 0x6c0]
call fcn.004a9470
lea ecx, [ebp - 0x6a8]
call fcn.004a9470
lea ecx, [ebp - 0x678]
mov byte [ebp - 4], 2
call fcn.004a9470
push 1
push 0x5dfa38
lea ecx, [ebp - 0x648]
call fcn.004af620
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 0x517f37
cmp byte [ebx + 0x10], 0
je 0x517f18
push dword [ebx + 0x18]
push dword [ebp - 0x6e4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x517f06
mov ecx, dword [ebp - 0x6dc]
lea edx, [ebp - 0x6c8]
mov byte [ebp - 0x6c2], 1
call fcn.00518270
jmp 0x517f18
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 0x51805e
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x678]
call fcn.004a94b0
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.00515ed0
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x678]
mov esi, eax
call fcn.004a9470
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebx + 0x14]
test cl, cl
je 0x518017
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x678]
call fcn.004a94b0
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.00515ed0
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x678]
mov esi, eax
call fcn.004a9470
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.004af740
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x10]
cmp byte [ebp - 0x6c1], 0
je 0x518065
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.00514700
mov ecx, eax
call fcn.005154c0
jmp 0x518068
mov ecx, dword [ebx + 0x14]
xor esi, esi
jmp 0x51801a
or esi, 0xffffffff
mov eax, dword [ebp - 0x634]
cmp eax, 8
jb 0x518086
inc eax
lea ecx, [ebp - 0x648]
push eax
push dword [ebp - 0x648]
call fcn.004a9d40
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 0x5180c1
inc eax
lea ecx, [ebp - 0x660]
push eax
push dword [ebp - 0x660]
call fcn.004a9d40
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 0x5180fc
inc ecx
push ecx
push dword [ebp - 0x690]
lea ecx, [ebp - 0x690]
call fcn.004a9d40
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.0053b526
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret