Function at 0x14000c67c
Capabilities:
Check for peb beingdebugged flag
Delete file
Get system information on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
xor r12d, r12d
mov r14, rdx
mov rdi, rcx
mov qword [rbp + 0x77], r12
xorps xmm0, xmm0
mov qword [rbp - 1], r12
xor r9d, r9d
lea rdx, [rbp - 0x19]
lea ebx, [r12 + 0x20]
mov r15b, r12b
mov r8d, ebx
lea ecx, [rbx + 0x65]
mov esi, r12d
movdqu xmmword [rbp - 0x11], xmm0
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
cmp eax, 0xc00000bb
jne 0x14001288a
mov eax, 0xc0000001
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
cmp eax, 0xc0000023
je 0x1400128a7
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 1]
call fcn.140017004
nop
jmp 0x14000c6e2
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8d, dword [rbp - 1]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rbp - 0x11], rax
test rax, rax
jne 0x1400128d9
mov ebx, 0xc0000001
jmp 0x140012ac0
mov eax, dword [rbp + 3]
test eax, eax
je 0x140012915
mov rcx, qword gs:[0x60]
lea r8, [rax + 2]
mov edx, 8
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rbp - 9], rax
test rax, rax
jne 0x140012915
mov ebx, 0xc0000001
jmp 0x140012a9b
xor r9d, r9d
lea rdx, [rbp - 0x19]
mov r8d, ebx
mov ecx, 0x85
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x140012a9b
mov eax, dword [rbp - 1]
lea r9, [rbp - 0x29]
mov dword [rsp + 0x50], r12d
lea r8, [rbp + 7]
mov qword [rsp + 0x48], r12
lea rcx, [rbp + 0x77]
mov dword [rsp + 0x40], 0x64
xorps xmm0, xmm0
mov qword [rbp + 0x7f], rax
mov edx, 0x120106
mov dword [rsp + 0x38], r12d
lea rax, [0x140019c70]
mov qword [rbp + 0x17], rax
lea rax, [rbp + 0x7f]
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], rax
mov dword [rbp + 7], 0x30
mov qword [rbp + 0xf], r12
mov dword [rbp + 0x1f], r12d
movdqu xmmword [rbp + 0x27], xmm0
call qword [sym.imp.ntdll.dll_NtCreateFile]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x1400129bc
mov qword [rbp + 0x77], r12
jmp 0x140012a9b
mov eax, dword [rbp - 1]
xor r9d, r9d
mov rcx, qword [rbp + 0x77]
xor r8d, r8d
mov qword [rsp + 0x40], r12
xor edx, edx
mov qword [rsp + 0x38], r12
mov r15b, 1
mov dword [rsp + 0x30], eax
mov rax, qword [rbp - 0x11]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x29]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtWriteFile]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x140012a9b
mov eax, dword [rbp + 3]
mov ebx, 0x16
test eax, eax
je 0x140012a13
lea ebx, [rax + 0x18]
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8d, ebx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x14001290b
xorps xmm0, xmm0
lea rdx, str.wpbbin.exe
movups xmmword [rdi], xmm0
mov rcx, rdi
mov word [rdi + 2], bx
mov qword [rdi + 8], rax
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
nop dword [rax + rax]
mov ebx, eax
cmp dword [rbp + 3], r12d
jbe 0x140012a94
lea rdx, [0x14001a8fc]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
nop dword [rax + rax]
mov rdx, qword [rbp - 9]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
nop dword [rax + rax]
mov ebx, eax
mov rax, qword [rbp - 0x19]
mov qword [r14], rax
cmp qword [rbp - 0x11], r12
je 0x140012ac0
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp - 0x11]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
cmp qword [rbp - 9], r12
je 0x140012ae5
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp - 9]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x77]
test rcx, rcx
je 0x140012afa
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
test ebx, ebx
jns 0x140012b4a
mov qword [rdi + 8], r12
test rsi, rsi
je 0x140012b25
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
test r15b, r15b
je 0x140012b3a
lea rcx, [rbp + 7]
call qword [sym.imp.ntdll.dll_NtDeleteFile]
nop dword [rax + rax]
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 1]
call fcn.140017004
mov eax, ebx
jmp 0x14000c6e7