Function at 0x14006c6ac
Capabilities:
Delete file
Query environment variable
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x310
mov r13, rdx
mov rdx, qword [rcx + 8]
xor r14d, r14d
cmp rdx, r14
mov rbp, rcx
jg 0x14006c6d7
xor eax, eax
jmp 0x14006c9e6
mov rcx, qword [rcx]
xor r8d, r8d
mov qword [rsp + 0x360], r14
call fcn.14005fa08
mov rdi, rax
cmp rax, r14
je 0x14006c73b
lea rdx, [rsp + 0x360]
xor r8d, r8d
mov rcx, rax
call qword [0x140131df8]
cmp r13, r14
je 0x14006c71e
mov rax, qword [rsp + 0x360]
cmp rax, r14
je 0x14006c71e
mov qword [r13], rdi
jmp 0x14006c732
mov rcx, rdi
call qword [0x140131d98]
mov rax, qword [rsp + 0x360]
mov rdi, r14
cmp rax, r14
jne 0x14006c9e6
lea rcx, [0x1401330f8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.14005f7b4
mov rax, qword [0x1401327c8]
mov ebx, 0xfffffffd
cmp rax, r14
je 0x14006c774
xor ecx, ecx
call rax
mov ebx, eax
cmp eax, r14d
je 0x14006c774
cmp eax, 1
jne 0x14006c774
call qword [0x1401327d0]
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp]
call fcn.14005f91c
mov r12, rax
cmp rax, r14
je 0x14006c7b2
mov r8, qword [rax]
lea rdx, [rsp + 0x360]
mov rcx, rax
call qword [r8 + 0x18]
mov rsi, qword [rsp + 0x360]
cmp rsi, r14
jne 0x14006c7bf
mov rdx, qword [r12]
mov rcx, r12
call qword [rdx + 0x10]
mov rsi, qword [rsp + 0x360]
cmp rsi, r14
je 0x14006c7e7
mov rax, qword [0x1401327d0]
cmp rax, r14
je 0x14006c7d2
cmp ebx, r14d
jne 0x14006c7d2
call rax
lea rcx, [0x1401330f8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, rsi
jmp 0x14006c9e6
mov rax, qword [0x1401327d0]
cmp rax, r14
je 0x14006c7fa
cmp ebx, r14d
jne 0x14006c7fa
call rax
lea rcx, [0x1401330f8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, 0x104
lea rdx, [rsp + 0x40]
lea rcx, [0x140112910]
mov r8d, ebx
mov word [rsp + 0x40], r14w
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, r14d
jg 0x14006c84a
lea rdx, [rsp + 0x40]
lea rcx, [0x140112900]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, r14d
jle 0x14006c6d0
cdqe
mov qword [rsp + 0x368], r14
mov esi, 0x63
lea r12, [rsp + rax*2 + 0x40]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call fcn.14005bd9c
add ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, str.pecmd_bmp._lu._lu.tmp
mov r9d, ebx
mov rcx, r12
mov r8d, eax
call qword [sym.imp.USER32.dll_wsprintfW]
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], 0x80
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x368]
xor r9d, r9d
mov r8d, 0x40000000
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r14
call fcn.1400037bc
mov rbx, qword [rsp + 0x368]
cmp rbx, r14
jne 0x14006c8e0
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
sub esi, 1
jns 0x14006c85e
jmp 0x14006c6d0
mov r8d, dword [rbp + 8]
mov rdx, qword [rbp]
lea r9, [rsp + 0x350]
mov rcx, rbx
mov dword [rsp + 0x350], r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp rbx, 0xffffffffffffffff
je 0x14006c915
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], r14d
call qword [sym.imp.USER32.dll_LoadImageW]
mov qword [rsp + 0x360], rax
cmp rax, r14
jne 0x14006c9d3
lea rcx, [rsp + 0x40]
call fcn.14006bfa4
mov rbx, rax
cmp rax, r14
je 0x14006c97f
mov r8, qword [rax]
lea rdx, [rsp + 0x360]
mov rcx, rax
call qword [r8 + 0x18]
cmp qword [rsp + 0x360], r14
jne 0x14006c9d3
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x10]
jmp 0x14006c9d3
lea rcx, [rsp + 0x40]
xor edx, edx
call fcn.14001ea84
mov rbx, rax
cmp rax, r14
je 0x14006c9d3
cmp rdi, r14
je 0x14006c9a1
mov rcx, rdi
call qword [0x140131d98]
lea rdx, [rsp + 0x360]
xor r8d, r8d
mov rcx, rbx
call qword [0x140131df8]
cmp r13, r14
je 0x14006c9ca
cmp qword [rsp + 0x360], r14
je 0x14006c9ca
mov qword [r13], rbx
jmp 0x14006c9d3
mov rcx, rbx
call qword [0x140131d98]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rax, qword [rsp + 0x360]
add rsp, 0x310
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret