Function at 0x18000bfc4
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file attributes
Get number of processors
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xb8
xor r12d, r12d
lea r14, [rcx + 0x38]
cmp word [rcx + 0x28], 2
lea rbx, [rcx + 0x30]
mov rsi, rcx
mov word [r14], r12w
jbe 0x18000c45c
mov rax, qword [rbx]
cmp word [rax + 2], 0x3a
jne 0x18000c45c
movzx edx, word [rsi + 0x3a]
lea r9, [rbp + 0x7f]
mov r8, qword [rsi + 0x40]
mov rcx, qword [rbx]
shr edx, 1
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFullPathNameW]
nop dword [rax + rax]
movzx ecx, word [rsi + 0x3a]
shr ecx, 1
cmp eax, ecx
ja 0x18002ee5c
test eax, eax
je 0x18002ee7c
add ax, ax
mov word [r14], ax
call qword [sym.imp.KERNELBASE.dll_KernelBaseGetGlobalData]
nop dword [rax + rax]
mov r8, qword [0x1800b2dc8]
test r8, r8
jne 0x18002ee66
mov rcx, qword [rsi + 0x40]
lea r8, [rbp + 0x7f]
xor r9d, r9d
lea rdx, [rbp - 0x29]
call qword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
nop dword [rax + rax]
test al, al
je 0x18002eebb
lea rdx, [rbp - 0x29]
mov rcx, r14
call qword [sym.imp.ntdll.dll_RtlCopyUnicodeString]
nop dword [rax + rax]
lea rcx, [rbp - 0x29]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
nop dword [rax + rax]
call qword [sym.imp.KERNELBASE.dll_KernelBaseGetGlobalData]
nop dword [rax + rax]
mov rcx, qword gs:[0x60]
movzx r8d, word [rsi + 0x3a]
add r8, 0xa0
mov edx, dword [rax]
mov rcx, qword [rcx + 0x30]
add edx, 0x80000
or edx, 8
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x18002eea2
add rax, 0xa0
lea rdi, [rbx + 0x10]
mov qword [rbx + 0x18], rax
mov rdx, r14
movzx eax, word [rsi + 0x3a]
mov rcx, rdi
mov word [rbx + 0x12], ax
call qword [sym.imp.ntdll.dll_RtlCopyUnicodeString]
nop dword [rax + rax]
mov rax, qword [rsi + 8]
mov qword [rbx + 0x20], rax
mov al, byte [rsi + 4]
mov byte [rbx + 0x30], al
mov rax, qword [0x1800b2e38]
test rax, rax
jne 0x18002eeac
xorps xmm0, xmm0
mov dword [rbp - 0x19], 0x30
movdqu xmmword [rbp + 7], xmm0
mov qword [rbp - 0x11], r12
lea rcx, [rbx + 0x28]
mov dword [rbp - 1], 0x40
lea r9, [rbp - 0x39]
mov qword [rbp - 9], rdi
lea r8, [rbp - 0x19]
cmp byte [rbx + 0x30], r12b
jne 0x18000c417
mov dword [rsp + 0x28], 0x60
mov edx, 0x80100000
mov dword [rsp + 0x20], 7
call qword [sym.imp.ntdll.dll_NtOpenFile]
nop dword [rax + rax]
mov edi, eax
or r13, 0xffffffffffffffff
test edi, edi
js 0x18000c3db
mov byte [rbx + 0x32], r12b
xor r9d, r9d
mov qword [rbp + 0x77], r12
xor r8d, r8d
mov qword [rbp + 0x6f], r13
xor edx, edx
mov al, byte [rbx + 0x30]
mov rcx, qword [rbx + 0x28]
mov byte [rsp + 0x48], al
mov eax, dword [0x1800b2248]
mov byte [rsp + 0x40], r12b
mov dword [rsp + 0x38], eax
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x77]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x39]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtLockFile]
nop dword [rax + rax]
mov edi, eax
test eax, eax
js 0x18002eec8
mov byte [rbx + 0x32], 1
test edi, edi
js 0x18000c3db
mov rcx, qword [rbx + 0x28]
lea r8, [rbx + 0x88]
mov r9d, 0x18
mov dword [rsp + 0x20], 5
lea rdx, [rbp - 0x39]
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
nop dword [rax + rax]
cmp eax, 0x80000005
mov edi, eax
cmove edi, r12d
test edi, edi
js 0x18000c3db
mov edx, dword [rbx + 0x90]
lea r9, [rbx + 0x48]
mov al, byte [rbx + 0x31]
lea r14, [rbx + 0x38]
neg al
mov dword [rbx + 0x34], edx
mov dword [rsp + 0x28], 4
sbb rcx, rcx
mov dword [rsp + 0x20], 0x2000
and ecx, 4
xor r8d, r8d
lea rax, [rcx + 4]
mov rcx, r13
add rax, rdx
mov rdx, r14
mov qword [rbx + 0x40], rax
add rax, 0x100000
mov qword [r9], rax
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
nop dword [rax + rax]
mov edi, eax
test eax, eax
js 0x18002ef59
mov dword [rsp + 0x28], 4
lea r9, [rbx + 0x40]
xor r8d, r8d
mov dword [rsp + 0x20], 0x1000
mov rdx, r14
mov rcx, r13
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
nop dword [rax + rax]
mov edi, eax
test eax, eax
js 0x18002ef59
mov rcx, qword [rbx + 0x28]
lea rax, [0x1800b2248]
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov eax, dword [rbx + 0x34]
xor r8d, r8d
mov qword [rsp + 0x38], r12
xor edx, edx
mov dword [rsp + 0x30], eax
mov rax, qword [r14]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x39]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtReadFile]
nop dword [rax + rax]
mov edi, eax
test eax, eax
js 0x18002ef59
mov eax, dword [rbx + 0x34]
mov ecx, 0xc0000011
cmp qword [rbp - 0x31], rax
cmovne edi, ecx
test edi, edi
js 0x18002ef59
mov rcx, qword [r14]
lea r8, [rbp + 0x67]
or dword [rbx + 0x50], 0xffffffff
mov edx, eax
mov dword [rbp + 0x67], r13d
mov dword [rbx + 0x54], r12d
call qword [sym.imp.ntdll.dll_RtlIsTextUnicode]
nop dword [rax + rax]
mov ecx, dword [rbx + 0x34]
mov r9d, 0xd
mov edx, ecx
mov byte [rbx + 0x31], al
add rdx, qword [r14]
lea r8d, [r9 - 3]
test al, al
jne 0x18000c3ae
cmp rdx, qword [r14]
jbe 0x18000c37f
mov eax, ecx
dec rdx
mov ecx, eax
cmp byte [rdx], r8b
jne 0x18002ef16
mov eax, ecx
add rax, qword [r14]
cmp rax, qword [r14]
jbe 0x18000c393
cmp byte [rax - 1], r8b
jne 0x18002ef40
mov qword [rsi + 0x10], rbx
mov eax, edi
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
cmp rdx, qword [r14]
jbe 0x18000c3c5
mov eax, ecx
add rdx, 0xfffffffffffffffe
mov ecx, eax
cmp word [rdx], r8w
jne 0x18002eedb
mov eax, ecx
add rax, qword [r14]
cmp rax, qword [r14]
jbe 0x18000c393
cmp word [rax - 2], r8w
je 0x18000c393
jmp 0x18002ef08
test rbx, rbx
je 0x18000c397
cmp byte [rbx + 0x32], r12b
jne 0x18002efa3
mov rcx, qword [rbx + 0x28]
test rcx, rcx
jne 0x18002ef91
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
jmp 0x18000c397
mov dword [rsp + 0x50], r12d
mov edx, 0xc0100000
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], 3
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], r12
call qword [sym.imp.ntdll.dll_NtCreateFile]
nop dword [rax + rax]
jmp 0x18000c187
cmp word [rcx + 0x28], r12w
je 0x18000c489
mov rcx, qword [rbx]
lea rdx, [0x180085130]
call qword [sym.imp.ntdll.dll_wcscspn]
nop dword [rax + rax]
movzx edx, word [rsi + 0x28]
shr rdx, 1
cmp rax, rdx
jne 0x18000c008
mov rax, qword [0x1800b2e40]
test rax, rax
jne 0x18002ee86
call qword [sym.imp.KERNELBASE.dll_KernelBaseGetGlobalData]
nop dword [rax + rax]
mov rcx, r14
lea rdx, [rax + 8]
call qword [sym.imp.ntdll.dll_RtlCopyUnicodeString]
nop dword [rax + rax]
lea rdx, [0x180085368]
mov rcx, r14
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
nop dword [rax + rax]
mov edi, eax
test eax, eax
js 0x18000c4e9
lea rdx, [rsi + 0x18]
mov rcx, r14
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
nop dword [rax + rax]
mov edi, eax
test edi, edi
jns 0x18000c05e
jmp 0x18000c397
mov edi, 0xc0000023
jmp 0x18000c397
lea rdx, [rax + 8]
mov rcx, r14
mov rax, r8
call qword [case.0x1800532bc.0]
nop
jmp 0x18000c05e
mov edi, 0xc0000001
jmp 0x18000c397
lea rdx, [rsi + 0x18]
mov rcx, r14
call qword [case.0x1800532bc.0]
mov edi, eax
test eax, eax
jns 0x18000c4e9
jmp 0x18000c499
mov eax, 0xc0000017
jmp 0x18000c399
mov rcx, rdi
call qword [case.0x1800532bc.0]
nop
jmp 0x18000c132
mov edi, 0xc000003a
mov rbx, r12
jmp 0x18000c189
cmp eax, 0xc00000bb
jne 0x18000c1f8
mov edi, r12d
jmp 0x18000c1f8
cmp word [rdx], 0x20
ja 0x18000c3c5
cmp word [rdx], r9w
je 0x18000c3c5
mov eax, dword [rbx + 0x34]
add eax, 0xfffffffe
mov ecx, eax
mov dword [rbx + 0x34], eax
cmp rdx, qword [r14]
ja 0x18000c3b5
jmp 0x18000c3c5
mov dword [rax], 0xa000d
mov eax, dword [rbx + 0x34]
lea ecx, [rax + 4]
jmp 0x18002ef4b
cmp byte [rdx], 0x20
ja 0x18000c37f
cmp byte [rdx], r9b
je 0x18000c37f
mov eax, dword [rbx + 0x34]
dec eax
mov ecx, eax
mov dword [rbx + 0x34], eax
cmp rdx, qword [r14]
ja 0x18000c371
jmp 0x18000c37f
mov word [rax], 0xa0d
mov eax, dword [rbx + 0x34]
lea ecx, [rax + 2]
mov dword [rbx + 0x34], ecx
mov dword [rbx + 0x54], ecx
mov dword [rbx + 0x50], eax
jmp 0x18000c393
cmp byte [rbx + 0x32], r12b
je 0x18002ef8d
mov eax, dword [0x1800b2248]
lea r9, [rbp + 0x6f]
mov qword [rbp + 0x77], r12
lea r8, [rbp + 0x77]
mov qword [rbp + 0x6f], r13
lea rdx, [rbp - 0x39]
mov rcx, qword [rbx + 0x28]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_NtUnlockFile]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
nop
jmp 0x18000c3f7
mov eax, dword [0x1800b2248]
lea r9, [rbp + 0x6f]
mov qword [rbp + 0x77], r12
lea r8, [rbp + 0x77]
mov qword [rbp + 0x6f], r13
lea rdx, [rbp - 0x39]
mov rcx, qword [rbx + 0x28]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_NtUnlockFile]
nop dword [rax + rax]
nop
jmp 0x18000c3ea