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

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x370
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov qword [rsp + 0x3b0], rbx
mov rax, qword [0x140197b10]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov rbx, rdx
mov rdi, rcx
xor r15d, r15d
mov qword [rsp + 0x58], r15
call fcn.1400676b0
test al, al
setne al
mov byte [rbx], al
test al, al
jne 0x14007f00a
xor eax, eax
jmp 0x14007f37e
mov word [rsp + 0x90], r15w
mov qword [rsp + 0x78], r15
mov dword [rsp + 0x54], r15d
mov dword [rsp + 0x50], r15d
lea r8, [rsp + 0x54]
xor edx, edx
mov rcx, rdi
call fcn.14002a3a4
mov rbx, rax
test rax, rax
jne 0x14007f03e
jmp 0x14007f37e
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.140071140
nop
lea rcx, [rsp + 0x40]
call fcn.140063230
mov dword [rsp + 0x48], r15d
mov dword [rsp + 0x4c], r15d
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x6c], eax
mov qword [rsp + 0x60], rbx
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.140067770
cmp dword [rsp + 0x48], 0
jg 0x14007f0a6
lea rcx, [rsp + 0x40]
call fcn.14005b520
nop
lea rcx, [rsp + 0x60]
call fcn.14005b520
nop
xor eax, eax
jmp 0x14007f37e
lea rbp, [0x14019cf50]
mov qword [rsp + 0x80], rbp
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
call fcn.140060590
mov edi, 0xfffffffd
mov dword [rsp + 0x70], edi
mov rax, qword [0x14019c680]
test rax, rax
je 0x14007f0f3
xor ecx, ecx
call rax
mov edi, eax
mov dword [rsp + 0x70], eax
test eax, eax
je 0x14007f0f3
cmp eax, 1
jne 0x14007f0f3
call qword [0x14019c688]
nop
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.140060630
mov rbx, rax
test rax, rax
je 0x14007f12b
mov r8, qword [rax]
lea rdx, [rsp + 0x58]
mov rcx, rax
call qword [r8 + 0x18]
mov rsi, qword [rsp + 0x58]
test rsi, rsi
jne 0x14007f135
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x10]
mov rsi, qword [rsp + 0x58]
test rsi, rsi
je 0x14007f170
mov rax, qword [0x14019c688]
test rax, rax
je 0x14007f148
test edi, edi
jne 0x14007f148
call rax
nop
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
lea rcx, [rsp + 0x40]
call fcn.14005b520
nop
lea rcx, [rsp + 0x60]
call fcn.14005b520
nop
mov rax, rsi
jmp 0x14007f37e
mov r8d, 0x104
lea rdx, [rsp + 0x90]
lea rcx, [0x140146790]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jg 0x14007f1e8
mov r8d, 0x104
lea rdx, [rsp + 0x90]
lea rcx, [0x140146780]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jg 0x14007f1e8
mov rax, qword [0x14019c688]
test rax, rax
je 0x14007f1c1
test edi, edi
jne 0x14007f1c1
call rax
nop
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
lea rcx, [rsp + 0x40]
call fcn.14005b520
nop
lea rcx, [rsp + 0x60]
call fcn.14005b520
nop
xor eax, eax
jmp 0x14007f37e
mov rbx, r15
mov ebp, 0x63
cdqe
lea r14, [rsp + rax*2 + 0x90]
nop word [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
call fcn.14005d820
add esi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
mov r9d, esi
lea rdx, str.pecmd_bmp._lu._lu.tmp
mov rcx, r14
call qword [sym.imp.USER32.dll_wsprintfW]
test rbx, rbx
je 0x14007f23f
cmp rbx, 0xffffffffffffffff
je 0x14007f23f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 1
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 5]
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
cmove rbx, r15
mov qword [rsp + 0x78], rbx
test rbx, rbx
jne 0x14007f2d3
lea ecx, [rbx + 0xa]
call qword [sym.imp.KERNEL32.dll_Sleep]
sub ebp, 1
jns 0x14007f200
mov rax, qword [0x14019c688]
test rax, rax
je 0x14007f2a8
test edi, edi
jne 0x14007f2a8
call rax
nop
lea rcx, [0x14019cf50]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
lea rcx, [rsp + 0x40]
call fcn.14005b520
nop
lea rcx, [rsp + 0x60]
call fcn.14005b520
nop
xor eax, eax
jmp 0x14007f37e
mov dword [rsp + 0x50], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x50]
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp rbx, 0xffffffffffffffff
je 0x14007f304
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x78], r15
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x90]
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadImageW]
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rbx, qword [rsp + 0x58]
mov rcx, qword [0x14019c688]
test rcx, rcx
je 0x14007f357
test edi, edi
jne 0x14007f357
call rcx
nop
lea rcx, [0x14019cf50]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
lea rcx, [rsp + 0x40]
call fcn.14005b520
nop
lea rcx, [rsp + 0x60]
call fcn.14005b520
nop
mov rax, rbx
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.14010bcc0
mov rbx, qword [rsp + 0x3b0]
add rsp, 0x370
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret