Function at 0x140143b50
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 [0x14028a238]
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.1401b04b0
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.1401489e0
mov ebx, eax
test eax, eax
js 0x14014417e
lea r8, str.cmd.exe__S__C___
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0x20]
call fcn.1400e15e0
nop
mov rcx, rdi
call fcn.140141a50
mov ebx, eax
test eax, eax
js 0x140144150
cmp qword [rdi + 0x18], 8
jb 0x140143c3b
mov rdx, qword [rdi]
jmp 0x140143c3e
mov rdx, rdi
or rbx, 0xffffffffffffffff
cmp word [rdx], 0
jne 0x140143c4d
mov r8, r14
jmp 0x140143c5b
mov r8, rbx
inc r8
cmp word [rdx + r8*2], 0
jne 0x140143c50
lea rcx, [rbp + 0x20]
call fcn.1400c9ec0
mov r8d, 2
lea rdx, [0x14023f460]
lea rcx, [rbp + 0x20]
call fcn.1400c9ec0
mov r9, rbx
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp + 0x20]
call fcn.1400ca020
movzx r15d, byte [rbp + 0x778]
movzx esi, byte [rbp + 0x770]
test sil, sil
je 0x140143ec7
lea rdx, [rbp + 0x4e0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140143dbe
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 0x140143dbe
mov r8d, 3
lea rdx, [0x14023f420]
lea rcx, [rbp + 0x20]
call fcn.1400c9ec0
lea r8, [0x140230644]
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0xa0]
call fcn.1400e15e0
nop
lea r8, [rbp + 0xc0]
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.1400cacb0
nop
lea r8, [0x140230644]
mov rdx, rax
lea rcx, [rbp]
call fcn.1400cacb0
mov rdx, rax
lea rcx, [rbp + 0x20]
call fcn.1400c9840
mov r8, qword [rbp + 0x18]
cmp r8, 8
jb 0x140143d5f
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 0x140143d8a
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 0x140143dbe
inc r8
mov rdx, qword [rbp + 0xa0]
lea rcx, [rbp + 0xa0]
call fcn.1400c3a10
test r15b, r15b
je 0x140143ec7
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 0x140143ec7
mov r8d, 4
lea rdx, str._2_
lea rcx, [rbp + 0x20]
call fcn.1400c9ec0
lea r8, [0x140230644]
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0xa0]
call fcn.1400e15e0
nop
lea r8, [rbp + 0x2d0]
mov rdx, rax
lea rcx, [rbp]
call fcn.1400cacb0
nop
lea r8, [0x140230644]
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.1400cacb0
mov rdx, rax
lea rcx, [rbp + 0x20]
call fcn.1400c9840
mov r8, qword [rbp + 0x58]
cmp r8, 8
jb 0x140143e68
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 0x140143e93
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 0x140143ec7
inc r8
mov rdx, qword [rbp + 0xa0]
lea rcx, [rbp + 0xa0]
call fcn.1400c3a10
mov r8d, 1
lea rdx, [0x140230644]
lea rcx, [rbp + 0x20]
call fcn.1400c9ec0
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 0x140143fc1
test sil, sil
je 0x140143fa8
mov edx, r14d
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140143f98
mov byte [rsp + 0x50], 1
mov rax, qword [rsp + 0x70]
test eax, eax
je 0x140143fa8
mov r8d, eax
xor edx, edx
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140143f90
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x140143f87
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 0x140143fa8
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 0x1401440fb
mov qword [rbp + 0x18], 7
mov qword [rbp + 0x10], rbx
mov word [rbp], bx
cmp word [rbp + 0xc0], bx
jne 0x140143fea
mov r8d, ebx
jmp 0x140143fff
lea rax, [rbp + 0xc0]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x140143ff5
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.140141ad0
mov ebx, eax
mov r8, qword [rbp + 0x18]
cmp r8, 8
jb 0x140144044
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 0x1401440fb
mov qword [rbp + 0x18], 7
xor ebx, ebx
mov qword [rbp + 0x10], rbx
mov word [rbp], bx
cmp word [rbp + 0x2d0], bx
jne 0x14014407a
mov r8d, ebx
jmp 0x14014408f
lea rax, [rbp + 0x2d0]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x140144085
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.140141ad0
mov ebx, eax
mov r8, qword [rbp + 0x18]
cmp r8, 8
jb 0x1401440d8
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.1400ca020
test r12b, r12b
je 0x14014414c
cmp byte [rsp + 0x50], 0
mov rax, 0xffffffffffffffff
cmovne ebx, eax
call fcn.14013fbe0
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.140140f20
jmp 0x140144150
or rbx, 0xffffffffffffffff
mov r8, qword [rbp + 0x38]
cmp r8, 8
jb 0x14014416a
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 0x140144198
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 0x1401441cc
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.14016ce60
add rsp, 0x808
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret