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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x708]
sub rsp, 0x808
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov rax, qword [0x14028c238]
xor rax, rsp
mov qword [rbp + 0x6f0], rax
mov qword [rsp + 0x58], r9
mov r13, r8
mov rsi, rdx
mov qword [rsp + 0x78], rdx
mov rdi, rcx
xor r12b, r12b
mov byte [rsp + 0x50], r12b
mov qword [rbp + 0x98], 7
xor r14d, r14d
mov qword [rbp + 0x90], r14
mov word [rbp + 0x80], r14w
xor edx, edx
lea r8d, [r14 + 0x68]
lea rcx, [rbp - 0x70]
call fcn.1401b1bc0
mov dword [rbp - 0x70], 0x68
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rbp + 0x78], 7
mov qword [rbp + 0x70], r14
mov word [rbp + 0x60], r14w
lea rcx, [rbp + 0x60]
call fcn.14014a000
mov ebx, eax
test eax, eax
js 0x14014579e
lea r8, str.cmd.exe__S__C___
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0x20]
call fcn.1400e1f60
nop
mov rcx, rdi
call fcn.140143070
mov ebx, eax
test eax, eax
js 0x140145770
cmp qword [rdi + 0x18], 8
jb 0x14014525b
mov rdx, qword [rdi]
jmp 0x14014525e
mov rdx, rdi
or rbx, 0xffffffffffffffff
cmp word [rdx], 0
jne 0x14014526d
mov r8, r14
jmp 0x14014527b
mov r8, rbx
inc r8
cmp word [rdx + r8*2], 0
jne 0x140145270
lea rcx, [rbp + 0x20]
call fcn.1400ca800
mov r8d, 2
lea rdx, [0x140241610]
lea rcx, [rbp + 0x20]
call fcn.1400ca800
mov r9, rbx
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp + 0x20]
call fcn.1400ca960
movzx r15d, byte [rbp + 0x778]
movzx esi, byte [rbp + 0x770]
test sil, sil
je 0x1401454e7
lea rdx, [rbp + 0x4e0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1401453de
lea r9, [rbp + 0xc0]
xor r8d, r8d
lea rdx, str.OPSWAT
lea rcx, [rbp + 0x4e0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1401453de
mov r8d, 3
lea rdx, [0x140241640]
lea rcx, [rbp + 0x20]
call fcn.1400ca800
lea r8, [0x140232684]
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0xa0]
call fcn.1400e1f60
nop
lea r8, [rbp + 0xc0]
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.1400cb5f0
nop
lea r8, [0x140232684]
mov rdx, rax
lea rcx, [rbp]
call fcn.1400cb5f0
mov rdx, rax
lea rcx, [rbp + 0x20]
call fcn.1400ca180
mov r8, qword [rbp + 0x18]
cmp r8, 8
jb 0x14014537f
inc r8
mov rdx, qword [rbp]
lea rcx, [rbp]
call fcn.1400c3a10
mov qword [rbp + 0x18], 7
mov qword [rbp + 0x10], r14
mov word [rbp], r14w
mov r8, qword [rbp + 0x58]
cmp r8, 8
jb 0x1401453aa
inc r8
mov rdx, qword [rbp + 0x40]
lea rcx, [rbp + 0x40]
call fcn.1400c3a10
mov qword [rbp + 0x58], 7
mov qword [rbp + 0x50], r14
mov word [rbp + 0x40], r14w
mov r8, qword [rbp + 0xb8]
cmp r8, 8
jb 0x1401453de
inc r8
mov rdx, qword [rbp + 0xa0]
lea rcx, [rbp + 0xa0]
call fcn.1400c3a10
test r15b, r15b
je 0x1401454e7
lea r9, [rbp + 0x2d0]
xor r8d, r8d
lea rdx, str.OPSWAT
lea rcx, [rbp + 0x4e0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1401454e7
mov r8d, 4
lea rdx, [0x140241658]
lea rcx, [rbp + 0x20]
call fcn.1400ca800
lea r8, [0x140232684]
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0xa0]
call fcn.1400e1f60
nop
lea r8, [rbp + 0x2d0]
mov rdx, rax
lea rcx, [rbp]
call fcn.1400cb5f0
nop
lea r8, [0x140232684]
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.1400cb5f0
mov rdx, rax
lea rcx, [rbp + 0x20]
call fcn.1400ca180
mov r8, qword [rbp + 0x58]
cmp r8, 8
jb 0x140145488
inc r8
mov rdx, qword [rbp + 0x40]
lea rcx, [rbp + 0x40]
call fcn.1400c3a10
mov qword [rbp + 0x58], 7
mov qword [rbp + 0x50], r14
mov word [rbp + 0x40], r14w
mov r8, qword [rbp + 0x18]
cmp r8, 8
jb 0x1401454b3
inc r8
mov rdx, qword [rbp]
lea rcx, [rbp]
call fcn.1400c3a10
mov qword [rbp + 0x18], 7
mov qword [rbp + 0x10], r14
mov word [rbp], r14w
mov r8, qword [rbp + 0xb8]
cmp r8, 8
jb 0x1401454e7
inc r8
mov rdx, qword [rbp + 0xa0]
lea rcx, [rbp + 0xa0]
call fcn.1400c3a10
mov r8d, 1
lea rdx, [0x140232684]
lea rcx, [rbp + 0x20]
call fcn.1400ca800
lea rdx, [rbp + 0x20]
cmp qword [rbp + 0x38], 8
cmovae rdx, qword [rbp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov r14d, dword [rbp + 0x780]
test eax, eax
je 0x1401455e1
test sil, sil
je 0x1401455c8
mov edx, r14d
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1401455b8
mov byte [rsp + 0x50], 1
mov rax, qword [rsp + 0x70]
test eax, eax
je 0x1401455c8
mov r8d, eax
xor edx, edx
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x1401455b0
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x1401455a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1401455c8
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12b, 1
xor ebx, ebx
test sil, sil
je 0x14014571b
mov qword [rbp + 0x18], 7
mov qword [rbp + 0x10], rbx
mov word [rbp], bx
cmp word [rbp + 0xc0], bx
jne 0x14014560a
mov r8d, ebx
jmp 0x14014561f
lea rax, [rbp + 0xc0]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x140145615
lea rdx, [rbp + 0xc0]
lea rcx, [rbp]
call fcn.1400c3720
nop
mov dword [rsp + 0x54], ebx
mov r9, r13
mov r8b, 1
lea rdx, [rsp + 0x54]
lea rcx, [rbp]
call fcn.1401430f0
mov ebx, eax
mov r8, qword [rbp + 0x18]
cmp r8, 8
jb 0x140145664
inc r8
mov rdx, qword [rbp]
lea rcx, [rbp]
call fcn.1400c3a10
lea rcx, [rbp + 0xc0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test r15b, r15b
je 0x14014571b
mov qword [rbp + 0x18], 7
xor ebx, ebx
mov qword [rbp + 0x10], rbx
mov word [rbp], bx
cmp word [rbp + 0x2d0], bx
jne 0x14014569a
mov r8d, ebx
jmp 0x1401456af
lea rax, [rbp + 0x2d0]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x1401456a5
lea rdx, [rbp + 0x2d0]
lea rcx, [rbp]
call fcn.1400c3720
nop
mov dword [rsp + 0x54], ebx
lea r9, [rbp + 0x80]
mov r8b, 1
lea rdx, [rsp + 0x54]
lea rcx, [rbp]
call fcn.1401430f0
mov ebx, eax
mov r8, qword [rbp + 0x18]
cmp r8, 8
jb 0x1401456f8
inc r8
mov rdx, qword [rbp]
lea rcx, [rbp]
call fcn.1400c3a10
lea rcx, [rbp + 0x2d0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0x80]
mov rcx, r13
call fcn.1400ca960
test r12b, r12b
je 0x14014576c
cmp byte [rsp + 0x50], 0
mov rax, 0xffffffffffffffff
cmovne ebx, eax
call fcn.140141200
mov rcx, rax
mov dword [rsp + 0x48], r14d
mov byte [rsp + 0x40], r15b
mov byte [rsp + 0x38], sil
mov dword [rsp + 0x30], ebx
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x20]
mov r8, qword [rsp + 0x78]
mov rdx, rdi
call fcn.140142540
jmp 0x140145770
or rbx, 0xffffffffffffffff
mov r8, qword [rbp + 0x38]
cmp r8, 8
jb 0x14014578a
inc r8
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x20]
call fcn.1400c3a10
mov qword [rbp + 0x38], 7
xor r14d, r14d
mov qword [rbp + 0x30], r14
mov word [rbp + 0x20], r14w
mov r8, qword [rbp + 0x78]
cmp r8, 8
jb 0x1401457b8
inc r8
mov rdx, qword [rbp + 0x60]
lea rcx, [rbp + 0x60]
call fcn.1400c3a10
mov qword [rbp + 0x78], 7
mov qword [rbp + 0x70], r14
mov word [rbp + 0x60], r14w
mov r8, qword [rbp + 0x98]
cmp r8, 8
jb 0x1401457ec
inc r8
mov rdx, qword [rbp + 0x80]
lea rcx, [rbp + 0x80]
call fcn.1400c3a10
mov eax, ebx
mov rcx, qword [rbp + 0x6f0]
xor rcx, rsp
call fcn.14016e480
add rsp, 0x808
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret