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

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x350
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x140197b10]
xor rax, rsp
mov qword [rsp + 0x340], rax
mov r12, rcx
xor r14d, r14d
mov qword [rsp + 0x40], r14
cmp dword [rcx + 8], r14d
jg 0x14006e612
xor eax, eax
jmp 0x14006e8a2
lea r15, [0x14019cf50]
mov qword [rsp + 0x60], r15
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
call fcn.140060590
mov edi, 0xfffffffd
mov dword [rsp + 0x4c], edi
mov rax, qword [0x14019c680]
test rax, rax
je 0x14006e65c
xor ecx, ecx
call rax
mov edi, eax
mov dword [rsp + 0x4c], eax
test eax, eax
je 0x14006e65c
cmp eax, 1
jne 0x14006e65c
call qword [0x14019c688]
nop
mov edx, dword [r12 + 8]
mov rcx, qword [r12]
call fcn.140060630
mov rbx, rax
test rax, rax
je 0x14006e694
mov r8, qword [rax]
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [r8 + 0x18]
mov rsi, qword [rsp + 0x40]
test rsi, rsi
jne 0x14006e69e
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x10]
mov rsi, qword [rsp + 0x40]
test rsi, rsi
je 0x14006e6c2
mov rax, qword [0x14019c688]
test rax, rax
je 0x14006e6b1
test edi, edi
jne 0x14006e6b1
call rax
nop
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, rsi
jmp 0x14006e8a2
mov word [rsp + 0x70], r14w
mov r8d, 0x104
lea rdx, [rsp + 0x70]
lea rcx, [0x140146790]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jg 0x14006e723
mov r8d, 0x104
lea rdx, [rsp + 0x70]
lea rcx, [0x140146780]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jg 0x14006e723
mov rax, qword [0x14019c688]
test rax, rax
je 0x14006e713
test edi, edi
jne 0x14006e713
call rax
nop
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x14006e8a2
mov rbx, r14
mov ebp, 0x63
cdqe
lea r13, [rsp + rax*2 + 0x70]
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, r13
call qword [sym.imp.USER32.dll_wsprintfW]
test rbx, rbx
je 0x14006e771
cmp rbx, 0xffffffffffffffff
je 0x14006e771
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 1
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 5]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
cmove rbx, r14
test rbx, rbx
jne 0x14006e7e2
lea ecx, [rbx + 0xa]
call qword [sym.imp.KERNEL32.dll_Sleep]
sub ebp, 1
jns 0x14006e732
mov rax, qword [0x14019c688]
test rax, rax
je 0x14006e7d2
test edi, edi
jne 0x14006e7d2
call rax
nop
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x14006e8a2
mov dword [rsp + 0x48], r14d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x48]
mov r8d, dword [r12 + 8]
mov rdx, qword [r12]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp rbx, 0xffffffffffffffff
je 0x14006e812
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x58], r14
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadImageW]
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x14006e873
lea rcx, [rsp + 0x70]
call fcn.14006de80
mov rbx, rax
test rax, rax
je 0x14006e873
mov r8, qword [rax]
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [r8 + 0x18]
cmp qword [rsp + 0x40], 0
jne 0x14006e873
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x10]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rbx, qword [rsp + 0x40]
mov rcx, qword [0x14019c688]
test rcx, rcx
je 0x14006e896
test edi, edi
jne 0x14006e896
call rcx
nop
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, rbx
mov rcx, qword [rsp + 0x340]
xor rcx, rsp
call fcn.14010bcc0
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret