Function at 0x140001fb0
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x128]
sub rsp, 0x200
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1400110b8]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov r8d, 0x104
lea rdx, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea r15, vtable.G2XUtility::CGxxString_char_.0
mov qword [rsp + 0x48], r15
xor r14d, r14d
mov qword [rsp + 0x58], r14
lea ecx, [r14 + 1]
call fcn.140003950
mov rbx, rax
mov qword [rsp + 0x50], rax
mov esi, r14d
mov dword [rsp + 0x60], r14d
mov byte [rax], sil
lea rax, [rbp - 0x20]
mov r12d, r14d
cmp byte [rbp - 0x20], sil
je 0x14000207e
nop
inc r12d
inc rax
cmp byte [rax], sil
jne 0x140002040
test r12d, r12d
jle 0x14000207e
movsxd rdi, r12d
lea rcx, [rdi + 1]
call fcn.140003950
mov r13, rax
test rax, rax
je 0x14000209c
movzx ecx, byte [rbx]
mov byte [rax], cl
mov rcx, rbx
call fcn.140003f94
mov rbx, r13
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rdi
movsxd rdi, r12d
mov r8, rdi
lea rdx, [rbp - 0x20]
mov rcx, rbx
call fcn.140003c60
mov esi, r12d
mov dword [rsp + 0x60], r12d
mov byte [rdi + rbx], r14b
movsxd rax, esi
test esi, esi
js 0x1400020b0
cmp byte [rax + rbx], 0x5c
je 0x1400020b0
dec esi
dec rax
jns 0x1400020a3
mov r8d, esi
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x48]
call fcn.1400024a0
nop
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140002770
nop
mov qword [rbp - 0x78], r15
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x1400020e2
call fcn.140003f94
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 3]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
test rax, rax
je 0x14000223a
cmp rax, 0xffffffffffffffff
je 0x14000223a
mov qword [rbp - 0x38], 0xf
mov qword [rbp - 0x40], r14
mov byte [rbp - 0x50], 0
mov r8d, 0x24
lea rdx, str._echo_off_n_ping__n_1_127.0.0.1_n_del
lea rcx, [rbp - 0x50]
call fcn.140002900
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rbx
lea rcx, [rbp - 0x50]
call fcn.140002900
mov r8d, 6
lea rdx, str._n_del
lea rcx, [rbp - 0x50]
call fcn.140002900
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdx, qword [rsp + 0x70]
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbp - 0x50]
call fcn.140002900
mov r8d, 1
lea rdx, [0x14000e6a0]
lea rcx, [rbp - 0x50]
call fcn.140002900
mov dword [rsp + 0x40], r14d
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0x10
cmovae rdx, qword [rbp - 0x50]
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x40]
mov r8d, dword [rbp - 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x78]
call fcn.140002800
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
mov r9, qword [rax + 8]
lea r8, str.cmd.exe
lea rdx, [0x14000e6b0]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov qword [rbp - 0x78], r15
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x140002229
call fcn.140003f94
nop
cmp qword [rbp - 0x38], 0x10
jb 0x14000223a
mov rcx, qword [rbp - 0x50]
call fcn.140003a6c
nop
mov qword [rsp + 0x68], r15
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140002253
call fcn.140003f94
mov qword [rsp + 0x70], r14
test rbx, rbx
je 0x140002260
mov rcx, rbx
call fcn.140003f94
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.140003a90
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret